Conditionally delete rows in currentliy selected table
Dear Experts:
On the currently selected table I would like to perform the following actions using VBA
The macro is to loop thru the first column of the selected table and look for the term 'error' there. If found the whole row is to be deleted. Of course there could be many cells in the first column where this term 'error' occurs.
Help is much appreciated. Thank you very much in advance.
Regards, Andreas
VBAMicrosoft Word
Last Comment
Andreas Hermle
8/22/2022 - Mon
Fabrice Lambert
Do you want to do that with MS Excel or MS Access ?
With MS Excel, you can use the delete methode of the range object.
Dim wb As Excel.WorkbookDim ws As Excel.WorksheetSet wb = ThisWorkbookSet ws = wb.Worksheets(1)ws.rows(5).Delete shift:=xlUp
With MS Excel, you can use the delete methode of the range object.
Open in new window
With Access, you can use a query.