+ Reply to Thread
Results 1 to 2 of 2

MHTML Table to .xlsx

  1. #1
    Registered User
    Join Date
    02-10-2021
    Location
    America
    MS-Off Ver
    2016
    Posts
    1

    MHTML Table to .xlsx

    Hello,

    First post and I'm trying to see if my task is even possible with minor VBA skills. Currently, we have a vendor that sends a list of machine setpoint changes every night in an email. It comes as an .MHTML file extension attachment. I have a script working to save the attachment to a folder on the network when the email arrives. The attachment is sent with the same name each night so the script assigns an identifier to the end of the name:

    MachineEventsCustom(1).mhtml
    MachineEventsCustom(2).mhtml
    etc.

    The next step would be to export the table from the MHTML file to a more usable file format like .xlsx.

    I have been trying to use the google machine but don't even know where to begin on this.

    Help?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: MHTML Table to .xlsx

    I have no experience with .MHTML files, but with Power Query, you can import web pages and .html files and then load them to excel. You may want to try this. Power Query is call Get and Transform Data in Excel 2016 and can be found on the Data Tab of the Ribbon.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. VBA to take data from cells in a number of XLSX files and paste them into a single XLSX
    By vancouver_ron in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-20-2020, 11:59 PM
  2. Replies: 0
    Last Post: 01-14-2016, 03:22 PM
  3. Replies: 1
    Last Post: 12-10-2013, 12:11 PM
  4. Replies: 6
    Last Post: 08-28-2012, 03:51 AM
  5. Problem loading mhtml file
    By fandecine in forum Excel General
    Replies: 0
    Last Post: 09-17-2009, 06:10 AM
  6. HTML versus MHTML pages
    By Scott Zierler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2005, 08:05 PM
  7. password protection of an MHTML Excel file
    By blcarter22 in forum Excel General
    Replies: 0
    Last Post: 04-14-2005, 01:06 PM

Tags for this Thread

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