So I have some VBA to save a file automatically when I click the button and here is the file path:
fname = "C:\Users\john.smith\Desktop\" & Range("G2") & "\ECIT_" _
& Format(DateValue(mnth & "-01"), "mm") & mnth & "_" & Range("G2") & ".xlsm"
The problem is that this one is specific to that one computer's desktop. How do I make it so that it doesn't matter who's desktop it is? I'm pretty sure there is a way but I can't remember. Is it something like %userprofile%?
Thanks.
fname = "C:\Users\john.smith\Desktop\" & Range("G2") & "\ECIT_" _
& Format(DateValue(mnth & "-01"), "mm") & mnth & "_" & Range("G2") & ".xlsm"
The problem is that this one is specific to that one computer's desktop. How do I make it so that it doesn't matter who's desktop it is? I'm pretty sure there is a way but I can't remember. Is it something like %userprofile%?
Thanks.