View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
gromit12 gromit12 is offline
external usenet poster
 
Posts: 12
Default How can I know whether an excel sheet is running in a PC or Mac environment?

Hi,

I have some code that runs fine on a PC but trips up a mac. I have
found a workaround for the mac, but I need to find a way to shield the
code in eaqch case, along the lines of:

If [I'm running on a Mac] then
mac code
Else
PC code
End if

Anyone know how to do this? Thanks in advance.