View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Chris Leroquais Chris Leroquais is offline
external usenet poster
 
Posts: 6
Default VBA File Variables - User App directory

Hi there,

do you know how I can specify the Windows User App directory in an Excel VBA
macro?
What is the variable to use? (VBA API or Windows environment variables?)

In my case I want to code something like that:

Application.VBE.ActiveVBProject.References.AddFrom File
'CurrentUserAppsDirectoryVariable\Microsoft\Excel\ XlStart\mydll.dll'

Thanks very much