Message Box Input

ibadk

New Member
Joined
Mar 10, 2011
Messages
11
Hey Guys,

Just a general question. I'm writing a code right now that runs through a list of markets on a separate excel sheet. There may be a scenario in the future when a new market will be added, but the code in its current form will not be able to handle this market, as I haven't written specific code for each market. I'm using cases to identify each market, my question is that in the case form when I use case else, and say that if there's no market display a message box. Is there a way for me to make this message box something the user can interact with by entering the name of the new market, then based on this have vba simply copy code that I've already written and make it active within the subroutine?

Thanks,
Kam
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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