May 10, 2024
Outlook Forum Top Contributors:
April 9, 2024
Contribute to the Outlook forum!
Click here to learn more 💡
Please keep in mind that the Microsoft account recovery process is automated, so neither Community users, Microsoft moderators, nor Microsoft live support will be able to assist in the process. We recommend checking out the following resources for help in regaining access to your account:
· I can't sign in to my Microsoft account - Microsoft Support
· Help with the Microsoft account recovery form - Microsoft Support
· How to recover a hacked or compromised Microsoft account - Microsoft Support
February 27, 2024
Hello! Are you trying to recover or access your Microsoft Account?
Please keep in mind that the Microsoft account recovery process is automated, so neither Community users, Microsoft moderators, nor Microsoft live support will be able to assist in the process. We recommend checking out the following resources for help in regaining access to your account:
· I can't sign in to my Microsoft account - Microsoft Support
· Help with the Microsoft account recovery form - Microsoft Support
· How to recover a hacked or compromised Microsoft account - Microsoft Support
Outlook: Create a mail with VBA is broken when GetInspector is called
Report abuse
Thank you.
Reported content has been submitted
When I change Send to Display, the signature is still missing... unless I switch to HTMLbody. In any event, it used to work in old versions but is broken in the correct version, correct? I'll pass it along to support.
Diane Poremsky
M365 MVP, specializing in Outlook, Exchange, and Microsoft 365 apps.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
I'm using this as the body line:
OutlookMail.HTMLBody = "Mail created in VBA" & OutlookMail.HTMLBody
as the signature wasn't added using oldbody. or
Diane Poremsky
M365 MVP, specializing in Outlook, Exchange, and Microsoft 365 apps.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Here is an improved example without surpressing the error message:
Sub Create_Mail_in_Outlook()
Dim OutlookApp As Object
Dim OutlookMail As Object
Set OutlookApp = CreateObject("Outlook.Application")
Set OutlookMail = OutlookApp.CreateItem(0)
' insert your mail adress
OutlookMail.To = "..."
OutlookMail.Subject = "Test"
Dim myInspector As Object
Set myInspector = OutlookMail.GetInspector
Dim OldBody As String
OldBody = OutlookMail.Body
OutlookMail.Body = "Mail created in VBA" + OldBody
OutlookMail.Send
End Sub
When running an error message is shown from OutlookMail.Send
Run-Time Error 5
Invalid Procedure Call or Argument
With Outlook 365 version 2008 (16.0.12127.20638) no error occurred and the mail was sent
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
I passed it along to support, but it's too soon to know when it will be fixed.
Diane Poremsky
M365 MVP, specializing in Outlook, Exchange, and Microsoft 365 apps.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Hi Wolfgang,
I'm having the same problem, but in C# the error is "System.ArgumentException: Value does not fall within the expected range."
Hopping that MS fixes this error quick.
Also I found out that if you call myInspector.Close(olSave) then the send does not give the error but only if Outlook is running.
If it is closed AND doing a cold start (meaning it's not showing the outlook icon on the tray with the gear indicating that is begin externally accessed) it gives the following error "System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)"
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
I have an update from my contacts - it is due to a regression caused by smartlinks code. I don't have an ETA for a fix though.
My specialty is Outlook and Microsoft 365 issues.
https://www.slipstick.com
https://www.outlook-tips.net
Mark Yes below if it helped or resolved your issue.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.