Tech Note 610 How to Refresh All Functions in ActiveFactory Workbook

Similar documents
This tech note will explain how to use the following parameters in Configurator General Parameters.

Tech Note 338 How to Change the ActiveFactory Reporting Website Default Install Location

Introduction. Configuration: Entity and OCO Modeling. Application Version: OCO General Configuration

Tech Note 743 Configuring Reporting Services 2008 Configuration for a New Host Name in Windows 2008 R2

8/22/13 Configuring Windows SharePoint Services for PEM v1.0 to Work with SuiteVoyager v2.6

Tech Note 751 Installing InBatch Report Contents for Wonderware Information Server (WIS)

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

1. Under Application Objects, open the $Tank object and then open the $TankDisplay as shown in Figure 1 (below).

Enabling Cross-Machine Distributed Transactions (via MSDTC)

Communication to End Device Going In and Out of Slow Poll Mode

Tech Note 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Tech Note 847 Installing Wonderware Information Server (WIS) on the Windows Server Window 7 64 and 32-bit Operating System

Tech Note 920 Resolving Disabled ActiveFactory Reporting Website for Wonderware System Platform R2

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

Tech Note 663 HMI Reports: Creating Alarm Database (WWALMDB) Reports

Tech Note 612 Upgrading DLL Version Mismatches Between CBM Solution and System Platform

To allow SQL Server Agent to trigger when a report is executed, we need to provide a set of report group types.

This Tech Note describes working with Microsoft Reporting Services in order to publish InBatch Reports to Wonderware Information Server.

Tech Note 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Introduction. Application Versions. Installing Virtual SMTP Server. Tech Note 692 Using Virtual SMTP Server for SCADAlarm Notifications

Note: Not all messages in the log are indicative of a problem. Contact Technical Support if questions arise.

Tech Note 957 Creating Custom Password Entry on Intermec-Supported Handhelds

Tech Note 1010 SQL Server Authentication and ArchestrA Network Account Restrictions When Installing Wonderware Historian

Tech Note 551 Configuring SQLMail or Database Mail for the Historian Event

Introduction. Notes. Important Considerations. Application Versions. Assumptions. 8/22/13 Setting Up Historian Servers for Tier-2 Summary Replication

Migrating QI 8.0 Admin and Process Databases from Microsoft Access to Microsoft SQL Server

Introduction. Symbol Script Timeout Setting. Sample MES Custom Code in Symbol Script. Application Versions. Sample Code

Tech Note 868 Troubleshooting Wonderware Software Resource Issues with Performance Monitor

Tech Note 912 Using Alternate TCP Port Numbers with Modbus Ethernet DAServer

8/22/13 Configuring the SST5136SD PCI Card Using the New SSTDHP IO Server V8.1 or the DASDHPlus Server

Part I: Setting up Bristol Babcock's OPC Server

This Tech Note provides step-by-step procedures to install Microsoft SQL Server 2012 on a 32- or 64-bit Operating System.

