Hello,
I current have code that fills in textboxes in a userform with values in cells:
How to I modify the lines under Checkbox1.Enabled = False so that they only take a section (of varying size) of the text in a cell and put it in textboxes in a userform?
ie. The text in a cell is "Outer: A123 ; Inner: B456." I would like A123 to appear in a textbox called OuterColor and B456 to appear in textbox called InnerColor
Thank You
I current have code that fills in textboxes in a userform with values in cells:
Code:
Private Sub CODE_Change()
Dim ws As Worksheet
Dim fm As Worksheet
Set ws = Worksheets(ActiveSheet.Name)
Set fm = Worksheets("Form")
Dim range0 As Range, res As Variant
Set range0 = Worksheets(ActiveSheet.Name).Range("A1:P1000").Columns(1)
res = Application.Match(CODE.Text, range0, 0)
If Not IsError(res) Then
Set range1 = range0.Cells(res, 1)
AddData.Enabled = False
EditData.Enabled = True
CheckBox1.Enabled = False
PROJECT.Text = range1.Offset(0, 1)
COMPONENT.Text = range1.Offset(0, 3)
CRITERIA.Text = range1.Offset(0, 4)
ITEM.Text = range1.Offset(0, 2)
DEVELOPERNAME.Text = range1.Offset(0, 9)
NUMBOARDS.Text = range1.Offset(0, 5)
VENDOR.Text = range1.Offset(0, 7)
PLANT.Text = range1.Offset(0, 8)
Else
AddData.Enabled = True
EditData.Enabled = False
CheckBox1.Enabled = True
End If
SendEmail.Enabled = False
SaveForm.Enabled = False
End Sub
How to I modify the lines under Checkbox1.Enabled = False so that they only take a section (of varying size) of the text in a cell and put it in textboxes in a userform?
ie. The text in a cell is "Outer: A123 ; Inner: B456." I would like A123 to appear in a textbox called OuterColor and B456 to appear in textbox called InnerColor
Thank You