Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Properties 1

Status
Not open for further replies.

stonemonolith

Programmer
Jul 22, 2006
4
Hi

I'm new to vbscript. I've seen several vbscripts on the net that open an Excel spreadsheet. I wanted to experiment to see if I could open another spreadsheet application (OpenOffice sCalc)

I finally got it to open using
Dim myObj
set myObj = CreateObject("Wscript.Shell")
myObj.Run """C:\Program Files\OpenOffice.org 2.1\program\sCalc.exe"""

Now I'm trying to add a value to the first cell, using myObj.Cells(A1).Value = ("Fiirst Name"), and I get an error message saying the Object does not support the property 'Cells'

Is there a way I can get a list of the properties that are available?
 
The method you opened sCalc is not exactly the same way that the Excel examples you have seen have been accessed. To be honest, I do not know if sCalcs exposes anything that you may be able to use from a vbscript stand point. You may want to check to see of OpenOffice has and SDK you can download that may contain information regarding automating it.

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top