Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'm building a simple search function in my workbook. I have no problem in locating specified text, but I do not know how to 'get' the location of the current cell, I tried: CellMatch = ActiveCell But, alas, this simply assigns the value of the currently selected cell to CellMatch. I want the location, "A2" for example. Thanks in advance Mat. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mat
try sub foo() dim rng as range set rng = Activecell 'to get the value use msgbox rng.value end sub -- Regards Frank Kabel Frankfurt, Germany Mat wrote: Hello, I'm building a simple search function in my workbook. I have no problem in locating specified text, but I do not know how to 'get' the location of the current cell, I tried: CellMatch = ActiveCell But, alas, this simply assigns the value of the currently selected cell to CellMatch. I want the location, "A2" for example. Thanks in advance Mat. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Mat
Sub gronk() Set currcel = Application.ActiveCell MsgBox currcel.Address End Sub Gord Dibben Excel MVP On Sat, 21 Feb 2004 10:45:33 -0800, "Mat" wrote: Hello, I'm building a simple search function in my workbook. I have no problem in locating specified text, but I do not know how to 'get' the location of the current cell, I tried: CellMatch = ActiveCell But, alas, this simply assigns the value of the currently selected cell to CellMatch. I want the location, "A2" for example. Thanks in advance Mat. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, got it working now :)
"Mat" wrote in message ... Hello, I'm building a simple search function in my workbook. I have no problem in locating specified text, but I do not know how to 'get' the location of the current cell, I tried: CellMatch = ActiveCell But, alas, this simply assigns the value of the currently selected cell to CellMatch. I want the location, "A2" for example. Thanks in advance Mat. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Row select mode to highlight active row of active cell | Excel Discussion (Misc queries) | |||
set the background color of the current cell(active cell) | New Users to Excel | |||
referring to formula in a non active cell from active cell | Excel Discussion (Misc queries) | |||
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. | Excel Discussion (Misc queries) | |||
Sum to active cell | Excel Discussion (Misc queries) |