View Single Post
 
Old 11-03-2021, 07:44 AM
gomezaka gomezaka is offline Windows 10 Office 2019
Novice
 
Join Date: Oct 2021
Posts: 4
gomezaka is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
I have little experience with Sharepoint, but it uses internet style paths rather than Windows filing system paths. As long as the code can access the sharepoint location the appropriate path can be substituted in the code.
What is the result of Environ("HOMEPATH") ?
You cannot however use Environ in the Const strWorkbook. Define strWorkbook as a string variable and set the value of the string to the location of the workbook.
Thanks for your reply

The result is C:\Users\currentuserprofile\ , but this is only half of the adress. THe only constant in the adress is what comes after.(for example \files\test.xlsx. The first part has to depend on which user who is logged in.

Is there an way to combine the results of envirion and the string \files\test.xlsx into the second part of your code?
Reply With Quote