+ Reply to Thread
Results 1 to 4 of 4

Trying to Update Userform Label with worksheet cells

  1. #1
    Registered User
    Join Date
    06-22-2013
    Location
    John,Doe
    MS-Off Ver
    Excel 2011
    Posts
    7

    Trying to Update Userform Label with worksheet cells

    I am trying to copy the text I created in the worksheet cells to the Userform and have it automatically update every time to the cells text changes in the worksheet. I can get it to work if I use the click event but I want it to change automatically. Any suggestions would be appreciated! Thanks

    Please Login or Register  to view this content.
    Last edited by bmoon171; 06-22-2013 at 06:43 PM. Reason: Proper Code

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,045

    Re: VBA Userform Help!

    If you want to update the label in the form when you update the cell in the worksheet, you need to reverse the process ... use a Worksheet Change event to monitor cell A2 and, when it changes, change the form.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-22-2013
    Location
    John,Doe
    MS-Off Ver
    Excel 2011
    Posts
    7

    Re: Trying to Update Userform Label with worksheet cells

    I am new to VBA, I tried reversing the change event but couldn't get it to work. Could you
    please go into more detail? Also, Is there a better way of going about this? Thanks

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Trying to Update Userform Label with worksheet cells

    Assuming that the useform is loaded as modeless then you can use change it programmatically like this:

    Please Login or Register  to view this content.
    abousetta
    Attached Files Attached Files
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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