ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pulling out numeric number from Activecell.Address (https://www.excelbanter.com/excel-programming/411456-pulling-out-numeric-number-activecell-address.html)

WLMPilot

Pulling out numeric number from Activecell.Address
 
I need to get the numeric value of Activecell.Address into a variable so that
I can do calculations. Example: ActiveCell.Address = $F$426. I need to
pull out 426 and place in a variable.

How can this be accomplished?

Thanks,
Les

Norman Jones[_2_]

Pulling out numeric number from Activecell.Address
 
Hi Les,

Try:

Dim i As Long

i = ActiveCell.Row




---
Regards.
Norman


"WLMPilot" wrote in message
...
I need to get the numeric value of Activecell.Address into a variable so
that
I can do calculations. Example: ActiveCell.Address = $F$426. I need to
pull out 426 and place in a variable.

How can this be accomplished?

Thanks,
Les



JLGWhiz

Pulling out numeric number from Activecell.Address
 
Hi Les, The 426 is the row number so you could use:

myVar = ActiveCell.Row

That would give you an integer value for the row number.

"WLMPilot" wrote:

I need to get the numeric value of Activecell.Address into a variable so that
I can do calculations. Example: ActiveCell.Address = $F$426. I need to
pull out 426 and place in a variable.

How can this be accomplished?

Thanks,
Les



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

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