Hi, I have a problem with “Microsoft Excel”;
How can I put a “Single Quote” in a cell?
Values:
Regel.i = 1 (temporary value).
ZipCode_City.s = “5223 ER |s-Hertogenbosch” (temporary value).
Replace “|” through “’” ( chr(124) replaced by chr(39) ).
Must be: “5223 ER ’s-Hertogenbosch”
Example:
ExcelObject\SetProperty("Cells( " + Str(Regel) + ", 11) = " + "'" + ReplaceString(ZipCode_City, "|", "'") + "'")
Any comments appreciated.
Single Quotes in "Microsoft Excel"
-
- Enthusiast
- Posts: 143
- Joined: Fri Mar 29, 2013 4:55 pm
- Location: The Netherland
-
- Enthusiast
- Posts: 143
- Joined: Fri Mar 29, 2013 4:55 pm
- Location: The Netherland
Re: Single Quotes in "Microsoft Excel"
Problem solved:
ExcelObject\SetProperty("Cells( " + Str(Regel) + ", 11) = " + "'" + ReplaceString(ZipCode_City, "|s", "$0027s") + "'")
Little_Man
ExcelObject\SetProperty("Cells( " + Str(Regel) + ", 11) = " + "'" + ReplaceString(ZipCode_City, "|s", "$0027s") + "'")
Little_Man