Hi
Is this a form you created in the excel spreadsheet? If its in the spreadsheet you just need to add (e.g)
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
You add this code to the command button's onClick event. You could also link the textbox to a cell which you could select and use:
Selection.PrintOut Copies:=1, Collate:=True
This will then only print the data and not txtbox itself.
Is this what you are looking for?
Regards
Marnus
|