ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Make a 'Print button' (https://www.excelbanter.com/new-users-excel/97055-make-print-button.html)

BrianT

Make a 'Print button'
 

How would I make a cell into a 'print button' (radio button?)

I need to be able to mouseover and either click or press enter on a
cell, and doing so would cause a range of other cells to be printed. So
cell A1 would be my button, click on it or hit enter once it was
highlighted and it would print cells D10-x41 say.


--
BrianT
------------------------------------------------------------------------
BrianT's Profile: http://www.excelforum.com/member.php...o&userid=35954
View this thread: http://www.excelforum.com/showthread...hreadid=557438


Ron de Bruin

Make a 'Print button'
 
Try this event

Copy it in the sheet module
If you select A1 it print the range

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Range("A1"), Target) Is Nothing Then
Range("D10:X41").PrintOut
End If
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"BrianT" wrote in message
...

How would I make a cell into a 'print button' (radio button?)

I need to be able to mouseover and either click or press enter on a
cell, and doing so would cause a range of other cells to be printed. So
cell A1 would be my button, click on it or hit enter once it was
highlighted and it would print cells D10-x41 say.


--
BrianT
------------------------------------------------------------------------
BrianT's Profile: http://www.excelforum.com/member.php...o&userid=35954
View this thread: http://www.excelforum.com/showthread...hreadid=557438




BrianT

Make a 'Print button'
 

Thank you my friend, I shall give it a try tomorrow


--
BrianT
------------------------------------------------------------------------
BrianT's Profile: http://www.excelforum.com/member.php...o&userid=35954
View this thread: http://www.excelforum.com/showthread...hreadid=557438



All times are GMT +1. The time now is 11:10 AM.

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