View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
alina b. alina b. is offline
external usenet poster
 
Posts: 5
Default Translation of VBA from PC to MAC

Hello,

I have the following code in my PC version that works without error,
could someone tell me how to modify it so that I can have it open in a
MAC version?

pathname = ActiveWorkbook.Path
Databasaefile = pathname & "\Database.XLS"
Workbooks.Open Filename:=Databasefile

Basically, for the third line it gives me a Run-time error. I believe
it doesn't recognize the pathname.

Thanks,
alina b.