hellothere4
New Member
- Joined
- May 9, 2011
- Messages
- 17
Can someone explain why when I try to use this in cells it does nothing and what I can fo to fix it?
edit: sorry it actually looks like this but without spaces:
ConvertHTML = Replace(ConvertHTML, "& amp;", "&")
ConvertHTML = Replace(ConvertHTML, "& lt;", "<")
ConvertHTML = Replace(ConvertHTML, "& gt;", ">")
ConvertHTML = Replace(ConvertHTML, "& nbsp;", " ")
ConvertHTML = Replace(ConvertHTML, "& iexcl;", "¡")
ConvertHTML = Replace(ConvertHTML, "& curren;", "¤")
Function ConvertHTML(TheString As String) As String
ConvertHTML = TheString
ConvertHTML = Replace(ConvertHTML, """, Chr(34))
ConvertHTML = Replace(ConvertHTML, "&", "&")
ConvertHTML = Replace(ConvertHTML, "<", "<")
ConvertHTML = Replace(ConvertHTML, ">", ">")
ConvertHTML = Replace(ConvertHTML, " ", " ")
ConvertHTML = Replace(ConvertHTML, "¡", "¡")
ConvertHTML = Replace(ConvertHTML, "¤", "¤")
ConvertHTML = Replace(ConvertHTML, "¢", "¢")
ConvertHTML = Replace(ConvertHTML, "£", "£")
ConvertHTML = Replace(ConvertHTML, "¥", "¥")
ConvertHTML = Replace(ConvertHTML, "¦", "¦")
ConvertHTML = Replace(ConvertHTML, "§", "§")
ConvertHTML = Replace(ConvertHTML, "¨", "¨")
ConvertHTML = Replace(ConvertHTML, "©", "©")
ConvertHTML = Replace(ConvertHTML, "ª", "ª")
ConvertHTML = Replace(ConvertHTML, "«", "«")
ConvertHTML = Replace(ConvertHTML, "¬", "¬")
ConvertHTML = Replace(ConvertHTML, "*", "*")
ConvertHTML = Replace(ConvertHTML, "®", "®")
ConvertHTML = Replace(ConvertHTML, "™", "™")
ConvertHTML = Replace(ConvertHTML, "¯", "¯")
ConvertHTML = Replace(ConvertHTML, "°", "°")
ConvertHTML = Replace(ConvertHTML, "±", "±")
ConvertHTML = Replace(ConvertHTML, "²", "²")
ConvertHTML = Replace(ConvertHTML, "³", "³")
ConvertHTML = Replace(ConvertHTML, "´", "´")
ConvertHTML = Replace(ConvertHTML, "µ", "µ")
ConvertHTML = Replace(ConvertHTML, "¶", "¶")
ConvertHTML = Replace(ConvertHTML, "·", "·")
ConvertHTML = Replace(ConvertHTML, "¸", "¸")
ConvertHTML = Replace(ConvertHTML, "¹", "¹")
ConvertHTML = Replace(ConvertHTML, "º", "º")
ConvertHTML = Replace(ConvertHTML, "»", "»")
ConvertHTML = Replace(ConvertHTML, "¼", "¼")
ConvertHTML = Replace(ConvertHTML, "½", "½")
ConvertHTML = Replace(ConvertHTML, "¾", "¾")
ConvertHTML = Replace(ConvertHTML, "¿", "¿")
ConvertHTML = Replace(ConvertHTML, "×", "×")
ConvertHTML = Replace(ConvertHTML, "÷", "÷")
ConvertHTML = Replace(ConvertHTML, "À", "À")
ConvertHTML = Replace(ConvertHTML, "Á", "Á")
ConvertHTML = Replace(ConvertHTML, "Â", "Â")
ConvertHTML = Replace(ConvertHTML, "Ã", "Ã")
ConvertHTML = Replace(ConvertHTML, "Ä", "Ä")
ConvertHTML = Replace(ConvertHTML, "Å", "Å")
ConvertHTML = Replace(ConvertHTML, "Æ", "Æ")
ConvertHTML = Replace(ConvertHTML, "Ç", "Ç")
ConvertHTML = Replace(ConvertHTML, "È", "È")
ConvertHTML = Replace(ConvertHTML, "É", "É")
ConvertHTML = Replace(ConvertHTML, "Ê", "Ê")
ConvertHTML = Replace(ConvertHTML, "Ë", "Ë")
ConvertHTML = Replace(ConvertHTML, "Ì", "Ì")
ConvertHTML = Replace(ConvertHTML, "Í", "Í")
ConvertHTML = Replace(ConvertHTML, "Î", "Î")
ConvertHTML = Replace(ConvertHTML, "Ï", "Ï")
ConvertHTML = Replace(ConvertHTML, "Ð", "Ð")
ConvertHTML = Replace(ConvertHTML, "Ñ", "Ñ")
ConvertHTML = Replace(ConvertHTML, "Ò", "Ò")
ConvertHTML = Replace(ConvertHTML, "Ó", "Ó")
ConvertHTML = Replace(ConvertHTML, "Ô", "Ô")
ConvertHTML = Replace(ConvertHTML, "Õ", "Õ")
ConvertHTML = Replace(ConvertHTML, "Ö", "Ö")
ConvertHTML = Replace(ConvertHTML, "Ø", "Ø")
ConvertHTML = Replace(ConvertHTML, "Ù", "Ù")
ConvertHTML = Replace(ConvertHTML, "Ú", "Ú")
ConvertHTML = Replace(ConvertHTML, "Û", "Û")
ConvertHTML = Replace(ConvertHTML, "&UUml;", "Ü")
ConvertHTML = Replace(ConvertHTML, "Ý", "Ý")
ConvertHTML = Replace(ConvertHTML, "Þ", "Þ")
ConvertHTML = Replace(ConvertHTML, "ß", "ß")
ConvertHTML = Replace(ConvertHTML, "à", "à")
ConvertHTML = Replace(ConvertHTML, "á", "á")
ConvertHTML = Replace(ConvertHTML, "â", "â")
ConvertHTML = Replace(ConvertHTML, "ã", "ã")
ConvertHTML = Replace(ConvertHTML, "ä", "ä")
ConvertHTML = Replace(ConvertHTML, "å", "å")
ConvertHTML = Replace(ConvertHTML, "æ", "æ")
ConvertHTML = Replace(ConvertHTML, "ç", "ç")
ConvertHTML = Replace(ConvertHTML, "è", "è")
ConvertHTML = Replace(ConvertHTML, "é", "é")
ConvertHTML = Replace(ConvertHTML, "ê", "ê")
ConvertHTML = Replace(ConvertHTML, "ë", "ë")
ConvertHTML = Replace(ConvertHTML, "ì", "ì")
ConvertHTML = Replace(ConvertHTML, "í", "í")
ConvertHTML = Replace(ConvertHTML, "î", "î")
ConvertHTML = Replace(ConvertHTML, "ï", "ï")
ConvertHTML = Replace(ConvertHTML, "ð", "ð")
ConvertHTML = Replace(ConvertHTML, "ñ", "ñ")
ConvertHTML = Replace(ConvertHTML, "ò", "ò")
ConvertHTML = Replace(ConvertHTML, "ó", "ó")
ConvertHTML = Replace(ConvertHTML, "ô", "ô")
ConvertHTML = Replace(ConvertHTML, "õ", "õ")
ConvertHTML = Replace(ConvertHTML, "ö", "ö")
ConvertHTML = Replace(ConvertHTML, "ø", "ø")
ConvertHTML = Replace(ConvertHTML, "ù", "ù")
ConvertHTML = Replace(ConvertHTML, "ú", "ú")
ConvertHTML = Replace(ConvertHTML, "û", "û")
ConvertHTML = Replace(ConvertHTML, "ü", "ü")
ConvertHTML = Replace(ConvertHTML, "ý", "ý")
ConvertHTML = Replace(ConvertHTML, "þ", "þ")
ConvertHTML = Replace(ConvertHTML, "ÿ", "ÿ")
End Function
edit: sorry it actually looks like this but without spaces:
ConvertHTML = Replace(ConvertHTML, "& amp;", "&")
ConvertHTML = Replace(ConvertHTML, "& lt;", "<")
ConvertHTML = Replace(ConvertHTML, "& gt;", ">")
ConvertHTML = Replace(ConvertHTML, "& nbsp;", " ")
ConvertHTML = Replace(ConvertHTML, "& iexcl;", "¡")
ConvertHTML = Replace(ConvertHTML, "& curren;", "¤")
Function ConvertHTML(TheString As String) As String
ConvertHTML = TheString
ConvertHTML = Replace(ConvertHTML, """, Chr(34))
ConvertHTML = Replace(ConvertHTML, "&", "&")
ConvertHTML = Replace(ConvertHTML, "<", "<")
ConvertHTML = Replace(ConvertHTML, ">", ">")
ConvertHTML = Replace(ConvertHTML, " ", " ")
ConvertHTML = Replace(ConvertHTML, "¡", "¡")
ConvertHTML = Replace(ConvertHTML, "¤", "¤")
ConvertHTML = Replace(ConvertHTML, "¢", "¢")
ConvertHTML = Replace(ConvertHTML, "£", "£")
ConvertHTML = Replace(ConvertHTML, "¥", "¥")
ConvertHTML = Replace(ConvertHTML, "¦", "¦")
ConvertHTML = Replace(ConvertHTML, "§", "§")
ConvertHTML = Replace(ConvertHTML, "¨", "¨")
ConvertHTML = Replace(ConvertHTML, "©", "©")
ConvertHTML = Replace(ConvertHTML, "ª", "ª")
ConvertHTML = Replace(ConvertHTML, "«", "«")
ConvertHTML = Replace(ConvertHTML, "¬", "¬")
ConvertHTML = Replace(ConvertHTML, "*", "*")
ConvertHTML = Replace(ConvertHTML, "®", "®")
ConvertHTML = Replace(ConvertHTML, "™", "™")
ConvertHTML = Replace(ConvertHTML, "¯", "¯")
ConvertHTML = Replace(ConvertHTML, "°", "°")
ConvertHTML = Replace(ConvertHTML, "±", "±")
ConvertHTML = Replace(ConvertHTML, "²", "²")
ConvertHTML = Replace(ConvertHTML, "³", "³")
ConvertHTML = Replace(ConvertHTML, "´", "´")
ConvertHTML = Replace(ConvertHTML, "µ", "µ")
ConvertHTML = Replace(ConvertHTML, "¶", "¶")
ConvertHTML = Replace(ConvertHTML, "·", "·")
ConvertHTML = Replace(ConvertHTML, "¸", "¸")
ConvertHTML = Replace(ConvertHTML, "¹", "¹")
ConvertHTML = Replace(ConvertHTML, "º", "º")
ConvertHTML = Replace(ConvertHTML, "»", "»")
ConvertHTML = Replace(ConvertHTML, "¼", "¼")
ConvertHTML = Replace(ConvertHTML, "½", "½")
ConvertHTML = Replace(ConvertHTML, "¾", "¾")
ConvertHTML = Replace(ConvertHTML, "¿", "¿")
ConvertHTML = Replace(ConvertHTML, "×", "×")
ConvertHTML = Replace(ConvertHTML, "÷", "÷")
ConvertHTML = Replace(ConvertHTML, "À", "À")
ConvertHTML = Replace(ConvertHTML, "Á", "Á")
ConvertHTML = Replace(ConvertHTML, "Â", "Â")
ConvertHTML = Replace(ConvertHTML, "Ã", "Ã")
ConvertHTML = Replace(ConvertHTML, "Ä", "Ä")
ConvertHTML = Replace(ConvertHTML, "Å", "Å")
ConvertHTML = Replace(ConvertHTML, "Æ", "Æ")
ConvertHTML = Replace(ConvertHTML, "Ç", "Ç")
ConvertHTML = Replace(ConvertHTML, "È", "È")
ConvertHTML = Replace(ConvertHTML, "É", "É")
ConvertHTML = Replace(ConvertHTML, "Ê", "Ê")
ConvertHTML = Replace(ConvertHTML, "Ë", "Ë")
ConvertHTML = Replace(ConvertHTML, "Ì", "Ì")
ConvertHTML = Replace(ConvertHTML, "Í", "Í")
ConvertHTML = Replace(ConvertHTML, "Î", "Î")
ConvertHTML = Replace(ConvertHTML, "Ï", "Ï")
ConvertHTML = Replace(ConvertHTML, "Ð", "Ð")
ConvertHTML = Replace(ConvertHTML, "Ñ", "Ñ")
ConvertHTML = Replace(ConvertHTML, "Ò", "Ò")
ConvertHTML = Replace(ConvertHTML, "Ó", "Ó")
ConvertHTML = Replace(ConvertHTML, "Ô", "Ô")
ConvertHTML = Replace(ConvertHTML, "Õ", "Õ")
ConvertHTML = Replace(ConvertHTML, "Ö", "Ö")
ConvertHTML = Replace(ConvertHTML, "Ø", "Ø")
ConvertHTML = Replace(ConvertHTML, "Ù", "Ù")
ConvertHTML = Replace(ConvertHTML, "Ú", "Ú")
ConvertHTML = Replace(ConvertHTML, "Û", "Û")
ConvertHTML = Replace(ConvertHTML, "&UUml;", "Ü")
ConvertHTML = Replace(ConvertHTML, "Ý", "Ý")
ConvertHTML = Replace(ConvertHTML, "Þ", "Þ")
ConvertHTML = Replace(ConvertHTML, "ß", "ß")
ConvertHTML = Replace(ConvertHTML, "à", "à")
ConvertHTML = Replace(ConvertHTML, "á", "á")
ConvertHTML = Replace(ConvertHTML, "â", "â")
ConvertHTML = Replace(ConvertHTML, "ã", "ã")
ConvertHTML = Replace(ConvertHTML, "ä", "ä")
ConvertHTML = Replace(ConvertHTML, "å", "å")
ConvertHTML = Replace(ConvertHTML, "æ", "æ")
ConvertHTML = Replace(ConvertHTML, "ç", "ç")
ConvertHTML = Replace(ConvertHTML, "è", "è")
ConvertHTML = Replace(ConvertHTML, "é", "é")
ConvertHTML = Replace(ConvertHTML, "ê", "ê")
ConvertHTML = Replace(ConvertHTML, "ë", "ë")
ConvertHTML = Replace(ConvertHTML, "ì", "ì")
ConvertHTML = Replace(ConvertHTML, "í", "í")
ConvertHTML = Replace(ConvertHTML, "î", "î")
ConvertHTML = Replace(ConvertHTML, "ï", "ï")
ConvertHTML = Replace(ConvertHTML, "ð", "ð")
ConvertHTML = Replace(ConvertHTML, "ñ", "ñ")
ConvertHTML = Replace(ConvertHTML, "ò", "ò")
ConvertHTML = Replace(ConvertHTML, "ó", "ó")
ConvertHTML = Replace(ConvertHTML, "ô", "ô")
ConvertHTML = Replace(ConvertHTML, "õ", "õ")
ConvertHTML = Replace(ConvertHTML, "ö", "ö")
ConvertHTML = Replace(ConvertHTML, "ø", "ø")
ConvertHTML = Replace(ConvertHTML, "ù", "ù")
ConvertHTML = Replace(ConvertHTML, "ú", "ú")
ConvertHTML = Replace(ConvertHTML, "û", "û")
ConvertHTML = Replace(ConvertHTML, "ü", "ü")
ConvertHTML = Replace(ConvertHTML, "ý", "ý")
ConvertHTML = Replace(ConvertHTML, "þ", "þ")
ConvertHTML = Replace(ConvertHTML, "ÿ", "ÿ")
End Function
Last edited: