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. #3
    VBAX Regular
    Joined
    May 2018
    Posts
    50
    Location
    I put this in diese Outlook Sitzung

    Public Sub DateRed()
        Dim olInsp As Outlook.Inspector
        Dim wdDoc As Object
        Dim oRng As Object
        With Item
            .Display
            Set olInsp = .GetInspector
            Set wdDoc = olInsp.WordEditor
            Set oRng = wdDoc.Range
            oRng.Collapse 0
            oRng.Text = vbCr & Date & " - " & FormatDateTime(Time, 4) & ": "
            oRng.Font.Color = &HFF
            oRng.Collapse 0
            oRng.Select
        End With
    End Sub



    when I open a contact and run it it says Objekt benötigt
    Last edited by Aussiebear; 01-13-2025 at 12:33 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
  •