Hi Everyone,
I'm trying to write a loop to bring in some Excel spreadsheets, but I'm having issues with the "$" symbol and I don't want to have to rename a bunch of spreadsheets manually.
I have something along the lines of US$SF2007.xls, US$SF2008.xls, ... , US$SF2017.xls (this is for example's sake, I actually have a bunch of areas and am creating a vector of areas to loop through within a forvalues loop). I think the $ is getting interpreted as a global. Does anyone have any solutions to this?
I'm trying to write a loop to bring in some Excel spreadsheets, but I'm having issues with the "$" symbol and I don't want to have to rename a bunch of spreadsheets manually.
I have something along the lines of US$SF2007.xls, US$SF2008.xls, ... , US$SF2017.xls (this is for example's sake, I actually have a bunch of areas and am creating a vector of areas to loop through within a forvalues loop). I think the $ is getting interpreted as a global. Does anyone have any solutions to this?
Comment