PuntingJawa
Board Regular
- Joined
- Feb 25, 2021
- Messages
- 158
- Office Version
- 365
- 2019
- Platform
- Windows
I am having trouble with one of my userforms. I have set up a simplistic input for Receiving and have a nearly identical one for shipping. The receiving works fine (See first) but shipping will not work on it's page. Is there something I must change when using multiple userforms in the same workbook?
Working (Receiving)
Not working (Shipping)
Working (Receiving)
VBA Code:
Private Sub TextBox1_Change()
End Sub
Private Sub TextBox10_Change()
TextBox10.Text = UCase(TextBox10.Text)
End Sub
Private Sub TextBox11_Change()
TextBox11.Text = UCase(TextBox11.Text)
End Sub
Private Sub TextBox2_Change()
TextBox2.Text = UCase(TextBox2.Text)
End Sub
Private Sub TextBox3_Change()
TextBox3.Text = UCase(TextBox3.Text)
End Sub
Private Sub TextBox4_Change()
TextBox4.Text = UCase(TextBox4.Text)
End Sub
Private Sub TextBox5_Change()
TextBox5.Text = UCase(TextBox5.Text)
End Sub
Private Sub TextBox6_Change()
TextBox6.Text = UCase(TextBox6.Text)
End Sub
Private Sub TextBox7_Change()
TextBox7.Text = UCase(TextBox7.Text)
End Sub
Private Sub TextBox8_Change()
TextBox8.Text = UCase(TextBox8.Text)
End Sub
Private Sub TextBox9_Change()
TextBox9.Text = UCase(TextBox9.Text)
End Sub
Private Sub UserForm_Activate()
TextBox1.Text = Format(Now(), "MM/DD/YY")
End Sub
Private Sub CommandButton1_Click()
erow = Sheets("Corp Receiving").Range("a" & Rows.Count).End(xlUp).Row
Range("A" & erow + 1) = TextBox1.Value
Range("B" & erow + 1) = TextBox2.Value
Range("C" & erow + 1) = TextBox3.Value
Range("D" & erow + 1) = TextBox4.Value
Range("E" & erow + 1) = TextBox5.Value
Range("F" & erow + 1) = TextBox6.Value
Range("G" & erow + 1) = TextBox7.Value
Range("I" & erow + 1) = "PS " & TextBox8.Value
Range("J" & erow + 1) = "PO " & TextBox9.Value
Range("K" & erow + 1) = TextBox10.Value
Range("L" & erow + 1) = TextBox11.Value
End Sub
Not working (Shipping)
VBA Code:
Private Sub TextBoxs1_Change() 'Date box
End Sub
Private Sub TextBoxs10_Change()
TextBoxs10.Text = UCase(TextBoxs10.Text) 'Our RMA box
End Sub
Private Sub TextBoxs11_Change()
TextBoxs11.Text = UCase(TextBoxs11.Text) 'Customer RMA box
End Sub
Private Sub TextBoxs2_Change()
TextBoxs2.Text = UCase(TextBoxs2.Text) 'Customer Name box
End Sub
Private Sub TextBoxs3_Change()
TextBoxs3.Text = UCase(TextBoxs3.Text) 'Project Code box
End Sub
Private Sub TextBoxs4_Change()
TextBoxs4.Text = UCase(TextBoxs4.Text) 'Packing # or Item #'s and QTYs box
End Sub
Private Sub TextBoxs5_Change()
TextBoxs5.Text = UCase(TextBoxs5.Text) 'Carrier company box
End Sub
Private Sub TextBoxs6_Change()
TextBoxs6.Text = UCase(TextBoxs6.Text) 'Tracking # box
End Sub
Private Sub TextBoxs7_Change()
TextBoxs7.Text = UCase(TextBoxs7.Text) 'QTY of boxes/pallet/crate box
End Sub
Private Sub TextBoxs8_Change()
TextBoxs8.Text = UCase(TextBoxs8.Text) 'Weight in LBS box
End Sub
Private Sub TextBoxs9_Change()
TextBoxs9.Text = UCase(TextBoxs9.Text) 'NCR # box
End Sub
Private Sub UserForm_Activate()
TextBoxs1.Text = Format(Now(), "MM/DD/YY") 'Date format to today without resetting manually
End Sub
Private Sub CommandButton2_Click()
erow = Sheets("Corp Shipping").Range("a" & Rows.Count).End(xlUp).Row
Range("A" & erow + 1) = TextBoxs1.Value 'Date
Range("B" & erow + 1) = TextBoxs2.Value 'Customer
Range("C" & erow + 1) = TextBoxs3.Value 'Project
Range("D" & erow + 1) = TextBoxs4.Value 'Items #'s or Packing slip #
Range("E" & erow + 1) = TextBoxs5.Value 'Carrier
Range("F" & erow + 1) = TextBoxs6.Value 'Tracking #
Range("G" & erow + 1) = TextBoxs7.Value '# of boxes
Range("H" & erow + 1) = TextBoxs8.Value & "LBS" 'Weight
Range("I" & erow + 1) = "NCR " & TextBoxs9.Value 'NCR # Customer and Ours
Range("J" & erow + 1) = "RMA " & TextBoxs10.Value 'Our RMA #
Range("K" & erow + 1) = TextBoxs11.Value 'Customer RMA #
TextBoxs2.Value = "" 'Removes after submit
TextBoxs3.Value = "" 'Removes after submit
TextBoxs4.Value = "" 'Removes after submit
TextBoxs5.Value = "" 'Removes after submit
TextBoxs6.Value = "" 'Removes after submit
TextBoxs7.Value = "" 'Removes after submit
TextBoxs8.Value = "" 'Removes after submit
TextBoxs9.Value = "" 'Removes after submit
TextBoxs10.Value = "" 'Removes after submit
TextBoxs11.Value = "" 'Removes after submit
End Sub