+ Reply to Thread
Results 1 to 5 of 5

VBA cells to .html but with UTF8 encoding

  1. #1
    Registered User
    Join Date
    01-19-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    8

    VBA cells to .html but with UTF8 encoding

    Hey to All!

    I hav got the following problem. I use a macro for exporting cells to .html documents.
    The Problem is that afterwards i need to upload these documents into a company system, which doesnt recognise them because
    they are ANSI.

    I have read that I need to use Adobe.streams in order to export as UTF8, but I have no Idea how to integrate it to my code.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: VBA cells to .html but with UTF8 encoding

    The code you have does not appear to save the workbook in html format, it simply saves a workbook with .html as the file extension. You should be using:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-19-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: VBA cells to .html but with UTF8 encoding

    Thank you Rorya,

    but the encoding still is ANSI.

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow ADODB.Stream …


    Hi !

    Quote Originally Posted by sportbo View Post
    I have read that I need to use Adobe.streams in order to export as UTF8, but I have no Idea how to integrate it to my code.
    ADODB.Stream save normal text, not to a html format, samples to see on forums …
    But if you know the html language you can save the text incorporing html stuff via ADODB.Stream …

    If not, you can use the Excel feature Save As to first create the html file
    then compare with a correct html file what you need to add in your file, see with your IT or the Web guy …

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Where to start …


    Last point : documentation of ADODB is on MSDN website …

+ 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. Polish encoding with range to html format vba (utf-8)
    By jaryszek in forum Excel General
    Replies: 3
    Last Post: 10-26-2017, 05:08 AM
  2. Replies: 1
    Last Post: 05-23-2014, 05:44 AM
  3. [SOLVED] print text file with UTF8 encoding
    By dalerdd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2014, 11:14 AM
  4. Utf8 encoding
    By reikia2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2012, 03:05 PM
  5. Replies: 8
    Last Post: 06-16-2011, 11:49 AM
  6. HTML encoding
    By mwalker.web in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2006, 06:21 AM
  7. [SOLVED] Removal Of Style Encoding When Saving Spreadhseet At HTML
    By kennyg92 in forum Excel General
    Replies: 0
    Last Post: 08-17-2006, 04:25 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