+ Reply to Thread
Results 1 to 4 of 4

select range next to activecell

  1. #1
    lookin
    Guest

    select range next to activecell

    I need to select a range of cells next to an active cell. My
    activecell is named "EmptyCell", but the RC coordinates may change, so
    I can't refer to the active cell's RC values. How do I select the
    range starting at ActiveCell.offset(0,1) to ActiveCell.offset(10, 3) ?


  2. #2
    Zack Barresse
    Guest

    Re: select range next to activecell

    Hi there lookin,

    Range(ActiveCell.offset(0,1), ActiveCell.offset(10, 3)).Select

    Although there is generally little need to actually Select/Activate anything
    whilst using VBA. Is there something you are trying to accomplish with this
    particular range? I think you've probably got some code already which you
    are using and this is probably part of a bigger solution. Can you post your
    code?

    --
    Regards,
    Zack Barresse, aka firefytr
    To email, remove NOSPAM


    "lookin" <[email protected]> wrote in message
    news:[email protected]...
    >I need to select a range of cells next to an active cell. My
    > activecell is named "EmptyCell", but the RC coordinates may change, so
    > I can't refer to the active cell's RC values. How do I select the
    > range starting at ActiveCell.offset(0,1) to ActiveCell.offset(10, 3) ?
    >




  3. #3
    Chip Pearson
    Guest

    Re: select range next to activecell

    Try

    Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(10, 3)).Select


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "lookin" <[email protected]> wrote in message
    news:[email protected]...
    >I need to select a range of cells next to an active cell. My
    > activecell is named "EmptyCell", but the RC coordinates may
    > change, so
    > I can't refer to the active cell's RC values. How do I select
    > the
    > range starting at ActiveCell.offset(0,1) to
    > ActiveCell.offset(10, 3) ?
    >




  4. #4
    lookin
    Guest

    Re: select range next to activecell

    Thanks guys! I could swear I tried that, but I must have typed
    something wrong - it's working now!


+ 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