ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   From Macro in Excel find cursor location eg.C7 (https://www.excelbanter.com/excel-discussion-misc-queries/87860-macro-excel-find-cursor-location-eg-c7.html)

kt(uk)

From Macro in Excel find cursor location eg.C7
 
Whilst running a Macro, I would like find the row value of the cursor.

eg. if the cursor is in cell F3 then I would expect the result to be 6



Ardus Petus

From Macro in Excel find cursor location eg.C7
 
ActiveCell.Row will return Row number
Activecell.Cloumn will return Column number

BTW: 6 is the column number of F3!

HTH
--
AP

"kt(uk)" a écrit dans le message de news:
...
Whilst running a Macro, I would like find the row value of the cursor.

eg. if the cursor is in cell F3 then I would expect the result to be 6






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

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