Hi,
This is a two part question that I would reallyappreciate help with.
The first time I used this code it worked but then stopped does anyone know why this might be?
Also I have 3 parts that need to be updated can I just copy the bit from Label 16 to False) and update it or do i need a seperate bit of code for each change? its all based on the when txtCostCentre reached 3 characters.
Now the next part that I would really like to get working.
I have the following Formula is it possible to convert it so that it becomes the caption for label2
The two cells that are used are
G2 = txtCostCentre
I2 = cboOfficer
This is the first time that i have used user forms and they are really good learning so much but this has got me stumped.
Regards
Paul
This is a two part question that I would reallyappreciate help with.
The first time I used this code it worked but then stopped does anyone know why this might be?
Code:
Private Sub StructureDiv_Change()
If Len(txtCostCentre.Text) = 3 Then
Label16.Caption = Application.WorksheetFunction. _
VLookup(txtCostCentre.Text, Worksheets("Org Structure").Range("a1:E700"), 2, False)
End If
End Sub
Also I have 3 parts that need to be updated can I just copy the bit from Label 16 to False) and update it or do i need a seperate bit of code for each change? its all based on the when txtCostCentre reached 3 characters.
Now the next part that I would really like to get working.
I have the following Formula is it possible to convert it so that it becomes the caption for label2
Code:
=TEXT(200,"000")&TEXT("-","")&TEXT(G2,"")&TEXT("-","")&TEXT(MID(INDEX('Reference Numbers'!A:A,5),9,3)+1,"000")&TEXT("-","")&LEFT(I2,2)
The two cells that are used are
G2 = txtCostCentre
I2 = cboOfficer
This is the first time that i have used user forms and they are really good learning so much but this has got me stumped.
Regards
Paul