+ Reply to Thread
Results 1 to 3 of 3

Why cant i update the caption of this label? my code is here

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Mumbai, IN
    MS-Off Ver
    Office 365
    Posts
    97

    Why cant i update the caption of this label? my code is here

    Please Login or Register  to view this content.
    on userform initialize i have successfully added dynamic labels using cell values as captions as follows:

    Please Login or Register  to view this content.


    i have created a class event clslalbel to capture the click event of those dyanamic labels. as follows:
    Please Login or Register  to view this content.
    i have italicized the line i have a problem with, why isnt the caption updating . gid is a public variant. has it got anything to do with it????

    pls help

    if i call a msgbox when that condition is met for the result that i want, it i called properly

  2. #2
    Registered User
    Join Date
    09-27-2012
    Location
    Mumbai, IN
    MS-Off Ver
    Office 365
    Posts
    97

    Re: Why cant i update the caption of this label? my code is here

    NVM My stupidity.......the WIDTH of the LABEL....haha.....i increased it to 65.....turns out it had been showing all this while i just wasnt able to see what was wrong.....hahah..i feel like fool..but thanks guys ...

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Why cant i update the caption of this label? my code is here

    Glad to know that you have resolved your issue yourself.

    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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] How to update form label caption based off selection
    By cameron213 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2014, 03:22 PM
  2. code Label caption from cell text
    By chris85 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2011, 03:40 PM
  3. Label caption change... Run Code
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2009, 09:16 AM
  4. Dynamic Userform doesnt update label caption
    By Heresy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-10-2009, 11:59 AM
  5. Update label caption upon selecting Listbox item
    By munkayboi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2007, 04:55 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