triegaardtm
New Member
- Joined
- Nov 29, 2012
- Messages
- 30
HI
I need help creating a Macro to delete a row.
Private Sub btnRemoveCrate()
Dim CrateRef As String
CrateRef = cbCrateRef.Text
**the Macro must find the selected text in the first column of active sheet and the delete the whole row containing that text.
Rows(???Containing the CrateRef???).Select
Selection.Delete Shift: = xlUP
End Sub
I need help creating a Macro to delete a row.
Private Sub btnRemoveCrate()
Dim CrateRef As String
CrateRef = cbCrateRef.Text
**the Macro must find the selected text in the first column of active sheet and the delete the whole row containing that text.
Rows(???Containing the CrateRef???).Select
Selection.Delete Shift: = xlUP
End Sub