KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG

Size: px
Start display at page:

Download "KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG"

Transcription

1 Document Number: IX_APP00113 File Name: SpreadsheetLinking.doc Date: January 22, 2003 Product: InteractX Designer Application Note Associated Project: GetObjectDemo KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG While precautions have been taken in the preparation of this note, CTC and the author assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. This document is a tutorial on the following topics: What is DDE? What does the GetObject function do? Lesson 1: Setting up Excel for linking to InteractX Lesson 2: How to display tag data from InteractX in Excel Lesson 3: How to write tag data from Excel into InteractX Lesson 4: How to launch Excel from InteractX Runtime Lesson 5: How to start and stop tag data updates from InteractX within Excel Lesson 6: Applying what you learned What is DDE? Dynamic Data Exchange is an established protocol for exchanging data between Microsoft Windows-based programs. The DDE protocol is a set of messages and guidelines that sends messages between applications that share data. It uses shared memory to exchange data between applications. Applications can use the DDE protocol for one-time data transfers and for continuous exchanges in which applications send updates to one another as new data becomes available. DDE is most useful for data exchanges that do not require ongoing user interaction. Usually, an application provides a method for the user to establish the link between the applications exchanging the data. Once that link is established, the applications exchange data without further user involvement. DDE can be used to implement a broad range of application features for example: Linking to real-time data, such as to stock market updates Performing data queries between applications, such as a spreadsheet querying a database for accounts past due What does the GetObject function do? The GetObject function is a powerful tool that, simply stated, is used to return a reference to an object provided by an ActiveX component. That object is frequently associated with a document or file. In this case, the object we are interested in discussing is our HMI Application object. The HMI Application object is only available for reference while the InteractX Runtime system is running. Page: 1

2 The GetObject function s syntax is: GetObject([pathname] [,class]), where Pathname Variant (String). The full path and name of the file containing the object to retrieve. This is an optional parameter. If pathname is omitted, class is required. Class Variant (String). A string representing the class of the object. The class argument uses the syntax appname.objecttype and has these parts: Appname Variant (String). The name of the application providing the object. This is required. Objecttype Variant (String). The type or class of object to create. This is required. For example: Dim MyApp As HMI.Application appname Set MyApp = GetObject(, HMI.Application ) objecttype class Use the GetObject function when there is a current instance of the object or if you want to create the object with a file that is already loaded. The following series of steps and examples will help demonstrate the GetObject functionality more clearly. Lesson 1: Setting up Excel for linking to InteractX After launching Excel, click on the Tools item in the main menu. Place the mouse over Macro to expand its options, and then select Visual Basic Editor. This action will launch the Microsoft Visual Basic Editor. Page: 2

3 Next, click on the Tools item in the main menu of the Microsoft Visual Basic Editor and select the References option. In the References dialog box, find the HMI 1.0 Type Library. There may be two separate instances listed in the selection box. Highlight them one at a time to check the Location description at the bottom. The correct Library is the one showing a location path in the directory where InteractX is installed. Select this instance of the HMI 1.0 Type Library by checking the box to the left and clicking the OK button. Page: 3

4 In the Project Explorer window to the left, double click on the Sheet1 (Sheet1) option to open the Code window. You can also highlight the Sheet1 (Sheet1) option and click View, then Code from the main menu. Lesson 2: How to display tag data from InteractX in Excel Set up a simple InteractX application with an Exit button, a Maintained button, and a Numeric Display on a panel. Assign tag1 to the Numeric Display s output. Assign the _HMI_ShowFrame system tag to the Maintained button s input and output. Finally, set up the Communications to use the Simulator device driver. In the Tag Editor, configure tag1 with a ramp function to simulate rapid value changes. Use an address such as: Channel1.Device1.ramp(100,0,100,1). You are now ready to write some sample VB code that will allow you to display tag1 s values in both the Numeric Display in Runtime and in your Excel worksheet. Don t forget to reference the HMI 1.0 Type Library in Excel s VB Editor, as we described before. After you finish entering the code, make sure you save it and then close the Excel application. It may be helpful to save your workbook in the same folder as the InteractX application you created above. Start by declaring tag1 as a variable. The WithEvents keyword specifies that GetObject.xls is an object variable used to respond to events triggered by our InteractX application. We are linking the tag in Excel with the tag in InteractX. By declaring it WithEvents, it will now appear in the Object dropdown control in the top left. Dim WithEvents tag1 As HMI.Tag Select the Worksheet option from the leftmost dropdown control, then Activate from the one on the right. The code will be automatically inserted like this: Private Sub Worksheet_Activate() Next, we will use some simple error handling for the purposes of this lesson. Page: 4

5 Now we are ready to apply the GetObject function. We are also checking whether InteractX Runtime is running or not. We will add a simple message box as a reminder that Runtime should be launched before executing the code. Dim App As HMI.Application Set App = GetObject(, "HMI.Application") If App Is Nothing Then MsgBox "InteractX Runtime is not running." We will now retrieve the tag data from InteractX and make sure it is linked to our tag in Excel before ending the sub-routine. Else Set tag1 = App.Tags("tag1") Select the tag1 option from the leftmost dropdown control, then ChangeValue from the one on the right. The code will be automatically inserted in a separate section. Private Sub tag1_changevalue(byval NewValue As Variant) We again use our simple form of error handling. The goal in this last part of the code is to link events in InteractX to events in the worksheet. When the value of tag1 changes in Runtime, it will also change in the worksheet. The updated values will be displayed in cell B1. Range("B1").Value = NewValue Your finished product should look something like this: Dim WithEvents tag1 As HMI.Tag Private Sub Worksheet_Activate() Dim App As HMI.Application Set App = GetObject(, "HMI.Application") If App Is Nothing Then MsgBox "InteractX Runtime is not running." Else Set tag1 = App.Tags("tag1") Private Sub tag1_changevalue(byval NewValue As Variant) Range("B1").Value = NewValue Page: 5

6 You are now ready to test it out. Launch Runtime of your application. You should see the Numeric Display tool quickly counting up to 100 and resetting itself back to 0. Press the _HMI_ShowFrame Maintained button and resize your window so that part of your desktop is visible. Launch Excel and open the workbook where you wrote your VB script. Simply opening your workbook will not run your code. In this example, you must activate your worksheet to execute the code. You may do so by clicking on the Sheet2 tab and clicking back on the Sheet1 tab, thus activating it. Now you should see that cell B1, as we specified in the code, displays the same tag values as the Numeric Display in Runtime. Lesson 3: How to write tag data from Excel into InteractX Set up another simple InteractX application with an Exit button, a Maintained button, a Numeric Display, and a Message Display on a panel. Assign tag1 to the Numeric Display s output and tag2 to the Message Display s output. Assign the _HMI_ShowFrame system tag to the Maintained button s input and output, like before. Open a new Excel workbook, launch the VB Editor and remember to reference the HMI 1.0 Type Library. With the sample VB code below, the tag data you enter in the Excel worksheet will also be written to the tags in your InteractX application. You will then see your tag values displayed on the tools in Runtime. With this example, you will be able to enter a numeric value for the Numeric Display and a string value for the Message Display directly into Excel. After you finish entering the code, make sure you save it, then close the Excel application, but not before saving your workbook in the same folder as the InteractX application. Start by declaring tag1 and tag2 as variables. We are now associating the tags in Excel with the tags in InteractX. Dim tag1 As HMI.Tag Dim tag2 As HMI.Tag Select the Worksheet option from the leftmost dropdown control, then Activate from the one on the right. The code will be automatically inserted like this: Private Sub Worksheet_Activate() Some simple error handling for this lesson Use the GetObject function and check whether or not InteractX Runtime is running. The message box will let you know if it is not. Dim App As HMI.Application Set App = GetObject(, "HMI.Application") If App Is Nothing Then MsgBox "InteractX Runtime is not running." We will now link the tags in Excel to the tags in InteractX. Else Set tag1 = App.tags("tag1") Set tag2 = App.tags("tag2") Page: 6

7 Select the Worksheet option in the leftmost dropdown above, then Change in the dropdown to the right. The code will be automatically inserted like this: Private Sub Worksheet_Change(ByVal Target As Range) The code below will detect if there is a change in the content of cell B1 and ensure that our tag1 variable is initialized. If both of these conditions are true, then the new value is written to tag1, which the Numeric Display will then reflect in Runtime. If Target.Count = 1 Then If Target = Range("B1") And Not (tag1 Is Nothing) Then tag1.value = Target.Value Similarly, we check for a change in the content of cell B2 and make sure that our tag2 variable is initialized. If both conditions hold true, then this new value will be written to tag2 and shown in the Message Display. ElseIf Target = Range("B2") And Not (tag2 Is Nothing) Then tag2.value = Target.Value Your finished product should look like this: Dim tag1 As HMI.Tag Dim tag2 As HMI.Tag Private Sub Worksheet_Activate() Dim App As HMI.Application Set App = GetObject(, "HMI.Application") If App Is Nothing Then MsgBox "InteractX Runtime is not running." Else Set tag1 = App.tags("tag1") Set tag2 = App.tags("tag2") Private Sub Worksheet_Change(ByVal Target As Range) If Target.Count = 1 Then If Target = Range("B1") And Not (tag1 Is Nothing) Then tag1.value = Target.Value ElseIf Target = Range("B2") And Not (tag2 Is Nothing) Then tag2.value = Target.Value Page: 7

8 Let s test it out. Launch Runtime of your application. Press the _HMI_ShowFrame Maintained button and resize your window so that part of your desktop is visible. Launch Excel and open the workbook where you wrote your VB script. You will have to activate your worksheet, like in the previous example, by clicking on the Sheet2 tab and then clicking back on the Sheet1 tab. In your worksheet, click on cell B1 and enter a number between 0 and 100. You should see the Numeric Display in Runtime reflect this value as well. Now, click on cell B3 and enter a word, such as hello. The Message Display in Runtime should update to reflect the string you entered. Lesson 4: How to launch Excel from InteractX Runtime The next two lessons are optional and enhance the code we learned above by adding some useful features. In the first one, we will add a button to our panel and configure it to launch the Excel workbook that links to the InteractX application in Runtime. Open the InteractX application you created for Lesson 3 and enable VBA for that panel. Add a Momentary button, right mouse click on it to bring up the context sensitive menu, or CSM, and select the View Code option. This action causes the VB Editor to launch and automatically enters the ButtonPressed event for the Momentary button. It is helpful to rename your button to something more descriptive or indicative of its function. Private Sub LaunchExcel_ButtonPressed() We will now use the GetObject function to retrieve an instance of the Excel Workbook object associated with the worksheet we previously created. In other words, we are using the GetObject function to get a reference to a specific Microsoft Excel worksheet. In this example, we are using the pathname parameter of the GetObject function. The following code employs a shortcut for the pathname which relies on the desired Excel workbook existing in the InteractX application folder. Application.Path returns the path of the InteractX application currently running and the last part appends the name of the desired Excel workbook, found in the application folder. Dim WorkBook As Object Set WorkBook = GetObject(Application.Path & "GetObject.xls") You could also use the entire path of the workbook as the pathname parameter of the GetObject function, especially if you had saved your workbook somewhere other than the InteractX application folder. Simply add quotation marks around the path, like this: Dim WorkBook As Object Set WorkBook = GetObject("C:\Program Files\InteractX\ Applications\GetObjectDemo\ GetObject.xls") The next line of code will tell Excel to become visible. We use the worksheet s Application property to make Microsoft Excel visible by invoking its Visible property. This property can be set to either True or False and thus show or hide the object. WorkBook.Application.Visible = True Page: 8

