+ Reply to Thread
Results 1 to 10 of 10

Label Creating Macro/VBA

  1. #1
    Registered User
    Join Date
    10-18-2014
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    30

    Label Creating Macro/VBA

    Hello and thank you in advance for any help that you can offer.

    In my job I have to print out thousands of labels in a day starting with 2 capital letters and 8 numbers with the corresponding bar code underneath in the next cell. e.g. AA00000001
    At the moment i have 2 options
    1. print each one out individually to get the format I want.
    2. write in column A the first number and have excel auto fill down with the bar codes in column B. doing it this way I don't get the format i want as I am using a zebra printer so I only get the bar code with no identifier.
    To get my bar code to work it has to have this as the cell contents ="*"&A1&"*" if the cell was A1 that I have my number in with the specific bar code I use which is 3 of 9 extended.

    So basically I need a macro that will print both the number on top with a bar code underneath start from one specific number and create so many at one time.

    This can be done by any means whether it is a loop macro that creates one and the prints it out then adds one and loops or it auto fills down and then I can print it out or any other way that it is available.

    Again thank you in advance for any help that you can offer me

    John Swift.
    Last edited by John Swift; 10-18-2014 at 07:02 AM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Label Creating Macro/VBA

    Bit confusing - can you supply a mock-up image of what you hope to get in Excel before it is printed?
    Martin

  3. #3
    Registered User
    Join Date
    10-18-2014
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    30

    Re: Label Creating Macro/VBA

    example.png

    this is an example of what I need to print along eith the code in cell a2 that is required to make the barcode I need

    thank you for your help

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Label Creating Macro/VBA

    Thanks but still a bit confused - would your desired workbook look like the attached? Note the example is just visual and doesn't have any macro code at present.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-18-2014
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    30

    Re: Label Creating Macro/VBA

    That is exactly it you read my mind if that is possible it would be perfect

    thank you very much

  6. #6
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Label Creating Macro/VBA

    Please have a look at the attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-18-2014
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    30

    Re: Label Creating Macro/VBA

    That is brilliant and just what I was looking for. However there is one slight problem and that is for the bar code to work it need to have no spaces in it it comes out like this ="*" & A1 & "*" when it needs to be ="*"&A1&"*" to work properly.

    Again I am truly thankful for your help.

  8. #8
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Label Creating Macro/VBA

    Slight modification attached.
    Attached Files Attached Files

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Label Creating Macro/VBA

    mrice code modified

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  10. #10
    Registered User
    Join Date
    10-18-2014
    Location
    Ontario, Canada
    MS-Off Ver
    2013
    Posts
    30

    Re: Label Creating Macro/VBA

    hello both and again thank you

+ 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. Creating a "Doughnut" with Label Values
    By jaredmccullough in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2014, 09:10 AM
  2. Replies: 6
    Last Post: 01-07-2014, 03:24 PM
  3. Replies: 1
    Last Post: 09-30-2013, 09:52 AM
  4. Replies: 3
    Last Post: 04-25-2012, 03:24 AM
  5. Creating a class module for dbl clicking label
    By fire_water in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2009, 10:58 AM

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