I found this code somewhere and modified it, I cant remember where it originated but it works. It creates an ics file which you then attach to an email and send. This can then be imported into outlook
Dim DTSTART, dtEnd, strSubject, strLocation, strDesc, mymonth, myday, BuildVCalendar, dtstamp, stampmonth, stampday
Dim minushour As Integer 'difference in hours local time to GMT
Dim mehourstart As Integer ' start time of meeting
Dim mehourend As Integer 'end time of meeting
Dim texthourstart As String
Dim texthourend As String
Dim Start_date As Date
Dim End_date As Date
Dim mymonthend, mydayend
Start_date = Me.StartDate
End_date = Me.StartDate
'Note fix date/time as outlook needs date/time in GMT
'save to text file
DoCmd.GoToControl "Vcal"
Open "<temp path name>….\filename.ics" For Output As #1
'Print #1, Date ' This is for the date
'Print #1, Time ' This is for the time
Print #1, Me.VCal.text
Close #1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.