VBA in RSview32

yfcarer

Member
Join Date
Apr 2006
Location
Tianjin
Posts
82
Hi friends.

My "Trend View Display" in RSView32 should be working like this: when you change the selection in a combobox, the trend will get different appearance.

I have added a ComboBox in the display. At first, I put "Invoke Me.ComboBox1.Attitem("A")" in the commands in "Display Settings\Behavior\Startup", but it doesn't work. Then I put the same command in a Button action, it works. Anybody can give me an explain why the same code doesn't working in my first try?

Then I met another problem. How could I fulfill the following function:

when select "A" in Combobox1, then trend shows pen1;
when select "B" in Combobox1, then trend shows pen2;
when select "C" in Combobox1, then trend shows pen3;
etc.

It is easy to write the logic in VBA, but how could VBA connects its variable to the selection "A","B" or "C" in the combobox?

Thanks a lot.
 
Are you using the native Trending in RSView32, or are you using TrendX for trending within RSView32.

I feel you may get better results with TrendX

Describe what you mean by a combo box ?

By different appearance do you mean you will be changing the pen being displayed.
 

Similar Topics

Good friends, I'm new to the forum, I'm working with RSview32, someone can help me how to make a macro in VBA, to save some data in Excel. to...
Replies
6
Views
1,954
We were given RSView32 project files, for quoting, that will be converted to FTView SE. Unfortunately the project has VBA references that were...
Replies
9
Views
4,319
Hi, I got a RSview32 project from site with VBA scripts and trying to run on my local machine to make some graphical changes. VB scripts are used...
Replies
6
Views
3,495
Please somebody upload this manual on another site or forward me 51770 - Sample VBA: Exercise in migrating an RSView32 application with VBA to...
Replies
8
Views
4,913
Hello all, New to the forums here and glad to find this oasis of RSView/FactoryTalk info! I have a basic VB question I hope can be answered...
Replies
4
Views
2,308
Back
Top Bottom