Yep, no data, no code, nothing.
Yep, no data, no code, nothing.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
OK, don't know...I'll try againtest2.xlsm
The file is 8.98kb. as an excel test2.xlsm file
Here's the macro:
![]()
Sub test1() Dim Rng As Range, ix As Long Set Rng = Intersect(Range("A1:A438"), ActiveSheet.UsedRange) For ix = Rng.Count To 1 Step -1 If Rng.Item(ix).Text = Empty Then Rng.Item(ix).EntireRow.Delete End If Next End Sub
Last edited by jeffreybrown; 07-27-2013 at 10:16 AM.
Hi SWMagic
Please insert Code Tags around your Code in Post #4 then try this![]()
Option Explicit Sub DeleteMe() Dim LR As Long Dim ws As Worksheet Set ws = Sheets("Sheet1") With ws .Range("A1").EntireRow.Insert .Range("A1").Value = "X" LR = .Range("A" & .Rows.Count).End(xlUp).Row .AutoFilterMode = False .Range("A1:A" & LR).AutoFilter Field:=1, Criteria1:="=" .Range("A2:A" & LR).EntireRow.Delete .AutoFilterMode = False .Range("A1").EntireRow.Delete End With End Sub
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks