LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default Forcing an input in a pop up box

Hi,

I have a user form that pops up when you open the
workbook with three text box inputs and one comman button
("Enter") to populate the text to certain fields. Can
someone please tell me the coding to force the user to
put a yes or no in each textbox before they can exit the
user form in order to advance to the worksheet? If they
try to go on w/out putting the right inputs, I would like
to dispaly a message, like "please provide an answer
first."

Also can you change the name of the userform so that it
doesn't say UserForm1 in the blue box when it pops up in
excel?

Any help is greatly apprecaited. My code is below:

Private Sub CommandButton1_Click()
Worksheets("Allocation").Range("M9").Value = TextBox1.Text
Worksheets("Allocation").Range("M11").Value =
TextBox2.Text
Worksheets("Allocation").Range("M42").Value =
TextBox3.Text
Worksheets("Allocation").Calculate
Unload Me

End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing All Caps in input cells Slave2Six Excel Discussion (Misc queries) 8 July 31st 06 09:38 PM
Forcing Input from a user Tracy Excel Worksheet Functions 0 January 18th 06 07:39 PM
forcing UDF to run Stefi Excel Worksheet Functions 4 December 29th 05 03:46 PM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM
Forcing Correction of User Input Errors Bob Kaku Excel Programming 0 September 14th 03 03:02 AM


All times are GMT +1. The time now is 03:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"