Printing content of text boxes

riggsd

Board Regular
Joined
Jan 29, 2003
Messages
143
I have a form with two text boxes. The form provides instructions on how to run a particular report and the users need to be able to print out those instructions.

How do I print the contents of the text boxes and not the entire form?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
In the form properties, set the Control Source for each of the text boxes to a cell on one of your worksheets. Then, put a "Print" button in the form that will run a macro to print the worksheet containing the instructions. The VBA code for printing the worksheet might look something like this:

Code:
    Sheets("Sheet1").PrintOut From:=1, To:=1, Copies:=1, Collate _
        :=True
 
Upvote 0

Forum statistics

Threads
1,217,682
Messages
6,137,959
Members
450,101
Latest member
Mrupe86

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