Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alice
 
Posts: n/a
Default Autonumber in Forms while printing

I need to print forms from excel with auto-number
generated during printing. eg 001, 002, 003

How can I do it?

Thanks!
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Is this a worksheet that's set up to look like a form?

If yes, you could use a little macro and run that whenever you needed copies:

Option Explicit
Sub testme()

Dim myMin As Long
Dim myMax As Long
Dim iCtr As Long

myMin = 1
myMax = 3

For iCtr = myMin To myMax
With Worksheets("sheet1")
.Range("a1").Value = iCtr
.PrintOut preview:=True
End With
Next iCtr

End Sub

I put the value in A1 (which was already formatted nicely, "000").

Change the myMin and myMax to what you want and get rid of the preview:=true
when you're ready to kill some trees!

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Alice wrote:

I need to print forms from excel with auto-number
generated during printing. eg 001, 002, 003

How can I do it?

Thanks!


--

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
Printing messagebox nc Excel Discussion (Misc queries) 1 March 22nd 05 02:49 PM
Cell borders printing black instead of grey julie@mwfc Excel Discussion (Misc queries) 1 February 23rd 05 12:19 AM
Forms Toolbar vs. Control Toolbox vs. Data Validation for drop dow Scott Excel Discussion (Misc queries) 1 February 1st 05 01:51 PM
problem printing to PDF mark kubicki Excel Discussion (Misc queries) 1 January 21st 05 06:19 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM


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