VBA macro to delete row if cell in Column A is empty

XcelNoobster

New Member
Joined
Jun 7, 2022
Messages
40
How would I create a macro that loops through the current open sheet and deletes the current row if the cell in Column A is Empty?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Using a counter to loop over a used range on the active sheet is a very common topic. Did you look for any code to do that? You could start with what you find, edit it to suit your case and post what you tried if not successful. Then people would have something to work with.
 
Upvote 0
Why loop?
Code:
Sub No_Loop()
    Columns(1).SpecialCells(4).EntireRow.Delete
End Sub
 
Upvote 0
No problem. We all are, whether we admit it or not.
 
Upvote 0

XcelNoobster is not happy with the suggestions because we have not heard anything back.
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,090
Members
449,065
Latest member
Danger_SF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top