I am trying to create a UserForm to track campaigns. I would like to be able to enter the campaign ID name in a combo box (CB_ID) and then have it search a set row (D:D) and if the two match have the data inserted in that same row. I am having problems however writing the code in the section that is in bold below. Any suggestions?
Private Sub ClearDataButton2_Click()
Unload UserForm3
UserForm3.Show
UserForm3.CB_ActualLaunchDate.SetFocus
End Sub
Private Sub EnterDataButton2_enter()
Dim NextRow As Integer
Sheets("Campaigns").Activate
Cells(NextRow, 8).FormulaR1C1 = "=R[-1]C+1"
If CB_ID.Text = Application.WorksheetFunction.Search(CB_ID(Range("D:D"))) Then Cells(NextRow, 9) = CB_ActualLaunchDate.Text
If OB_Sent Then Cells(NextRow, 13) = 1
If OB_NotSent Then Cells(NextRow, 13) = 2
Cells(NextRow, 14) = CB_SentOut.Value
Cells(NextRow, 15) = CB_Opened.Value
Cells(NextRow, 16) = CB_Clicked.Value
End Sub
Bookmarks