+ Reply to Thread
Results 1 to 3 of 3

Macro to print pallets labels changing a cell each time

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    [email protected]
    MS-Off Ver
    2010
    Posts
    1

    Macro to print pallets labels changing a cell each time

    I need to create a macro to work with a print button for some pallet labels. I have 2 cells one is static but is the maximum number of labels I need the other I want Excel to increase each label by 1. Example below.

    Type of Delivery:


    D.C:

    Delivery Date:


    Pallet: 1 OF 12

    That would be label 1, the next label would say 2 OF 12 etc...
    I just want to be able to press the Print Labels button I have created and I get 12 labels (this could change to 52 as a max number) with the first number changing by an increment of 1 each time until it hits the max number (12 in this example).

    Any help would be appreciated.

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Macro to print pallets labels changing a cell each time

    Please Login or Register  to view this content.
    Adapt this code. I use it to number order sheets. f1 = start number you start off with - dialogue box will ask for how many labels

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Macro to print pallets labels changing a cell each time

    Since you have afixed cell with max number you don't need to ask for maximum labels.
    Lets suppose F1 holds variable that increments every printout and F3 holds fixed number.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. [SOLVED] If Function to calculate pallets in stock from value in one cell
    By KazzICC in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-04-2014, 10:59 PM
  2. Macro -- Copying Pivot Table and Changing Row Labels
    By andcarro in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-04-2013, 02:25 PM
  3. Create or modify a macro to print labels that are numbered (1 of 10, 2 of 10, etc)
    By Fyrefly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2013, 01:28 PM
  4. Want to store a Labels value at the same time as changing to 0
    By KJC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2013, 09:48 PM
  5. Replies: 1
    Last Post: 08-07-2012, 02:29 AM
  6. [SOLVED] print column labels with one row of data at a time.
    By gooba937 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 11-07-2005, 08:40 PM
  7. Re: print column labels with one row of data at a time.
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2005, 09:45 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