+ Reply to Thread
Results 1 to 4 of 4

VBA to notepad (.html) UTF-8 is this possible?

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    VBA to notepad (.html) UTF-8 is this possible?

    I have had experience with copying excel data to word with a macro, and saving as HTML format. But now I would like to do the following:
    Can VBA open an existing notepad file, clear all text and paste values from worksheet, then save and close the notepad file?
    I can't seem to find how to do this, so I have been going down the road of trying to open a new notepad file, pasting from worksheet and saving over using .html prefix, however I cannot find the right code to do this, as it would also need to be saved with UTF-8 encryption.

    Any help would be greatly appreciated
    P

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    What code did you use in Word?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VBA to notepad (.html) UTF-8 is this possible?

    Please Login or Register  to view this content.
    But All i get is gibberish when opening using a web browser - this is becasue of Words auto html format which is not what i want so i decided to go with notepad

    P

  4. #4
    Registered User
    Join Date
    01-15-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: VBA to notepad (.html) UTF-8 is this possible?

    Or can i save to natepad as html without the UTF encryption?

    P

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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