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
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,409
Office Version
  1. 2016
Platform
  1. Windows
Why can you not highlight the range, right click and delete?
 

Dryver14

Well-known Member
Joined
Mar 22, 2010
Messages
2,396
Code:
Sub DeleteSomeRows()
Cells(20, 1).Resize(1911, 1).EntireRow.Delete
End Sub

I agree with Daz
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,757
Office Version
  1. 2016
  2. 2013
  3. 2007
Platform
  1. Windows

ADVERTISEMENT

Me too...maybe this was an assignment ?
Code:
Sub DeletetheRows()
Rows("20:1911").Delete
End Sub
 

Dryver14

Well-known Member
Joined
Mar 22, 2010
Messages
2,396
well if nothing else I learned a shorter way thanks Michael.

change 20 to 19 on both macros
 

Watch MrExcel Video

Forum statistics

Threads
1,122,820
Messages
5,598,297
Members
414,224
Latest member
Crazy_FC

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
Top