DoD EA Dip Cse - NCW Export Macros

Slides:



Advertisements
Similar presentations
Excel and Visual Basic. Outline Data exchange between Excel and Visual Basic. Programming VB in Excel.
Advertisements

Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Using Macros and Visual Basic for Applications (VBA) with Excel
Developing an Excel Application
Tutorial 8: Developing an Excel Application
© 2002 ComputerPREP, Inc. All rights reserved. Excel 2000: Customizing Excel and Using Macros.
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
MACROS CS1100 Computer Science and its Applications CS11001.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Using the Visual Basic Editor Visual Basic for Applications 1.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
MICROSOFT – WORD. WORD... text entry f formatting spell check bulleting numbering t tables and much more.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Christopher Guertin VAMC – West Palm Beach, FL 1.
Microsoft Office Word 2013 Core Microsoft Office Word 2013 Core Courseware # 3250 Lesson 8: Using Productivity Tools.
Customizing Microsoft Project
Week 1.  Kate Watson  Checked at least every other day. Queries and general comments welcome.
Project 9 Using Visual Basic for Applications (VBA) to Customize and Automate Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Air Quality System Precision and Accuracy Data Transaction Generator (AQSP&A) Training Session.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
NetTech Solutions Using Advanced Tools Lesson 5. NetTech Solutions Objectives Use Slide Finder Use the Format Painter Understand the purpose of macros.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Record & run a macro Record & run a macro Save as a macro-
ICP Kit 2011 HHC Data Entry Module The World Bank ICP Kit Training African Development Bank.
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
Creating a Web Site to Gather Data and Conduct Research.
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
Spreadsheets in Finance and Forecasting Presentation 9 Macros.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Chapter 12: Recording Macros Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
OCC Network Drives  H:\  P:\ 
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
P6 BTEC Level 3 Subsidiary Diploma in ICT. Automation The end user of a spreadsheet may be proficient in using the software, but the more that you automate.
Macros Lesson 7. Objectives 1. Create a macro. 2. Run a macro. 3. Edit a macro. 4. Copy, rename, and delete macros. 5. Customize menus and toolbars. After.
Introduction to KE EMu Unit objectives: Introduction to Windows Use the keyboard and mouse Use the desktop Open, move and resize a.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
Lesson 6: Using Macros Microsoft Office Word 2003 Lesson 6 Using Macros.
Spreadsheet Evidence By.... P2 – DEVELOP A COMPLEX SPREADSHEET MODEL TO MEET PARTICULAR NEEDS.
Macros in Excel Using VBA Time Required – 5 hours.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Excel Tutorial 8 Developing an Excel Application
June 17, 2009 Office 2007 Tips & Tricks.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Introduction to the MS Excel 2003
IE 8580 Module 4: DIY Monte Carlo Simulation
Developer 2000 CSE 4504/6504 Lab.
European Computer Driving Licence
DoD EA Dip Cse - Data Modelling in SA
Word 2002 Chapter 7 MANIPULATING TABS.
Microsoft Excel 2003 Illustrated Complete
ALEPH Version 22 Beginning Cataloging
Chapter 7 Advanced Form Techniques
Creating and Modifying Queries
Microsoft Official Academic Course, Access 2016
Lesson 1 - Automating Tasks
Images into PowerPoint
European Computer Driving Licence
Microsoft Office Excel 2003
Microsoft Excel 2007 – Level 2
Macro theory © EIT, Author Gay Robertson, 2019.
Presentation transcript:

DoD EA Dip Cse - NCW Export Macros On the course CD in the directory for block 18 there is a file called ‘NCW Pivot Exports.mac’. Load this file as a macro into System Architect. Open the Macro in System Architect (ie alt F8) Note: there are 4 macro names, run one or more to see what happens. Use the Step into button for one macro to see what happens. Use the F8 key to continue stepping thru the code. Open one of the Macros using the Edit button. Note: this is the same as selecting VBA Editor from the Macro menu options. Examine the code for each of the modules. Note that there are 4 modules, each is used to export a particular set of attributes from a definition record. Text in the first line after the word ‘sub’ indicates the definition record that is being exported. You can run a macro from within the VBA editor using the ‘Run’ option on the tool bar or commands under the ‘Run’ menu. May 2006 DoD EA Dip Cse - NCW Export Macros

DoD EA Dip Cse - NCW Export Macros Macro menu options. May 2006 DoD EA Dip Cse - NCW Export Macros

DoD EA Dip Cse - NCW Export Macros The Reference utility is accessed from the Tools menu. The Run command on the tool bar or from the Run menu. May 2006 DoD EA Dip Cse - NCW Export Macros

LOAD & RUN A MACRO IN EXCEL The macro may be provided as a text file. See the Macro text file ‘extract OpAct with Sys func one per row.txt’ in the block 18 dir on the course cd. Open this file in a text editor. Open Excel and create a new work book. Access the macro function via the tool menu. Check that security is set to medium or lower, you need this setting to be able to run macros. If you change this setting close and open Excel again to ensure the changes are set. Open the macro utility (VB editor), the shortcut key for this is alt F8. enter a name for the macro (no spaces allowed) and notice that the create button becomes active. Select create and you will be taken into the VB editor and a blank module will be presented. See the screen shot below for an example. Copy the macro text into the text editor Correct the Sub and End sub entries to match the ncw macro Check that the available References (VBA) is set to include SA2001. The Reference utility is found under the Tools option Use F8 to step thru the macro one line at a time. Any syntax errors or invalid references will be highlighted. Use the ‘reset’ button on the tool bar or under the ‘Run’ menu item to stop the step thru processing. To run the macro use the ‘Run’ command on the tool bar on from the ‘Run’ menu or press the shortcut key F5. Note the lines “Set saoOpAct = appSA.Encyclopedia.GetFilteredDefinitions("*", 194)” the number 194 is the code used by SA to mean the function/activity definition. This code comes from defns.bas file which can be found in the System Architect program directory. If you create your own custom definitions be careful that you don’t change their user definition number in the usrprops.txt file or else your macro will stop working properly. Note: step thru the macro in the VB editor to see what it does, use the watch function to see values. Note: You can alternately export definitions into CSV format using the Export Defintion functionaliy in System Architect. The resulting csv may need to have superfluous columns deleted, column headings renamed etc before you do further manipulations. Using an export macro removes some of this extra steps but you need a new macro for each definition export. Note: You can use the Excel lookup utility to join up with data from other tables and or use the Pivot table function to do additional analysis. May 2006 DoD EA Dip Cse - NCW Export Macros

DoD EA Dip Cse - NCW Export Macros May 2006 DoD EA Dip Cse - NCW Export Macros