9 We also want to tell the Excel to continue running after our variables go out of scope by making sure the UserControl property is True, otherwise Microsoft Excel will quit when the last object in the session is released. This happens because when the UserControl property of an object is False, the object is released when the last reference to the object is released. WorkBook.Application.UserControl = True We will use the Activate method in order to bring our Excel workbook to the front of the z-order. One useful example of this is if you were running InteractX Runtime in full screen mode and placed focus on it. You would no longer be able to view the Excel workbook that you launched, as it would go to the background. Through the Activate method, we could place focus on the workbook and bring it to the foreground simply by clicking on our original Momentary button. WorkBook.Application.Windows("GetObject.xls").Activate The last part of the code simply launches Microsoft Excel. We prefer to do this at the end so that, once Excel is launched, the window that comes to the front has already found and opened the specified workbook. The AppActivate function activates and changes focus to the specified application window. We tell it what to activate by specifying the title displayed in the title bar of the application window, which in this case is Microsoft Excel. AppActivate "Microsoft Excel" Your finished product should look like this: Private Sub LaunchExcel_ButtonPressed() Dim WorkBook As Object Set WorkBook = GetObject(Application.Path & " GetObject.xls") WorkBook.Application.Visible = True WorkBook.Application.UserControl = True WorkBook.Application.Windows("GetObject.xls").Activate AppActivate "Microsoft Excel" In order to test it, launch Runtime of your application. Press the newly created LaunchExcel button. You should see the specified Excel workbook come to the foreground in a new window. Place focus back on your InteractX Runtime panel and you should see the Excel window hide in the background. Press the LaunchExcel button again and our Excel workbook window comes to the foreground again. Lesson 5: How to start and stop tag data updates from InteractX within Excel In this lesson, we are going to add some code to help us start and stop the tag data updates on the worksheet. By doing so, we will not have to switch focus to a different worksheet and back to activate the code. We can easily control when the worksheet should update with the tag data and when it should not. You may use the InteractX application you created in Lesson 2, but you should open a new Excel workbook and save it in the application folder. Enter the word START in cell D1 and STOP in cell E1. Once you launch Excel s VB Editor, remember to reference the HMI 1.0 Type Library. Page: 9

10 Declare GetObject.xls using the WithEvents keyword in order to make it an object variable responding to events triggered by our InteractX application. It will now appear in the Object dropdown control in the top left. Dim WithEvents tag1 As HMI.Tag Select the Worksheet option in the leftmost dropdown above, then SelectionChange in the dropdown to the right. The code will be automatically inserted like this: Private Sub Worksheet_SelectionChange(ByVal Target As Range) We detect if there is a change in the selection of cells in the worksheet. In other words, clicking or highlighting different cells. If the specific cell D1, or START, is clicked on, then our code will run. Clicking on cell D1 will execute the GetObject function to see if InteractX Runtime is running and to get tag data. With Target.Count =1, we ensure that the code will only execute when the single cell D1 is clicked on and not when it is part of a group of highlighted cells. If Target.Count = 1 Then If Target = Range("D1") Then Dim App As HMI.Application Set App = GetObject(, "HMI.Application") Link the tags in the Excel worksheet to the tags in InteractX to retrieve tag data: Set tag1 = App.Tags("tag1") Once again, we are detecting if there is a change in the selection of cells in the worksheet. We have another condition stating that if cell E1, or the STOP cell is the one selected, then we are no longer interested in receiving the tag data from the InteractX application. The link between the application and the worksheet is essentially dissolved. ElseIf Target = Range("E1") Then Set tag1 = Nothing Select the tag1 option from the Object dropdown control on the left, then ChangeValue from the one on the right. The code will be automatically inserted in a separate section. Private Sub tag1_changevalue(byval NewValue As Variant) We conclude by linking the events in InteractX to events in the worksheet. When the value of tag1 changes in Runtime, it will also change in the worksheet. The updated value will be displayed in cell B1 each time it changes. We also add our form of simple error handling. Range("B1").Value = NewValue Page: 10

11 Your finished product should look like this: Dim WithEvents tag1 As HMI.Tag Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Count = 1 Then If Target = Range("D1") Then Dim App As HMI.Application Set App = GetObject(, "HMI.Application") Set tag1 = App.Tags("tag1") ElseIf Target = Range("E1") Then Set tag1 = Nothing Private Sub tag1_changevalue(byval NewValue As Variant) Range("B1").Value = NewValue Test your code by launching Runtime of your application. You should see the Numeric Display tool quickly counting up to 100 and resetting itself back to 0. Press the _HMI_ShowFrame Maintained button and resize your window so that part of your desktop is visible. Launch Excel and open the workbook you created for this lesson. You will see that the worksheet does not display the updated tag values shown in the Numeric Display. Use your mouse to click around on different cells before finally clicking on cell D1 or the START cell. As soon as you click on the START cell, the code is executed and the tag values begin to update in cell B1. You should see that cell B1, as we specified in the code, displays the same tag values as the Numeric Display in Runtime. Click cell E1, or the STOP cell and the tag value updates on the worksheet cease. You may start and stop the updates as often as you like. Lesson 6: Applying what you learned The final lesson utilizes a sample InteractX application to demonstrate what we discussed in the previous exercises. We have included an application named GetObjectDemo with this tutorial. The application folder contains a fully functional workbook called GetObject.xls. This workbook should be used to view a demonstration of the final product. Although a functional workbook is provided and the code is fully described, in order to best apply what you learned, it is recommended that you try creating your own workbook and writing the code yourself. You may also try creating a second List for the Input List tool and then adding code to the existing workbook to display the tag values for the list items in List002. Of course as you become more and more familiar with the GetObject function and its uses, you may get more creative with your code. Open the GetObjectDemo application. It consists of a single panel with an Input List and its associated tools. A single List is included containing five list items. All panel objects have been given descriptive names to simplify matters. Select Panel001 in the Application Browser, right mouse click on it and choose the View Code option. This action will launch the VB Editor. The same can be accomplished by selecting the button named LaunchExcel from the Application Browser or the button itself from the panel. This is straight out of Lesson 4. Pressing this button in Runtime will launch the Excel workbook called GetObject.xls. Page: 11

12 Private Sub LaunchExcel_ButtonPressed() Dim WorkBook As Object Set WorkBook = GetObject(Application.Path & "GetObject.xls") WorkBook.Application.Visible = True WorkBook.Application.UserControl = True WorkBook.Application.Windows("GetObject.xls").Activate AppActivate "Microsoft Excel" Find the GetObject.xls workbook in the application folder and open it. Notice that cells B16 and C16 have been designated as the START and STOP cells, as we learned in Lesson 5. Column A shows the list items contained in List001, while Columns B and C are labeled TAG NAME and TAG VALUE, respectively. As you may have already guessed, we have employed the concepts of Lesson 2 to link this worksheet to the InteractX application in order to retrieve tag data. In this case, the tag data we are interested in is the names and values of each of the tags associated with the list items in List001. This information will be displayed in our worksheet. Now launch the VB Editor and let s take a closer look at the code in the workbook. A lot of it should already seem familiar from previous lessons, but we will add some helpful comments in green to refresh your memory. 'Link the tags in the spreadsheet to the tags in InteractX Dim WithEvents input1 As HMI.Tag Dim WithEvents input2 As HMI.Tag Dim WithEvents input3 As HMI.Tag Dim WithEvents input4 As HMI.Tag Dim WithEvents input5 As HMI.Tag Private Sub Worksheet_SelectionChange(ByVal Target As Range) 'If the START cell B16 is clicked the following code 'will execute If Target.Count = 1 Then If Target = Range("B16") Then Dim ListApp As HMI.Application 'Use GetObject to see if InteractX is running 'and get tag data Set ListApp = GetObject(, "HMI.Application") 'Get tag data Set input1 = ListApp.Tags("input1") Set input2 = ListApp.Tags("input2") Set input3 = ListApp.Tags("input3") Set input4 = ListApp.Tags("input4") Set input5 = ListApp.Tags("input5") Page: 12

13 'Update the worksheet with tag names Range("B22").Value = input1.name Range("B23").Value = input2.name Range("B24").Value = input3.name Range("B25").Value = input4.name Range("B26").Value = input5.name 'Update the worksheet with tag values Range("C22").Value = input1.value Range("C23").Value = input2.value Range("C24").Value = input3.value Range("C25").Value = input4.value Range("C26").Value = input5.value 'If the STOP cell C16 is clicked, the link to the 'InteractX application is dissolved ElseIf Target = Range("C16") Then Set input1 = Nothing Set input2 = Nothing Set input3 = Nothing Set input4 = Nothing Set input5 = Nothing 'Link the events in InteractX to events in the worksheet. As each 'tag value changes in Runtime, the new values are updated in the 'worksheet as well. Private Sub input1_changevalue(byval NewValue As Variant) Range("C22").Value = NewValue Private Sub input2_changevalue(byval NewValue As Variant) Range("C23").Value = NewValue Private Sub input3_changevalue(byval NewValue As Variant) Range("C24").Value = NewValue Private Sub input4_changevalue(byval NewValue As Variant) Range("C25").Value = NewValue Private Sub input5_changevalue(byval NewValue As Variant) Range("C26").Value = NewValue 'End the link to events in the InteractX application Page: 13

14 If you want to see how this works, close the Excel workbook then launch Runtime. You can press the Show Frame button and then resize your window. Press the button named Launch Excel and the GetObject workbook should come up. No tag names or values are displayed yet. Once you click the START cell, the tag names and values will be displayed next to the corresponding list items. Press the Load button of the application to load the list into the input List tool. If you then send the list values from the tool, you should see the Numeric Displays and the worksheet cells update. You can modify and send the list item values in Runtime to see the new values in the worksheet. If you click on the STOP cell of the worksheet at any time, you can still make changes and send the list values in Runtime, but they will no longer update in the worksheet. You may start and stop the updates as often as you like. After playing around with the demo application and workbook, you should try to create your own versions of applications and corresponding workbooks with code. As you become more and more familiar with the GetObject function and its uses, you may find more creative ways to write your code or even more useful shortcuts. Keep in mind that this tutorial was written such that less experienced users could follow the principles discussed in each of the lessons. The best way to learn is to apply these concepts to real examples and get some hands-on experience. Page: 14

Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet

Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet 1. Macros 1.1 What is a macro? A macro is a set of one or more actions

More information

Skills Exam Objective Objective Number

Skills Exam Objective Objective Number Overview 1 LESSON SKILL MATRIX Skills Exam Objective Objective Number Starting Excel Create a workbook. 1.1.1 Working in the Excel Window Customize the Quick Access Toolbar. 1.4.3 Changing Workbook and

More information

Excel Tip: How to create a pivot table that updates automatically

Excel Tip: How to create a pivot table that updates automatically Submitted by Jess on Thu, 01/23/2014-21:38 Microsoft Excel has a powerful reporting tool called the Pivot Table. In a few minutes and in a few mouse clicks, you can build a report of your data. This is

More information

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide PROGRAMMING WITH REFLECTION: VISUAL BASIC USER GUIDE WINDOWS XP WINDOWS 2000 WINDOWS SERVER 2003 WINDOWS 2000 SERVER WINDOWS TERMINAL SERVER CITRIX METAFRAME CITRIX METRAFRAME XP ENGLISH Copyright 1994-2006

More information

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation BASIC EXCEL SYLLABUS Section 1: Getting Started Unit 1.1 - Excel Introduction Unit 1.2 - The Excel Interface Unit 1.3 - Basic Navigation and Entering Data Unit 1.4 - Shortcut Keys Section 2: Working with

More information

Excel window. This will open the Tools menu. Select. from this list, Figure 3. This will launch a window that

Excel window. This will open the Tools menu. Select. from this list, Figure 3. This will launch a window that Getting Started with the Superpave Calculator worksheet. The worksheet containing the Superpave macros must be copied onto the computer. The user can place the worksheet in any desired directory or folder.

More information

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide VBA Visual Basic for Applications Learner Guide 1 Table of Contents SECTION 1 WORKING WITH MACROS...5 WORKING WITH MACROS...6 About Excel macros...6 Opening Excel (using Windows 7 or 10)...6 Recognizing

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introduction 8 Installing Visual Basic 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects 20 Reopening

More information

Ms Excel Vba Continue Loop Through Range Of

Ms Excel Vba Continue Loop Through Range Of Ms Excel Vba Continue Loop Through Range Of Rows Learn how to make your VBA code dynamic by coding in a way that allows your 5 Different Ways to Find The Last Row or Last Column Using VBA In Microsoft

More information

You can record macros to automate tedious

You can record macros to automate tedious Introduction to Macros You can record macros to automate tedious and repetitive tasks in Excel without writing programming code directly. Macros are efficiency tools that enable you to perform repetitive

More information

Microsoft Excel 2007 Macros and VBA

Microsoft Excel 2007 Macros and VBA Microsoft Excel 2007 Macros and VBA With the introduction of Excel 2007 Microsoft made a number of changes to the way macros and VBA are approached. This document outlines these special features of Excel

More information

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO Chapter 1 : All about printing sheets, workbook, charts etc. from Excel VBA - blog.quintoapp.com Hello Friends, Hope you are doing well!! Thought of sharing a small VBA code to help you writing a code

