Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey guys
The below code pulls back the active cell address. How do I get it to return only the number portion of the address? For instance if location is equal to J22, I want to retrieve only the 22. Dim Location Location = ActiveCell.Address Thank you Todd Huttenstine |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim Location
Dim i As Long Location = ActiveCell.Address(True, False) For i = 2 To 3 If Mid(Location, i, 1) = "$" Then Exit For End If Next Location = Mid(Location, i + 1, 3) -- HTH ------- Bob Phillips "Todd Huttenstine" wrote in message ... Hey guys The below code pulls back the active cell address. How do I get it to return only the number portion of the address? For instance if location is equal to J22, I want to retrieve only the 22. Dim Location Location = ActiveCell.Address Thank you Todd Huttenstine |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use......
Location = ActiveCell.Row You can also use: ActiveCell.Column to get the column number if you need that. Cheers Nigel "Todd Huttenstine" wrote in message ... Hey guys The below code pulls back the active cell address. How do I get it to return only the number portion of the address? For instance if location is equal to J22, I want to retrieve only the 22. Dim Location Location = ActiveCell.Address Thank you Todd Huttenstine |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Location = Activecell.Row
-----Original Message----- Hey guys The below code pulls back the active cell address. How do I get it to return only the number portion of the address? For instance if location is equal to J22, I want to retrieve only the 22. Dim Location Location = ActiveCell.Address Thank you Todd Huttenstine . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If activecell.column = variable then activecell,offset (0,1) | Excel Discussion (Misc queries) | |||
use of activecell | Excel Programming | |||
Activecell value | Excel Programming | |||
how to set activecell? | Excel Programming | |||
LINKING Address cells from an EXCEL spreadsheet to fill MapQuest Address Info | Excel Programming |