Print to PDF Excel for Mac {Macro solution required}

thequiff

New Member
Joined
Aug 29, 2012
Messages
34
I’m trying to simplify a workbook that I have made to print a PDF.

Firstly it is made in Excel for Mac



The first sheet is called “SKUs” this sheet will not need to be printed.

All the subsequent sheets are labeled 1, 2, 3, and so on

Each sheet contains 21 codes to be printed.

On the Skus sheet. A list is filled out starting from A2 and downwards.

I need a Macro that will check how far down the list goes, For example, A38 contains data.

That means that 38-1 = 37 entries.

Divide that number by 21 = 1.76 Round that up =2



That means that Sheets 1 and 2 need to be printed.



I’m not sure if this is relevant but each page is the same layout and currently fits to A4 with no issue.



The print area is already set but is A1 : G23



Is this something that is possible?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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