More information

Microsoft Excel 2007 Lesson 7: Charts and Comments

Microsoft Excel 2007 Lesson 7: Charts and Comments Microsoft Excel 2007 Lesson 7: Charts and Comments Open Example.xlsx if it is not already open. Click on the Example 3 tab to see the worksheet for this lesson. This is essentially the same worksheet that

More information

Civil Engineering Computation

Civil Engineering Computation Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday

More information

General Guidelines: SAS Analyst

General Guidelines: SAS Analyst General Guidelines: SAS Analyst The Analyst application is a data analysis tool in SAS for Windows (version 7 and later) that provides easy access to basic statistical analyses using a point-and-click

More information

Advanced Excel Macros : Data Validation/Analysis : OneDrive

Advanced Excel Macros : Data Validation/Analysis : OneDrive Advanced Excel Macros : Data Validation/Analysis : OneDrive Macros Macros in Excel are in short, a recording of keystrokes. Beyond simple recording, you can use macros to automate tasks that you will use

More information

The Item_Master_addin.xlam is an Excel add-in file used to provide additional features to assist during plan development.

The Item_Master_addin.xlam is an Excel add-in file used to provide additional features to assist during plan development. Name: Tested Excel Version: Compatible Excel Version: Item_Master_addin.xlam Microsoft Excel 2013, 32bit version Microsoft Excel 2007 and up (32bit and 64 bit versions) Description The Item_Master_addin.xlam

More information

MS Excel VBA Class Goals

MS Excel VBA Class Goals MS Excel VBA 2013 Class Overview: Microsoft excel VBA training course is for those responsible for very large and variable amounts of data, or teams, who want to learn how to program features and functions

More information

At the shell prompt, enter idlde

At the shell prompt, enter idlde IDL Workbench Quick Reference The IDL Workbench is IDL s graphical user interface and integrated development environment. The IDL Workbench is based on the Eclipse framework; if you are already familiar

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects

More information

The name of this type library is LabelManager2 with the TK Labeling Interface reference.

The name of this type library is LabelManager2 with the TK Labeling Interface reference. Page 1 of 10 What is an ActiveX object? ActiveX objects support the COM (Component Object Model) - Microsoft technology. An ActiveX component is an application or library that is able to create one or

More information

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010 DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn MORE TASKS IN MICROSOFT EXCEL PAGE 03 Cutting, Copying, and Pasting Data Filling Data Across Columns

More information

Intermediate Excel 2003

Intermediate Excel 2003 Intermediate Excel 2003 Introduction The aim of this document is to introduce some techniques for manipulating data within Excel, including sorting, filtering and how to customise the charts you create.

More information

Visual basic tutorial problems, developed by Dr. Clement,

Visual basic tutorial problems, developed by Dr. Clement, EXCEL Visual Basic Tutorial Problems (Version January 20, 2009) Dr. Prabhakar Clement Arthur H. Feagin Distinguished Chair Professor Department of Civil Engineering, Auburn University Home page: http://www.eng.auburn.edu/users/clemept/

More information

Getting started 7. Writing macros 23

Getting started 7. Writing macros 23 Contents 1 2 3 Getting started 7 Introducing Excel VBA 8 Recording a macro 10 Viewing macro code 12 Testing a macro 14 Editing macro code 15 Referencing relatives 16 Saving macros 18 Trusting macros 20

More information

Excel Part 3 Textbook Addendum

Excel Part 3 Textbook Addendum Excel Part 3 Textbook Addendum 1. Lesson 1 Activity 1-1 Creating Links Data Alert and Alternatives After completing Activity 1-1, you will have created links in individual cells that point to data on other

More information

Advanced Financial Modeling Macros. EduPristine

Advanced Financial Modeling Macros. EduPristine Advanced Financial Modeling Macros EduPristine www.edupristine.com/ca Agenda Introduction to Macros & Advanced Application Building in Excel Introduction and context Key Concepts in Macros Macros as recorded

More information

Connectivity Guide KEPServerEX, DDE, and Excel

Connectivity Guide KEPServerEX, DDE, and Excel Connectivity Guide KEPServerEX, DDE, and Excel February 2019 Ref. 1.005 www.kepware.com 1 2015-2019 PTC, Inc. All Rights Reserved. Table of Contents 1. Overview... 1 2. Requirements... 1 3. Configuring

More information

This chapter is intended to take you through the basic steps of using the Visual Basic

This chapter is intended to take you through the basic steps of using the Visual Basic CHAPTER 1 The Basics This chapter is intended to take you through the basic steps of using the Visual Basic Editor window and writing a simple piece of VBA code. It will show you how to use the Visual

More information

PART 7. Getting Started with Excel

PART 7. Getting Started with Excel PART 7 Getting ed with Excel When you start the application, Excel displays a blank workbook. A workbook is a file in which you store your data, similar to a three-ring binder. Within a workbook are worksheets,

More information

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 5: Excel Object Model 5-1: Object Browser The Excel Object Model contains thousands of pre-defined classes and constants. You can view them through

More information

Scheduling WebEx Meetings

Scheduling WebEx Meetings Scheduling WebEx Meetings Instructions for ConnSCU Faculty and Staff using ConnSCU WebEx Table of Contents How Can Faculty and Staff Use WebEx?... 2 Meeting Attendees... 2 Schedule WebEx Meetings from

More information

Excel Programming with VBA (Macro Programming) 24 hours Getting Started

Excel Programming with VBA (Macro Programming) 24 hours Getting Started Excel Programming with VBA (Macro Programming) 24 hours Getting Started Introducing Visual Basic for Applications Displaying the Developer Tab in the Ribbon Recording a Macro Saving a Macro-Enabled Workbook

More information

CHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface

CHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface CHAPTER 1 Finding Your Way in the Inventor Interface COPYRIGHTED MATERIAL Understanding Inventor s interface behavior Opening existing files Creating new files Modifying the look and feel of Inventor Managing

More information

Using macros enables you to repeat tasks much

Using macros enables you to repeat tasks much An Introduction to Macros Using macros enables you to repeat tasks much more efficiently than tediously performing each step over and over. A macro is a set of instructions that you use to automate a task.

More information

EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING

EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING TABLE OF CONTENTS 1. What is VBA? 2. Safety First! 1. Disabling and Enabling Macros 3. Getting started 1. Enabling the Developer tab 4. Basic

