Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macros for printing Kevin W[_2_] Excel Discussion (Misc queries) 0 June 30th 08 03:13 PM
Macros for printing Kevin W[_2_] Excel Discussion (Misc queries) 1 June 30th 08 03:10 PM
Printing macros pcor New Users to Excel 4 October 20th 06 04:29 PM
macros for printing Andre Excel Programming 2 November 15th 05 06:50 PM
Macros Move when Printing liz217 Excel Discussion (Misc queries) 2 August 22nd 05 03:32 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"