Hi,
I have wriiten the following code.
Private Sub btnPastCommentsActivityList1_Click()
ActiveWorkbook.Sheets("Activity_Database").Activate
Range("C6").Select
txtOldComments.Value = Application.VLookup(cmbInitiativeDescription.Value, Range("C6:Z9999"), 18, False)
End Sub
What the above does is that it looks up at the column C6 of the sheet for the value and assigns it to "txtOldComments".
However, how do I go about writing the code if i want to match both the cmbInitiativeDescription.Value and a date value that is in another column (C12). However, the date is seperated into three fields (day,mth,year).
I hope someone can help me thanx.
I have wriiten the following code.
Private Sub btnPastCommentsActivityList1_Click()
ActiveWorkbook.Sheets("Activity_Database").Activate
Range("C6").Select
txtOldComments.Value = Application.VLookup(cmbInitiativeDescription.Value, Range("C6:Z9999"), 18, False)
End Sub
What the above does is that it looks up at the column C6 of the sheet for the value and assigns it to "txtOldComments".
However, how do I go about writing the code if i want to match both the cmbInitiativeDescription.Value and a date value that is in another column (C12). However, the date is seperated into three fields (day,mth,year).
I hope someone can help me thanx.