View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Neil Neil is offline
external usenet poster
 
Posts: 173
Default Select Until Empty Cell From VBA Code

Range(Selection, Selection.End(xlDown)).Select

will mimic the crtl+shift+down arrow.

Hope this helps

Neil
www.nwarwick.co.uk

"Eric" wrote:

Hi-

I am new to Excel programming and want to do a select a range starting from
a cell down the column until there is an empty cell from my VBA code.

This is the equivalent of selecting a cell on the worsheet and pressing
ctrl+shift+down arrow.

Can anyone post sample code for how to do this?

Thank you,

Eric