im trying to use this code but it doesnt work and im not sure why
the delete part is whats at fault, im sure you can see what im trying to do though...![]()
Please Login or Register to view this content.
any ideas?
im trying to use this code but it doesnt work and im not sure why
the delete part is whats at fault, im sure you can see what im trying to do though...![]()
Please Login or Register to view this content.
any ideas?
You have xlAnd
which requires second criteria.
If you are selecting A1, it will delete your header row and filter too. You should change that to A2. If it's not visible in the filter it won't get deleted.
![]()
Please Login or Register to view this content.
this works further up in my macro however fails further down and im not sure why...
heres my code:
I tried & Lastrow but that didnt work so I tried to change it to 100000 just to see if it would make a difference.![]()
Please Login or Register to view this content.
it didnt.
EDIT: is it because the A2 row is hidden?
the error I get is: "delete method of range class failed"
Untested code.
![]()
Please Login or Register to view this content.
I have this which works...
Then some more code, which is also working fine...![]()
Please Login or Register to view this content.
then this:
which fails at the Delete row...![]()
Please Login or Register to view this content.
why does this one fail but the other one doesnt?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks