Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

277
Views
Export Excel file as HTML [preferably via VBA]

So it was finally time for me to sign up here.. (:

I need to export an Excel file or preferrably a part of it to a newly created HTML file. Using VBA and PublishObjects.Add I have an export. However cells containing following special characters < > " turn out as &lt; &gt; &amp; in that HTML file. I don't want that. I would like to execute JavaScript contained in cells in the HTML file! It is just alerts (for now).

Is there a way to prevent special characters from being translated as shown above?

I could use VBA and open the HTML as text file to replace characters but I think its not a reliable solution. I probably need more than alerts in the future which would further complicate things (edit HTML header, add more complex scripts etc.). Are there better ways to export my file as HTML and include/ add JavaScript?

I tried different VBA tools from the web to have more control over HTML creation but none of them provided a good copy of my file. The file is rather complex.

The solution needs to be automated. Thanks for any suggestions!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!