Automatically create second page when printing PDF if the length of text in text box exceeds available space

tferrari

New Member
Joined
Jul 1, 2015
Messages
20
A bit of background -- I am using VBA to allow users to save a selection of sheets in the workbook directly to PDF so automation is necessary for what I’m doing.

The screenshot I have attached shows one of the sheets that will be printed to PDF when the user presses a button elsewhere in the sheet. Currently, the user can fill in their ‘report details’ inside of a text box (at the bottom of the page) that I have sized to fit onto a single A4 piece of paper. The issue is that if the user wants to create a larger report and create additional ‘lines’ of text that exceed the pre-determined size of the text box, the text does not roll over onto a second page. It simply does not get displayed anywhere when the PDF is printed via VBA.

Is there any way (with standard text boxes, or active x forms) to automatically have the additional text that does not fit inside of the box on a second page simply roll over to a second page? I assume this would just involve using some sort of page break, but I’m really not sure how to accomplish this!

This is more of a strategy question. Does anyone have any suggestions that I can try to achieve my functionality goal?

Thanks so much in advance.

Report_Details.jpg
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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