K
Kenji
Is there a way for me to tell if the user is on a MAC or PC with vba?
Thanks!
Kenji
Thanks!
Kenji
Sure, just use application.operatingsystem to determine which platform.Is there a way for me to tell if the user is on a MAC or PC with vba?
Thanks!
Kenji
Sure, just use application.operatingsystem to determine which platform.
Bernard REY said:Bob Greenblatt wrote :
That'll give you a *precise* description of the OS (ie "Macintosh (PowerPC)
10.32"). It may be quite useful to simply test the Path Separator, in order
to use one code line or another, depending upon the result. Here's a couple
of lines I often use when writing some cross-platform macro:
MySep = Application.PathSeparator
If MySep = "\" Then
MyFilePath = "C:\My documents\Excel"
ElseIf MySep = ":" Then
MyFilePath = "Macintosh HDocuments:Excel"
Else
MyMessage = MsgBox("Neither Mac, nor Windows, where are we now?", _
vbOK, "Unidentified OS!")
Exit Sub
End If