Writing strings using pagesave
Posted: Wed Apr 23, 2014 7:36 am
Hi there. I'm trying to use pagesave to transfer a mix of strings and series to excel, but the strings are giving me some trouble.
It seems that if I try to save either more than one string or if the string isn't in the first position after the @keep statement, it won't save. So this runs:
pagesave(type=excelxml) "U:\Templates.xlsx" range="Raw" @smpl 2000 2002 @keep "hello" gdp
But these don't:
pagesave(type=excelxml) "U:\Templates.xlsx" range="Raw" @smpl 2000 2002 @keep gdp "hello"
pagesave(type=excelxml) "U:\Templates.xlsx" range="Raw" @smpl 2000 2002 @keep "hello" "there"
Is there any way to get around this? Thanks.
It seems that if I try to save either more than one string or if the string isn't in the first position after the @keep statement, it won't save. So this runs:
pagesave(type=excelxml) "U:\Templates.xlsx" range="Raw" @smpl 2000 2002 @keep "hello" gdp
But these don't:
pagesave(type=excelxml) "U:\Templates.xlsx" range="Raw" @smpl 2000 2002 @keep gdp "hello"
pagesave(type=excelxml) "U:\Templates.xlsx" range="Raw" @smpl 2000 2002 @keep "hello" "there"
Is there any way to get around this? Thanks.