excel addin on win7 - program files access issues

dantheman9

Board Regular
Joined
Feb 5, 2011
Messages
175
Hi,
Im aware that it is not the best practice to wirte into program file folders, but at the moment I'm not sure how i could work around it.
Basicly I have a html file which is installed with my addin into this location.
within my vba marco, this file is opened and edited to add more information. However with win7, access to open the file to edit is denied.
how could i work around this?
If I installed the addin folder to 'C:\' would this get around the issue? or is root also closed access?
from googling i have found that appdata (for win7) add application data folders might be a good place for the html file to go, but then how could i get my vba code to file the file path via the correct user?

thanks for any help on this
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
If you decided to go with the appdata folder route you can access that directory location via Environ("appdata"). This return the appdata folder for the logged in user. On my computer Environ("appdata") = "C:\Users\Rob\AppData\Roaming"
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top