Windows 200 excel VB in Excel X

C

chris wilder

I have an excel sheet, containing many VB macros, made in excel 2000
& running in win 95. The sheet contains much of the data, but in order
to produce analysed data & graphs, reference is made to a folder on
the remote server to access the .csv raw data files. When i transfer the
sheet & the .csv folder to the mac, understandrbly the directory
reference path is incorrect. I have tried several path descriptions, but i
keep getting file not found errors or device not found errors.
How can i direct the macro at the folder which currently is on my home
desktop folder?
All help gratefully received. Thanks. Chris W
 
J

J.E. McGimpsey

chris wilder said:
I have an excel sheet, containing many VB macros, made in excel 2000
& running in win 95. The sheet contains much of the data, but in order
to produce analysed data & graphs, reference is made to a folder on
the remote server to access the .csv raw data files. When i transfer the
sheet & the .csv folder to the mac, understandrbly the directory
reference path is incorrect. I have tried several path descriptions, but i
keep getting file not found errors or device not found errors.
How can i direct the macro at the folder which currently is on my home
desktop folder?
All help gratefully received. Thanks. Chris W

One way:

Const MYPATH = "Macintosh HD:Users:chris:Desktop:myFolder"
Workbooks.OpenText _
FileName:=MYPATH & "myData.csv", _
DataType:=xlDelimited, _
comma:=True

Adjust MYPATH to suit...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top