More information

1. Right-click the worksheet tab you want to rename. The worksheet menu appears. 2. Select Rename.

1. Right-click the worksheet tab you want to rename. The worksheet menu appears. 2. Select Rename. Excel 2010 Worksheet Basics Introduction Page 1 Every Excel workbook contains at least one or more worksheets. If you are working with a large amount of related data, you can use worksheets to help organize

More information

Microsoft Excel 2007

Microsoft Excel 2007 Learning computers is Show ezy Microsoft Excel 2007 301 Excel screen, toolbars, views, sheets, and uses for Excel 2005-8 Steve Slisar 2005-8 COPYRIGHT: The copyright for this publication is owned by Steve

More information

CS 200. Lecture 07. Excel Scripting. Miscellaneous Notes

CS 200. Lecture 07. Excel Scripting. Miscellaneous Notes CS 200 Lecture 07 1 Abbreviations aka Also Known As Miscellaneous Notes CWS Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) VBE Visual Basic Editor intra- a prefix meaning within thus intra-cellular

More information

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 GETTING STARTED PAGE 02 Prerequisites What You Will Learn MORE TASKS IN MICROSOFT EXCEL PAGE 03 Cutting, Copying, and Pasting Data Basic Formulas Filling Data

More information

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Fall 2016

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Fall 2016 CS 200 Lecture 07 1 Abbreviations aka Also Known As Miscellaneous Notes CWS Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) VBE Visual Basic Editor intra- a prefix meaning within thus intra-cellular

More information

CS 200. Lecture 07. Excel Scripting. Miscellaneous Notes

CS 200. Lecture 07. Excel Scripting. Miscellaneous Notes CS 200 Lecture 07 1 Abbreviations aka Also Known As Miscellaneous Notes CWS Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) VBE Visual Basic Editor intra- a prefix meaning within thus intra-cellular

More information

Web-enable a 5250 application with the IBM WebFacing Tool

Web-enable a 5250 application with the IBM WebFacing Tool Web-enable a 5250 application with the IBM WebFacing Tool ii Web-enable a 5250 application with the IBM WebFacing Tool Contents Web-enable a 5250 application using the IBM WebFacing Tool......... 1 Introduction..............1

More information

Introduction to macros

Introduction to macros L E S S O N 7 Introduction to macros Suggested teaching time 30-40 minutes Lesson objectives To understand the basics of creating Visual Basic for Applications modules in Excel, you will: a b c Run existing

More information

Microsoft Excel - Macros Explained

Microsoft Excel - Macros Explained Microsoft Excel - Macros Explained Macros Explained Macros or macroinstructions allow you to automate procedures or calculations in Excel. Macros are usually recorded using the Macro recorder and then

More information

This document describes how to use the CAP workbook with Excel It applies to version 6b of the workbook.

This document describes how to use the CAP workbook with Excel It applies to version 6b of the workbook. Introduction This document describes how to use the CAP workbook with Excel 2007. It applies to version 6b of the workbook. Be sure to use the new version 6b of the CAP workbook when using Excel 2007!

More information

Excel 2010 Macro Vba For Loops Break Nested

Excel 2010 Macro Vba For Loops Break Nested Excel 2010 Macro Vba For Loops Break Nested If you want to continue to show page breaks after your macro runs, you can set the The With statement utilized in this example tells Excel to apply all the If

More information

DOWNLOAD PDF MICROSOFT OFFICE POWERPOINT 2003, STEP BY STEP

DOWNLOAD PDF MICROSOFT OFFICE POWERPOINT 2003, STEP BY STEP Chapter 1 : Microsoft Office Excel Step by Step - PDF Free Download Microsoft Office PowerPoint Step by Step This is a good book for an 76 year old man like me. It was a great help in teaching me to do

More information

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed The code that follows has been courtesy of this forum and the extensive help i received from everyone. But after an Runtime Error '1004'

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

2. create the workbook file

2. create the workbook file 2. create the workbook file Excel documents are called workbook files. A workbook can include multiple sheets of information. Excel supports two kinds of sheets for working with data: Worksheets, which

More information

EDIT202 Spreadsheet Lab Prep Sheet

EDIT202 Spreadsheet Lab Prep Sheet EDIT202 Spreadsheet Lab Prep Sheet While it is clear to see how a spreadsheet may be used in a classroom to aid a teacher in marking (as your lab will clearly indicate), it should be noted that spreadsheets

More information

Excel Part 2 Textbook Addendum

Excel Part 2 Textbook Addendum Excel Part 2 Textbook Addendum 1. Page 9 Range Names Sort Alert After completing Activity 1-1, observe what happens if you sort the data in ascending order by Quarter 3. After sorting the data, chances

More information

For many people, learning any new computer software can be an anxietyproducing

For many people, learning any new computer software can be an anxietyproducing 1 Getting to Know Stata 12 For many people, learning any new computer software can be an anxietyproducing task. When that computer program involves statistics, the stress level generally increases exponentially.

More information

Lesson 1. Hello World

Lesson 1. Hello World Lesson 1. Hello World 1.1 Create a program 1.2 Draw text on a page 1.2.-1 Create a draw text action 1.2.-2 Assign the action to an event 1.2.-3 Visually assign the action to an event 1.3 Run the program

More information

Extending the Unit Converter

Extending the Unit Converter Extending the Unit Converter You wrote a unit converter previously that converted the values in selected cells from degrees Celsius to degrees Fahrenheit. You could write separate macros to do different

More information

Excel Pivot Tables & Macros

Excel Pivot Tables & Macros Excel 2007 Pivot Tables & Macros WORKSHOP DESCRIPTION...1 Overview 1 Prerequisites 1 Objectives 1 WHAT IS A PIVOT TABLE...2 Sample Example 2 PivotTable Terminology 3 Creating a PivotTable 4 Layout of

More information

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic

More information

Editing Multiple Objects. Contents

Editing Multiple Objects. Contents Editing Multiple Objects Contents Selecting Multiple Objects Inspecting the Objects Editing the Objects Editing Group Objects Step 1. Selecting the Capacitors Step 2. Changing the Comment String Step 3.

More information

Tutorial 8 Sharing, Integrating and Analyzing Data

