Adding vbInformation to InputBox

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,199
Office Version
  1. 2007
Platform
  1. Windows
Hi,
Ive been trying to apply vbInformation to my InputBox but without joy as i would then just see the InputBox title in the field where i was to enter a value.
The code for the InputBox is shown below.

Is it possible to even do this ?


Rich (BB code):
 z = CInt(Application.InputBox("WHICH ROW SHOULD DATA BE INSERTED ?", "NEW CUSTOMER ROW NUMBER MESSAGE", Type:=1))
 For i = 1 To 11
 With Me.Controls("TextBox" & i)
 If .Text = "" Then
 MsgBox "ALL FIELDS MUST BE COMPLETED", 48, "GRASS NEW CUSTOMER FORM"
 .SetFocus
 Exit Sub
 End If
 End With
 Next i
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi,
InputBox method as far as I am aware, does not have an Icon style value that you find in a msgbox.

You can read more here:Application.InputBox method (Excel)

which will show you the available parameters & values.

A workaround maybe would be to create an input via a userform where you can add an image control to display the required icon image.

Dave
 
Upvote 0
Ok thanks plan B
Are you saying or can I then.....

On my userform have an input field where when I enter a value it will continue as opposed having a separate one ?
 
Upvote 0
Make your own inputbox with a userform where you add textbox for value to enter and an image control to load picture of the required icon.

Dave
 
Upvote 0

Forum statistics

Threads
1,213,553
Messages
6,114,279
Members
448,562
Latest member
Flashbond

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