Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2000
Windows 2k Pro My StartCell is Range("B4"). My LastCell will be Range("E?") where the ? represents the last row containing a value in either columns B through E. -gk- |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
TBA,
Try this out: range(range("B4"), Range("E" & Range("B4").CurrentRegion.Rows.count)).select John "TBA" wrote in message ... Excel 2000 Windows 2k Pro My StartCell is Range("B4"). My LastCell will be Range("E?") where the ? represents the last row containing a value in either columns B through E. -gk- |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Although I am pretty sure someone comes up with a better way:
Sub SelectColumnE() Dim B, E As Integer Range("b65536").Select Selection.End(xlUp).Select B = Selection.Row Range("e65536").Select Selection.End(xlUp).Select E = Selection.Row If B = E Then Range("e" & B).Select If B < E Then Range("e" & E).Select End Sub Per Erik On Wed, 14 Jan 2004 10:51:03 -0600, "TBA" wrote: Excel 2000 Windows 2k Pro My StartCell is Range("B4"). My LastCell will be Range("E?") where the ? represents the last row containing a value in either columns B through E. -gk- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CODE 2 SELECT SHEETS LISTED IN A RANGE | Excel Discussion (Misc queries) | |||
How can change range to select active rows instead of :=Range("S10 | Excel Discussion (Misc queries) | |||
When entering data into a range of cells, select the entire range. | Excel Discussion (Misc queries) | |||
Code to select range | Excel Discussion (Misc queries) | |||
CODE to select range based on User Input or Value of Input Field | Excel Programming |