Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Excel macro worked great with Outlook, need update help for Windows 10 Mail App

Excel macro worked great with Outlook, need update help for Windows 10 Mail App

Excel macro worked great with Outlook, need update help for Windows 10 Mail App


I have an Excel macro ( Worked great with Outlook for years ) which generated an email message within Excel and sent it to Outlook.

Now, we have new employees using Windows 10 Mail App and not Outlook. Can someone point me in a direction of where
I can find resources regarding updating macros from Outlook to Windows 10 Mail app? Here's the mail code..

htmlstring1 = Range("$E$7").Value & "-" & Range("$I$7").Value 'Email job number
htmlstring2 = "Part number: " & Range("$L$7") 'Email body part Number
htmlstring3 = "Part name: " & Range("$E$9") 'Email body description
htmlstring4 = "Customer: " & Range("$I$11").Value 'Email customer id
htmlstring5 = "Designed by: " & Range("$E$11").Value 'Email designer ID
htmlstring6 = "Release date: " & Range("$M$11") 'Email request date
htmlstring7 = "Click on link below to open design release form."
htmlstring8 = MyUNCPathandFilename ' Email body release file link
htmlstring9 = Range("$E$13").Value
htmlstring10 = Range("$E$15").Value
Select Case htmlstring10
Case "Company 1"
htmlstring11 = ""
Case "Company 2"
htmlstring11 = " - Outsourced"
Cclist = Cclist + " ;manager@company.com"
End Select
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = ToList
.Cc = Cclist
.BCC = ""
.Subject = "Company Corporation... " & Range("$E$7").Value & "-" & Range("$I$7").Value & " FIXTURE DESIGN INITIAL RELEASE." & htmlstring11
.HTMLBody = _
"<b><font size=3 color=black>" & htmlstring1 & " design is released for build.</font></b><br>" _
& "<b><font size=3 color=Green>Initial release.</font></b><br>" _
& "<font size=3 color=black>Releasing: " & htmlstring9 & "</font><br>" _
& "<font size=3 color=black>Build source: </font>" & "<b><font size=3 color=Red>" & htmlstring10 & "</font><b><br><br>" _
& htmlstring3 & "<br>" _
& MyCommentsHtml _
& htmlstring2 & "<br>" _
& htmlstring4 & "<br><br>" _
& htmlstring7 & "<br>" _
& "<a href='" & htmlstring8 & "'> " & htmlstring8 & "</a><br><br>" _
& htmlstring6 & "<br>" _
& htmlstring5 & "<br>" _
& "<font size=3 color=black>Design Engineering Department</font><br>" _
& "<img src='K:\V5 LIBRARY\START MODES\Release templates\companylogo.png'>" & "<br>"
End With
Set OutMail = Nothing
Set OutApp = Nothing

RE: Excel macro worked great with Outlook, need update help for Windows 10 Mail App

Don't think the new default mail app even supports VBA like this (is there a reference in excel for the app that you can enable, check in VBE under references)?

Quick web search pops up a few older discussions that suggests it is not possible.


RE: Excel macro worked great with Outlook, need update help for Windows 10 Mail App

Good morning!

Thank you for your replies!
I did look into the VBE under the references but did not see anything.
Closest I saw is shown here in the picture

I did see some older posts like Agent666 mentioned.

Also, I developed a work-around until I come up with other solution. Rather than Excel sending all the HTML
to Outlook email I wrote out the HTML to a file onto users desktop using the " Print #FileNum " code.
From there we can copy/paste; to list, cc list, subject line, body info into a Windows 10 Mail new mail.
I know this is kind-a awkward but.. It will keep things moving forward until we find a better solution.

Thank you!

RE: Excel macro worked great with Outlook, need update help for Windows 10 Mail App

As stated in the link I provided, Windows Mail is only for legacy support and is descended from Outlook Express, neither of which support VBA. Nevertheless, it has an API, but you need to have someone familiar with programming in C++ to really make that work


Developer Audience
The Microsoft Visual C++ class-based interface is designed for use by C/C++ programmers. Familiarity with Component Object Model (COM) is required. Additionally, familiarity with the Windows graphical user interface and message-driven architecture may be helpful.

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

RE: Excel macro worked great with Outlook, need update help for Windows 10 Mail App

Thank you and I understand more of what the situation is.
Been doing a lot of reading and so forth.
Right now it appears that we will make do as best as we can until we upgrade to Microsoft 365.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close