I created a program that takes in an excel file and pastes in an image of a graphical timeline based on the events in the document. But when trying this on a PC with windows 7 coming from XP and Vista I was unsuccessful in even creating the image. Is there a permission in Windows 7 that disallows a java program called by an excel macro to create files?
Formally it’s a 1004 unable to get insert property of image file, but this only occurs because the file is not created in the first place.
An application is not allowed to write under Program Files unless it’s run elevated (and you don’t want it to run elevated.) Write to a per-user location instead, either AppData if the user should never need to see the files, or under the user’s Documents if they might (eg an export that they are supposed to upload or mail.)