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 multiple sheets with different data

Hello

I have a userform with a box for a number

If you enter a number into this box, this is how many prints you want

However, these prints are labels and I also require the following

example

If you require 2 prints:

1. Your first sheet will say 1 of 2
2. and the second sheet will say 2 of 2

Help

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200511/1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Printing multiple sheets with different data

Gaz

Code from Ron de Bruin's site

http://www.rondebruin.nl/print.htm#number

Sub PrintCopies_ActiveSheet()
Dim CopiesCount As Long
Dim CopieNumber As Long
CopiesCount = Application.InputBox("How many Copies do you want", Type:=1)

For CopieNumber = 1 To CopiesCount
With ActiveSheet
'number in cell A1
'.Range("a1").Value = CopieNumber & " of " & CopiesCount

'number in the footer
.PageSetup.LeftFooter = CopieNumber & " of " & CopiesCount

'Print the sheet
.PrintOut
End With
Next CopieNumber
End Sub

REM or un-REM the lines you want to use. As written, will give you the page 1
of X in the left footer.


Gord Dibben Excel MVP

On Sat, 19 Nov 2005 20:26:16 GMT, "Gaz via OfficeKB.com" <u15117@uwe wrote:

Hello

I have a userform with a box for a number

If you enter a number into this box, this is how many prints you want

However, these prints are labels and I also require the following

example

If you require 2 prints:

1. Your first sheet will say 1 of 2
2. and the second sheet will say 2 of 2

Help


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
Printing multiple sheets... MarkN Excel Discussion (Misc queries) 1 December 1st 09 10:20 AM
printing multiple sheets Jase Excel Discussion (Misc queries) 1 October 17th 08 04:09 PM
Printing Multiple Sheets Chad Excel Discussion (Misc queries) 3 October 17th 07 10:23 PM
Printing Multiple sheets on ONE? onesidered Excel Discussion (Misc queries) 2 August 10th 05 06:58 PM
Printing multiple sheets. sungen99[_3_] Excel Programming 2 May 6th 04 08:41 PM


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

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

About Us

"It's about Microsoft Excel"