Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default 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" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default 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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
Why would Show All not be active in Filter part of Data menu? Larry Excel Worksheet Functions 1 August 30th 06 10:16 PM
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. ragman10 Excel Discussion (Misc queries) 1 December 13th 04 11:52 PM
How can I sperate the module into two part and connecte the two part and work well? ¬f©÷ Excel Programming 1 November 7th 04 03:05 AM


All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"