ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   "ActiveCell" in another sheet... (https://www.excelbanter.com/excel-programming/378544-activecell-another-sheet.html)

Patrice[_4_]

"ActiveCell" in another sheet...
 
Hi,

I would likel to retrieve the position of the cell that would be current if
I activate a particuler sheet.

My scenario is :
- updating something in the current sheet hides rows in another sheet
- if a row I hide contains the "current cell", the method fails.

I see Application.ActiveCell but that is the cell that has the focus in the
current sheet. I would like to get the cell that would have the focus in
another sheet that is currently not activated.

TIA

--
Patrice




Patrice[_4_]

"ActiveCell" in another sheet...
 
Solved. Actually I don't need any more this info in my scenario (not sure if
usefull on some other occasion ?)

--
Patrice

"Patrice" a écrit dans le message de news:
...
Hi,

I would likel to retrieve the position of the cell that would be current
if I activate a particuler sheet.

My scenario is :
- updating something in the current sheet hides rows in another sheet
- if a row I hide contains the "current cell", the method fails.

I see Application.ActiveCell but that is the cell that has the focus in
the current sheet. I would like to get the cell that would have the focus
in another sheet that is currently not activated.

TIA

--
Patrice






JLGWhiz

"ActiveCell" in another sheet...
 
For future reference, there is no active cell or current cell in a closed
workbook. The workbook must be open for either to be used as a reference.
All references from an active workbook to a closed workbook must be explicit.

"Patrice" wrote:

Hi,

I would likel to retrieve the position of the cell that would be current if
I activate a particuler sheet.

My scenario is :
- updating something in the current sheet hides rows in another sheet
- if a row I hide contains the "current cell", the method fails.

I see Application.ActiveCell but that is the cell that has the focus in the
current sheet. I would like to get the cell that would have the focus in
another sheet that is currently not activated.

TIA

--
Patrice






All times are GMT +1. The time now is 10:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com