View Single Post
 
Old 11-04-2021, 08:23 AM
Peterson Peterson is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 141
Peterson is on a distinguished road
Default

To get the full path, i.e., C:\Users\username, use:
Code:
Environ("USERPROFILE")
This function does not include a backslash at the end, so your code will need to include it:
Code:
strWorkbook = Environ("userprofile") & "\" & "YOUR PATH HERE\Word List.xlsx" ' The workbook path
Reply With Quote