Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to print numbered tickets on my printer.
|
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can try out the below macro. If you are new to macros..
--Set the Security level to low/medium in (Tools|Macro|Security). --From workbook launch VBE using short-key Alt+F11. --From menu 'Insert' a module and paste the below code. --Get back to Workbook. --Run macro from Tools|Macro|Run <selected macro() --Format cell A1 as Text (Right clickFormatCellsselect Text) --Cell A1 will hold the number. Change the cell reference to suit your requirement. Sub PrintMultiples() Dim intTemp as Integer For intTemp = 1 To 50 Range("A1") = Format(intTemp,"0000") ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True Next intTemp End Sub If this post helps click Yes --------------- Jacob Skaria "Hemetman" wrote: I am trying to print numbered tickets on my printer. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Difficulty "countif"-ing number of "L1" or "L2" on an autofiltered | Excel Worksheet Functions | |||
Set default for "number of copies" on printer? | Setting up and Configuration of Excel | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
how i convert "100" to "hundred"( number to text) in excel-2007 | Excel Worksheet Functions | |||
"Type mismatch" when I try to fill an Array variable with "+" | Excel Discussion (Misc queries) |