ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Active Cell in Non-Active Worksheet (https://www.excelbanter.com/excel-programming/426831-active-cell-non-active-worksheet.html)

Jack Cannon

Active Cell in Non-Active Worksheet
 
How does one get the row number of an active cell in a non-active worksheet?

For example if I am in Sheet2 and I wish to obtain the row number of the
active cell in Sheet 1 then what instruction will get it?

I am looking for something like:
=CELL("Row", Sheet1!ActiveCell)

Jack Cannon

JLGWhiz[_2_]

Active Cell in Non-Active Worksheet
 
You don't have to worry about it. You cannot have an active cell in a non
active worksheet.



"Jack Cannon" wrote in message
...
How does one get the row number of an active cell in a non-active
worksheet?

For example if I am in Sheet2 and I wish to obtain the row number of the
active cell in Sheet 1 then what instruction will get it?

I am looking for something like:
=CELL("Row", Sheet1!ActiveCell)

Jack Cannon




Jack Cannon

Active Cell in Non-Active Worksheet
 
Perhaps my terminology is wrong.

I am just trying to determine which cell has the focus or is highlighted and
do it from a different worksheet.


"JLGWhiz" wrote:

You don't have to worry about it. You cannot have an active cell in a non
active worksheet.



"Jack Cannon" wrote in message
...
How does one get the row number of an active cell in a non-active
worksheet?

For example if I am in Sheet2 and I wish to obtain the row number of the
active cell in Sheet 1 then what instruction will get it?

I am looking for something like:
=CELL("Row", Sheet1!ActiveCell)

Jack Cannon





JLGWhiz[_2_]

Active Cell in Non-Active Worksheet
 
If a sheet is not active, no cells have focus, none are active, none are
selected. You cannot use those properties on an inactive sheet. You can
use specific range references to add data, extract data copy and paste.


"Jack Cannon" wrote in message
...
Perhaps my terminology is wrong.

I am just trying to determine which cell has the focus or is highlighted
and
do it from a different worksheet.


"JLGWhiz" wrote:

You don't have to worry about it. You cannot have an active cell in a
non
active worksheet.



"Jack Cannon" wrote in message
...
How does one get the row number of an active cell in a non-active
worksheet?

For example if I am in Sheet2 and I wish to obtain the row number of
the
active cell in Sheet 1 then what instruction will get it?

I am looking for something like:
=CELL("Row", Sheet1!ActiveCell)

Jack Cannon








All times are GMT +1. The time now is 02:06 PM.

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