Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default InputBox: Display Cell Content not Cell Ref ?

Hi,

I presume you are referring to a RefEdit control? If so, I believe the
answer is "no". By design (not very good design, or at least not very good
implementation) this control is intended to identify a range in the sheet
and not its contents. If you wanted to you could build a form with a
RefEdit control and a text box and then have the text box display the
contents of the cell identified in the RefEdit control by trapping the
appropriate event.

Regards,

Peter Beach

"MAS" wrote in message
...
Hi,

Could someone please clarify for me.

I have some code that brings up an InputBox at which point I click on the
appropriate cell, in this case a column of names, but rather than the name
appearing in the InputBox, I see the Cell reference i.e. $B$1.

I then click on OK and process the name in the code as I planned.

What I want to know is if there is a way to get the contents of the

selected
Cell to show in the InputBox rather than the cell ref ?

If there is I will bet its something really simple that I have missed, but

I
have conceded defeat ;-)

MAS





  #2   Report Post  
Posted to microsoft.public.excel.programming
MAS MAS is offline
external usenet poster
 
Posts: 18
Default InputBox: Display Cell Content not Cell Ref ?

Hi,

Could someone please clarify for me.

I have some code that brings up an InputBox at which point I click on the
appropriate cell, in this case a column of names, but rather than the name
appearing in the InputBox, I see the Cell reference i.e. $B$1.

I then click on OK and process the name in the code as I planned.

What I want to know is if there is a way to get the contents of the selected
Cell to show in the InputBox rather than the cell ref ?

If there is I will bet its something really simple that I have missed, but I
have conceded defeat ;-)

MAS



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default InputBox: Display Cell Content not Cell Ref ?

the only way to select a cell with an inputbox is to use

set rng = Application.InputBox(type:=8)

in that case, the inputbox returns a reference to the cell selected which is
what type:=8 specifies.

I don't believe there is a provision for selecting a cell and having the
inputbox display the value of the cell.

Maybe you want to create a userform that looks like an inputbox - this
should give you greater control over what happens.

--
Regards,
Tom Ogilvy




"MAS" wrote in message
...
Hi,

Could someone please clarify for me.

I have some code that brings up an InputBox at which point I click on the
appropriate cell, in this case a column of names, but rather than the name
appearing in the InputBox, I see the Cell reference i.e. $B$1.

I then click on OK and process the name in the code as I planned.

What I want to know is if there is a way to get the contents of the

selected
Cell to show in the InputBox rather than the cell ref ?

If there is I will bet its something really simple that I have missed, but

I
have conceded defeat ;-)

MAS





  #4   Report Post  
Posted to microsoft.public.excel.programming
MAS MAS is offline
external usenet poster
 
Posts: 18
Default InputBox: Display Cell Content not Cell Ref ?

Thanks guys,

At least it wasn't something simple that I was missing ;-)

I will have a go at forms another day...

The more I learn, the more I have to learn if you what I mean..

MAS



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
how to display my cursor cell content in another cell.... dh13134 Excel Worksheet Functions 3 May 12th 09 10:43 PM
Display the content of one cell over next cell margoul1 Excel Discussion (Misc queries) 1 August 5th 08 09:18 AM
Why does my cell content display as '############'? Mark Excel Discussion (Misc queries) 4 July 22nd 08 07:07 PM
restrict cell content display Stefi Excel Discussion (Misc queries) 3 December 6th 07 02:07 PM
How to click on a cell and have the content of the cell display in a different cell [email protected] Excel Worksheet Functions 0 June 6th 06 03:05 PM


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

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

About Us

"It's about Microsoft Excel"