• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

convert characters in excel sheet to web-page html

mdavid

Member
Hi, I need help to write a vba routine to convert special characters in an excel sheet - such as ampersand (&) , quotes (") and apostrophe (') to their valid html equivalent on a web-page, I also need to replace all CrLf combinations with a space.
Thanks for your help
 
Thanks Chihiro,
I'm a little inexperienced in vba, so need a little help applying this.
I'm using excel 2016. Which specific characters do I need to encode for a webpage? and how would I apply the encoding to all rows in the worksheet?
Your help's much appreciated.
 
I'd recommend uploading sample workbook if you need further help. With desired output as well.

Other than that, you really don't need VBA for this as it is worksheet function that is called via Application.FunctionName.

Ex: If A1 holds string that you want to convert to url encoded string...
=URLEncode(A1)
 
Back
Top