Help or Information about Microsfot Excel Aplication Objet model

  • Thread starter Thread starter Alonso Vilela
  • Start date Start date
A

Alonso Vilela

Now I know how create object (VFP) and do something but I want more
information about object tree and sintax or Examples.

I now most common object are:

oxl = createobjet("Excel.application")

oxl.application
oxl.workbooks.
oxl.Sheets.

Thanks
 
You are missing the heirarchy of the objects. The syntax you provided will
not work. The application contains workbooks which in turn contain worksheets
which in turn contain ranges. So you need something more like

oxl.workbooks("Mybook").Worksheets("MySheet").Range("A1")

You can not get to the range directly without specifying the book and sheet.
the same is true of the sheet. You can not have

oxl.worksheet

because you have not specified the book.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top