Changing the name of Inputbox

rholdren

Board Regular
Joined
Aug 25, 2016
Messages
140
Office Version
  1. 365
  2. 2019
When I create an Inputbox in the top left hand corner of the box is displayed Microsoft Excel. Is there any way to change that, remove it, hide it? Can't seem to locate anything about this.

Thanks
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
As you are writing the code for "Inputbox", first you enter the message in quotes. If you then enter a comma, you can then type a title for the box in quotes which will replace the default " Microsoft Excel". You will see the variables that you can enter underneath the line of code as you type.
 
Upvote 0
I get an error with the , highlighted red
This is the line prior
Choice_Answer = InputBox("Choose Worksheet 1=TOC 2=All 3=ActiveOnly 4=InactiveOnly 5=Original_2018 6=ChartedByMonth 7=2018Vendors 8=IndividualView 9=TradeVendorActivity ")
 
Upvote 0
To include the title, it should be
Code:
Choice_Answer = InputBox("Choose Worksheet 1=TOC 2=All 3=ActiveOnly 4=InactiveOnly 5=Original_2018 6=ChartedByMonth 7=2018Vendors 8=IndividualView 9=TradeVendorActivity", "[COLOR=#ff0000]My Title[/COLOR]")
Change the part in red to suit
 
Upvote 0
You're welcome & thanks for the feedback.

If you're interested, you can make the box a bit neater/easier to read like
Code:
Choice_Answer = InputBox("Choose Worksheet" & vbLf & "1=TOC" & vbLf & "2=All 3=ActiveOnly 4=InactiveOnly 5=Original_2018 6=ChartedByMonth 7=2018Vendors 8=IndividualView 9=TradeVendorActivity", "My Title")
 
Upvote 0
The code is definitely cleaner but it lists them
1=TOC
2=All 3=ActiveOnly 4=InactiveOnly 5=Original_2018
6=ChartedByMonth 7=2018Vendors 8=IndividualView
9=TradeVendorActivity
The other way lists them
1=TOC
2=All
3=ActiveOnly
4=InactiveOnly
5=Original_2018
6=ChartedByMonth
7=2018Vendors
8=IndividualView
9=TradeVendorActivity
Which was a request from a higher-up
That was the only way I knew how to make that happen
 
Upvote 0
Ok, the only reason I mentioned it, is that I see

Choose Worksheet 1=TOC 2=All 3=ActiveOnly
4=InactiveOnly 5=Original_2018
6=ChartedByMonth 7=2018Vendors
8=IndividualView 9=TradeVendorActivity

rather than split line by line
 
Upvote 0
Personally I like your way better but we have some people who they feel makes it easier to see the long way. Takes a while to get it to look like that. Thanks again. Oh and for a reward they just asked me to figure out a way to link a cell to a date on their Outlook calendar. So if a vendor pops up as being 30-60-90 days out from renewal in a particular cell they want it to put that date into their calendar. the date gets chosen once they pick a vendor from a combobox and the cell below it calculates the date. If the date is 30 60 or 90 days out (exactly) it should add a notice to their calendar in that day. Yikes. I don't know if it's possible but I'll have fun trying. Thanks again for all your help.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,748
Messages
6,180,721
Members
452,995
Latest member
isldboy

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