R
rob nobel
Hi all,
I am absolutely perplexed!!
I have created a toolbar button with the following macro assigned:
Sub RecordsCurrent2()
Workbooks.Open "C:\Documents and Settings\User\My Documents\Records\Records
current2.xls"
End Sub
It runs fine on my Windows98/Office 2000 Desktop PC (with some minor
difference in path string)
BUT......
on a WindowsXP/Office97 Laptop, for some strange reason, the file opens,
without executing the workbook open() event in This Workbook.
The procedure that won't work can be as simple as :
Sheets ("Tax Invoice Records").Select
The workbook does open and no error messages appear, except that the
workbook open() code won't run.
If I change the code to MsgBox "Hello", then that DOES execute!???
THE STRANGE THING IS.............
If I open the workbook from within its folder or from the list in the
dropdown file menu, then it does run the code correctly. But what's wrong
with opening it with the button?????
AAAAAAHHHHHHHHHHHHHHHHHH!
Please help.
Rob
I am absolutely perplexed!!
I have created a toolbar button with the following macro assigned:
Sub RecordsCurrent2()
Workbooks.Open "C:\Documents and Settings\User\My Documents\Records\Records
current2.xls"
End Sub
It runs fine on my Windows98/Office 2000 Desktop PC (with some minor
difference in path string)
BUT......
on a WindowsXP/Office97 Laptop, for some strange reason, the file opens,
without executing the workbook open() event in This Workbook.
The procedure that won't work can be as simple as :
Sheets ("Tax Invoice Records").Select
The workbook does open and no error messages appear, except that the
workbook open() code won't run.
If I change the code to MsgBox "Hello", then that DOES execute!???
THE STRANGE THING IS.............
If I open the workbook from within its folder or from the list in the
dropdown file menu, then it does run the code correctly. But what's wrong
with opening it with the button?????
AAAAAAHHHHHHHHHHHHHHHHHH!
Please help.
Rob