+ Reply to Thread
Results 1 to 2 of 2

Print Counter Macro

  1. #1
    Registered User
    Join Date
    01-16-2015
    Location
    New York, New York
    MS-Off Ver
    2013
    Posts
    30

    Print Counter Macro

    Ive got a label maker sheet that prints custom label templates to a label printer. I need a macro that does the following:

    1. asks which printer to print to
    2. asks how many copies to print
    3. asks what number to start at
    4. resets the number found in cell f2 (names "counter") to the start number input in step 3
    should be formatted "00#"
    5. prints that label (using print area)
    6. adds 1 to the "counter" (f2) and prints that label.
    this repeats until the number of copies specified in step 2 is satisfied. NOT until the counter matches the number in step 2.

    I've pieced this together but its not working when I input anything besides "1' into step 3

    Please Login or Register  to view this content.

    Any help would be greatly appreciated
    Last edited by hardrock14; 01-26-2019 at 11:11 AM.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Print Counter Macro

    You are only assigning a value to the variable for the starting page. You would need to also tell the printer where to start if you are using the startcount variable as a page number reference.
    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

+ 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] Changing HH:MM:SS counter format into MMM - 3 digit minute counter (eg. 120 minutes)
    By macropulos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2017, 12:09 PM
  2. [SOLVED] Counter macro
    By Davzx in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2016, 06:43 AM
  3. Disabled print toolbar and menu but Print Macro button cannot print also...
    By zein97 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2014, 01:42 PM
  4. Macro to increment a counter
    By tleee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2012, 07:53 PM
  5. macro with counter ?
    By Philip Wenting in forum Excel General
    Replies: 1
    Last Post: 10-01-2009, 11:09 AM
  6. [SOLVED] VBA to count rows in a sheet and increase counter on another sheet then print
    By lgj32 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2006, 07:10 AM
  7. Macro Use Counter
    By scantor145 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2005, 04:05 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