Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
union(Range(Cells(3,3),Cells(numRow,3)),Range(Cell s(3,5),Cells(numrow,3)))
Sure your cells are correct Assume number is 6 Range("C3:C6,E3:C6") perhaps union(Range(Cells(3,3),Cells(numRow,3)),Range(Cell s(3,5),Cells(numrow,5))) from the immediate window: numrow = 6 ? union(Range(Cells(3,3),Cells(numRow,3)),Range(Cell s(3,5),Cells(numrow,5))).A ddress $C$3:$C$6,$E$3:$E$6 -- Regards, Tom Ogilvy "waveracerr " wrote in message ... I need to set a range based on 4 variable which represent two columns of records. I would like something similar to below but this code does not function properly. How can I define two ranges within one range? Eg. Range(Cells(3,3), Cells(numrow,3):Cells(3,5),Cells(numrow,3)).Select How do I define this? Thanks! --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic Range for multiple columns | Excel Discussion (Misc queries) | |||
SUMIF with multiple columns in sum range | Excel Discussion (Misc queries) | |||
Auto Sum range with multiple columns. | Excel Worksheet Functions | |||
Sum If on multiple columns with range of criteria | Excel Worksheet Functions | |||
If value in data range (multiple columns) return row | Excel Discussion (Misc queries) |