|
-
Jul 23rd, 2004, 03:56 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] This isnt working all of a sudden
ActiveSheet.UsedRange.Columns(3). _
SpecialCells(xlCellTypeBlanks).EntireRow.Delete
I have been using this for a while now to remove empty rows from crystal report that have been exported to excel. Today the report was altered so I needed to alter my code and now that above line deletes everything.
Anyideas?
Swoozie
Somedays you just should not get out of bed.
-
Jul 23rd, 2004, 04:08 PM
#2
To be honest I never use the UsedRange Property anymore because it doesn't seem very reliable.
-
Jul 24th, 2004, 01:48 PM
#3
Lively Member
How was your report altered?
Is the third row of your used range all empty cells?
-----
#VBA, VB 6 Professional Edition, Office XP Developper. Excel 97, Excel 2000, Excel XP
I miss my VIC 20.
Never should have upgraded to my commodore 64. ...
-
Jul 26th, 2004, 07:11 AM
#4
Thread Starter
Hyperactive Member
I used to use column 2, now I have to use column 3. There is definately data in the column, but for some reason usedrange doesnt seem to recognize it.
If anyone knows a better way to delete blank rows I would appreciate it.
Swoozie
Somedays you just should not get out of bed.
-
Jul 27th, 2004, 12:05 AM
#5
I googled to make sure, and found that an error exists if you delete a colum. Hope it helps
http://support.microsoft.com/default...NoWebContent=1
-
Jul 27th, 2004, 07:20 AM
#6
Thread Starter
Hyperactive Member
Thanks, I will try to modify that for the empty cells.
Just in case, any other suggestions?
Swoozie
Somedays you just should not get out of bed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|