Welcome Guest Search | Active Topics | Members | Log In | Register

start updating automatically Options
Guest
Posted: Thursday, February 28, 2008 6:27:29 PM
Rank: Guest
Groups: Guest

Joined: 2/27/2008
Posts: 20
Points: -1,859
I am evaluating your software to use with a KepwareEx server package. I have successfully been able to view working OPC links. Is there a method to have your software start updating automatically when the file is first opened? When the computer re-boots it automatically runs an Excel file that has our OPC links within it. It would be nice if we didn't have to go in and start the updates again. Any help will be appreciated.
Resolvica Support Team
Posted: Thursday, February 28, 2008 6:28:18 PM
Rank: Member
Groups: Administration , Member

Joined: 2/28/2008
Posts: 20
Points: -37
Please copy the following macro to your workbook VBA ,

Dim isactivated As Boolean

Private Sub Worksheet_Activate()



If Not isactivated Then

isactivated = True

Application.Run "OPCEx3.xla!StartUpdate"

End If

End Sub


Please let me know if you need more information




helli
Posted: Thursday, July 31, 2008 10:56:24 AM
Rank: Newbie
Groups: Member

Joined: 7/31/2008
Posts: 1
Points: 3
Location: cologne
Hi,
I tried your solution and I am facing some problems:
1) when I open my excel file the event worksheet_activate is not triggered automatically.
When I trigger it by activating the worksheet via VBA I get the following
message: 'Only One OPCEx WoorkBook is allowed at a time. You won't be able to use OPCEx features in this WorkBook. Please close the current OPCEx WoorkBook and reopen this document to use OPCEx features'

Do you have an idea what I can do to prevent this message or what am doing wrong ?

Thanx in advance

Markus
admin
Posted: Monday, August 04, 2008 11:41:49 AM
Rank: Administration
Groups: Administration

Joined: 2/27/2008
Posts: 1
Points: -2,742
Please try to use the following macro.

Dim isactivated As Boolean
Private Sub Workbook_Activate()
If Not isactivated Then

isactivated = True

Application.Run "OPCEx3.xla!StartUpdate"

End If
End Sub



Make sure that you are not running any other OPCEx Excel worksheet.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.6 (NET v2.0) - 11/14/2007
Copyright © 2003-2008 Resolvica Inc.. All rights reserved.

13 queries (0.048 seconds, 6.73%).

yaf_pageload: 0.004
yaf_mail_list: 0.001
yaf_eventlog_create: 0.003
yaf_topic_info: 0.003
yaf_forum_list: 0.004
yaf_forum_listpath: 0.004
yaf_forum_listpath: 0.003
yaf_post_list: 0.021
yaf_usergroup_list: 0.003
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.000
yaf_usergroup_list: 0.000
yaf_active_listtopic: 0.001