+ Reply to Thread
Results 1 to 2 of 2

Paste MSHTML.IHTMLElementCollection object in Reply email

  1. #1
    Registered User
    Join Date
    01-20-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Paste MSHTML.IHTMLElementCollection object in Reply email

    *****
    "Original" is an email in Inbox and has a table with last column unfilled.
    How do i paste "oElColl" in "Reply" ???

    *****

    Dim Reply As Outlook.MailItem
    Dim Original As Outlook.MailItem

    Set Original = Application.ActiveExplorer.Selection(1)

    Set Reply = Original.ReplyAll
    Reply.Subject = "RE: " & Original.Subject
    Reply.Display

    Dim oHTML As MSHTML.HTMLDocument: Set oHTML = New MSHTML.HTMLDocument
    Dim oElColl As MSHTML.IHTMLElementCollection
    With oHTML
    .Body.innerHTML = Original.HTMLBody
    Set oElColl = .getElementsByTagName("table")
    End With

    ' Code to fill the last column in oElColl

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Paste MSHTML.IHTMLElementCollection object in Reply email

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Reply to Email through Excel VBA
    By aaron.mendes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2014, 07:52 AM
  2. [SOLVED] Search Email And Add Reply To It
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-22-2014, 11:28 PM
  3. Using Excel VBA Macro to Reply to email in Outlook
    By thechancellor in forum Excel General
    Replies: 0
    Last Post: 06-19-2012, 09:40 PM
  4. [SOLVED] Reply to outlook email from excel script
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2006, 12:00 PM
  5. control outlook to reply to email
    By as_sass in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2005, 05:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1