Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to input total copies from a cell value

Using Excel 2003, I'm looking for a macro code that:
-Default an specific printer before start printing (if possible, if not user
can do it manually)
-Print a range name
-Before printing range name, take value from a specific cell and use it as
the number of copies to print, if cell value = 0 or blank don't print.

If someone can help me out I'll really appreciate it... Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 334
Default Macro to input total copies from a cell value

This is the macro I use to do that which you ask. I have not modified for
your specific application but it should be easy for you to do:

Sub print_weekly()
Dim LS As Integer
Dim Init As Integer
Dim VC As Integer
Dim VR As Integer
Dim SS As Integer
Dim RS As Integer

Dim LSp As String
Dim Initp As String
Dim VCp As String
Dim VRp As String
Dim SSp As String
Dim RSp As String

RS = Sheets("control").Range("E33").Value
LS = Sheets("control").Range("E34").Value
Init = Sheets("control").Range("E35").Value
VC = Sheets("control").Range("E36").Value
VR = Sheets("control").Range("E37").Value
SS = Sheets("control").Range("E38").Value

RSp = Sheets("control").Range("g33").Value
LSp = Sheets("control").Range("g34").Value
Initp = Sheets("control").Range("g35").Value
VCp = Sheets("control").Range("g36").Value
VRp = Sheets("control").Range("g37").Value
SSp = Sheets("control").Range("g38").Value

Sheets("Roll").PrintOut Copies:=RS, ActivePrinter:=RSp
Sheets("LineSchedule").PrintOut Copies:=LS, ActivePrinter:=LSp
Sheets("Init").PrintOut Copies:=Init, ActivePrinter:=Initp
Sheets("VeilCoord").PrintOut Copies:=VC, ActivePrinter:=VCp
Sheets("Veils").PrintOut Copies:=VR, ActivePrinter:=VRp
Sheets("SessionStarter").PrintOut Copies:=SS, ActivePrinter:=SSp

End Sub




"Vic" wrote:

Using Excel 2003, I'm looking for a macro code that:
-Default an specific printer before start printing (if possible, if not user
can do it manually)
-Print a range name
-Before printing range name, take value from a specific cell and use it as
the number of copies to print, if cell value = 0 or blank don't print.

If someone can help me out I'll really appreciate it... Thanks in advance!

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
pausing a macro to input cell contents blipityblap New Users to Excel 3 January 13th 09 11:01 PM
run macro with input msg based on cell input Janelle S Excel Discussion (Misc queries) 0 January 20th 08 05:23 AM
Keyboard Macro Just Copies Content of Previous Cell Andy Excel Discussion (Misc queries) 1 October 24th 05 11:54 PM
I need a macro that copies that data from one cell on one sheet to a cell on another? cakonopka[_7_] Excel Programming 8 February 4th 04 01:34 PM
macro to sub total a unique cell value mary Excel Programming 7 January 17th 04 07:05 PM


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

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"