Integrate. Automate. eXLerateTM

Slides:



Advertisements
Similar presentations
GP2013 (R2) New features in GP2013 (R2). New Ribbon for windows Edit List is the Print button on the right without the paper background Action pane can.
Advertisements

Visual Basic for Applications. What it does Extends the features and built in functions of Excel – Create and run VB procedures – Some may be easy to.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
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.
Web ADI - Srinivas.M. Purpose Data upload into Oracle Applications Solution: Web ADI brings Oracle E-Business Suite functionality to a spreadsheet, where.
Using Macros and Visual Basic for Applications (VBA) with Excel
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
Microsoft Office Excel 2013 Core Microsoft Office Excel 2013 Core Courseware # 3253 Lesson 8: Macros, Importing and Exporting Data.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
World Class Financial Reporting with FRx Report Writer Elisa R. Vick
Using Visual Basic 6.0 to Create Web-Based Database Applications
Macros Excel built-in functions are great but limited Macros are a means for the user to define new functions A macro is a single command that automates.
Visual Basic Database Access BICS546. Microsoft Universal Data Access OLE DB: The OLE database protocol –Allows a program to access information in any.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Database Software Application
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
Microsoft Access Ervin Ha.
ODBC Open DataBase Connectivity a standard database access method developed by Microsoft to access data from any application regardless of which database.
This Tutorial has been developed using Microsoft’s PowerPoint. Simply click your mouse or hit the Enter key to advance. The Page Up and Page Down keys.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Advanced Integration - Grid Control In this presentation… –The enhanced Grid control. –Application integration. –New properties and events. –Connecting.
CSCI 6962: Server-side Design and Programming
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Project 9 Using Visual Basic for Applications (VBA) to Customize and Automate Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
1 Visual Basic for Applications (VBA) for Excel Prof. Yitzchak Rosenthal.
Using Visual Basic 6.0 to Create Web-Based Database Applications
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
11 Chapter 10 Customizing a Database with Macros and Visual Basic for Applications Exploring Microsoft Office Access 2007.
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 10 Customizing a Database.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
Chapter 12: Recording Macros Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Visual Basic for Applications Macro Programming For Microsoft Office.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
Key Applications Module Lesson 21 — Access Essentials
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
Microsoft Access 2000 Presentation 1 The Basics of Access.
Tutorial 91 Databases A database is an organized collection of related information stored in a file on a disk A database allows companies to store information.
Chapter 9 Macros And Visual Basic For Applications.
1 MIS309 Database Systems Introduction to Microsoft Access.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
The Advantage Series ©2005 The McGraw-Hill Companies, Inc. All rights reserved Chapter 12 Introducing Visual Basic for Applications Microsoft Office Excel.
ASP.NET Programming with C# and SQL Server First Edition
Excel Tutorial 8 Developing an Excel Application
Visual Basic Database Access
Exploring Excel Chapter 7 Automating Repetitive Tasks: Macros and
VBA - Excel VBA is Visual Basic for Applications
5. Using databases in VB.
Introduction to VB6 Week 1 3/2/2004 PPCC - Introduction to VB6
Learning Excel Session 9 and 10 Dr. Chaitali Basu Mukherji.
Introducing VBA Macros
Introduction to Ms-Access Submitted By- Navjot Kaur Mahi
Exploring Microsoft Office Access 2007
Exploring Microsoft Excel
SSI Toolbox Status Workbook Overview
Chapter 10 ADO.
Tutorial 7 – Integrating Access With the Web and With Other Programs
Visual Basic for Applications: Introduction
Presentation transcript:

Integrate. Automate. eXLerateTM www.ks2inc.com

About KS2 IBM Business Partner in metroplex for more than 10 years. www.ks2inc.com About KS2 IBM Business Partner in metroplex for more than 10 years. IBM iSeries value added reseller. Vertical market expertise in Homebuilding/ Construction and Manufacturing/Distribution. Experience with large packaged applications including: JD Edwards – OneWorld and World, Oracle. Custom e-commerce/web solutions and training. Custom Excel solutions and training.

10+ years financial and operational reporting experience www.ks2inc.com About the speaker Principal Consultant 10+ years financial and operational reporting experience JD Edwards World/OneWorld and other ERP package experience. Experienced with Access, Essbase, Crystal Reports and other reporting tools Excel 2000/XP, SQL, VB/VBA programmer

www.ks2inc.com Goals for Today

Show the possibilities of integrating the best www.ks2inc.com Goals for Today Show the possibilities of integrating the best spreadsheet tool with the best e-business server. Checklist of software you will need to integrate Excel with the iSeries. Overview of sample reporting application. Step through the sample application in detail. Refine the sample application. Q&A

Software Checklist Client Software: Server Software: www.ks2inc.com Software Checklist Client Software: iSeries Access for Windows when installing for the first time, make sure the ODBC and OLE DB Provider is checked. - There are also VB wizards and tools you can install and play with. - No license required for the odbc/ole db components. Install latest PTF to client Excel 2000+ (Excel 97 will also work, but we don’t support) Latest Excel SP (service pack) from Microsoft Latest MDAC (Microsoft Data Access Components) – this has the core odbc/ado drivers Currently 2.8 Server Software: Make sure latest ptf’s are applied on iSeries.

Overview of Application www.ks2inc.com Overview of Application When opening the workbook, it will prompt you to enable macros. If it does not, you may need to change your macro security. Tools | Macro | Security

