Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script not encrypted properly #42

Open
L0G5 opened this issue Jul 13, 2018 · 1 comment
Open

Script not encrypted properly #42

L0G5 opened this issue Jul 13, 2018 · 1 comment

Comments

@L0G5
Copy link

L0G5 commented Jul 13, 2018

Hello and thank you for this awesome tool. It seems that i have stuck somewhere or i am doing something wrong. I have been trying to encrypt this auto generated macro script
VBA_original.txt
by preparing it like this.
VBA_prepared.txt
However despite the success,
image
the resulted script looks like this
VBA_result.txt
with a compiling error.
vba_error

So what am i missing here or doing wrong?

@Pepitoh
Copy link
Owner

Pepitoh commented Aug 1, 2019

Hi,
Sorry for the response delay ;)

The problem is in the "trigger_function_name" which seems not be correctly set in your const.py, you should set it to "ahaa" that the script could understand this is the function it has to auto trigger.

In your VBA_result.txt, the VBA tries to autotrigger the function vLPLaMYjKLyKtLD which do not exist (as you probably forgot to mention it in your const.py), the error is legitimate from a VBA point of view.

Also, you can remove
Sub AutoOpen() ahaa End Sub Sub Workbook_Open() ahaa End Sub
Not usefull as it is directly dealed by Vbad.

Hope it helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants