我正在尝试自动将 Excel 导入 Stata。这是我的非工作示例。该错误向我表明,Stata 并未将程序参数评估为标量。我如何解决它?
scalar path = "C:\foo\data\"
scalar filename = "CompanyScores.xls"
scalar xlrange = "B3:AO149"
scalar sheet = "2012-2013 Scores"
scalar fullpath = path+"/"+filename
import excel fullpath, sheet(sheet) cellrange(xlrange) firstrow