Results 1 to 9 of 9

Thread: Code to put Date & Time at the bottom of a user Contact form in OL 2010

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    May 2018
    Posts
    50
    Location

    Question Code to put Date & Time at the bottom of a user Contact form in OL 2010

    Hi
    I have this code to put Date & Time at the bottom of a user Contact form in OL 2010 and put the cursor there.
    the code ist started with a button in the form (vba or vbscript?)

    Sub Datum_Click()
        Item.Body = Item.Body & vbCrLf & Date() & " - " & FormatDateTime(Time,4) & ": "
        Set objWSHShell = CreateObject("WScript.Shell")
        objWSHShell.SendKeys("{TAB 11}")
        objWSHShell.SendKeys("^{End}")
        objWSHShell.SendKeys("^{backspace}")
    It would be great if this line would appear in Red in the form.

    Can You pls assist?
    Last edited by Aussiebear; 01-13-2025 at 12:32 PM.

Posting Permissions

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