Overview of Application www.ks2inc.com Overview of Application

Step Through the Application www.ks2inc.com Step Through the Application Named Ranges: Insert | Named | Define - best practice used for grouping like cells to- gether so they can be referred to easily – ie. instead of C4 – rngDatabase. IBMDA400 is a special string that the OLE DB provider recognizes as an IBM AS/400 datasource. Machine Name: iSeries ip address or machine name – this is where the data resides. SQL Statement: this is the SQL statement that will be passed onto the iSeries. Note: the & is the concatenator in Excel – this formula is stringing cells together from down below Output: this is a named range being used for the starting point (cell) of the data that is returned from the query.

Step Through the Application www.ks2inc.com Step Through the Application Standard SQL statement: SELECT: determines the fields to be included in the query FROM: choose the library/file to pick the fields from WHERE: filter based on one or more conditions. This example is selecting all months from a GL Trial Balance file where the fiscal year = 2002. This statement is referenced in cell C6 for processing in the macro. Note: we only picked 1 file in this example. Normally, you will pick the transaction and do some “look ups” in the master file.

Step Through the Application www.ks2inc.com Step Through the Application Command Button: View | Toolbars | Forms. This command button is used to launch the macros. You can assign the button to a macro by right-clicking it and then choosing assign macro. There are 2 types of controls – the “old” forms controls that have been around since the early days of Excel and the visual basic controls – View | Toolbars | Visual Basic. The forms controls are easier to work with when you are just getting started. As you advance, you will use the visual basic controls more often.

Step Through the Application www.ks2inc.com Step Through the Application To get here: ALT+F11 or Tools | Macros | Visual Basic Editor Left Pane: shows the sheets and modules/forms/classes Right Pane: where you enter and edit/debug code.

Step Through the Application www.ks2inc.com Step Through the Application Set a reference to the ADO 2.x library so that the ADO objects can be used in your code

Step Through the Application www.ks2inc.com Step Through the Application Sub GetData() = name of the subroutine Dim xxxx as xxxxxx = declaring variables objFields – field object used for storing the field names rsRecords – recordset object used for storing the recordset returned from the iSeries. strSQL – string used to store the SQL statement lngOffset – used for storing the spreadsheet column position for the field titles lngColumn – used for storing the spreadsheet column position for the field values in each row. lngRow – used for storing the spreadsheet row position for the field values in each row.

Step Through the Application www.ks2inc.com Step Through the Application Objects: items in the application that you can program. Methods: what you do to the objects (action) Properties: attributes of objects Analogy: Noun (Objects) , Verbs (Methods), Adjectives (Properties) Note: the named ranges are being pulled in from the spreadsheet and used like a variable. (ie. Range(“rngDatabase”).Value = IBMDA400).

Step Through the Application www.ks2inc.com Step Through the Application To use (create an instance) of the recordset object, need to first set it. Once set, open the recordset by passing in the SQL statement, connection info, type of cursor, and type of command Next, add field headers by starting at named range “Output”. Loop through each field and return it to the spreadsheet. Resize and bold the font for the field titles

Step Through the Application www.ks2inc.com Step Through the Application Set the starting row = 1 Loop through the recordset until the end of file is reached (EOF). If not at the end of the file then Loop through each field value in the record and print the current value to the proper cell in the spreadsheet. Next field value Advance the row counter Otherwise, the end of file (EOF) has been reached and notify the user Move to the next record

Step Through the Application www.ks2inc.com Step Through the Application Close the recordset Free up the memory that was used for the recordset. Finished!

Refine the Application www.ks2inc.com Refine the Application Add controls so that the SQL statement can be dynamic.

Refine the Application www.ks2inc.com Refine the Application Update the formula in B12 to pickup the selections.

Refine the Application www.ks2inc.com Refine the Application Create another dropdown for the account #’s.

Refine the Application www.ks2inc.com Refine the Application Update the formula in B12 to pickup the new selection.

Finalizing the Application www.ks2inc.com Finalizing the Application Move the controls to the main reporting sheet.

www.ks2inc.com Terminology VBA: Visual Basic for Applications: programming language used primarily in the MS Office suite. (It has been licensed to other apps.) VB: Visual Basic: programming language that is easy to learn and runs on the Microsoft platform. ODBC: Open DataBase Connectivity: database access standard created by Microsoft that is widely used in many different applications. Easy to use with no programming required OLE DB Provider: Object Linking and Embedding Database Provider– system level programming interface for accessing all types of data. ADO: ActiveX Data Objects: an application programming interface created by Microsoft to universally access data. Requires user written code that can be stored in Office macros. SQL: Structured Query Language: a programming language that is used to read, write, and update database tables/files.

Resources Books: SQL at Work – MC Press www.ks2inc.com Resources Books: SQL at Work – MC Press Excel 2002/2003 – Wrox Publishing Links: www.mcpressonline.com www.iseriesnetwork.com www-1.ibm.com/servers/eserver/iseries/access/oledb www-1.ibm.com/servers/eserver/iseries/access/sphist.htm msdn.microsoft.com/office/understanding/excel/ msdn.microsoft.com/data/default.aspx

4425 W. Airport Freeway Suite 550 Irving, Texas 75062 www.ks2inc.com Contact Information Eric Kuefler KS2 Technologies, Inc. 4425 W. Airport Freeway Suite 550 Irving, Texas 75062 972.659.9631 x213 ekuefler@ks2inc.com

www.ks2inc.com Thank You!!!