Post #12 of this link addresses running macros to generate code and I use it quite a bit. Follow the steps and do the changes you want to a spreadsheet. The code that is generated will be very close but it is still VBA. From that point you can tweak it the way you need.
Post #12 of this link addresses running macros to generate code and I use it quite a bit. Follow the steps and do the changes you want to a spreadsheet. The code that is generated will be very close but it is still VBA. From that point you can tweak it the way you need.
I'm not sure what you are trying to do but I used Google and found this link. It talks about why you can't do it and then someone pops in with what they say works.
I'm just guessing because I don't do much Excel formatting.
I'm not sure what you are trying to do but I used Google and found this link. It talks about why you can't do it and then someone pops in with what they say works.
I'm just guessing because I don't do much Excel formatting.