Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to get a range from b18 down to the last cell in the column - I thought this would do it based on my recording of a macro but I end up with b1:b65535 - any suggestions
Range("B18", "B65535").Selec Range(selection, selection.End(xlUp)).Selec Also I presume I can prefix the ranges with a worksheets object correct May the worksheet be hidden during the selection Thanks as usual. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ERic,
Try Range("B18",Cells(Rows.Count,"B").End(xlUp)).Selec t -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "eric" wrote in message ... I am trying to get a range from b18 down to the last cell in the column - I thought this would do it based on my recording of a macro but I end up with b1:b65535 - any suggestions? Range("B18", "B65535").Select Range(selection, selection.End(xlUp)).Select Also I presume I can prefix the ranges with a worksheets object correct? May the worksheet be hidden during the selection? Thanks as usual. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
select all non-blank cells | Excel Discussion (Misc queries) | |||
VBA: Column Select then Data Select then return to cell A1 | Excel Discussion (Misc queries) | |||
Select until blank row | Excel Discussion (Misc queries) | |||
I want to select the first blank cell in column A | Excel Worksheet Functions | |||
Select blank cell | Excel Programming |