+ Reply to Thread
Results 1 to 4 of 4

Create a label from within my VBA code.

  1. #1
    Registered User
    Join Date
    04-27-2013
    Location
    Bradenton,florida
    MS-Off Ver
    Excel 2007
    Posts
    40

    Create a label from within my VBA code.

    When running a particular routine I may need up to 100's of new User Form labels. Is there a way to create labels on the fly and what will there names be.
    Thank you very much.

    JoeBBB

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Create a label from within my VBA code.

    Hello joebbb,

    Because you said you may need hundreds of labels, I am not sure what you mean by label. Are you referring to an ActiveX label to placed on the UserForm or are you referring to printing labels from a UserForm?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-27-2013
    Location
    Bradenton,florida
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Create a label from within my VBA code.

    I wish to place an ActiveX or Regular Label on my userform - I normally do it by using the toolbox.
    Thank you for your reply I should have been more precise.

    Thank you
    JoeBBB

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Create a label from within my VBA code.

    Hello JoeBBB,

    Honestly, I cannot understand why you would to add a hundred or more labels on the fly (dynamically) to your UserForm. The logistics of placement would become a nightmare. Can you show an example of how the UserForm would look? Of course not with a hundred labels but enough to provide a good idea of what you want to accomplish.

+ 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. VBA create label with slideindex
    By bentod in forum PowerPoint Programing
    Replies: 3
    Last Post: 01-28-2019, 03:50 AM
  2. Create pdf and label
    By Jeffro2p in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2016, 04:33 PM
  3. Create Label and print with excel
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2016, 08:55 AM
  4. With a move label macro, prevent label from moving onto another label
    By SocratesJC in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-09-2014, 12:34 AM
  5. Create a Triangle in a label
    By frankish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2012, 08:03 AM
  6. create a sub label
    By skitols in forum Excel General
    Replies: 1
    Last Post: 05-28-2009, 12:18 PM
  7. Replies: 0
    Last Post: 10-06-2006, 09:05 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