+ Reply to Thread
Results 1 to 2 of 2

Select Until Empty Cell From VBA Code

  1. #1
    Eric
    Guest

    Select Until Empty Cell From VBA Code

    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

  2. #2
    Neil
    Guest

    RE: 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


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1