D
Deer Hunter
Hi!
When I want to open a .xls file with VBA command:
Set bk2 = Workbooks.Open(name)
where bk2 is defined as: Dim bk2 As Workbook
I get:
'run time error '1004':
Method 'Range' of object '_Worksheet' failed
and when I look in Excel, the file is opened!
Please anybody who can help me on the right track? What is wrong?
Regards,
Mike
When I want to open a .xls file with VBA command:
Set bk2 = Workbooks.Open(name)
where bk2 is defined as: Dim bk2 As Workbook
I get:
'run time error '1004':
Method 'Range' of object '_Worksheet' failed
and when I look in Excel, the file is opened!
Please anybody who can help me on the right track? What is wrong?
Regards,
Mike