Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Will only print one???


HI thanks for the past help

But i have a small problem

He is my code (im using a user form)

Private Sub CommandButton1_Click()
If OptionButton1 Then
Sheets("S32 worksheet").Select
Dim ws As Worksheet
Dim no_of_copies As Integer
no_of_copies = Application.InputBox("How many copies do you wish t
print ", , 1)
If no_of_copies = 0 Then Exit Sub
MsgBox ("NOTE : A MEASURE SHEET MUST BE ATTACHED WITH THIS WORKSHEET
IF NOT THIS SHEET IS NOT VALID AND NO PRODUCTION SHOULD BE MADE")
ActiveWindow.SelectedSheets.PrintOut , Collate:=True
Sheets("S32 input").Select
ElseIf OptionButton2 Then
Sheets("S32 worksheet").Select
ActiveWindow.Zoom = 75
ElseIf OptionButton3 Then
Sheets("Heroal main page ").Select
ElseIf OptionButton4 Then
Sheets("s32mea").Select
no_of_copies = Application.InputBox("How many copies do you wish t
print ", , 1)
If no_of_copies = 0 Then Exit Sub
ActiveWindow.SelectedSheets.PrintOut , Collate:=True
Sheets("S32 input").Select
End If
Unload Me
Close
End Sub

But the problem is when the input box appears asking how many copies d
you wish to print if you put 5 in it still only prints 1

Need help

Thank

--
ra
-----------------------------------------------------------------------
raw's Profile: http://www.excelforum.com/member.php...fo&userid=2831
View this thread: http://www.excelforum.com/showthread.php?threadid=48028

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Will only print one???

Without looking at the rest of your code, I don't see where you used that
no_of_copies variable:

ActiveWindow.SelectedSheets.PrintOut collate:=True, copies:=no_of_copies



raw wrote:

HI thanks for the past help

But i have a small problem

He is my code (im using a user form)

Private Sub CommandButton1_Click()
If OptionButton1 Then
Sheets("S32 worksheet").Select
Dim ws As Worksheet
Dim no_of_copies As Integer
no_of_copies = Application.InputBox("How many copies do you wish to
print ", , 1)
If no_of_copies = 0 Then Exit Sub
MsgBox ("NOTE : A MEASURE SHEET MUST BE ATTACHED WITH THIS WORKSHEET.
IF NOT THIS SHEET IS NOT VALID AND NO PRODUCTION SHOULD BE MADE")
ActiveWindow.SelectedSheets.PrintOut , Collate:=True
Sheets("S32 input").Select
ElseIf OptionButton2 Then
Sheets("S32 worksheet").Select
ActiveWindow.Zoom = 75
ElseIf OptionButton3 Then
Sheets("Heroal main page ").Select
ElseIf OptionButton4 Then
Sheets("s32mea").Select
no_of_copies = Application.InputBox("How many copies do you wish to
print ", , 1)
If no_of_copies = 0 Then Exit Sub
ActiveWindow.SelectedSheets.PrintOut , Collate:=True
Sheets("S32 input").Select
End If
Unload Me
Close
End Sub

But the problem is when the input box appears asking how many copies do
you wish to print if you put 5 in it still only prints 1

Need help

Thanks

--
raw
------------------------------------------------------------------------
raw's Profile: http://www.excelforum.com/member.php...o&userid=28312
View this thread: http://www.excelforum.com/showthread...hreadid=480286


--

Dave Peterson
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
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Active cell counting in particular print page (one sheet having different print area) ananthmca2004 Excel Worksheet Functions 1 November 24th 05 11:29 AM
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook will Excel Programming 3 September 23rd 04 08:05 PM


All times are GMT +1. The time now is 01:44 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"