Knowledgebase Home | Contact Knowledgebase Home| Contact
Search the Knowledgebase Browse by Category
When loading a template from Scripter, how do I use different worksheets for different curves?
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful

When loading a template from a script, only one worksheet can be named in the Open command. After the template is opened, each curve can be selected and the worksheet used can be changed. This example shows how to load the template with one worksheet and change the worksheet for one curve. The first curve ("Line/Symbol Plot 1") will still use the worksheet named in the Open command line.

'Opens Template
Set Plot = GrapherApp.Documents.Open (c:.grt", "c:.dat")
'Change worksheet of curve 2
Dim Graph1, Line2 As Object
Set Graph1 = Plot.Shapes.Item("Graph 1")
Set Line2 = Graph1.Plots.Item("Line/Symbol Plot 2")
Line2.worksheet = ("c:.dat")

Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
No attachments were found.
Post Comment for "When loading a template from Scripter, how do I use different worksheets for different curves?"
To post a comment for this question, simply complete the form below. Fields marked with an asterisk are required.
   Name:
   Email:
* Comment:
Continue
Powered by ActiveKB Knowledgebase Software

Home * Products * Gallery * Support * About Us * Register * Order * Demos