ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA File Variables - User App directory (https://www.excelbanter.com/excel-programming/363409-vba-file-variables-user-app-directory.html)

Chris Leroquais

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'

and How to check with VBA if the reference already exists?

Thanks very much





All times are GMT +1. The time now is 11:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com