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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

mtb'r

New Member
Joined
Sep 8, 2006
Messages
42
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
 

Forum statistics

Threads
1,137,205
Messages
5,680,174
Members
419,887
Latest member
Vasokir

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
Top