Hi guys and girls,
using a MSXML2.XMLHTTP method, I get a website responsetext that I store in a s:tring.
This string (dimmed as "pres") contains crap like enters and tabs, that I want to remove by using the clean function.
If I store the first 32000 characters of the string in a cell (due to cell length limitation only 32000 characters), then use
it works fine.![]()
presclean = Application.Worksheetfuction.Clean(Trim(Range("A1").Value)))
However, I need to use the clean/trim function without storing the responsetext to a cell first.
If I do this :
it gives me an error : "Unable to get clean property of the Worksheetfunction Class" and I have no clue why.![]()
pres = pol.responsetext presclean = Application.WorksheetFunction.Clean(Trim(pres))
Any bright minds who could help me on this?
Thank you so much in advance!
Bookmarks