Hi
I'm caculating on a worksheet, and when I input the code like below, a popup window says "", anyone could give me any help? Thx.Please Login or Register to view this content.
Please Login or Register to view this content.
Hi
I'm caculating on a worksheet, and when I input the code like below, a popup window says "", anyone could give me any help? Thx.Please Login or Register to view this content.
Please Login or Register to view this content.
You're missing aline before the end subPlease Login or Register to view this content.
Remember what the dormouse said
Feed your head
That will fix the compile error. However, you will have a problem with the execution of the code. First, if you have two rows that meet the conditions, it will "jump" the second one. You avoid that by starting at the bottom and working up. And you are making a change (deleting a row) which will fire the Change event handler ... probably causing a loop (given you already have a loop)
Try
Regards, TMSPlease Login or Register to view this content.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thank you romperstomper and TMS, it works
You're welcome.
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Or you can use this way:
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks