+ Reply to Thread
Results 1 to 6 of 6

Auto increment when print

  1. #1
    Registered User
    Join Date
    04-23-2018
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    13

    Auto increment when print

    Please Login or Register  to view this content.
    Last edited by lucas94; 12-20-2021 at 03:16 AM. Reason: Clean code

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,395

    Re: Auto increment when print, HELP :)

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Auto increment when print

    this macro uses a defined name "MySerialNumber" for that incremental number.
    Please Login or Register  to view this content.
    Last edited by bsalv; 12-17-2021 at 10:51 AM.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  4. #4
    Registered User
    Join Date
    04-23-2018
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Auto increment when print

    Hi bsalv, how do i edit my code and include MySerialNumber?

  5. #5
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Auto increment when print

    my code has to be inserted in your code, in place of the actual "FOR ... NEXT" loop.
    The value of "MySerialNumber", you can find (and modify) in the "Name Manager" on the ribbon "Formulas"

    Edit : important !!! I forgot a point in my previous post.

  6. #6
    Registered User
    Join Date
    04-23-2018
    Location
    Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Auto increment when print

    Thanks bsalv

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Print same sheet, increment date, do it for a month
    By Hartygan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2019, 10:01 PM
  2. [SOLVED] Macro to increment a number up and print in reverse
    By inodude in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-25-2018, 07:10 AM
  3. [SOLVED] Code to increment cell value between 2 given values and then print
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2015, 01:37 AM
  4. Increment Alphanumeric Value of a Cell on each print job
    By rudygortiz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2014, 03:55 PM
  5. Increment # on print
    By RatuJoe in forum Excel General
    Replies: 11
    Last Post: 03-14-2007, 04:16 PM
  6. [SOLVED] How do I auto increment cell value on print in Excel
    By Hiren in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-25-2005, 03:06 PM
  7. [SOLVED] Print increment by 1
    By Paul D in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2005, 01:06 PM

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