Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use a combination of offset and resize.
dim rng1 as range dim rng2 as range set rng1 = whateverrangeyouwant with rng1 set rng2 = .resize(.rows.count-1).offset(1,0) end with one fewer row in rng2 than in rng1 (and the number of columns weren't specified, so they didn't change) and then down one row. ward376 wrote: So it is caused by the offset. How can I avoid this? I need to leave the header alone. -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
OFFSET | Excel Worksheet Functions | |||
Offset Q | Excel Worksheet Functions | |||
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul | Excel Worksheet Functions | |||
Offset | Excel Worksheet Functions | |||
Problem with Range.Cells.Offset and Range.Cells( row + offset, column) | Excel Programming |