Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
RoJ RoJ is offline
external usenet poster
 
Posts: 1
Default Printing Consecutive Numbers

Im trying to set-up a label template in Excel, this label
pulls in data from a number of sources based upon menus
within the excel sheet. All works well.
Except, how can I get Excel to print say 30 labels each
with a consecutive number on them, ie a serial number.

Hope somebody can help,
Thanks..
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Printing Consecutive Numbers

This is one I "prepared earlier". There are 2 bills per sheet and 29
bills altogether. The number cell of the 2nd. bill on the worksheet
(range name "Number") refers to the number of the top bill and adds 1
with the formula :-
=IF(Number<=28,Number+1,1)
'---------------------------------------------------------
Sub PRINT_ALL_eBILLS()
'--------------------------
rsp = MsgBox("About to print all Electicity bills." & vbCr _
& "OK to proceed ?", vbYesNo, "PRINT BILLS")
If rsp <vbYesThen End
'---------------------------
Dim MyBill As Worksheet
Set MyBill = ThisWorkbook.Worksheets("Electricity Bills")
Application.Goto reference:=MyBill.Range("A1")
'-
For b = 1 To 29 Step 2
MyBill.Range("Number").Value = b
'MyBill.PrintPreview ' for test purposes & commented out
MyBill.PrintOut Copies:=1
Next
End Sub
'--------------------------------------------------------



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Printing Consecutive Numbers

Sorry - (range name "Number") is the number cell of the top bill.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

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
How do I give consecutive numbers to a form when I'm printing it? Kathy Excel Discussion (Misc queries) 2 May 23rd 08 02:01 AM
Consecutive Numbers Antonio Excel Discussion (Misc queries) 11 March 13th 08 09:10 PM
consecutive numbers Phippsy Excel Worksheet Functions 14 September 9th 07 01:56 PM
Printing consecutive dates Bradford88 Excel Discussion (Misc queries) 1 January 22nd 07 07:33 PM
printing consecutive date on excel workbook isi Excel Worksheet Functions 0 February 17th 05 06:03 PM


All times are GMT +1. The time now is 05:46 AM.

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"