Tutorial 8 Sharing, Integrating and Analyzing Data Tutorial 8 Sharing, Integrating and Analyzing Data Microsoft Access 2013 Objectives Session 8.1 Export an Access query to an HTML document and view the document Import a CSV file as an Access table Use

More information

6. In the last Import Wizard dialog box, click Finish. Saving Excel Data in CSV File Format

6. In the last Import Wizard dialog box, click Finish. Saving Excel Data in CSV File Format PROCEDURES LESSON 39: WKING WITH FILE FMATS Using the Compatibility Checker 2 Click Info 3 Click Check for Issues 4 Click Check Compatibility 5 Review the issues and click OK Importing a File 1 Click the

More information

Chapter 10 Linking Calc Data

Chapter 10 Linking Calc Data Calc Guide Chapter 10 Linking Calc Data Sharing data in and out of Calc This PDF is designed to be read onscreen, two pages at a time. If you want to print a copy, your PDF viewer should have an option

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

Introducing Microsoft Office Specialist Excel Module 1. Adobe Captivate Wednesday, May 11, 2016

Introducing Microsoft Office Specialist Excel Module 1. Adobe Captivate Wednesday, May 11, 2016 Slide 1 - Introducing Microsoft Office Specialist Excel 2013 Introducing Microsoft Office Specialist Excel 2013 Module 1 Page 1 of 25 Slide 2 - Lesson Objectives Lesson Objectives Understand what Microsoft

More information

HOUR 4 Understanding Events

HOUR 4 Understanding Events HOUR 4 Understanding Events It s fairly easy to produce an attractive interface for an application using Visual Basic.NET s integrated design tools. You can create beautiful forms that have buttons to

More information

VISUAL BASIC 2 EDITOR

VISUAL BASIC 2 EDITOR VISUAL BASI 2 EDITOR hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: How to edit code in the. How to create, open, and access project(s). How to edit scripts and use the code

More information

Lesson 2. Using the Macro Recorder

Lesson 2. Using the Macro Recorder Lesson 2. Using the Macro Recorder When the recorder is activated, everything that you do will be recorded as a Macro. When the Macro is run, everything that you recorded will be played back exactly as

More information

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION Lesson 1 - Recording Macros Excel 2000: Level 5 (VBA Programming) Student Edition LESSON 1 - RECORDING MACROS... 4 Working with Visual Basic Applications...

More information

Manual Data Validation Excel 2010 List From Another Workbook

Manual Data Validation Excel 2010 List From Another Workbook Manual Data Validation Excel 2010 List From Another Workbook It is quite easy to create a data validation drop down list among worksheets you will learn how to create a drop fown list from another workbook

More information

DOWNLOAD PDF VBA MACRO TO PRINT MULTIPLE EXCEL SHEETS TO ONE

DOWNLOAD PDF VBA MACRO TO PRINT MULTIPLE EXCEL SHEETS TO ONE Chapter 1 : Print Multiple Sheets Macro to print multiple sheets I have a spreadsheet set up with multiple worksheets. I have one worksheet (Form tab) created that will pull data from the other sheets

More information

download instant at

download instant at CHAPTER 1 - LAB SESSION INTRODUCTION TO EXCEL INTRODUCTION: This lab session is designed to introduce you to the statistical aspects of Microsoft Excel. During this session you will learn how to enter

More information

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

2 Getting Started. Getting Started (v1.8.6) 3/5/2007 2 Getting Started Java will be used in the examples in this section; however, the information applies to all supported languages for which you have installed a compiler (e.g., Ada, C, C++, Java) unless

More information

Manipulator USER S MANUAL. Data Manipulator ActiveX. ActiveX. Data. smar. First in Fieldbus MAY / 06. ActiveX VERSION 8 FOUNDATION

Manipulator USER S MANUAL. Data Manipulator ActiveX. ActiveX. Data. smar. First in Fieldbus MAY / 06. ActiveX VERSION 8 FOUNDATION Data Manipulator ActiveX USER S MANUAL Data Manipulator ActiveX smar First in Fieldbus - MAY / 06 Data Manipulator ActiveX VERSION 8 TM FOUNDATION P V I E W D M A M E www.smar.com Specifications and information

More information

Skill Exam Objective Objective Number

Skill Exam Objective Objective Number Overview 1 LESSON SKILL MATRIX Skill Exam Objective Objective Number Starting Excel Working in the Excel Window Manipulate the Quick Access Toolbar. 1.3.1 Use Hotkeys. 1.1.1 Changing Excel s View Use Page

More information

d2vbaref.doc Page 1 of 22 05/11/02 14:21

d2vbaref.doc Page 1 of 22 05/11/02 14:21 Database Design 2 1. VBA or Macros?... 2 1.1 Advantages of VBA:... 2 1.2 When to use macros... 3 1.3 From here...... 3 2. A simple event procedure... 4 2.1 The code explained... 4 2.2 How does the error

More information

Brianna Nelson Updated 6/30/15 HOW TO: Docs, Sheets, Slides, Calendar, & Drive. English

Brianna Nelson Updated 6/30/15 HOW TO: Docs, Sheets, Slides, Calendar, & Drive. English Brianna Nelson Updated 6/30/15 HOW TO: Docs, Sheets, Slides, Calendar, & Drive English ABOUT Use this guide to write papers, create spreadsheets, give presentations, manage your time, and save your files

More information

Chapter 2 The SAS Environment

Chapter 2 The SAS Environment Chapter 2 The SAS Environment Abstract In this chapter, we begin to become familiar with the basic SAS working environment. We introduce the basic 3-screen layout, how to navigate the SAS Explorer window,

More information

Tutorial 1: Unix Basics

Tutorial 1: Unix Basics Tutorial 1: Unix Basics To log in to your ece account, enter your ece username and password in the space provided in the login screen. Note that when you type your password, nothing will show up in the

More information

Chapter 10 Linking Calc Data

Chapter 10 Linking Calc Data Calc Guide Chapter 10 Linking Calc Data Sharing data in and out of Calc Copyright This document is Copyright 2006 2013 by its contributors as listed below. You may distribute it and/or modify it under

More information

Microsoft Excel 2010 Training. Excel 2010 Basics

Microsoft Excel 2010 Training. Excel 2010 Basics Microsoft Excel 2010 Training Excel 2010 Basics Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.

More information

TOP Server Client Connectivity Guide for National Instruments' LabVIEW

