ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Printing a sheet with macros.. (https://www.excelbanter.com/excel-programming/346848-printing-sheet-macros.html)

petros89[_5_]

Printing a sheet with macros..
 

Hi, I want to create a macro using VB which prints another sheet...

For example, i have a button on sheet 1, but want to press that button
to print 3 copies of sheet 2..can any1 help?

Thanks in advance.


--
petros89
------------------------------------------------------------------------
petros89's Profile: http://www.excelforum.com/member.php...o&userid=24645
View this thread: http://www.excelforum.com/showthread...hreadid=489106


Norman Jones

Printing a sheet with macros..
 
Hi Petros,

Try assigning the following code to your button:

'=============
Public Sub ATest01()
Sheets("Sheet2").PrintOut copies:=3
End Sub
'<<=============


---
Regards,
Norman


"petros89" wrote in
message ...

Hi, I want to create a macro using VB which prints another sheet...

For example, i have a button on sheet 1, but want to press that button
to print 3 copies of sheet 2..can any1 help?

Thanks in advance.


--
petros89
------------------------------------------------------------------------
petros89's Profile:
http://www.excelforum.com/member.php...o&userid=24645
View this thread: http://www.excelforum.com/showthread...hreadid=489106




ben

Printing a sheet with macros..
 
sub commandbutton1_click()
thisworkbook.sheets(3).printout 3
end sub


--
When you lose your mind, you free your life.


"petros89" wrote:


Hi, I want to create a macro using VB which prints another sheet...

For example, i have a button on sheet 1, but want to press that button
to print 3 copies of sheet 2..can any1 help?

Thanks in advance.


--
petros89
------------------------------------------------------------------------
petros89's Profile: http://www.excelforum.com/member.php...o&userid=24645
View this thread: http://www.excelforum.com/showthread...hreadid=489106




All times are GMT +1. The time now is 03:36 AM.

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