Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get selected cell name/address
Hi Is it at all possible to get the name (e.g cell A3 etc) that i selected by the cursor/mouse. I want to be able to do this using VBA but cannot find out how to d this. Thanks in advance everyone Dav -- David49 ----------------------------------------------------------------------- David494's Profile: http://www.excelforum.com/member.php...fo&userid=2448 View this thread: http://www.excelforum.com/showthread.php?threadid=39178 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get selected cell name/address
Hey its ok, i got it. I just wanted to copy the info in the selected cell and place it into an input box. If any one was interested, then here's the code....... 'This code gets the selected cell, copies it and places it in the input box Dim selectedCell As Range Set selectedCell = Selection 'MsgBox selectedCell.Address 'copy the range selectedCell.Copy 'Place the text into the default property Dim varInput As String varInput = InputBox("What do you want to search for?", , selectedCell) Thanks Dave -- David494 ------------------------------------------------------------------------ David494's Profile: http://www.excelforum.com/member.php...o&userid=24482 View this thread: http://www.excelforum.com/showthread...hreadid=391783 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get selected cell name/address
ActiveCell.Address
-- Regards, Tom Ogilvy "David494" wrote in message ... Hi Is it at all possible to get the name (e.g cell A3 etc) that is selected by the cursor/mouse. I want to be able to do this using VBA but cannot find out how to do this. Thanks in advance everyone Dave -- David494 ------------------------------------------------------------------------ David494's Profile: http://www.excelforum.com/member.php...o&userid=24482 View this thread: http://www.excelforum.com/showthread...hreadid=391783 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get selected cell name/address
The VBA command is
thiscell.address -- http://HelpExcel.com 1-888-INGENIO 1-888-464-3646 x0197758 "David494" wrote: Hi Is it at all possible to get the name (e.g cell A3 etc) that is selected by the cursor/mouse. I want to be able to do this using VBA but cannot find out how to do this. Thanks in advance everyone Dave -- David494 ------------------------------------------------------------------------ David494's Profile: http://www.excelforum.com/member.php...o&userid=24482 View this thread: http://www.excelforum.com/showthread...hreadid=391783 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get selected cell name/address
I Believe ThisCell wasn't introduced until xl2002. ActiveCell would be the
more general choice I would think. -- Regards, Tom Ogilvy "galimi" wrote in message ... The VBA command is thiscell.address -- http://HelpExcel.com 1-888-INGENIO 1-888-464-3646 x0197758 "David494" wrote: Hi Is it at all possible to get the name (e.g cell A3 etc) that is selected by the cursor/mouse. I want to be able to do this using VBA but cannot find out how to do this. Thanks in advance everyone Dave -- David494 ------------------------------------------------------------------------ David494's Profile: http://www.excelforum.com/member.php...o&userid=24482 View this thread: http://www.excelforum.com/showthread...hreadid=391783 |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Get selected cell name/address
thanks guys, always good to hear about other ways of doing things. Dav -- David49 ----------------------------------------------------------------------- David494's Profile: http://www.excelforum.com/member.php...fo&userid=2448 View this thread: http://www.excelforum.com/showthread.php?threadid=39178 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Multiple cells or columns are selected instead of selected cell or | Excel Discussion (Misc queries) | |||
how do I insert the address of a selected cell into a fixed cell | Excel Discussion (Misc queries) | |||
How do I convert a selected Cell address in a Range to Values? | Excel Programming | |||
How do you get a Selected Range address into a variable? | Excel Programming | |||
Inputbox to return address of cell selected by mouse | Excel Programming |