TOP Server Client Connectivity Guide for National Instruments' LabVIEW TOP Server Client Connectivity Guide for National Instruments' LabVIEW 1 Table of Contents 1. Overview and Requirements... 3 2. Setting TOP Server to Interactive Mode... 3 3. Creating a LabVIEW Project...

More information

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously

More information

COPYRIGHTED MATERIAL. Making Excel More Efficient

COPYRIGHTED MATERIAL. Making Excel More Efficient Making Excel More Efficient If you find yourself spending a major part of your day working with Excel, you can make those chores go faster and so make your overall work life more productive by making Excel

More information

User Guide. Version 2.0. Excel Spreadsheet to AutoCAD drawing Utility. Supports AutoCAD 2000 through Supports Excel 97, 2000, XP, 2003, 2007

User Guide. Version 2.0. Excel Spreadsheet to AutoCAD drawing Utility. Supports AutoCAD 2000 through Supports Excel 97, 2000, XP, 2003, 2007 User Guide Spread2Cad Pro! Version 2.0 Excel Spreadsheet to AutoCAD drawing Utility Supports AutoCAD 2000 through 2007 Supports Excel 97, 2000, XP, 2003, 2007 Professional tools for productivity! 1 Bryon

More information

OPTIS Labs Tutorials 2013

OPTIS Labs Tutorials 2013 OPTIS Labs Tutorials 2013 Table of Contents Virtual Human Vision Lab... 4 Doing Legibility and Visibility Analysis... 4 Automation... 13 Using Automation... 13 Creation of a VB script... 13 Creation of

More information

Learning Excel VBA. Creating User Defined Functions. ComboProjects. Prepared By Daniel Lamarche

Learning Excel VBA. Creating User Defined Functions. ComboProjects. Prepared By Daniel Lamarche Learning Excel VBA Creating User Defined Functions Prepared By Daniel Lamarche ComboProjects Creating User Defined Functions By Daniel Lamarche (Last update January 2016). User Defined Functions or UDFs

More information

Writing and Running Programs

Writing and Running Programs Introduction to Python Writing and Running Programs Working with Lab Files These instructions take you through the steps of writing and running your first program, as well as using the lab files in our

More information

Stratigraphy Modeling Horizons and Solids

Stratigraphy Modeling Horizons and Solids v. 10.3 GMS 10.3 Tutorial Stratigraphy Modeling Horizons and Solids Create solids from boreholes using the Horizons Solids tool. Objectives Learn how to construct a set of solid models using the horizon

More information

CS 200. Lecture 05. Excel Scripting. Excel Scripting. CS 200 Fall 2014

CS 200. Lecture 05. Excel Scripting. Excel Scripting. CS 200 Fall 2014 CS 200 Lecture 05 1 Abbreviations aka CWS VBE intra- inter- Also Known As Miscellaneous Notes Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Spring Wednesday, June 18, 2014

CS 200. Lecture 07. Excel Scripting. Excel Scripting. CS 200 Spring Wednesday, June 18, 2014 CS 200 Lecture 07 1 Miscellaneous Notes Abbreviations aka CWS VBE intra- inter- Also Known As Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

Not For Sale. Using and Writing Visual Basic for Applications Code. Creating VBA Code for the Holland Database. Case Belmont Landscapes

Not For Sale. Using and Writing Visual Basic for Applications Code. Creating VBA Code for the Holland Database. Case Belmont Landscapes Objectives Tutorial 11 Session 11.1 Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event procedure Create a function

More information

v Overview SMS Tutorials Prerequisites Requirements Time Objectives

v Overview SMS Tutorials Prerequisites Requirements Time Objectives v. 12.2 SMS 12.2 Tutorial Overview Objectives This tutorial describes the major components of the SMS interface and gives a brief introduction to the different SMS modules. Ideally, this tutorial should

More information

Learning Worksheet Fundamentals

Learning Worksheet Fundamentals 1.1 LESSON 1 Learning Worksheet Fundamentals After completing this lesson, you will be able to: Create a workbook. Create a workbook from a template. Understand Microsoft Excel window elements. Select

More information

CS 200. Lecture 05! Excel Scripting. Miscellaneous Notes

CS 200. Lecture 05! Excel Scripting. Miscellaneous Notes CS 200 Lecture 05! 1 Abbreviations aka CWS VBE intra- inter- Also Known As Miscellaneous Notes Course Web Site (http://www.student.cs.uwaterloo.ca/~cs200) Visual Basic Editor a prefix meaning within thus

More information

Excel Vba Manually Update Links Automatically On Open File Ignore

Excel Vba Manually Update Links Automatically On Open File Ignore Excel Vba Manually Update Links Automatically On Open File Ignore Powerpoint VBA to update links on excel files open by someone else without alerts So I would have to update manually each link so it will

More information

Using Basic Formulas 4

Using Basic Formulas 4 Using Basic Formulas 4 LESSON SKILL MATRIX Skills Exam Objective Objective Number Understanding and Displaying Formulas Display formulas. 1.4.8 Using Cell References in Formulas Insert references. 4.1.1

More information

Visual Basic 2008 The programming part

Visual Basic 2008 The programming part Visual Basic 2008 The programming part Code Computer applications are built by giving instructions to the computer. In programming, the instructions are called statements, and all of the statements that

More information

Microsoft Power Tools for Data Analysis #04: Power Query: Import Multiple Excel Files & Combine (Append) into Proper Data Set.

Microsoft Power Tools for Data Analysis #04: Power Query: Import Multiple Excel Files & Combine (Append) into Proper Data Set. Microsoft Power Tools for Data Analysis #04: Power Query: Import Multiple Excel Files & Combine (Append) into Proper Data Set Table of Contents: Notes from Video:. Goal of Video.... Main Difficulty When

More information

Excel Vba Manually Update Links On Open File Ignore

Excel Vba Manually Update Links On Open File Ignore Excel Vba Manually Update Links On Open File Ignore Programming Excel with VBA.NET. Search in book The file to open. UpdateLinks. One of these If the workbook requires a password, this is the password

More information

Instructions for Using the Databases

Instructions for Using the Databases Appendix D Instructions for Using the Databases Two sets of databases have been created for you if you choose to use the Documenting Our Work forms. One set is in Access and one set is in Excel. They are

More information