G
GregJG
I am using this code right now to insert data from a form to
spreadsheet.
If chkMProFCB.Value = True Then
Range("C15").Select
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If
Range("c65536").End(xlUp).Offset(1, 0).Value
Application.WorksheetFunction.VLookup(chkMProFCB.Caption
Workbooks("bidditdb.xls").Sheets("wa").Range("a1:b200"), 2, False)
Range("J65536").End(xlUp).Offset(1, 0).Value
Application.WorksheetFunction.VLookup(txtMproFCB.Text
Workbooks("bidditdb.xls").Sheets("mat").Range("a1:c200"), 3, False)
End If
I have tried changing the vlookup to Form1.show instead of "false" bu
can't seem to get the form to open if the vlookup was not found.
I've also tried adding
If vlookup is nothing then
form1.show
end if
can anyone help with getting this form to open if the Vlookup is no
found
spreadsheet.
If chkMProFCB.Value = True Then
Range("C15").Select
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(1, 0).Select
End If
Range("c65536").End(xlUp).Offset(1, 0).Value
Application.WorksheetFunction.VLookup(chkMProFCB.Caption
Workbooks("bidditdb.xls").Sheets("wa").Range("a1:b200"), 2, False)
Range("J65536").End(xlUp).Offset(1, 0).Value
Application.WorksheetFunction.VLookup(txtMproFCB.Text
Workbooks("bidditdb.xls").Sheets("mat").Range("a1:c200"), 3, False)
End If
I have tried changing the vlookup to Form1.show instead of "false" bu
can't seem to get the form to open if the vlookup was not found.
I've also tried adding
If vlookup is nothing then
form1.show
end if
can anyone help with getting this form to open if the Vlookup is no
found