Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple cells or columns are selected instead of selected cell or Mikey Excel Discussion (Misc queries) 1 April 29th 09 09:48 PM
how do I insert the address of a selected cell into a fixed cell cox Excel Discussion (Misc queries) 2 May 27th 06 07:44 PM
How do I convert a selected Cell address in a Range to Values? MichaelC Excel Programming 2 June 10th 05 01:44 PM
How do you get a Selected Range address into a variable? Jack Excel Programming 5 November 20th 03 04:09 AM
Inputbox to return address of cell selected by mouse D.S.[_2_] Excel Programming 2 October 25th 03 06:48 PM


All times are GMT +1. The time now is 04:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"