VBA Print format Assistance

Dacius

New Member
Joined
Jul 21, 2015
Messages
2
First time poster, long time creeper.

Using Excel 2010 on a W7 PC
I have an Excel sheet that is downloaded off of a SSRS portal. The SSRS report is formatted to be one page. When I print from there, each tab is printed on a single page.

But when the report is downloaded into Excel, it populates the data for every page on a tab (which is intentional and working fine), when I go to print it breaks each tab into 4 pages, with the last two columns on the right on page 3 and the 2 bottom rows on Page 2 and 4. So 30+ tabs each printing 4 pages. Should be 30+ tabs printing 1 page each.

I need a Macro that will hard code all of the tabs to fit on single pages. The tricky part is my tab names are not very consistent. The only consistent worksheet is 'Totals'. I tried one bit of code that copied the format of a specific tab and copied it throughout, but I could not get it to work.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,216,484
Messages
6,130,936
Members
449,608
Latest member
jacobmudombe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top