mtagliaferri
Board Regular
- Joined
- Oct 27, 2004
- Messages
- 156
I have a Excel file saved on my desktop which has a macro to import csv from another file saved on my desktop. I would like to distribute my excel file to other colleagues which will have both files saved on their desktop.
My Macro refers to my user and user name Users\123456\, therefore I would need to modify the macro for any single colleague I distribute the file to, is there a way to avoid this by changing the VBA code to read the user path?
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Users\123456\Desktop\UNM0007.csv", Destination:=Range("$A$1"))
Thanks
My Macro refers to my user and user name Users\123456\, therefore I would need to modify the macro for any single colleague I distribute the file to, is there a way to avoid this by changing the VBA code to read the user path?
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Users\123456\Desktop\UNM0007.csv", Destination:=Range("$A$1"))
Thanks