#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default input box

Is there a way to link an input box with a pull down menu.
For example:

I have created a pull down menu with three options:
a
b
c

Now I was able to go into data validation and input a message.

but, can I have a separate message for each pull down item so....

when a is selected a specific input message pops up only with a
when b is selected a specific input message pops up only with b and so on.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default input box

You would need sheet event code to achieve that.

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub
On Error GoTo endit
Application.EnableEvents = False
Select Case Target.Value
Case "a"
MsgBox "message one"
Case "b"
MsgBox "message two"
Case "c"
MsgBox "message three"
End Select
endit:
Application.EnableEvents = True
End Sub

This is event code. Right-click on the sheet tab and "View Code"

Copy/paste the code into that sheet module.

Adjust the "A1" to your DV cell.

Also edit the msgbox "messages"


Gord Dibben MS Excel MVP

On Tue, 2 Oct 2007 14:08:08 -0700, abby and rusty <abby and
wrote:

Is there a way to link an input box with a pull down menu.
For example:

I have created a pull down menu with three options:
a
b
c

Now I was able to go into data validation and input a message.

but, can I have a separate message for each pull down item so....

when a is selected a specific input message pops up only with a
when b is selected a specific input message pops up only with b and so on.


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
input box scrolling with barcode reader input cj2k2k Excel Discussion (Misc queries) 0 June 18th 07 07:23 AM
input in number form is being multiplied by 1000 when i input. jweinograd Excel Discussion (Misc queries) 4 April 16th 07 11:18 PM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
How do I add input data in the input ranges in drop down boxes. oil_driller Excel Discussion (Misc queries) 1 November 9th 05 10:31 PM
=SUMIF(Input!H2:H718,AZ19,Input!E2:E685)AND(IF ALex Excel Worksheet Functions 2 March 14th 05 09:19 PM


All times are GMT +1. The time now is 11:01 AM.

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"