Printing labels from excel - VBA

Jumparound

New Member
Joined
Aug 4, 2015
Messages
46
Office Version
  1. 2016
Platform
  1. Windows
Hi, I am currently battling with trying to fit 2 labels on 1 page in excel via VBA. I have code to create the labels and put them all in one worksheet but what I can't figure out is if there is a way to set the size and scale of the labels to fit the maximum size on each printed page. I can mess around with it a lot to try and get it to fit manually but then if the printer chnages it no longer fits properly. Is there a way in VBA to refer to the printer area and fit a grouped shape to match that?
 
Are you using a recognisable manufacturer's label as they would normally provide the sizes per page.

When you record a macro to adjust the measurements would that not provide the code that could help you.
 
Upvote 0

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