WinCC: How to VBS call VBA macro

Apirakps

Member
Join Date
May 2011
Location
Bangkok
Posts
1
I a new for WinCC Flexible. I use the WinCC version 7.
I have tried to create a graphic screen and add the Button on
the screen, then add action OnClick for this button.
How I write the VBS code to call VBA macro method ?

Please kindly help...:(
 
The first thing to know is that not all panels support scripting, the more basic panels don't.

Scripts are stored in the scripts folder in the project tree and can then be associated with events such as a button click.

See attached picture.

Nick

Scripts.jpg
 
WinCC or WinCC Flexible ?
Anyway, WinCC supports VBS and C scripts. WinCC Flexible supports VBS scripts only. No VBA support.
You can call external programs, but then you cannot link them with internal tags, apart from command line parameters.
 

Similar Topics

Hello, I just started learning WinCC V8.0 3 days ago, so I'm still new to how everything works in this program. I've created a pop-up with a...
Replies
2
Views
668
Hello everyone. I'm trying to export data to excel from Wincc. My code is global action that executed every second that create excel filer per...
Replies
1
Views
5,714
Hello all, I have written a VBS script to read a group of tags, and put the values and tag name etc into a text file when I press a button on one...
Replies
1
Views
1,872
Hi, In my Plant i have PCS7 (WinCC V6.0+SP4) System.( one ES/OS and One OS )... I need Shift Report (every 8 Hours ) using VBS script or Default...
Replies
1
Views
2,232
Hi I am trying to vary the number of decimal places via a script (MP377) Dim obj Set obj =...
Replies
0
Views
1,306
Back
Top Bottom