FactoryTalk View SE VBA Help

dsoden

Member
Join Date
May 2005
Posts
3
For trend charts, I can use an ActiveX Calendar control to select a date on a trend using the following code where "Trend" is the name of the trend chart:

Private Sub Calendar1_Click()
Trend.Scroll = False
Trend.XAxis.SetStartTimeAndSpan Calendar1.Value, 0, 0, 0, 150, 0, 0
End Sub

It works great so long as the calendar control is on the same display page as the trend. However, I'd like to have a button on a trend page that would open a popup page that contained the calendar control. That way the calendar control can be big and doesn't take up space on the trend page. You'd open the popup, click the date you want and then close it. Or have it close itself. All trends would have buttons that open the same popup calendar control.

I assume I'd need the popup button to pass information to the popup page so that "Trend" in the above code can be replaced with something that refers to the trend on the separate page. I don't know how to do this. I'm a PLC guy, not a VBA guy. Any help would be greatly appreciated :)
 
Best way to that is using a VBA form on a screen that is always loaded in the back ground. Search this site and you can find info on how to do that.
 
Thank you for the reply. I searched for VBA and Form which provided 66 results but couldn't find any that helped me understand what a form is or how to set it up.
 

Similar Topics

I'm creating an HMI that has a recipe with 288 data point. It has 3 pieces of data for 96 segments. I need help with VBA code to copy all 288...
Replies
0
Views
140
Hi, Can someone guide me through how to use FactoryTalk SE VB script to open communication with SQL Server? which command I can use? Are there...
Replies
2
Views
2,301
Hello group, I have been migrating a project from RSView 32 V7.6 to FactoryTalk View SE Local Station V12 over the last couple of days. All told...
Replies
0
Views
998
Anyone know how to change the mouse icon to something else using VBA? It looks like it can be done with VBA forms and based on the object the...
Replies
0
Views
2,218
Hi guys i have troubles getting the selected item properties in FTV Alarms and Events. I have this "Alarm and Event Summary" which displays my...
Replies
3
Views
4,430
Back
Top Bottom