Hi,
I'm trying to use the find method to look in another sheet for a value in a selected row that will be stored in a variable.
Once the macro finds that value it should delete the entire row.
Thanks for the help!
I'm trying to use the find method to look in another sheet for a value in a selected row that will be stored in a variable.
Once the macro finds that value it should delete the entire row.
VBA Code:
Private Sub IDNRemoveFlagButton_Click()
Dim y As Integer
Dim varId As String
y = ActiveCell.Row
varId = ActiveSheet.Cells(y, 1).Value
Dim mbResult As Integer
mbResult = MsgBox("Unflag " & varId & "?", _
vbYesNo)
Select Case mbResult
Case vbYes
Case vbNo
Exit Sub
End Select
'CLEAR FLAG'
If ActiveSheet.Name = "IDN" Then
Here is where I need to find varId on the sheet IDN_ column A:A and once it finds it delete that row.
If ActiveSheet.Name = "BT" Then
Same thing...
End If
End Sub
Thanks for the help!