[Wtr-general] problem in opening a file

Bret Pettichord bret at pettichord.com
Mon Aug 21 12:36:24 EDT 2006


Zeljko Filipin wrote:
> Or you could put path to a variable
>
> path = "C:\demo\"
> workbook = excel.Workbooks.Open ("#{path}mation.xls")
>
This won't work. Backslashes inside double-quotes have special meaning. 
Either use forward slashes or single-quotes (or both) to avoid this problem.

Bret



More information about the Wtr-general mailing list