I've got an application written in VBA running in Excel and it's having issues on Windows 7 machines. During testing it worked absolutely fine, but it hadn't occurred to me that the fella doing the testing is an IT expert and had turned off user account notifications in Windows 7 already.
The issue is that if the app tries to write a file to a system area in windows (there's two being written, one to the same location as the Workbook in c:\program files (x86)\MAPS\MAPSdata\ and another to c:\programdata\MAPS) then Excel will hang and go unresponsive. If the subfolders do not exist it will try to create them. If user account notifications are turned off (control panel - user accounts - user account settings - slider bar all the way to the bottom) then it works absolutely fine.
The code works fine in all other versions of windows.
Is there some way in VBA to tell windows 7 to "shut the hell up and let me write a file ferchristsakes"? Or am I going to find somewhere else to write data files to? And if so, any idea where I can write to from VBA without Windows 7 going off in a sulk?
Bookmarks