I successfully got the "save attachment" script working on my thin client VDI.
However, when I went to run the rules on another machine (my laptop), Outlook gave me an error message saying the script doesn't exist or is invalid.
I already unchecked the "on this computer only" setting.
I suspect it has to do with the script being saved in my "ThisOutlookSession".
How can I save the VBA script so it is available with my roaming profile, not just tied to a specific computer?
Hi Marilyn,
Outlook stores all its macros in a single file called VbaProject.otm. This file is already part of your roaming profile and is located in the user's %appdata%MicrosoftOutlook folder.
You can quickly access this folder by typing %appdata% into your Search box (Windows 10), or Start -> Run for older Windows, or directly into the address bar or Windows Explorer.
When you log into your laptop, are you logging in to an account on the laptop? Or are you using a network account on a domain, that has access to your roaming profile?
If you got to %appdata% on the laptop, do you see the VbaProject.otm file?
If you open the VBA editor on the laptop, do you see the macro?
Try inserting a module and moving the code from ThisOutlookSession into that module.
Regards
Phil