G
gary.cassidy
I have written a series of Word "boilerplate" letters. In one, a
custom dialog box including a calendar control "captures" the date the
user selects and writes it to a letter asking clients to attend an
interview. The time for the interview is entered by the user in a text
box. This too is entered in the letter however it is not validated in
any way. The section of those routines look like this
;Capture Date
Private Sub ctlCalendar_DateClick(ByVal DateClicked As Date)
datIntDate = Format(ctlCalendar.Value, "dddd, mmm d, yyyy")
lblDate.Caption = "Interview Date: " & vbCrLf & datIntDate
txtInterviewTime.SetFocus
End Sub
; Write Date in letter
With ActiveDocument
.Bookmarks("datIntDate").Range _
.InsertBefore datIntDate
.Bookmarks("datIntTime").Range _
.InsertBefore txtInterviewTime.Text & "."
End With
One of my co-workers came to me wondering if it was possible to have
the date automatically placed in Outlook once the letter is written.
My routines have all been very simple so I don't even know where to
begin. If it's fairly simple, I would appreciate any pointers in the
right direction.
Thanks
Gary
custom dialog box including a calendar control "captures" the date the
user selects and writes it to a letter asking clients to attend an
interview. The time for the interview is entered by the user in a text
box. This too is entered in the letter however it is not validated in
any way. The section of those routines look like this
;Capture Date
Private Sub ctlCalendar_DateClick(ByVal DateClicked As Date)
datIntDate = Format(ctlCalendar.Value, "dddd, mmm d, yyyy")
lblDate.Caption = "Interview Date: " & vbCrLf & datIntDate
txtInterviewTime.SetFocus
End Sub
; Write Date in letter
With ActiveDocument
.Bookmarks("datIntDate").Range _
.InsertBefore datIntDate
.Bookmarks("datIntTime").Range _
.InsertBefore txtInterviewTime.Text & "."
End With
One of my co-workers came to me wondering if it was possible to have
the date automatically placed in Outlook once the letter is written.
My routines have all been very simple so I don't even know where to
begin. If it's fairly simple, I would appreciate any pointers in the
right direction.
Thanks
Gary