Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I get an error in this macro.
It is listed as "Run-time error ('1004': Application-defined or object-defined error" The error is caused by this line: .Range(Cells(4, 1), Cells(totalrows, 6)).Clear Sub clearStreetSummary() Dim totalrows As Integer With Sheets("Street Summary") totalrows = .UsedRange.Rows.count + 2 If totalrows 3 Then .Range(Cells(4, 1), Cells(totalrows, 6)).Clear End If End With End Sub I was certain this macro ran at least once. Can someone please help with this? Ken Loomis |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-time error '50290': Application-defined or object-defined erro | Excel Discussion (Misc queries) | |||
Macro Run-time Error 1004 Application Defined or Object Defined Error | Excel Programming | |||
Runtime Error 1004 -- Application Defined or Object Defined Error | Excel Programming | |||
VBA - Application-defined or object-defined error | Excel Programming |