+ Reply to Thread
Results 1 to 4 of 4

Change the caption of labels within a collection

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    anamosa, iowa
    MS-Off Ver
    Excel 2007
    Posts
    32

    Change the caption of labels within a collection

    I have a userform that, on initialization, creates labels named "Entitlement1 Entitlement2" and so on, and adds them to a collection named "Staff_Totals". How can I reference those labels within a regular module?

  2. #2
    Valued Forum Contributor
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo
    MS-Off Ver
    2016 (365)
    Posts
    322

    Re: Change the caption of labels within a collection

    Userform1.Entitlement1.Caption = "Text" inside module
    Regards,
    Fábio Gatti

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    anamosa, iowa
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Change the caption of labels within a collection

    I've tried that but it says "Method or Data member not found".

  4. #4
    Valued Forum Contributor
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo
    MS-Off Ver
    2016 (365)
    Posts
    322

    Re: Change the caption of labels within a collection

    Could you please post your workbook? Or make a sample one with the problem?

+ 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] Need to change the caption of various labels inside a userform with a variable
    By navialivad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2014, 03:02 PM
  2. Change chart/pivot table numeric labels to associated text labels
    By petschek in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-07-2014, 05:32 PM
  3. Changing labels caption gives error
    By mjcordeiro in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-18-2012, 02:14 PM
  4. UserForm Caption Change
    By mrdoctor in forum Excel General
    Replies: 3
    Last Post: 01-13-2012, 03:36 AM
  5. Replies: 2
    Last Post: 12-23-2011, 11:04 AM
  6. 'Labels' Control in Excel (Labels Collection)?
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2010, 08:52 AM
  7. [SOLVED] [SOLVED] How to apply / position labels for a collection of charts
    By Faye in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-09-2006, 10:45 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