Forum Discussion
BillZab
Feb 20, 2023Copper Contributor
UserName in saved path of excel macro
Hi All. I have a macro that creates a PDF from the spreadsheet. I save this to a central onedrive folder. On my own PC, this is "C:\Users\Bill\OneDrive - Folder two\PDF's". I want all my users to be ...
- Feb 20, 2023
Try
Environ("HomeDrive") & Environ("HomePath") & "\OneDrive - Folder two\PDF's"
(Do all users really have a folder named OneDrive - Folder two?)
HansVogelaar
Feb 20, 2023MVP
Try
Environ("HomeDrive") & Environ("HomePath") & "\OneDrive - Folder two\PDF's"
(Do all users really have a folder named OneDrive - Folder two?)
BillZab
Feb 20, 2023Copper Contributor
Thanks again Hans, this worked.
The Folder name is not as I used in my example. It is a company shared folder.
The Folder name is not as I used in my example. It is a company shared folder.