P
Phil
Should the following line of code cause any problems in ExcelXP.
Sheets("Lookup").Range("H1").FormulaR1C1 = "=Today()"
"Lookup" is a hidden sheet and the code runs automatically when the
file is opened.
It was fine when I was using Excel 2000 now I get the following error
Run-time error '2147417848(80010108)'
Method'FormulaR1C1' of object 'Range' failed
If you select "End"Excel then hangs.
The same code does work on other files but if I copy and paste the same
code from a file that does work it has no effect.
cheers
------------------------------------------------
-- View and post Excel related usenet messages directly from http://www.ExcelForum.com
at http://www.ExcelTip.com/
------------------------------------------------
Sheets("Lookup").Range("H1").FormulaR1C1 = "=Today()"
"Lookup" is a hidden sheet and the code runs automatically when the
file is opened.
It was fine when I was using Excel 2000 now I get the following error
Run-time error '2147417848(80010108)'
Method'FormulaR1C1' of object 'Range' failed
If you select "End"Excel then hangs.
The same code does work on other files but if I copy and paste the same
code from a file that does work it has no effect.
cheers
------------------------------------------------
-- View and post Excel related usenet messages directly from http://www.ExcelForum.com
at http://www.ExcelTip.com/
------------------------------------------------