Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In Excel 2007, a macro has the following at the beginning of the code:
Range("A4", Range("A4").End(xlDown)).NumberFormat = "$#,##0.00" When I run the macro, it gives the following error message and the debug points to this line of code Run-time error 1004; Unable to set the number format property of the range class I do not see any problem with this code. Any help will be appreciated. I have run the SP1 thinking that it might solve the problem but it has not. For testing, I removed that line of code and ran the macro, it then again stopped at the following line: Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select The error message this time was run-time error 1004 , You cannot use this command on a protected sheet.... To begin with, the sheet is not protected. Is there still a flaw in Excel 2007 with VBA macros that has not been taken care of in SP1 ? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
run time error 1004 general odbc error excel 2003 vba | Excel Programming | |||
Error Code 1004 when exporting from VB app to Excel 2007 | Excel Discussion (Misc queries) | |||
Run-time error '1004' VBA Excel 2003 | Excel Programming | |||
EXCEL VBA - Run-time Error 1004 | Excel Programming | |||
EXCEL VBA - Run-time Error 1004 | Excel Programming |