Closed zeal0t35 closed 7 years ago
Hi,
Just keep your "Debugging()" function in original_vba_prepared.txt: original_vba_prepared (1).txt
You should delete references to Autoopen or Document_open() function in your prepared vba, VBAd will automaticly included good autopen function related to the document you are creating, it sometimes messes up when you try to add others autotrigger function.
Try this and let met know if it works.
Pepitoh.
Thanks Pepitoh, I've deleted all references to the AutoOpen and DocumentOpen. In fact i've used the txt you uploaded. Then generate file OK, but same error is rising.
UPDATE: I've changed the powershell to another (in txt file attached), and now getting this error.
Thanks.
hi @zeal0t35,
So there are many problems relative to your issue, I manage to, I think, fix them all :
[rdm::15]Dim str As string
Of course, it will cause a crash in your final VBA, you cannot randomize VBA native code, you can only apply rdm to variable or function name. The good way to use it will be :
Dim [rdm::15]str as String
After that, you put exclusion marquers ([!!]) evrywhere in your prepared VBA which makes no sense (unless you want no obfucstion at all, in this case why are you using VBad for :grin:). Exclusion marquer should be used inside of a string you don't want to obfsucate. Example :
[rdm::15]str = "Powershel[!!]"
not [rdm::15] str = [!!]"powershll"
which will have no kind of effect. That is for the first file you sent.delete_module_name = 0
in const.py for debugginf more easilyHope it helps, you can find a prepared_vba of your vba code that works perfectly on my laptop : original_vba_prepared.txt
Pepitoh.
Pepitoh: Thank you very much for your reply. Clear as the water 👍 Saludos, zeal0t
After generate the files, this message popups when i open the .doc
upload the vbas and the const.py const.py.txt orignal_vba.txt original_vba_prepared.txt
Please help me. Thanks in advice