How can I generate a POP-UP window.

saraf

New Member
Joined
Apr 22, 2011
Messages
7
Hi All,

How can I generate POP-UP window with a msg " Choose the Value from XXX "
when some one clicks on the dependent combo box without selecting the value from the first box.

Please let me know how I can achieve this in Excel.

Thank you,
Sar
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
you mean a msgbox?
Code:
msgbox ("This is the text that shows up", "This is the title", vbyesno)
 
Upvote 0
you mean a msgbox?
Code:
msgbox ("This is the text that shows up", "This is the title", vbyesno)
@Sar,

You will want to check out the MsgBox in the VB help files as the syntax RSXchin showed you is incorrect (the items are out of order and surrounding the arguments with parentheses will make the command fail); but, more importantly, there are lots of useful options available with this function that you will want to explore. The easy way to get to the help files is to type msgbox in any VB code window and then, with the text cursor in or next to the word, press F1.
 
Upvote 0
I am new to VB and trying to learn as much as I can. can you pls provide me the links which explains how I can get the msg box pop up.
As you stated "You will want to check out the MsgBox in the VB help files" where I can find the VB help files. Please advice me.

thank you.
 
Upvote 0
As you stated "You will want to check out the MsgBox in the VB help files" where I can find the VB help files. Please advice me.
You stopped reading my posting too soon... I explained how in the last sentence. Here it is again...

"The easy way to get to the help files is to type msgbox in any VB code
window and then, with the text cursor in or next to the word, press F1."<!-- / message -->
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top