Hi everyone, I need help building VBA. I have this spreadsheet:
Contract Rank Performance
A
B
C
D
E
F
G
H
I
Every month, we need to update the KPI Report for 9 of our contracts. I’m very new with VBA. So far, I’ve created the Data Entry form and 1 code.
Contract’s combobox’s code is:
Private Sub UserForm_Initialize()
Me.ComboBox1.List = Sheets(1).Range("A2:A10").Value
End Sub
Q1: Can someone show me how to change the range so that it doesn’t always start at A2 but under the title Contract and it doesn’t always end at A10 so that when we add more contracts the list will show up in the combobox?
Q2: I also want to rename sheet 1 to Data, how do I write this code as Sheets(Data) instead of Sheets(1)?
Q3: After choose the contract name on the form, can someone show me a code so that the Rank’s textbox on the form will link to the according cell on the spreadsheet?
Q4: The Performance column is set up with conditional formatting. Green dot is number 1, Yellow dot is number 2, Red dot is number 3. Can someone show me a code so that when I choose the OptionButton on the form, the right dot will show up on Performance?
Thanks!
Bookmarks