Hi,
I'm not very good at macros and I juggled some rows around in my spreadsheet which seems to have stopped the macro I had from working. Can someone help me bedug, I don't understand what's wrong with it?
DEBUG HELP.JPG
Hi,
I'm not very good at macros and I juggled some rows around in my spreadsheet which seems to have stopped the macro I had from working. Can someone help me bedug, I don't understand what's wrong with it?
DEBUG HELP.JPG
Last edited by kellynicolebarrett; 07-16-2014 at 09:35 AM.
If the code could not find visible cells, it errors, one way, but not the best way to cheat
Please Login or Register to view this content.
where in the code should i put this?
Please Login or Register to view this content.
You don't have data after column 24 on row 5. In the cells up to that point, you have numbers (week start/end/whatever). After that, you just have buttons. I suspect that has something to do with it.
As AB33 has said, if there are no visible cells in the range, that's why you get the error. But I would suggest that you don't just want to ignore the error, you need to condition the rest of the code following on myRange not being Nothing.
Regards, TMS
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
ah that was indeed the problem. I typed the numbers on the buttons into the cells beneath them and the macro now works. Many thanks, stars for your help!
You're welcome. Thanks for the rep.
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