G
Gef
I want a macro to open a spreadsheet. I have seen Tom
Ogilvys postng on this and created a macro as follows;
Sub GefTest()
sname = Dir("D:\Documents and Settings\Me\My
Documents\Spreadsheet Examples\Action Buttons.xls")
If sname <> "" Then
Workbooks.Open "D:\Documents and Settings\Me\My
Documents\Spreadsheet Examples\" & sname
End Sub
But.. this gives me an error that says:
Compile Error: Method or Data member not found
It does not seem to like the .Open bit.
Please could someone explain where I have gone wrong.
Ogilvys postng on this and created a macro as follows;
Sub GefTest()
sname = Dir("D:\Documents and Settings\Me\My
Documents\Spreadsheet Examples\Action Buttons.xls")
If sname <> "" Then
Workbooks.Open "D:\Documents and Settings\Me\My
Documents\Spreadsheet Examples\" & sname
End Sub
But.. this gives me an error that says:
Compile Error: Method or Data member not found
It does not seem to like the .Open bit.
Please could someone explain where I have gone wrong.