Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Set myRng = .Range("c20", .Cells(.Rows.Count, "c").End(xlUp).row - 1) HTH "Jacqui" wrote: I have used the following syntax to determine the range for a For Each statement. However I'd like the end row to be 1 less than is returned so I enclosed a -1 in the bracket. I'm now getting a mismatch error from VBA. How do I fix? Many thanks Jacqui Set myRng = .Range("c20", .Cells(.Rows.Count, "c").End(xlUp) - 1) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
resizing a range of cells | Excel Discussion (Misc queries) | |||
Resizing a range of cells in a column | Excel Discussion (Misc queries) | |||
Resizing cells in a selection without resizing entire sheet | Excel Discussion (Misc queries) | |||
resizing a range | Excel Programming | |||
Resizing a Range | Excel Programming |