Forum Discussion

BillZab's avatar
BillZab
Copper Contributor
Feb 20, 2023
Solved

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 ...
  • HansVogelaar's avatar
    Feb 20, 2023

    BillZab 

    Try

     

    Environ("HomeDrive") & Environ("HomePath") & "\OneDrive - Folder two\PDF's"

     

    (Do all users really have a folder named OneDrive - Folder two?)

Resources