dcsimg
Results 1 to 5 of 5
  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2018
    Posts
    4

    Resolved [RESOLVED] Display date time stamp in text box

    Hi,

    I have a scenario in excel,in which I click a button (Eg: Account), it displays list of accounts.
    Along with this, I need to include a message which gives data time stamp.

    When Account button is clicked, Sub Acc_Upd will be called which inturn calls AccountDet and displays accounts
    and I get pop up with last refresh details. Instead of popup, I need &Now value in a different textbox.

    Can anyone suggest how can I get &Now updated in a different text box when we click 'Account' button.

    Sub Acc_Upd()

    Call AccountDet

    MsgBox "Last refresh was on " & Now

    Thanks in advance
    End Sub

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    21,742

    Re: Display date time stamp in text box

    That's an Office Development question. I'll ask a moderator to move it...

  3. #3
    Frenzied Member
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    1,127

    Re: Display date time stamp in text box

    Are you really wanting a text box updated, or a cell in a sheet?

    Just set the cell or text box data to Now().

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    39,933

    Re: Display date time stamp in text box

    Welcome to VBForums

    Thread moved from the 'VB.Net' forum to the 'Office Development/VBA' forum.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2018
    Posts
    4

    Re: Display date time stamp in text box

    Thank you.That solved my issue.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width