I've got a rather involved macro that's running kind of slowly, and I would appreciate any help I can get speeding it up. It's in two parts; the first is to create and email a report, the second is to format so it's pretty for printing. The full codes for both routines is pasted below.
The email part I developed first and it runs pretty quickly. Afterwards, I added the second macro, which is called halfway through the first.
Stepping through the code in the second macro, the problem I see is in this section, the setup for setting the heighth of merged cells in the report:Stepping through it, it seems to repeat hundreds of times, and seems to really bog down the response time.![]()
Please Login or Register to view this content.
Here are the two macros. The problem (what I see as the problem) is presented first, the overall email macro presented second. I appreciate any help you can provide on this.
Here's the Mail routine:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Bookmarks