Hi guys and gals,
Here's a question for you. I've got a spreadsheet that I use at work that has some big macros in it. I'm trying to work on it at home, but my Mac is having some issues with the macros. Specifically on the portion that looks for the path:
I'd LOVE to make this where it works in both Mac and Windows although 99.9999% of the time it only runs on Windows, so it's not a HUGE deal. The problem here is that Mac doesn't have a C:\ and entries like \Users\me, /Users/me, and Users:Me: don't work.
Ideas?
Here's a question for you. I've got a spreadsheet that I use at work that has some big macros in it. I'm trying to work on it at home, but my Mac is having some issues with the macros. Specifically on the portion that looks for the path:
Code:
If Worksheets("Main").Range("B25") = "" Then
sPath = "C:\"
Else
sPath = Worksheets("Main").Range("B25")
End If
s = CurDir
ChDrive sPath
ChDir sPath
fName = Application.GetOpenFilename
I'd LOVE to make this where it works in both Mac and Windows although 99.9999% of the time it only runs on Windows, so it's not a HUGE deal. The problem here is that Mac doesn't have a C:\ and entries like \Users\me, /Users/me, and Users:Me: don't work.
Ideas?