VBA in FTView SE, regarding charts/spreadsheets

scarm

Member
Join Date
Nov 2011
Location
In my head
Posts
12
Hi guys,
I need someone with more VBA knowledge than myself. I'm stumped.
I have a display in SE with a Spreadsheet object and a Chart object. For the life of me, I can't manage to get the chart linked to the data in the spreadsheet.

Help file example:
Code:
Set c = ChartSpace1.Constants
[B]Set ChartSpace1.DataSource = Spreadsheet1.Object[/B]
ChartSpace1.Charts.Add ChartSpace1.Charts(0).Type = c.chChartTypeLineMarkers
ChartSpace1.Charts(0).SetData c.chDimCategories, 0, "a2:a28"
ChartSpace1.Charts(0).SetData c.chDimSeriesNames, 0, "b1"
ChartSpace1.Charts(0).SeriesCollection(0).SetData  c.chDimValues, 0, "b2:b28"
Perhaps I'm misunderstanding, but when I take the line in bold and apply it to my code, I get a type mismatch. My spreadsheet object named "SegmentData" and chart object named "CurveChart", so I tried
Code:
Set CurveChart.DataSource = SegmentData.Object
If I leave this particular line out, I get "
Any help or additional info is greatly appreciated
 

Similar Topics

Hi all. Currently I'm working on a VBa script for FTView. I would like to understand a bit better about some commands. 1) What are the...
Replies
3
Views
594
Hi all. I'm running a VBA code on my FTView which is actually working, but everytime I open the display that calls the VBA code, it throws the...
Replies
28
Views
1,794
Greetings, I have this question: How can I add a tag, in my case LS:0 {#5} (literal string of tag #5), to a variable using VBA? I couldn't find...
Replies
4
Views
894
Hello Every one, I need a help on vba code for getting data from MSSQL server 2014 to display in FTview SE client version 12 . Thanks. Please...
Replies
4
Views
1,808
I've been messing around with trying to find a way to clear all PlantPAx AOI latched alarms via the Alarm Banner or Summary objects. So far, I can...
Replies
2
Views
1,733
Back
Top Bottom