Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-22-2012, 10:30 AM
Catalin.B Catalin.B is offline Message Box Restriction Windows Vista Message Box Restriction Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

I do not know how your macro looks, but basically, there is a difference between InputBox and Application.InputBox. (I guess you use the first one )
With the last one, you can select the type of data permitted for an entry:
Type:=0 A formula
Type:=1 A number
Type:=2 Text (a string)
Type:=4 A logical value (True or False)
Type:=8 A cell reference, as a Range object
Type:=16 An error value, such as #N/A
Type:=64 An array of values
Code:
Application.InputBox("Enter a number !", Title:="Numbers", Default:=1, Type:=1)
And, as you can see, you can enter a default value if you need that...
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Message Box ibrahimaa Excel Programming 3 02-26-2012 02:32 PM
Message Box Restriction navigation arrows post form restriction wcohan Word 1 12-29-2011 11:58 AM
Business Contact Manager "assigned to" restriction rule? kossae Outlook 0 05-25-2011 10:54 AM
Error message White House Outlook 1 12-07-2010 04:52 AM
Outlook Restriction? php link suffix MWE Outlook 0 11-17-2010 07:25 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft