Marco to Delete rows

ironsides

Well-known Member
Joined
Aug 12, 2002
Messages
575
Sheet starts on row 19 Cell A


Marco needed to
delete Rows 19 thru 1931
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Why can you not highlight the range, right click and delete?
 
Upvote 0
Code:
Sub DeleteSomeRows()
Cells(20, 1).Resize(1911, 1).EntireRow.Delete
End Sub

I agree with Daz
 
Upvote 0
Me too...maybe this was an assignment ?
Code:
Sub DeletetheRows()
Rows("20:1911").Delete
End Sub
 
Upvote 0
well if nothing else I learned a shorter way thanks Michael.

change 20 to 19 on both macros
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,180
Members
448,871
Latest member
hengshankouniuniu

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