JBeaucaire,
Yes, you are right, I'm fairly new to VBA.
Anyway, I've added "OPTION EXPLICIT", named all the variables - managed to get my original code working. Added your suggested sub at the bottom of my code. The next problem was it would display an error: "no cells were found", so I've changed the range E5:E1000 to E:E - that fixed the error.
ISSUE 2: Next, after some testing I found that your suggested code only works if I run it from a separate module (same as manually running macro 1, then, macro 2), because my original code populates the cells, therefore I can only run your suggested code after the initial subs (calculation etc) is complete.
So, now I'm basically facing with the problem of figuring out how to make JustSayYES sub run automatically only after my subs in a module are finished. Just adding "Call JustSayYES" sub - didn't work as described above in ISSUE 2, so, I added the sub into new module and called it using call module1.JustSayYES. Again, no success.
I'm assuming there's some way of scheduling to run a second macro after the first one is finished, but I'm not sure how to do that.. Also, my subs are inside Class Module.
update:
Ok, I've managed to solve the problem by creating a new module which calls 2 other modules, one after another. This also allowed me to name the range back to E5:E1000
I'm guessing this case is closed Thanks everyone for your help. If you know alternative solutions to mine, please post it below. I'll add [solved] in the next 48 hours
Thanks.
Bookmarks