Solved

Delete blanks

Posted on 2011-03-17
3
151 Views
Last Modified: 2012-05-11
Hi,

I have attached a file. Theres a sub called "Tidy Up" in Module 8.

It should delete blank rows, but when i step through it, it does nothing.

Can anyone see why this is?

Thanks
Seamus
Call-Latest-File.xls
0
Comment
Question by:Seamus2626
3 Comments
 
LVL 18

Accepted Solution

by:
krishnakrkc earned 250 total points
ID: 35155372
HI,

Replace

.Range("A1").CurrentRegion

with

.UsedRange

Kris
0
 
LVL 24

Assisted Solution

by:StephenJR
StephenJR earned 250 total points
ID: 35155381
Seamus - if you want to delete the rows try replacing your line with this:
.Range("A2", .Cells(.Rows.Count, "A").End(xlUp).Offset(1)).SpecialCells(xlCellTypeBlanks).EntireRow.Delete

Open in new window

0
 

Author Closing Comment

by:Seamus2626
ID: 35155398
Cheers guys!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now