+ Reply to Thread
Results 1 to 4 of 4

Part of the Active Row

  1. #1
    Sunryzz
    Guest

    Part of the Active Row

    I am trying to select a single cell in a row which was previously selected.
    For example, row 2 was selected in an earlier portion of my code and when I
    re-activate that sheet, I then need to change the selection from the whole
    row to only the cell I2. Does anyone have a good way to do this?

    Thank you very much

  2. #2
    Norman Jones
    Guest

    Re: Part of the Active Row

    Hi Sun ryzz,

    Try:


    Selection.EntireRow.Cells(2).Select

    or:

    Set RCell =Selection.EntireRow.Cells(2)

    since it is rarely necessary to make a physical selection.


    ---
    Regards,
    Norman



    "Sunryzz" <[email protected]> wrote in message
    news:[email protected]...
    >I am trying to select a single cell in a row which was previously selected.
    > For example, row 2 was selected in an earlier portion of my code and when
    > I
    > re-activate that sheet, I then need to change the selection from the whole
    > row to only the cell I2. Does anyone have a good way to do this?
    >
    > Thank you very much




  3. #3
    Sunryzz
    Guest

    Re: Part of the Active Row

    If I'm looking at this correctly (and that is certainly questionable), the
    (2) means that it will go to the 2nd row and select the entire row. Is that
    right or is the 2 for something else? If it is going to select the 2nd row,
    I wonder if you know of a way to select a cell in a row that is already
    selected but which changes every time. There is one constant in that I
    always want to select the third column of the row that is selected. Does
    this make any sense??

    "Norman Jones" wrote:

    > Hi Sun ryzz,
    >
    > Try:
    >
    >
    > Selection.EntireRow.Cells(2).Select
    >
    > or:
    >
    > Set RCell =Selection.EntireRow.Cells(2)
    >
    > since it is rarely necessary to make a physical selection.
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Sunryzz" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am trying to select a single cell in a row which was previously selected.
    > > For example, row 2 was selected in an earlier portion of my code and when
    > > I
    > > re-activate that sheet, I then need to change the selection from the whole
    > > row to only the cell I2. Does anyone have a good way to do this?
    > >
    > > Thank you very much

    >
    >
    >


  4. #4
    Sunryzz
    Guest

    Re: Part of the Active Row

    Hey, I think I just figured it out. This is what I used.

    ActiveCell.Offset(0, 2).Select

    This selects the 3th column in the row that was already selected. Maybe
    this was what you were trying to say, and I just didn't understand.

    Thanks!

    "Norman Jones" wrote:

    > Hi Sun ryzz,
    >
    > Try:
    >
    >
    > Selection.EntireRow.Cells(2).Select
    >
    > or:
    >
    > Set RCell =Selection.EntireRow.Cells(2)
    >
    > since it is rarely necessary to make a physical selection.
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Sunryzz" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am trying to select a single cell in a row which was previously selected.
    > > For example, row 2 was selected in an earlier portion of my code and when
    > > I
    > > re-activate that sheet, I then need to change the selection from the whole
    > > row to only the cell I2. Does anyone have a good way to do this?
    > >
    > > Thank you very much

    >
    >
    >


+ 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