Consulting

Results 1 to 5 of 5

Thread: Solved: userform label format

  1. #1

    Solved: userform label format

    In cell G2 is a time formated value (i.e. 23:24). I'm not sure why this code is not displaying this value in my userform label. Currently the label displays 0.974999. Can someone assist. thanks

    [vba]
    TDay.Caption = Range("AG2")

    [/vba]

  2. #2
    disregard...i figured it out

    TDay.Caption = format(Range("AG2") ,"hh:mm")

  3. #3
    VBAX Regular
    Joined
    Feb 2011
    Posts
    75
    Location

    Mark it solved

    Hello,

    methinks, you should mark this thread as solved.

    Isabella

  4. #4
    How do I get the label to display 26:52 instead of 02:52.

    [VBA]TDay = Format(Range("AG2"), "HH:MM")[/VBA]

  5. #5
    VBAX Expert Tinbendr's Avatar
    Joined
    Jun 2005
    Location
    North Central Mississippi (The Pines)
    Posts
    993
    Location
    try "[h]:mm"

    David

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •