martinez_pedro
New Member
- Joined
- Aug 19, 2009
- Messages
- 28
Does Anybody know how to make a .xlam to open for current user instead an specific path
Thank you for any your help.
Thank you for any your help.
Code:
Sub OpenAndClose()
Dim excelFile As String
excelFile = "ClearContentsSEL.xlam"
''''''''''''''''''''''''''''''''''''''''''''''''
'make this section to work on current user
Workbooks.Open ("C:\Users\pedro\AppData\Roaming\Microsoft\AddIns\ClearContentsSEL.xlam")
'''''''''''''''''''''''''''''''''''''''''''''''
Workbooks(excelFile).Close SaveChanges:=False
End Sub