ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
Afternoon.
I have a userform as shown below in screen shot below.
I have also supplied code in use.
My goal is the following.
When userform opens i would like to see the Label "HONDA TAG NUMBER" & the TextBoxes 1-8 "TOP ROW" Only
The Label "BITING FOR CUTTING" & the TextBox 9-16 "BOTTOM ROW" should not be visible.
I enter numerical value in TextBoxes 1-8
I then press the command button "RUN TOOL"
Now i would like the Label "HONDA TAG NUMBER" & TextBoxes 1-8 to hide & "BITING FOR CUTTING" & TextBox 9-16 to be visible.
TextBoxes 1-9 take there value from TextBoxes 1-8
Currently both labels & all 16 TextBoxes are shown when userform opens.
I am able to enter values in TextBox 1-8
I use the RUN TOOL button & bothe labels are still shown & all TextBoxes show values.
I have a userform as shown below in screen shot below.
I have also supplied code in use.
My goal is the following.
When userform opens i would like to see the Label "HONDA TAG NUMBER" & the TextBoxes 1-8 "TOP ROW" Only
The Label "BITING FOR CUTTING" & the TextBox 9-16 "BOTTOM ROW" should not be visible.
I enter numerical value in TextBoxes 1-8
I then press the command button "RUN TOOL"
Now i would like the Label "HONDA TAG NUMBER" & TextBoxes 1-8 to hide & "BITING FOR CUTTING" & TextBox 9-16 to be visible.
TextBoxes 1-9 take there value from TextBoxes 1-8
Currently both labels & all 16 TextBoxes are shown when userform opens.
I am able to enter values in TextBox 1-8
I use the RUN TOOL button & bothe labels are still shown & all TextBoxes show values.
Rich (BB code):
Private Sub ClearCells_Click()
Label1.Visible = True
Dim x As Integer
For x = 1 To 16
Me.Controls("textbox" & x).Value = ""
Next x
End Sub
Private Sub RunCode_Click()
TextBox9.Value = TextBox8.Value
TextBox10.Value = TextBox7.Value
TextBox11.Value = TextBox6.Value
TextBox12.Value = TextBox5.Value
TextBox13.Value = TextBox4.Value
TextBox14.Value = TextBox3.Value
TextBox15.Value = TextBox2.Value
TextBox16.Value = TextBox1.Value
End Sub
Private Sub UserForm_Initialize()
TextBox1.SetFocus
'-------------------------------
Me.StartUpPosition = 0
Me.Top = Application.Top + 250 ' MARGIN FROM TOP OF SCREEN
Me.Left = Application.Left + Application.Width - Me.Width - 200 ' LEFT / RIGHT OF SCREEN
'-------------------------------
End Sub