Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
defining a range compile error
I get an invalid procedure call on defining the Rng variable. Why is that it
looks like it should work. Thanks, Sub deleteDateRow1() Dim Rng As Range Set Rng = Range("A1") With Rng If IsDate(.Value) Then FrReptDate = .Value ToReptDate = .Offset(0, 1).Value ..EntireRow.Delete Shift:=xlUp Else Exit Sub End If End With End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
defining a range compile error
code works fine for me.
-- Regards, Tom Ogilvy "Janis" wrote in message ... I get an invalid procedure call on defining the Rng variable. Why is that it looks like it should work. Thanks, Sub deleteDateRow1() Dim Rng As Range Set Rng = Range("A1") With Rng If IsDate(.Value) Then FrReptDate = .Value ToReptDate = .Offset(0, 1).Value .EntireRow.Delete Shift:=xlUp Else Exit Sub End If End With End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
help with this error-Compile error: cant find project or library | Excel Discussion (Misc queries) | |||
VBAProject name compile error, not defined at compile time | Excel Programming | |||
error message: compile error, argument not optional | Excel Programming | |||
Error 1004 when defining range by cells(r,c) format | Excel Programming |