Identifying and calling Application Data folder

K

Kathy Webster

Withe a Word macro, how do I identify and call the C:\Documents and
Settings\UserName\Local Settings\Application Data folder?

I want to write a macro in Word that merges form file:
C:\Documents and Settings\USERNAME\Local Settings\Application
Data\mergeform.doc with it's data source:
C:\Documents and Settings\USERNAME\Local Settings\Application Data\data.txt.

Thank you in advance,
KW
 
J

Jezebel

sourcefile = environ("Appdata") & "\mergeform.doc"
datasource = environ("Appdata") & "\data.txt"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top