All our data has been moved to SharePoint. In al lot of Excel files the following code is used
MicrosoftTeams-image.png
But now that the data is on SharePoint, this no longer works.
Any help is appreciated
All our data has been moved to SharePoint. In al lot of Excel files the following code is used
MicrosoftTeams-image.png
But now that the data is on SharePoint, this no longer works.
Any help is appreciated
You use a redundant function to get the same result as
what is the result ofThisworkbook.path
zie: https://www.snb-vba.eu/VBA_Bestanden.html#L_1.8Msgbox Thisworkbook.path
Msgbox Thisworkbook.path
Dan komt er een message met het pad in SharePoint
ofMsgBox CreateObject("scripting.filesystemobject").GetParentFolderName(ThisWorkbook.FullName)
MsgBox CreateObject("scripting.filesystemobject").GetParentFolderName(ThisWorkbook.path)
MsgBox CreateObject("scripting.filesystemobject").GetParentFolderName(ThisWorkbook .FullName)
Displays the current folder
MsgBox CreateObject("scripting.filesystemobject").GetParentFolderName(ThisWorkbook .path)
Returns the subfolder
Last edited by Aussiebear; 08-15-2022 at 05:48 AM. Reason: Posts are required to be in English