For a business application I'm trying to get a macro compile data from named cells and parse them into a batch file. Next the batch-file must be executed to return everything to an new email in Mozilla Thunderbird.
Please Login or Register  to view this content.
When the macro runs, the batch-file is created, but when I don't click OK in the confirmation box and open the batch-file in notepad, it's empty.
When continuing the script by clicking OK, I receive the message "mail has been sent", but nothing happens (since the batch file is empty).
After the script has ended, the printed output is present in the batch-file.
I've tried everything I could think of, so if anyone can tell me what I missed I'd really appreciate it.