+ Reply to Thread
Results 1 to 6 of 6

Display Cell Value on UserForm Label

  1. #1
    Registered User
    Join Date
    07-31-2008
    Location
    United States
    Posts
    38

    Display Cell Value on UserForm Label

    Hi,

    Anyone knows how to display a cell value from worksheet to Userform Label?
    I have a worksheet with cell range O3 which contains a time value like 00:16:00 and I would like to display that value using label on my Userform. Also, I would like that label on my Userform to be updated as well each time the cell value on column O row 3 is being changed. I appreciate any ideas. thanks

    Regards,

    Burke

  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
    Hello Burke,

    To copy a cell value to a UserForm Label...
    Please Login or Register  to view this content.
    As for the auto-updating, will the user be changing the cell's value or something else?

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    07-31-2008
    Location
    United States
    Posts
    38
    Hi Leith,

    Thank you very much for replying. As for your question
    Quote Originally Posted by leith
    As for the auto-updating, will the user be changing the cell's value or something else?
    The cell value automatically change itself once any of the columns I have changes. Say if I have the time value of 12:00:00 on column A and 12:15:00 on column B result is 00:15:00 which is in Column C. Column C updates when column A and B are being changed. But only a particular cell value is being changed. I have tried your code and the result I got is 1.111111111 not sure why. here is the code I wrote:
    Please Login or Register  to view this content.
    Any idea what's causing it to display 1.111111? The cell value on the worksheet is a time value.

    Regards,

    Burke

  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
    Hello Burke,

    I can't reproduce your problem. I added a UserForm with a Label and placed the same code in the Initialize event. The caption displayed the time value and not a number.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    07-31-2008
    Location
    United States
    Posts
    38
    Hi Leith,

    My bad...I have a code placed on the Userform_Activate and I remove it and voila! The correct value appeared. Thank you so much for your assistance and quick answer.

    Regards,

    Burke

  6. #6
    Registered User
    Join Date
    07-31-2008
    Location
    United States
    Posts
    38
    Hi Leith,

    By the way, how does the auto update works in this manner?

    Regards,

    Burke

+ 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. VLOOKUP-If cell is empty display text
    By nigelog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2008, 07:24 AM
  2. How to display the last cell with data from an Access table
    By AussieExcelUser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2007, 10:46 PM
  3. Replies: 18
    Last Post: 10-11-2007, 04:19 AM
  4. Cell to display one of twelve cells that have data..
    By kAustin79 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2007, 12:43 AM
  5. macro to display formatting of an individual cell
    By ppete83606 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-18-2007, 12:16 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