locate add-in

B

Basta1980

Hi,

I've an add-in which I want to distribute to colleagues. There's also a
helpfile attached. I programmed the location of the helpfile in the add-in.
Currentley it refers to my D:\ but I want to let it refer to the D:\ of the
specific user

Application.Help "D:\Users\<username>\Application Data\Microsoft\AddIns

I think I can use the Application.Username to name the variable but how do I
incorporate the statement within the application.help?

Gr.

Bas
 
P

Peter T

Application.UserLibraryPath

If you ensure the help file is in the same path as your addin,
ThisWorkbook.Path

Regards,
Peter T
 
B

Basta1980

Hi Peter,

I'm a real newbee on this. Could you help me where to put this code?

Mvg,

Bas
 
B

Bob Phillips

Try

Application.Help CreateObject("WScript.Shell").SpecialFolders("AppData") &
"\Microsoft\AddIns"

HTH

Bob
 
B

Basta1980

Hi Peter,

Dunno if i was doing it as it should be but I got it (the code) to work.

Thnx

Basta
 

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