How To Migrate Qi Analyst To A New Database On A Microsoft Access (Windows) From A New Version Of Qi.Io To A Newer Version Of A New Qi 8.0 (Windows 7.3

Tech Note 652 Changing an ArchestrA Symbol's Custom Property Expression or Reference in Runtime

Introduction. Tech Note 884 Setting Up Historian Servers for Tier-2 Summary Replication

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Introduction. Application Versions. Assumptions. Delete $$ExportTempFolders. Tech Note 930 Wonderware System Platform Clean-up Guide

Instead, use the following steps to update system metadata that is stored in sys.servers and reported by the system function

Tech Note 400 Configuring Remote Connections for Windows 2000/2003/XP

This Tech Note provides detailed guidelines and options for defragmenting and maintaining your production databases.

Tech Note 1042 Solving Historian Memory Issue with SQL Server MemToLeave Configuration

How To Write A Summary On A Historyorian Server

Industrial Application Server Redundancy: Troubleshooting Guidelines

8/23/13 Configuring SIDirect DAServer to Communicate with S7 PLC Over TCP Connection

Introduction. Issues. Symptoms. Application Versions. Case 1: Deploy an ArchestrA Object - UDO4DevUsers_001_001 - Has Error Messages

Tech Note 813 Troubleshooting Wonderware Information Server (WIS) Part Four: Client License Release

Introduction. Back Up the Runtime Database. Application Versions

Note: This Tech Note was formerly titled Installing Microsoft SQL Server 2008 for Wonderware Historian v10.0.

Word 2010: Mail Merge to with Attachments

Microsoft Office Access 2007 Basics

Tech Note 1035 Moving the Historian Runtime Database to Another Machine Using SQL Server 2012

Implementing the system using these guidelines should improve your system performance for a large database while your database grows in size.

Using Network Application Development (NAD) with InTouch

Tech Note 905 Troubleshooting Wonderware Information Server (WIS) Part Six: ArchestrA Graphics No Live-Data

Introduction. Application Versions. Compatibility and System Requirements. Firewall and DCOM Settings

Mail Merge Creating Mailing Labels 3/23/2011

RIT Installation Instructions

Working with Macros and VBA in Excel 2007

Excel 2013 What s New. Introduction. Modified Backstage View. Viewing the Backstage. Process Summary Introduction. Modified Backstage View

Excel Reports User Guide

Database Program Instructions

This Tech Note describes modem connections using DAServers and provides some guidelines on how to make the modem connection work.

Scripting with CAMMaster And Visual Basic.NET

How to Build a SharePoint Website

Construction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry

Why the need for set of rules in Microsoft Outlook?

Avery Wizard: Using the wizard with Microsoft Word. This is a simple step-by-step guide showing how to use the Avery wizard in word

SUMMARY Moderate-High: Requires Visual Basic For Applications (VBA) skills, network file services skills and interoperability skills.

8/23/13 Configuring the Wonderware SECS-II/GEM Host Creator (SERIAL-RS232)

ArchestrA Log Viewer User s Guide Invensys Systems, Inc.

Excel 2007 Introduction to Macros

Microsoft Office Access 2007 which I refer to as Access throughout this book

Tech Note 213 Finding Memory Leaks in Windows 95/98/98SE Using System Monitor

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Microsoft. Outlook ADVANCED FEATURES AND FUNCTIONS

Personalizing your Access Database with a Switchboard

Siemens Applied Automation Page 1 11/26/03 9:57 PM. Maxum ODBC 3.11

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

How To Create A Powerpoint Intelligence Report In A Pivot Table In A Powerpoints.Com

Excel Reports and Macros

Hummingbird Enterprise

Pipeliner CRM Phaenomena Guide Add-In for MS Outlook Pipelinersales Inc.

Pipeliner CRM Phaenomena Guide Sales Pipeline Management Pipelinersales Inc.

LabVIEW Report Generation Toolkit for Microsoft Office

How to use MS Excel to regenerate a report from the Report Editor

SAP BUSINESS OBJECT ANALYSIS FOR EXCEL DEVELOPER GUIDE

Wireless Network Adapter Installation

How to create labels using a Microsoft Access data file?

A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc Mastering Outlook Made Easy for Lawyers CPE Edition v.2.

Installing the TCP/IP Network Protocol

How to Create and Manage Alerts

UF Health SharePoint 2010 Introduction to Content Administration

Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro.

Sample- for evaluation purposes only! Advanced Excel. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc.

Export the address book from the Blackberry handheld to MS Outlook 2003, using the synchronize utility in Blackberry Desktop Manager.

Computer Skills: Levels of Proficiency

Instructions to operating forms created in MSWord and Excel

Tommy B. Harrington 104 Azalea Drive Greenville, NC

Transcription:

Tech Note 610 How to Refresh All Functions in ActiveFactory Workbook All Tech Notes, Tech Alerts and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information. Topic#: 002366 Created: May 2009 Updated: May 2011 Introduction In ActiveFactory Workbook, the array size of a function does not automatically resize when cells recalculate. The refresh function provided by the ActiveFactory workbook library provides a routine that will automatically resize an array for you. This technote provides an example on how to run a macro to refresh all functions within a workbook. Application Versions Solution ActiveFactory Workbook 9.0 and later. Microsoft Excel 2007 and later. 1. Open Excel. Use the new workbook as a template. With MS Excel 2007, you must enable the Developer tab to insert buttons. 2. Click the Medallion (upper left) and click Excel Options (Figure 1 below). https://wdnresource.wonderware.com/support/kbcd/html/1/t002366.htm 1/5

FIGURE 1: CLICK EXCEL OPTIONS 3. Click the Show Developer Tab in the Ribbon option. https://wdnresource.wonderware.com/support/kbcd/html/1/t002366.htm 2/5

FIGURE 2: ENABLE THE DEVELOPER TAB IN MICROSOFT EXCEL 2007 FROM EXCEL OPTIONS 4. Click OK to save your changes. 5. From the main menu, click Developer > Insert > Form Controls. Insert a Button Form control that will be used to refresh all functions (Figure 3 below). FIGURE 3: INSERT A BUTTON FORM CONTROL ONTO THE WORKSHEET 6. After adding a button to the form, you are prompted to assign a new macro to this button. 7. Click New to assign the new macro. 8. Add the following code to the workbook source as shown in Figure 4 (below): Sub RefreshAllFormulas() Dim i As Integer Dim CurCell As Object Dim lastcellfx As Object MousePointer = fmmousepointerhourglass https://wdnresource.wonderware.com/support/kbcd/html/1/t002366.htm 3/5

Total = 0 For i = 1 To ActiveWorkbook.Sheets.Count Subtotal = 0 On Error Resume Next Sheets(i).Activate Selection.SpecialCells(xlCellTypeFormulas, 23).Select For Each CurCell In Selection If lastcellfx.formula <> CurCell.Formula Then CurCell.Activate mnurefreshselection Set lastcellfx = CurCell End If Next CurCell Next i MousePointer = fmmousepointerdefault Sheets(1).Activate End Sub FIGURE 4: VB SCRIPT EDITOR Note: Do not call the mnurefreshselection function from the SheetCalculate Event in order to automate this function. Doing so within Excel creates a Race Condition (infinite calculation loop). 6. With the macro for the button, add the line to call this function RefreshAllFormulas. 7. In the VBA editor, click Tools/References. 8. Browse for the reference ActiveFactoryWorkbook and click it. https://wdnresource.wonderware.com/support/kbcd/html/1/t002366.htm 4/5

FIGURE 5: VBAPROJECT REFERENCES 8. Click OK to save your changes and close the editor. Now whenever you make dynamic changes to the start- and end time of a function, you can click on the button you created in order to resize all arrays. Click the following icon to view this file in.pdf format: C. Azer Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, C A 92630. There is also technical information on our software products at Wonderware Technical Support. For technical support questions, send an e-mail to support@wonderware.com. Back to top 2013 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying, recording, broadcasting, or by anyinformation storage and retrieval system, without permission in writing from Invensys Systems, Inc. Terms of Use. https://wdnresource.wonderware.com/support/kbcd/html/1/t002366.htm 5/5