ThisWorkbook.FullName returns a URL after syncing with OneDrive. I want the file path on disk
This is corrected and restyled code from beerockxs. It works on my machine, but I’m not sure how well it’ll work on other setups. If others could test, that would be great. I’ll be marking beerockxs answer at the solution. Function GetLocalFile(wb As Workbook) As String ‘ Set default return GetLocalFile = wb.FullName Const HKEY_CURRENT_USER … Read more