+ Reply to Thread
Results 1 to 12 of 12

printin a sheet with incremental overlay #

  1. #1
    Registered User
    Join Date
    10-22-2008
    Location
    Ireland
    Posts
    9

    printin a sheet with incremental overlay #

    Hello

    Basically Im crap at excel and need to start learning the in's and outs more but I have drafted up a double sided spreadsheet that I would like to run a series of prints 'inhouse'

    I would like it if I could insert an overlay serial number on the sheet that would enable me to carry out future prints adding an incremental number to the serial number EG printing off 100 prints where the serial number runs from
    CODA/BL1_00001
    CODA/BL1_00100

    IS this possible using general tool tricks of the day ie VB, macros or does an add on program exist that will enable this to be generated on a fly between the program and the printer.

    Many thanks in advance!

    ---
    Getto678
    Ireland
    Last edited by VBA Noob; 10-26-2008 at 03:59 PM.

  2. #2
    Registered User
    Join Date
    10-22-2008
    Location
    office
    Posts
    5
    Use Vba programming and use for loop
    Please Login or Register  to view this content.
    use the above code in vba and try may be some changes
    Last edited by VBA Noob; 10-26-2008 at 03:59 PM.

  3. #3
    Registered User
    Join Date
    10-22-2008
    Location
    Ireland
    Posts
    9
    i tried it but it didnt work......

    thanks though for trying to help...perhaps Im entering it in wrong area!

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Where would the serial number be?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You could use the BeforePrint ebvent like this
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-22-2008
    Location
    Ireland
    Posts
    9

    where serial number will be

    I am looking to insert serial number on sheet one of worksheet. It should generate a number based on the intitial alphanumerical object entered such as CODA/BL1_0000.

    Its just so that If I should run a print of a hundred of these, my final print is incrementally up to CODA/BL1_00100 [end]

    At the minute, I am searching VB websites to see If I can find help from there. Im also looking for add on extensions that I might be able to enable through excel that will automatically call the function

    Thanks

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Check the code that I have given you

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This code will prompt the user for the number of sheets to print, then increment the n umber with each print
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-22-2008
    Location
    Ireland
    Posts
    9
    rob,

    thanks for your reply. I tried testing the code however if is throwing up an error on after running the handler. I tried running it a few times but to no success. Now looking at your code i was curious as to whether or not I am supposed to insert in to a specific cell rather than the cell I already have a dummy serial number in [ serNum = CLng(Right(Sheet1.Cells(1, 1).Value, 5)) ]

    I've included a copy of the file if you want to look at it
    http://easymadedesigns.com/tmp/downl...el/example.xls

  10. #10
    Registered User
    Join Date
    10-22-2008
    Location
    Ireland
    Posts
    9
    Roy,

    In your code... am I attaching this to a blank cell or should it be to the cell that already contains the serial number template 0001

    ?

    Thanks

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    The code is assuming the serial number is in A1

  12. #12
    Registered User
    Join Date
    10-22-2008
    Location
    Ireland
    Posts
    9
    ah ok.... I got it.

    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1