P
pirmin
If I have the Appointment Dialog on the screen I can manually paste an
Excel Data-grid from the clipboard.
How do I this with VBA. My code is not able to paste -
Thanks for ideas and a line of code !
Set objOApp = New Outlook.Application
Set objAppt = objOApp.CreateItem(olAppointmentItem)
Set oExp = objOApp.Session.GetDefaultFolder(olFolderInbox).GetExplorer
With objAppt
.Display
.RequiredAttendees = "Addressee(s) Name(s)"
.Subject = "Subject of Meeting/Appointment"
.Importance = 2 ' high
.Location = "Location of Meeting"
' .Body = "Additional information to appear in body"
.MeetingStatus = 1
.ResponseRequested = True
'.Save 'Uncomment if you want message saved to your sent
items folder
'.Send
'Test if an inspector is active
If Not TypeName(myinspector) = "Nothing" Then
'Display subject of active inspector
MsgBox "The active item is " & myinspector.CurrentItem.Subject
End If
Set WordDoc = myinspector.WordEditor
*** not working
Excel Data-grid from the clipboard.
How do I this with VBA. My code is not able to paste -
Thanks for ideas and a line of code !
Set objOApp = New Outlook.Application
Set objAppt = objOApp.CreateItem(olAppointmentItem)
Set oExp = objOApp.Session.GetDefaultFolder(olFolderInbox).GetExplorer
With objAppt
.Display
.RequiredAttendees = "Addressee(s) Name(s)"
.Subject = "Subject of Meeting/Appointment"
.Importance = 2 ' high
.Location = "Location of Meeting"
' .Body = "Additional information to appear in body"
.MeetingStatus = 1
.ResponseRequested = True
'.Save 'Uncomment if you want message saved to your sent
items folder
'.Send
'Test if an inspector is active
If Not TypeName(myinspector) = "Nothing" Then
'Display subject of active inspector
MsgBox "The active item is " & myinspector.CurrentItem.Subject
End If
Set WordDoc = myinspector.WordEditor
*** not working