ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I create a print button? (https://www.excelbanter.com/excel-worksheet-functions/24040-how-do-i-create-print-button.html)

Dan

How do I create a print button?
 
I am creating a spreadsheet for some unsophisticated users and would like to
have them select a range and then just click on a "print" button. I assume I
need to create a macro and embed it in the button. Could use some help with
that, as well.

Thanks!

Nick

Add this code to the button click event

Selection.Printout

this will print the currently selected cells on the active sheet.





"Dan" wrote in message
...
I am creating a spreadsheet for some unsophisticated users and would like
to
have them select a range and then just click on a "print" button. I
assume I
need to create a macro and embed it in the button. Could use some help
with
that, as well.

Thanks!




Don Guillett

unsophisticated creators would do that

sub printit
range("a2:b22").printout
end sub

--
Don Guillett
SalesAid Software

"Dan" wrote in message
...
I am creating a spreadsheet for some unsophisticated users and would like

to
have them select a range and then just click on a "print" button. I

assume I
need to create a macro and embed it in the button. Could use some help

with
that, as well.

Thanks!




Don Guillett

unsophisticated responders such as me should have said what Nick said.

--
Don Guillett
SalesAid Software

"Don Guillett" wrote in message
...
unsophisticated creators would do that

sub printit
range("a2:b22").printout
end sub

--
Don Guillett
SalesAid Software

"Dan" wrote in message
...
I am creating a spreadsheet for some unsophisticated users and would

like
to
have them select a range and then just click on a "print" button. I

assume I
need to create a macro and embed it in the button. Could use some help

with
that, as well.

Thanks!







All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com