WinWrap CreateObject("Excel.Application") Multiple Instances -
not sure how many people know winwrap basic language supports .net framework. problem is. hoping out there know language.
i using communicate excel 2010. extracting data proprietary data format , spitting out excel. following execute when no additional instances of microsoft excel 2010 active during script run.
xexcel = createobject("excel.application") xbook = xexcel.workbooks.open(xlfilepath) xsheet = xbook.worksheets(“sheet1”) xexcel.visible = false xsheet.cells(1,1).value = "study name" however, if additional excel 2010 instance activated manually user during following script run, script errors out.
xexcel = createobject("excel.application") xbook = xexcel.workbooks.open(xlfilepath) xsheet = xbook.worksheets(“sheet1”) xexcel.visible = false xsheet.cells(1,1).value = "study name" loop the guys @ winwrap createobject() in winwrap simple code calls cocreateinstance api. sort of lost there. can me understand how create multiple excel instances.
edit runtime 50290 application specific error.
have tried getobject?
dim objexcel object on error resume next set objexcel = getobject(, "excel.application") objexcel 'do end
Comments
Post a Comment