So you have a macro already and you run some events in this macro and then you want to run the code above and then do some things from the same macro? Just making sure I understand what you need.
I would do what PHV said. It will be much easier to do that and will make it much eaiser to edit. Or a another way that will work is to make that code into a function and in your macro chose RunCode and then point it to that function. Then in the click event you posted above just call the function or leave the code there.
If I can't make the code part of the macro, converting it to vba doesn't do it.
I've tried making this a function...a little weak in this area. I know how to set this up in macro if I had the function...any way to get a little help making this a function?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.