Build a Msgbox generator tool

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,226
Office Version
  1. 2007
Platform
  1. Windows
Hi,
Photo supplied for an example of what im going to try & make as im having plenty of issues remembering the correct syntax for the MsgBox

My plan is to Write in a Texbox the Title, Textbox for the message & click an image for the Yes / No options.
As this is being created im looking to have the syntax appear in a Listbox etc of whioch clicking a button will copy the line of code so i can apply straight into my worksheet.

Yes it might be easier for some people to just learn the correct process & not do what ive mentioned but my learning issues are different everyday & more often than not im forgetting things.

Is it possibel with some help from this group to do my tool.

Thanks
 

Attachments

  • EaseUS_2023_12_13_13_29_59.jpg
    EaseUS_2023_12_13_13_29_59.jpg
    59.5 KB · Views: 19

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
The MZTools package has something similar:

1702484940469.png


I like your 'generated code' pane though, and the fact that your preview pane is always visible. Good luck with your project.
 
Upvote 0
So to get my started i have the following.

The syntax shown produces the Msgbox as supplied.

Rich (BB code):
MsgBox ("TextBox1.Value"), vbOKCancel + vbCritical, "TextBox2.Value"
How would the above be written correctly so whatever is in TextBox1 & TextBox2 on my userform then populate the line of code to produce my msgbox, same for Buttons etc

This should keep me busy for a while
 

Attachments

  • EaseUS_2023_12_13_17_10_05.jpg
    EaseUS_2023_12_13_17_10_05.jpg
    11.1 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,235
Members
449,092
Latest member
SCleaveland

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