Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I get a Runtime error '1004' when it encounters the last line here. I guess
the program cannot understand the use of the variable "counter" in the last line. Range("I1").Select Selection.End(xlDown).Select JobNumber = ActiveCell.Value counter = 0 Do ActiveCell.Offset(1, 0).Select If ActiveCell.Value < JobNumber Then ActiveCell.Offset(-1, 0).Select Exit Do End If counter = counter - 1 Loop ActiveCell.Offset(0, -1).Select Selection.Resize(counter, 0).Select |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assigning a Variable to an Expression that Includes a Variable andVBA Property | Excel Programming | |||
Nothing Keyword Destories Objects rather than just resetting the variable to an empty variable | Excel Programming | |||
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? | Excel Worksheet Functions | |||
Run-time error '91': "Object variable or With block variable not set | Excel Programming | |||
Cells.Find error Object variable or With block variable not set | Excel Programming |