Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
What cell am I on ?
I wanted to do the following. I issue the find command to find a
certain text. Once found, I want to apply the cell address to a memory variable. So the code might look this : Cells.Find(What:="Totals", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False).Activate lcAddress = ???? How do I do the above. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
What cell am I on ?
lcAddress = ActiveCell.Address
-- Regards, Tom Ogilvy Rich wrote in message om... I wanted to do the following. I issue the find command to find a certain text. Once found, I want to apply the cell address to a memory variable. So the code might look this : Cells.Find(What:="Totals", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False).Activate lcAddress = ???? How do I do the above. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
What cell am I on ?
Rich,
Try this: Sub TestMe() Dim icAddr As String icAddr = Cells.Find(What:="Totals", _ After:=ActiveCell, _ LookIn:=xlFormulas, _ LookAt:=xlPart, _ SearchOrder:=xlByRows, _ SearchDirection:=xlNext, _ MatchCase:=False).Address MsgBox icAddr End Sub John "Rich" wrote in message om... I wanted to do the following. I issue the find command to find a certain text. Once found, I want to apply the cell address to a memory variable. So the code might look this : Cells.Find(What:="Totals", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False).Activate lcAddress = ???? How do I do the above. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |