vbscript - Vbs on Excel Starter 2010: activex component can't create object Excel.Application -


i have new pc windows 7 , office starter 2010 pre-installed. if launch following simple vb script (from command line: cscript testscript.vbs):

dim xlapp set xlapp = createobject("excel.application") xlapp.visible = true set xlworkbooks = xlapp.workbooks set xlworkbook = xlworkbooks.open("c:\path\myfile.xls") xlworkbook.activesheet.rows("1:2").autofit xlapp.visible = false xlworkbook.save xlworkbook.close("c:\path\myfile.xls") xlapp.quit set xlapp = nothing 

it returns error: activex component can't create object 'excel.application'. don't understand if error due starter limitations (http://office.microsoft.com/en-us/starter-help/excel-features-that-are-not-fully-supported-in-excel-starter-ha010374501.aspx), , found dissenting opinions on web.

is there way make works using office starter version?

despite aged question, haved decided post following information other googlers.

since trying create instance of excel.application outside vba, there's chance of being succeeded if install updated version of microsoft excel viewer on target machine. allow access excel's api.

bear in mind, excel starter edition not support macros, along other important limitations.

cheers!


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -