Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3697788
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:54:09+00:00 2026-05-19T04:54:09+00:00

How do I copy an email to the clipboard and then paste it into

  • 0

How do I copy an email to the clipboard and then paste it into excel with the tables intact?

I am using Outlook 2007 and I want to do the equivalent of

"Click on email > Select All > Copy > Switch to Excel > Select Cell > Paste". 

I have the Excel Object Model pretty well figured out, but have no experience in Outlook other than the following code.

Dim mapi As NameSpace
Dim msg As Outlook.MailItem
Set mapi = Outlook.Application.GetNamespace("MAPI")
Set msg = mapi.Folders.Item(1).Folders.Item("Posteingang").Folders.Item(1).Folders.Item(7).Items.Item(526)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:54:09+00:00Added an answer on May 19, 2026 at 4:54 am

    I must admit I use this in Outlook 2003, but please see if it works in 2007 as well:

    you can use the MSForms.DataObject to exchange data with the clipboard. In Outlook VBA, create a reference to “Microsoft Forms 2.0 Object Library“, and try this code (you can of course attach the Sub() to a button, etc.):

    Sub Test()
    Dim M As MailItem, Buf As MSForms.DataObject
    
        Set M = ActiveExplorer().Selection.Item(1)
        Set Buf = New MSForms.DataObject
        Buf.SetText M.HTMLBody
        Buf.PutInClipboard
    
    End Sub
    

    After that, switch to Excel and press Ctrl-V – there we go!
    If you also want to find the currently running Excel Application and automate even this, let me know.

    There’s always a valid HTMLBody, even when the mail was sent in Plain Text or RTF, and Excel will display all text attributes conveyed within HTMLBody incl. columns, colors, fonts, hyperlinks, indents etc. However, embedded images are not copied.

    This code demonstrates the essentials, but doesn’t check if really a MailItem is selected. This would require more coding, if you want to make it work for calendar entries, contacts, etc. as well.

    It’s enough if you have selected the mail in the list view, you don’t even need to open it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to Copy selected Text from WordEditor(Body of Outlook Email) to another Form
I want to allow people using my app to email themselves a backup copy
I want visitors to be able to click on (or copy) an email address
I copy search results of Google and want to stick it on Excel now.
I want to copy a live production database into my local development database. Is
Is there a way using JavaScript to disable the ability to paste text into
How can I copy diff output ( diff old-version.cpp new-version.cpp ) into an Outlook
I want to export a list of email addresses ready to be copy and
I want to send email using SMTP client uiing microsft.net with C# as programming
When I copy source code to a word document or email, it would be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.