I've been trying to use Createobject(Excel.Application)<br><br>but after this how do I manipulate workbooks, sheets, populate data in the cells and save them from the vbscript.
Here is an example code. It opens excel, adds a workbook, then makes it visible. When you use the createobject, it defaults to visible = false. You can set the range and manipulate data as shown. It is very similar to VBA for the manipulation commands.<br><br> Set MSExcel = createobject("Excel.application"<br> MSExcel.Workbooks.add<br> MSExcel.visible = true<br> MSExcel.range("D1".columnwidth = 50<br> MSExcel.range("A1".activate<br> MSExcel.activecell.value = "A1"<br> MSExcel.activecell.offset(0,1).activate<br> MSExcel.activecell.value = "B1"<br><br>Hope that Helps<br><br>Doug
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.