Trying to copy from a sheet that I manually sorted to remove all entries if column "B" has a zero. When I use this code, it pastes as if it wasn't sorted.
Any thoughts?
Thanks
![]()
Please Login or Register to view this content.
Trying to copy from a sheet that I manually sorted to remove all entries if column "B" has a zero. When I use this code, it pastes as if it wasn't sorted.
Any thoughts?
Thanks
![]()
Please Login or Register to view this content.
I changed the code to paste values
![]()
Please Login or Register to view this content.
Hi,
SpecialCells is useless here as Range.Copy method copies only the visible cells !
But here as the logic needed is not to copy but to delete the unwanted or ? …
Is there a way to delete them?
Well, there's no filter so there won't be any zero height cells. If by Column B Having a zero you mean a null, then something like this would work:
Or else find the last row >0![]()
Please Login or Register to view this content.
![]()
If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)
You can't do one thing. XLAdept
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin
Yes, I meant the cells contain the value "0".
Is there a way to delete the cells?
Used this code
![]()
Please Login or Register to view this content.
That should work. Thanks for the rep!![]()
No prob, any thoughts as to why this code takes so long to run? It's about 15,000 lines that it looks for the zeroes in, any way to speed that up?
Here's a filter:
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks