What did I do wrong?
Please Login or Register to view this content.
What did I do wrong?
Please Login or Register to view this content.
Last edited by Michael Island; 04-05-2020 at 11:10 AM.
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however you need to include code tags around your code.
Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.
Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(Note: this change is not optional. As you are new here, I have done it for you this time.)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Code works better between 'code quotes'
Please Login or Register to view this content.
You're missing the quote marks. "YES" is a string, whereas YES is an undefined variable, so empty. Using your existing code, this would work:But this would be more efficient:Please Login or Register to view this content.
HTHPlease Login or Register to view this content.
Tim
Never stop learning!
<--- please consider *-ing !
Or even...TimPlease Login or Register to view this content.
Hi thanks they all worked well!
Or evenPlease Login or Register to view this content.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Or even.............
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks