Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
How do you translate in VBA the selection from the current cell down to the last one (not blank). If I had to do the operation manually in a workbook, I would select the first cell, then hold SHIFT, press END then ARROW DOWN. Thank you. Eric |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
basically the same way:
Range("a1").End(xlDown).Select although you rarely need to use select, but this illustrates what you want. -- Gary "Eric" wrote in message ... Hello, How do you translate in VBA the selection from the current cell down to the last one (not blank). If I had to do the operation manually in a workbook, I would select the first cell, then hold SHIFT, press END then ARROW DOWN. Thank you. Eric |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gary,
This goes to the last cell non blank. How do I "select" from the current cell down to the last cell? The SHIFT part in not translated in Range("a1").End(xlDown).Select. Thank you again. Eric "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... basically the same way: Range("a1").End(xlDown).Select although you rarely need to use select, but this illustrates what you want. -- Gary "Eric" wrote in message ... Hello, How do you translate in VBA the selection from the current cell down to the last one (not blank). If I had to do the operation manually in a workbook, I would select the first cell, then hold SHIFT, press END then ARROW DOWN. Thank you. Eric |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() is this what you want? Range(ActiveCell, ActiveCell.End(xlDown)).Select -- Gary "Eric" wrote in message ... Gary, This goes to the last cell non blank. How do I "select" from the current cell down to the last cell? The SHIFT part in not translated in Range("a1").End(xlDown).Select. Thank you again. Eric "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... basically the same way: Range("a1").End(xlDown).Select although you rarely need to use select, but this illustrates what you want. -- Gary "Eric" wrote in message ... Hello, How do you translate in VBA the selection from the current cell down to the last one (not blank). If I had to do the operation manually in a workbook, I would select the first cell, then hold SHIFT, press END then ARROW DOWN. Thank you. Eric |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, perfect.
What if I need to include also 3 more columns to the right. Thank you for helping me going through the VBA learning curve... Eric "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... is this what you want? Range(ActiveCell, ActiveCell.End(xlDown)).Select -- Gary "Eric" wrote in message ... Gary, This goes to the last cell non blank. How do I "select" from the current cell down to the last cell? The SHIFT part in not translated in Range("a1").End(xlDown).Select. Thank you again. Eric "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... basically the same way: Range("a1").End(xlDown).Select although you rarely need to use select, but this illustrates what you want. -- Gary "Eric" wrote in message ... Hello, How do you translate in VBA the selection from the current cell down to the last one (not blank). If I had to do the operation manually in a workbook, I would select the first cell, then hold SHIFT, press END then ARROW DOWN. Thank you. Eric |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this
Range(Range("a1"), Range("a1").End(xlDown)).Resize(, 3).Select -- Gary "Eric" wrote in message ... Yes, perfect. What if I need to include also 3 more columns to the right. Thank you for helping me going through the VBA learning curve... Eric "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... is this what you want? Range(ActiveCell, ActiveCell.End(xlDown)).Select -- Gary "Eric" wrote in message ... Gary, This goes to the last cell non blank. How do I "select" from the current cell down to the last cell? The SHIFT part in not translated in Range("a1").End(xlDown).Select. Thank you again. Eric "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... basically the same way: Range("a1").End(xlDown).Select although you rarely need to use select, but this illustrates what you want. -- Gary "Eric" wrote in message ... Hello, How do you translate in VBA the selection from the current cell down to the last one (not blank). If I had to do the operation manually in a workbook, I would select the first cell, then hold SHIFT, press END then ARROW DOWN. Thank you. Eric |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Range(Range("a1"), Range("a1").End(xlDown)).Select
-- Don Guillett SalesAid Software "Eric" wrote in message ... Gary, This goes to the last cell non blank. How do I "select" from the current cell down to the last cell? The SHIFT part in not translated in Range("a1").End(xlDown).Select. Thank you again. Eric "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... basically the same way: Range("a1").End(xlDown).Select although you rarely need to use select, but this illustrates what you want. -- Gary "Eric" wrote in message ... Hello, How do you translate in VBA the selection from the current cell down to the last one (not blank). If I had to do the operation manually in a workbook, I would select the first cell, then hold SHIFT, press END then ARROW DOWN. Thank you. Eric |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That works too. Thanks.
Eric "Don Guillett" wrote in message ... Range(Range("a1"), Range("a1").End(xlDown)).Select -- Don Guillett SalesAid Software "Eric" wrote in message ... Gary, This goes to the last cell non blank. How do I "select" from the current cell down to the last cell? The SHIFT part in not translated in Range("a1").End(xlDown).Select. Thank you again. Eric "Gary Keramidas" <GKeramidasATmsn.com wrote in message ... basically the same way: Range("a1").End(xlDown).Select although you rarely need to use select, but this illustrates what you want. -- Gary "Eric" wrote in message ... Hello, How do you translate in VBA the selection from the current cell down to the last one (not blank). If I had to do the operation manually in a workbook, I would select the first cell, then hold SHIFT, press END then ARROW DOWN. Thank you. Eric |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to return a blank formula cell if the reference is blank? | Excel Worksheet Functions | |||
Average Formula to display blank cell if named range is blank | Excel Worksheet Functions | |||
Copy to first Blank cell in Colum C Non blank cells still exist be | Excel Programming | |||
How do I make a blank cell with a date format blank? | Excel Worksheet Functions | |||
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. | Excel Discussion (Misc queries) |