Consulting

Results 1 to 3 of 3

Thread: How to put together caption

  1. #1
    VBAX Regular
    Joined
    Apr 2009
    Posts
    8
    Location

    How to put together caption

    Hi I would like to put into caption of button value form two cells.
    Cells (1,1) contains date for example 9:00:00 and cells(1,2) contains string for example HELLO. Then on surface of button will be 9:00:00 HELLO.
    How can I do it?
    Thank you for your help

    obivan

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Format(Cells(1,1).Value, "hh:mm:ss") & Cells(1,2).Value)
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Apr 2009
    Posts
    8
    Location
    Hi xld, thank a lot.
    obivan

Posting Permissions

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