dwelleronthethreshold
Board Regular
- Joined
- Jan 9, 2003
- Messages
- 94
Hi all!
First, i'm still a relative "newbie" when it comes to using VBA, but i'm usually able to cobble something together through a combination of recording keystrokes/mouseclicks and pirating code found here and elsewhere. Anyway, my problem:
I was asked to take an AP and AR aging report extracted through Oracle and "make it usuable." The hard stuff is done, but I'm having trouble with the final clean up. In order to accomplish my objective, I had to insert a couple of columns (A, B, & C) and write some formulas. The formula in Col A is an If/And statement that will either return the customer/supplier name or "". I copy the formulas down and then paste values over the top. After that I would like to delete all rows in which the cell in col A is blank using the following:
Range("A1:A" & LastRow).Select
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Apparently, though, the cells in which the formula should have returned a "", are not in fact blank. Nothing shows in the formula bar, but the above routine doesn't recognize them as "blank." If I highlight the range of former "", and hit the delete key, the above code will do its job. Anyone have any ideas on how to get around this? I have another routine that wil loop through and delete rows based on the word False (which the formula could be modified to produce), but that method is much slower, perticularly with 33,000 rows. Given my VBA skills, or lack thereof, I'm open to all suggestions.
TIA!
First, i'm still a relative "newbie" when it comes to using VBA, but i'm usually able to cobble something together through a combination of recording keystrokes/mouseclicks and pirating code found here and elsewhere. Anyway, my problem:
I was asked to take an AP and AR aging report extracted through Oracle and "make it usuable." The hard stuff is done, but I'm having trouble with the final clean up. In order to accomplish my objective, I had to insert a couple of columns (A, B, & C) and write some formulas. The formula in Col A is an If/And statement that will either return the customer/supplier name or "". I copy the formulas down and then paste values over the top. After that I would like to delete all rows in which the cell in col A is blank using the following:
Range("A1:A" & LastRow).Select
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Apparently, though, the cells in which the formula should have returned a "", are not in fact blank. Nothing shows in the formula bar, but the above routine doesn't recognize them as "blank." If I highlight the range of former "", and hit the delete key, the above code will do its job. Anyone have any ideas on how to get around this? I have another routine that wil loop through and delete rows based on the word False (which the formula could be modified to produce), but that method is much slower, perticularly with 33,000 rows. Given my VBA skills, or lack thereof, I'm open to all suggestions.
TIA!