Many MS Excel Worksheets Read Them Without Typing Their Names Ravi Vaylay, PhD, Cybrid, Inc

Size: px
Start display at page:

Download "Many MS Excel Worksheets Read Them Without Typing Their Names Ravi Vaylay, PhD, Cybrid, Inc"

Transcription

1 Many MS Excel Worksheets Read Them Without Typing Their Names Ravi Vaylay, PhD, Cybrid, Inc Abstract: The objective of this paper is to present a VBA (Visual Basic for Applications) macro in MS Excel and further SAS programming to read several worksheets of a single MS Excel workbook without typing their names. The worksheet names of an interested workbook are obtained by running a VBA macro stored in a separate MS Excel file through a SAS program. In the same SAS program, Proc Import procedure is used to read all worksheets and create SAS data sets. Introduction: Needless to mention, MS Excel is the most popular data entry option. It is quite common for SAS programmers to receive data in MS Excel format. Each MS Excel workbook can hold 255 worksheets. Many a times, data is given to SAS programmers in one MS Excel workbook with several worksheets. It may be quite tedious and error prone for a SAS programmer to type each worksheet name and read it individually into SAS. There are quite a few papers presented on SAS and Excel. Roper (2000) demonstrated running a VBA macro from SAS program. Vyerman (2002) introduced and discussed a X4ML (Excel version 4 Macro Language) technique of obtaining worksheet names but was of the opinion that it may not work if there are too many worksheets. So far, automation of reading several worksheets is not yet presented. Some of the features of X4ML no longer work as VBA has replaced it. Therefore, I used VBA macros. In this present paper, I will present and discuss a technique to create list of all the worksheets present in a MS Excel workbook. After we obtain the list of the worksheet names, we can read all of the worksheets iteratively using commonly used procedure Proc Import. Methodology Create List of Worksheet Names: For this kind of task, the most important aspect is to obtain a list of all worksheets present in a workbook. To accomplish this task, the following VBA code is used. Sub worksheet_names() Dim WS As Worksheet Sheets.Add.Name = "Worksheet_Names" For Each WS In Worksheets Cells(WS.Index, 1).Value = WS.Name Next WS End Sub The above code may be created in a new MS Excel file. Steps to do it are: Open a new MS Excel file > Tools > Macro > (type a name for macro, in the above, it is worksheet_names in the first line), Create. Now, Visual Basic editor opens up with Sub

2 worksheet_names(). Type the above code starting from 2 nd line till the last before line. The new worksheet is called as Worksheet_Names in the above example. This code when run through a SAS program, loops through each worksheet, obtains its name and outputs to the newly created worksheet (Worksheet_Names) starting from 1 st row of 1 st column. Note: 1. Prior to running the VBA macro using SAS, it would be better to disable the Security feature of MS Excel. For this, go to Tools > Macro > Security. Select Low. After reading data from MS Excel worksheets, please restore the Security to High or Medium so that a user may be alerted if there are any viruses. 2. If one is using Office XP, and if the security level is medium, there is no need to disable the security feature. While running SAS program, a prompt will appear and a user can simply enable the macros. The SAS Program The required SAS program is presented in the appendix 1. Comments are given within the SAS program. The SAS program may be broadly divided into the following steps: Step 1: Define macro variables for Excel file containing VBA macros, VBA macro name, the Excel file from which data has to be read, and to the range of worksheet names after they are output. The row range is given as r256 which is the maximum as there are 255 maximum allowed worksheets and 1 inserted new worksheet. Step 2: Open the required 2 Excel files one with the VBA macros and the other from which data needs to be read. Both files need to be opened in order to run the VBA macro and to obtain the names of the worksheets of the data Excel file. Step 3: Run the VBA macro from within the SAS program. Step 4: Read all worksheet names from the newly created worksheet in the data MS Excel file and close all opened MS Excel files. Step 5: Assign a macro variable dynamically for each worksheet name and to the total number of worksheets. This enables the proc import to read each worksheet iteratively and as well as to stop after reading the last worksheet. Step 6: Create a macro for proc import and read all worksheets iteratively. Conclusions: Once after an Excel file is created with VBA macros, it can always be used as and when the need arises. The VBA macro works if there are 255 worksheets (the maximum allowed) in a workbook. 2

3 References: Roper, C.A (2000). Using SAS and DDE to execute VBA macros in Microsoft Excel. Proceeding of the 25 th Annual SAS Users Group International Conference, paper 98. Vyerman, K (2002). Creating Custom Excel Workbooks from Base SAS with Dynamic Data Exchange: A Complete Walkthrough. Proceeding of 27 th Annual SAS Users Group International Conference, paper 27. Contact Information: Ravi Vaylay, PhD Cybrid, Inc 4807 Jonestown Road, Suite 253 Harrisburg, PA ravi@cybridinc.com SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Appendix 1: * Step 1: Create Macro Variables *; * Macro name for Excel file containing VBA macro; %let xl_macro_file = c:ravi\nesug\worksheet_names.xls; *Macro name for VBA macro within the Excel file; %let xl_macro = worksheet_names.xls!worksheet_names; *Macro name for Excel file containing data to be read; %let xl_data_file = C:\Ravi\nesug\data.xls; * Macro Name for the list of the worksheet names; %let xl_ref = c:\ravi\[data.xls]worksheet_names!r1c1:r256c1; * Step 2: Open the Required Excel Files *; X "&xl_macro_file"; * Opens the Macro XL File; X "&xl_data_file"; * Opens the Data XL File; *** Let SAS sleep for a while ****************************************; 3

4 * Step 3: Run the VBA Macro present in MS Excel File *; filename sas2xl dde 'excel system'; file sas2xl; put "[RUN(""&&xl_macro"")]"; *** Let SAS sleep for a while ****************************************; * Step 4: Read the Worksheet Names from Excel Data File *; * Delete the observation with value= Worksheet_Names as this is the *; * name of the newly created worksheet file. *; * The length of the worksheet names can be up to 31 characters *; filename excel2 dde "excel &&xl_ref"; data sh_names; infile excel2 dlm='09'x; input worksheet_names : $31.; if worksheet_names = Worksheet_Names then delete; *** Close All Excel Files ********************************************; file sas2xl; put '[error(false)]'; put '[file.close(false)]'; put '[quit()]'; *** Let SAS sleep for a while Again **********************************; * Step 5: Assign Macro Variable to each worksheet name and to total *; * number of worksheets. Create a counter variable to count the number*; * of each iteration and total iterations *; set sh_names end=last; i + 1; call symput ('n' trim(left(put(i,8.))),compress(worksheet_names)); if last then call symput('total',trim(left(put(i,8.)))); 4

5 * Step 6: Macro To Read All Data Worksheets *; %macro read_xl_sheets; %do i=1 %to &total; proc import datafile = "&xl_data_file" out = &&n&i dbms = excel2000 replace; sheet = "&&n&i"; getnames=yes; %end; %mend read_xl_sheets; * Invoke the Macro *; %read_xl_sheets; quit; 5

Combining SAS LIBNAME and VBA Macro to Import Excel file in an Intriguing, Efficient way Ajay Gupta, PPD Inc, Morrisville, NC

Combining SAS LIBNAME and VBA Macro to Import Excel file in an Intriguing, Efficient way Ajay Gupta, PPD Inc, Morrisville, NC ABSTRACT PharmaSUG 2013 - Paper CC11 Combining SAS LIBNAME and VBA Macro to Import Excel file in an Intriguing, Efficient way Ajay Gupta, PPD Inc, Morrisville, NC There are different methods such PROC

More information

Using SAS DDE to Control Excel

Using SAS DDE to Control Excel Using SAS DDE to Control Excel George Zhu Alberta Health, Government of Alberta Edmonton SAS User Group Meeting April 15, 2015 1 DDE: Dynamic Data Exchange 2 Examples and Demonstration Demo 1: Import password

More information

Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC

Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC ABSTRACT PharmaSUG 2012 - Paper CC07 Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC In Pharmaceuticals/CRO industries, Excel files are widely use for data storage.

More information

Applications Development

Applications Development Paper 21-25 Using SAS Software and Visual Basic for Applications to Automate Tasks in Microsoft Word: An Alternative to Dynamic Data Exchange Mark Stetz, Amgen, Inc., Thousand Oaks, CA ABSTRACT Using Dynamic

More information

Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA

Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA ABSTRACT PROC EXPORT, LIBNAME, DDE or excelxp tagset? Many techniques exist to create an excel file using SAS.

More information

Create an Excel report using SAS : A comparison of the different techniques

Create an Excel report using SAS : A comparison of the different techniques Create an Excel report using SAS : A comparison of the different techniques Romain Miralles, Clinovo, Sunnyvale, CA Global SAS Forum 2011 April 2011 1 1. ABSTRACT Many techniques exist to create an Excel

More information

Spelling Checker Utility in SAS using VBA Macro and SAS Functions Ajay Gupta, PPD, Morrisville, NC

Spelling Checker Utility in SAS using VBA Macro and SAS Functions Ajay Gupta, PPD, Morrisville, NC PharmaSUG 2015 - Paper P017 Spelling Checker Utility in SAS using VBA Macro and SAS Functions Ajay Gupta, PPD, Morrisville, NC ABSTRACT In Pharmaceuticals/CRO industries, it is quite common to have typographical

More information

Importing Excel Files Into SAS Using DDE Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA

Importing Excel Files Into SAS Using DDE Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA Importing Excel Files Into SAS Using DDE Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA ABSTRACT With the popularity of Excel files, the SAS user could use an easy way to get Excel files

More information

A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets

A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets PharmaSUG2011 - Paper CC10 A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets Wenyu Hu, Merck Sharp & Dohme Corp., Upper Gwynedd, PA Liping Zhang, Merck Sharp & Dohme

More information

LabVIEW Report Generation Toolkit for Microsoft Office

LabVIEW Report Generation Toolkit for Microsoft Office USER GUIDE LabVIEW Report Generation Toolkit for Microsoft Office Version 1.1.2 Contents The LabVIEW Report Generation Toolkit for Microsoft Office provides VIs and functions you can use to create and

More information

THE HELLO WORLD PROJECT

THE HELLO WORLD PROJECT Paper RIV-08 Yes! SAS ExcelXP WILL NOT Create a Microsoft Excel Graph; But SAS Users Can Command Microsoft Excel to Automatically Create Graphs From SAS ExcelXP Output William E Benjamin Jr, Owl Computer

More information

CDW DATA QUALITY INITIATIVE

CDW DATA QUALITY INITIATIVE Loading Metadata to the IRS Compliance Data Warehouse (CDW) Website: From Spreadsheet to Database Using SAS Macros and PROC SQL Robin Rappaport, IRS Office of Research, Washington, DC Jeff Butler, IRS

More information

ABSTRACT INTRODUCTION CLINICAL PROJECT TRACKER OF SAS TASKS. Paper PH-02-2015

ABSTRACT INTRODUCTION CLINICAL PROJECT TRACKER OF SAS TASKS. Paper PH-02-2015 Paper PH-02-2015 Project Management of SAS Tasks - Excel Dashboard without Using Any Program Kalaivani Raghunathan, Quartesian Clinical Research Pvt. Ltd, Bangalore, India ABSTRACT Have you ever imagined

More information

Using DDE and SAS/Macro for Automated Excel Report Consolidation and Generation

Using DDE and SAS/Macro for Automated Excel Report Consolidation and Generation Using DDE and SAS/Macro for Automated Excel Report Consolidation and Generation Mengxi Li, Sandra Archer, Russell Denslow Sodexho Campus Services, Orlando, FL Abstract Each week, the Sodexho Campus Services

More information

Different Approaches to Maintaining Excel Reports

Different Approaches to Maintaining Excel Reports Different Approaches to Maintaining Excel Reports Presented by: Amanda Bin Feng ING Direct Canada Toronto Area SAS Society, December 11, 2009 Objective When we need to maintain routine reports, we would

More information

The FTS Interactive Trader lets you create program trading strategies, as follows:

The FTS Interactive Trader lets you create program trading strategies, as follows: Program Trading The FTS Interactive Trader lets you create program trading strategies, as follows: You create the strategy in Excel by writing a VBA macro function The strategy can depend on your position

More information

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

LabVIEW Report Generation Toolkit for Microsoft Office User Guide LabVIEW Report Generation Toolkit for Microsoft Office User Guide Version 1.1 Contents The LabVIEW Report Generation Toolkit for Microsoft Office provides tools you can use to create and edit reports in

More information

Writing Macros in Microsoft Excel 2003

Writing Macros in Microsoft Excel 2003 Writing Macros in Microsoft Excel 2003 Introduction A macro is a series of instructions which can be issued using a single command. The macro can be invoked in various different ways - from the keyboard

More information

Word 2010: Mail Merge to Email with Attachments

Word 2010: Mail Merge to Email with Attachments Word 2010: Mail Merge to Email with Attachments Table of Contents TO SEE THE SECTION FOR MACROS, YOU MUST TURN ON THE DEVELOPER TAB:... 2 SET REFERENCE IN VISUAL BASIC:... 2 CREATE THE MACRO TO USE WITHIN

More information

Working with Macros and VBA in Excel 2007

Working with Macros and VBA in Excel 2007 Working with Macros and VBA in Excel 2007 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

More information

Writing Data with Excel Libname Engine

Writing Data with Excel Libname Engine Writing Data with Excel Libname Engine Nurefsan (Neffy) Davulcu Advanced Analytics Intern, TransUnion Canada Golden Horseshoe SAS User Group (GHSUG) Burlington, Ontario, Canada MAY 27, 2016 ODS All Functionality

More information

SAS Macros as File Management Utility Programs

SAS Macros as File Management Utility Programs Paper 219-26 SAS Macros as File Management Utility Programs Christopher J. Rook, EDP Contract Services, Bala Cynwyd, PA Shi-Tao Yeh, EDP Contract Services, Bala Cynwyd, PA ABSTRACT This paper provides

More information

A Comparison of SAS versus Microsoft Excel and Access s Inbuilt VBA Functionality

A Comparison of SAS versus Microsoft Excel and Access s Inbuilt VBA Functionality A Comparison of SAS versus Microsoft Excel and Access s Inbuilt VBA Functionality Jozef Tarrant, Amadeus Software Ltd. Copyright 2011 Amadeus Software Ltd. 1 Overview What is VBA? VBA Essentials: Modules

More information

SAS UNIX-Space Analyzer A handy tool for UNIX SAS Administrators Airaha Chelvakkanthan Manickam, Cognizant Technology Solutions, Teaneck, NJ

SAS UNIX-Space Analyzer A handy tool for UNIX SAS Administrators Airaha Chelvakkanthan Manickam, Cognizant Technology Solutions, Teaneck, NJ PharmaSUG 2012 Paper PO11 SAS UNIX-Space Analyzer A handy tool for UNIX SAS Administrators Airaha Chelvakkanthan Manickam, Cognizant Technology Solutions, Teaneck, NJ ABSTRACT: In the fast growing area

More information

WHAT DO YOU DO WHEN YOU CAN NOT USE THE SDD ADVANCED LOADER

WHAT DO YOU DO WHEN YOU CAN NOT USE THE SDD ADVANCED LOADER Paper AD-009 Importing Complicated Excel Files into SAS Drug Development (SDD) Heather L. Murphy, Eli Lilly and Company, Indianapolis, IN Gregory C. Steffens, Eli Lilly and Company, Indianapolis, IN ABSTRACT

More information

How To Write A Clinical Trial In Sas

How To Write A Clinical Trial In Sas PharmaSUG2013 Paper AD11 Let SAS Set Up and Track Your Project Tom Santopoli, Octagon, now part of Accenture Wayne Zhong, Octagon, now part of Accenture ABSTRACT When managing the programming activities

More information

Mail Merge Creating Mailing Labels 3/23/2011

Mail Merge Creating Mailing Labels 3/23/2011 Creating Mailing Labels in Microsoft Word Address data in a Microsoft Excel file can be turned into mailing labels in Microsoft Word through a mail merge process. First, obtain or create an Excel spreadsheet

More information

Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access

Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix Jennifer Clegg, SAS Institute Inc., Cary, NC Eric Hill, SAS Institute Inc., Cary, NC ABSTRACT Release 2.1 of SAS

More information

Financial Data Access with SQL, Excel & VBA

Financial Data Access with SQL, Excel & VBA Computational Finance and Risk Management Financial Data Access with SQL, Excel & VBA Guy Yollin Instructor, Applied Mathematics University of Washington Guy Yollin (Copyright 2012) Data Access with SQL,

More information

EXCEL VBA ( MACRO PROGRAMMING ) LEVEL 1 21-22 SEPTEMBER 2015 9.00AM-5.00PM MENARA PJ@AMCORP PETALING JAYA

EXCEL VBA ( MACRO PROGRAMMING ) LEVEL 1 21-22 SEPTEMBER 2015 9.00AM-5.00PM MENARA PJ@AMCORP PETALING JAYA EXCEL VBA ( MACRO PROGRAMMING ) LEVEL 1 21-22 SEPTEMBER 2015 9.00AM-5.00PM MENARA PJ@AMCORP PETALING JAYA What is a Macro? While VBA VBA, which stands for Visual Basic for Applications, is a programming

More information

VBA Microsoft Access 2007 Macros to Import Formats and Labels to SAS

VBA Microsoft Access 2007 Macros to Import Formats and Labels to SAS WUSS 2011 VBA Microsoft Access 2007 Macros to Import Formats and Labels to SAS Maria S. Melguizo Castro, Jerry R Stalnaker, and Christopher J. Swearingen Biostatistics Program, Department of Pediatrics

More information

Creating Dynamic Reports Using Data Exchange to Excel

Creating Dynamic Reports Using Data Exchange to Excel Creating Dynamic Reports Using Data Exchange to Excel Liping Huang Visiting Nurse Service of New York ABSTRACT The ability to generate flexible reports in Excel is in great demand. This paper illustrates

More information

Using SAS to Control and Automate a Multi SAS Program Process. Patrick Halpin November 2008

Using SAS to Control and Automate a Multi SAS Program Process. Patrick Halpin November 2008 Using SAS to Control and Automate a Multi SAS Program Process Patrick Halpin November 2008 What are we covering today A little background on me Some quick questions How to use Done files Use a simple example

More information

AN ANIMATED GUIDE: SENDING SAS FILE TO EXCEL

AN ANIMATED GUIDE: SENDING SAS FILE TO EXCEL Paper CC01 AN ANIMATED GUIDE: SENDING SAS FILE TO EXCEL Russ Lavery, Contractor for K&L Consulting Services, King of Prussia, U.S.A. ABSTRACT The primary purpose of this paper is to provide a generic DDE

More information

Introduction. Syntax Statements. Colon : Line Continuation _ Conditions. If Then Else End If 1. block form syntax 2. One-Line syntax. Do...

Introduction. Syntax Statements. Colon : Line Continuation _ Conditions. If Then Else End If 1. block form syntax 2. One-Line syntax. Do... 3 Syntax Introduction Syntax Statements Colon : Line Continuation _ Conditions If Then Else End If 1. block form syntax 2. One-Line syntax Select Case Case Case Else End Select Do...Loop For...Next While...Wend

More information

Combining External PDF Files by Integrating SAS and Adobe Acrobat Brandon Welch, Rho, Inc., Chapel Hill, NC Ryan Burns, Rho, Inc.

Combining External PDF Files by Integrating SAS and Adobe Acrobat Brandon Welch, Rho, Inc., Chapel Hill, NC Ryan Burns, Rho, Inc. Paper BB-15 Combining External PDF Files by Integrating SAS and Adobe Acrobat Brandon Welch, Rho, Inc, Chapel Hill, NC Ryan Burns, Rho, Inc, Chapel Hill, NC ABSTRACT As SAS programmers of various disciplines,

More information

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

Construction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry Construction Administrators Work Smart with Excel Programming and Functions OTEC 2014 Session 78 Robert Henry Cell References C O P Y Clicking into the Formula Bar or the Active Cell will cause color coded

More information

VBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK 608-698-6304

VBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK 608-698-6304 VBA PROGRAMMING FOR EXCEL FREDRIC B. GLUCK FGLUCK@MADISONCOLLEGE.EDU FBGLUCK@GMAIL.COM 608-698-6304 Text VBA and Macros: Microsoft Excel 2010 Bill Jelen / Tracy Syrstad ISBN 978-07897-4314-5 Class Website

More information

Using GABRIEL Excel to XML Templates

Using GABRIEL Excel to XML Templates Using GABRIEL Excel to XML Templates Contents What are the templates for?...1 What do I need to use them?...2 How do I create XML data and load it into GABRIEL?...2 How can I enter data into the templates?...2

More information

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

Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro. Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro. Do you need to always add gridlines, bold the heading

More information

Excel Reports and Macros

Excel Reports and Macros Excel Reports and Macros Within Microsoft Excel it is possible to create a macro. This is a set of commands that Excel follows to automatically make certain changes to data in a spreadsheet. By adding

More information

Importing Data into SAS

Importing Data into SAS 1 SAS is a commonly used statistical program utilized for a variety of analyses. SAS supports many types of files as input and the following tutorial will cover some of the most popular. SAS Libraries:

More information

Microsoft Project 2007 Level 1

Microsoft Project 2007 Level 1 Microsoft Project 2007 Level 1 One Day Course Course Description You need to gather information about the various tasks involved, resources required to accomplish the tasks, and the overall cost in order

More information

The Power of CALL SYMPUT DATA Step Interface by Examples Yunchao (Susan) Tian, Social & Scientific Systems, Inc., Silver Spring, MD

The Power of CALL SYMPUT DATA Step Interface by Examples Yunchao (Susan) Tian, Social & Scientific Systems, Inc., Silver Spring, MD Paper 052-29 The Power of CALL SYMPUT DATA Step Interface by Examples Yunchao (Susan) Tian, Social & Scientific Systems, Inc., Silver Spring, MD ABSTRACT AND INTRODUCTION CALL SYMPUT is a SAS language

More information

Paper 74881-2011 Creating SAS Datasets from Varied Sources Mansi Singh and Sofia Shamas, MaxisIT Inc, NJ

Paper 74881-2011 Creating SAS Datasets from Varied Sources Mansi Singh and Sofia Shamas, MaxisIT Inc, NJ Paper 788-0 Creating SAS Datasets from Varied Sources Mansi Singh and Sofia Shamas, MaxisIT Inc, NJ ABSTRACT Often SAS programmers find themselves dealing with data coming from multiple sources and usually

More information

SAS Tips and Tricks. Disclaimer: I am not an expert in SAS. These are just a few tricks I have picked up along the way.

SAS Tips and Tricks. Disclaimer: I am not an expert in SAS. These are just a few tricks I have picked up along the way. SAS Tips and Tricks Disclaimer: I am not an expert in SAS. These are just a few tricks I have picked up along the way. Saving Data Files Note: You can skip this step entirely by reading the data in directly

More information

SPV Reporting Tool VBA Code User Guide. Last Updated: December, 2009

SPV Reporting Tool VBA Code User Guide. Last Updated: December, 2009 SPV Reporting Tool VBA Code User Guide Last Updated: December, 2009 SPV Reporting Tool Excel VBA Functionalities Golden Copy Golden Copy - Introduction This portion of the User Guide will go through troubleshooting

More information

How to Use SDTM Definition and ADaM Specifications Documents. to Facilitate SAS Programming

How to Use SDTM Definition and ADaM Specifications Documents. to Facilitate SAS Programming How to Use SDTM Definition and ADaM Specifications Documents to Facilitate SAS Programming Yan Liu Sanofi Pasteur ABSTRCT SDTM and ADaM implementation guides set strict requirements for SDTM and ADaM variable

More information

INSTRUCTIONS FOR WORKING WITH THE PATIENT TALLY REPORT WORKBOOK TEMPLATE

INSTRUCTIONS FOR WORKING WITH THE PATIENT TALLY REPORT WORKBOOK TEMPLATE INSTRUCTIONS FOR WORKING WITH THE PATIENT TALLY REPORT WORKBOOK TEMPLATE Description In order to facilitate use of the outcome and case mix patient tally information for Outcome-Based Quality Improvement,

More information

Programming in Access VBA

Programming in Access VBA PART I Programming in Access VBA In this part, you will learn all about how Visual Basic for Applications (VBA) works for Access 2010. A number of new VBA features have been incorporated into the 2010

More information

SAS and Electronic Mail: Send e-mail faster, and DEFINITELY more efficiently

SAS and Electronic Mail: Send e-mail faster, and DEFINITELY more efficiently Paper 78-26 SAS and Electronic Mail: Send e-mail faster, and DEFINITELY more efficiently Roy Fleischer, Sodexho Marriott Services, Gaithersburg, MD Abstract With every new software package I install, I

More information

Overview of sharing and collaborating on Excel data

Overview of sharing and collaborating on Excel data Overview of sharing and collaborating on Excel data There are many ways to share, analyze, and communicate business information and data in Microsoft Excel. The way that you choose to share data depends

More information

How to Recover a Corrupt Excel File

How to Recover a Corrupt Excel File How to Recover a Corrupt Excel File Edited by Paul Pruitt, Tom Viren, Ben Rubenstein, Nicole Willson and 17 others From: http://www.wikihow.com/recover-a-corrupt-excel-file Repair Method 1. Open a blank

More information

A Method for Cleaning Clinical Trial Analysis Data Sets

A Method for Cleaning Clinical Trial Analysis Data Sets A Method for Cleaning Clinical Trial Analysis Data Sets Carol R. Vaughn, Bridgewater Crossings, NJ ABSTRACT This paper presents a method for using SAS software to search SAS programs in selected directories

More information

The FTS Real Time System lets you create algorithmic trading strategies, as follows:

The FTS Real Time System lets you create algorithmic trading strategies, as follows: Algorithmic Trading The FTS Real Time System lets you create algorithmic trading strategies, as follows: You create the strategy in Excel by writing a VBA macro function The strategy can depend on your

More information

Bag it, Tag it & Put it: Project tracking one click away!

Bag it, Tag it & Put it: Project tracking one click away! Bag it, Tag it & Put it: Project tracking one click away! Abhishek Bakshi Cytel, Pune The views expressed in this presentation are my own and do not necessarily represent the views of Cytel Statistical

More information

DESKTOP COMPUTER SKILLS

DESKTOP COMPUTER SKILLS 1 Desktop Computer Skills Price List DESKTOP COMPUTER SKILLS Microsoft Office 2010 Microsoft Office 2010: New Features Please note all prices exclude VAT Approx. Learning Hours: 3 Price: 45 Office 2010

More information

1. Linking among several worksheets in the same workbook 2. Linking data from one workbook to another

1. Linking among several worksheets in the same workbook 2. Linking data from one workbook to another Microsoft Excel 2003: Part V Advanced Custom Tools Windows XP (I) Linking Data from Several Worksheets and Workbooks In Excel Level III, we have learned and seen examples of how to link data from one worksheet

More information

Skills Funding Agency

Skills Funding Agency Provider Data Self Assessment Toolkit (PDSAT) v15 User Guide Contents Introduction... 3 1 Before You Start... 4 1.1 Compatibility... 4 1.2 Extract PDSAT... 4 1.3 Trust Center... 4 2. Using PDSAT... 6 2.1

More information

Reading Delimited Text Files into SAS 9 TS-673

Reading Delimited Text Files into SAS 9 TS-673 Reading Delimited Text Files into SAS 9 TS-673 Reading Delimited Text Files into SAS 9 i Reading Delimited Text Files into SAS 9 Table of Contents Introduction... 1 Options Available for Reading Delimited

More information

Building a Marketing Dashboard using Excel and SAS. Tim Walters InfoTech Marketing

Building a Marketing Dashboard using Excel and SAS. Tim Walters InfoTech Marketing Building a Marketing Dashboard using Excel and SAS Tim Walters InfoTech Marketing 1 Desired Outcome Dashboard Sheet and 6 Results Sheets 2 Client Environmental Considerations Client company has software

More information

Sara Langenfeld and Sarah Klobe

Sara Langenfeld and Sarah Klobe Customize the Look and Feel of BW Reports in SAP BusinessObjects Analysis (Office) by Using API Calls to Expand the Functionality and User Experience Session #0308 Sara Langenfeld and Sarah Klobe Agenda

More information

An email macro: Exploring metadata EG and user credentials in Linux to automate email notifications Jason Baucom, Ateb Inc.

An email macro: Exploring metadata EG and user credentials in Linux to automate email notifications Jason Baucom, Ateb Inc. SESUG 2012 Paper CT-02 An email macro: Exploring metadata EG and user credentials in Linux to automate email notifications Jason Baucom, Ateb Inc., Raleigh, NC ABSTRACT Enterprise Guide (EG) provides useful

More information

Data Presentation. Paper 126-27. Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs

Data Presentation. Paper 126-27. Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs Paper 126-27 Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs Tugluke Abdurazak Abt Associates Inc. 1110 Vermont Avenue N.W. Suite 610 Washington D.C. 20005-3522

More information

Preparing Real World Data in Excel Sheets for Statistical Analysis

Preparing Real World Data in Excel Sheets for Statistical Analysis Paper DM03 Preparing Real World Data in Excel Sheets for Statistical Analysis Volker Harm, Bayer Schering Pharma AG, Berlin, Germany ABSTRACT This paper collects a set of techniques of importing Excel

More information

Using Microsoft Excel for Data Presentation Peter Godard and Cyndi Williamson, SRI International, Menlo Park, CA

Using Microsoft Excel for Data Presentation Peter Godard and Cyndi Williamson, SRI International, Menlo Park, CA Using Microsoft Excel for Data Presentation Peter Godard and Cyndi Williamson, SRI International, Menlo Park, CA ABSTRACT A common problem: You want to use SAS to manipulate and summarize your data, but

More information

Managing Tables in Microsoft SQL Server using SAS

Managing Tables in Microsoft SQL Server using SAS Managing Tables in Microsoft SQL Server using SAS Jason Chen, Kaiser Permanente, San Diego, CA Jon Javines, Kaiser Permanente, San Diego, CA Alan L Schepps, M.S., Kaiser Permanente, San Diego, CA Yuexin

More information

Computer Skills: Levels of Proficiency

Computer Skills: Levels of Proficiency Computer Skills: Levels of Proficiency September 2011 Computer Skills: Levels of Proficiency Because of the continually increasing use of computers in our daily communications and work, the knowledge of

More information

ABSTRACT INTRODUCTION SAS AND EXCEL CAPABILITIES SAS AND EXCEL STRUCTURES

ABSTRACT INTRODUCTION SAS AND EXCEL CAPABILITIES SAS AND EXCEL STRUCTURES Paper 85-2010 Choosing the Right Tool from Your SAS and Microsoft Excel Tool Belt Steven First and Jennifer First, Systems Seminar Consultants, Madison, Wisconsin ABSTRACT There are over a dozen ways to

More information

It s not the Yellow Brick Road but the SAS PC FILES SERVER will take you Down the LIBNAME PATH= to Using the 64-Bit Excel Workbooks.

It s not the Yellow Brick Road but the SAS PC FILES SERVER will take you Down the LIBNAME PATH= to Using the 64-Bit Excel Workbooks. Pharmasug 2014 - paper CC-47 It s not the Yellow Brick Road but the SAS PC FILES SERVER will take you Down the LIBNAME PATH= to Using the 64-Bit Excel Workbooks. ABSTRACT William E Benjamin Jr, Owl Computer

More information

Hummingbird Enterprise 2004 5.1.0.5

Hummingbird Enterprise 2004 5.1.0.5 COM Automation for Microsoft Word & Excel Hummingbird Enterprise 2004 5.1.0.5 COM Automation for Microsoft Word & Excel Version: 5.1.0.5 Service Release 5 and later Copyright 1998-2007 Hummingbird Ltd.

More information

Module 2 - Multiplication Table - Part 1-1

Module 2 - Multiplication Table - Part 1-1 Module 2 - Multiplication Table - Part 1 TOPICS COVERED: 1) VBA and VBA Editor (0:00) 2) Arrays (1:15) 3) Creating a Multiplication Table (2:34) 4) TimesTable Subroutine (3:08) 5) Improving Efficiency

More information

Paper FF-014. Tips for Moving to SAS Enterprise Guide on Unix Patricia Hettinger, Consultant, Oak Brook, IL

Paper FF-014. Tips for Moving to SAS Enterprise Guide on Unix Patricia Hettinger, Consultant, Oak Brook, IL Paper FF-014 Tips for Moving to SAS Enterprise Guide on Unix Patricia Hettinger, Consultant, Oak Brook, IL ABSTRACT Many companies are moving to SAS Enterprise Guide, often with just a Unix server. A surprising

More information

Technical Paper. Reading Delimited Text Files into SAS 9

Technical Paper. Reading Delimited Text Files into SAS 9 Technical Paper Reading Delimited Text Files into SAS 9 Release Information Content Version: 1.1July 2015 (This paper replaces TS-673 released in 2009.) Trademarks and Patents SAS Institute Inc., SAS Campus

More information

Microsoft Office 2007

Microsoft Office 2007 Microsoft Office 2007 Getting Started With Excel 2007 Anjal Smidt Computing Services Table of Contents PRELUDE TO EXCEL 2007... 3 NEW FILE FORMAT AND EXTENSIONS... 3 WORKING WITH DIFFERENT VERSIONS OF

More information

Using the Advanced Tier Data Collection Tool. A Troubleshooting Guide

Using the Advanced Tier Data Collection Tool. A Troubleshooting Guide Using the Advanced Tier Data Collection Tool A Troubleshooting Guide Table of Contents Mouse Click the heading to jump to the page Enable Content/ Macros... 4 Add a new student... 6 Data Entry Screen...

More information

Using Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX

Using Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX Paper 126-29 Using Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX ABSTRACT This hands-on workshop shows how to use the SAS Macro Facility

More information

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands. Quick Start Guide Microsoft Excel 2013 looks different from previous versions, so we created this guide to help you minimize the learning curve. Add commands to the Quick Access Toolbar Keep favorite commands

More information

SECTION 5: Finalizing Your Workbook

SECTION 5: Finalizing Your Workbook SECTION 5: Finalizing Your Workbook In this section you will learn how to: Protect a workbook Protect a sheet Protect Excel files Unlock cells Use the document inspector Use the compatibility checker Mark

More information

Managing very large EXCEL files using the XLS engine John H. Adams, Boehringer Ingelheim Pharmaceutical, Inc., Ridgefield, CT

Managing very large EXCEL files using the XLS engine John H. Adams, Boehringer Ingelheim Pharmaceutical, Inc., Ridgefield, CT Paper AD01 Managing very large EXCEL files using the XLS engine John H. Adams, Boehringer Ingelheim Pharmaceutical, Inc., Ridgefield, CT ABSTRACT The use of EXCEL spreadsheets is very common in SAS applications,

More information

We begin by defining a few user-supplied parameters, to make the code transferable between various projects.

We begin by defining a few user-supplied parameters, to make the code transferable between various projects. PharmaSUG 2013 Paper CC31 A Quick Patient Profile: Combining External Data with EDC-generated Subject CRF Titania Dumas-Roberson, Grifols Therapeutics, Inc., Durham, NC Yang Han, Grifols Therapeutics,

More information

Task 2.2.11 CMU Report 06: Programs for Design Analysis Support and Simulation Integration. Department of Energy Award # EE0004261

Task 2.2.11 CMU Report 06: Programs for Design Analysis Support and Simulation Integration. Department of Energy Award # EE0004261 Task 2.2.11 CMU Report 06: Programs for Design Analysis Support and Simulation Integration Department of Energy Award # EE0004261 Omer T. Karaguzel, PhD Candidate Khee Poh Lam, PhD, RIBA, Professor Of

More information

A Comparison of SAS versus Microsoft Excel and Access s Inbuilt VBA Functionality Jozef Tarrant, Amadeus Software Ltd., Oxford, UK

A Comparison of SAS versus Microsoft Excel and Access s Inbuilt VBA Functionality Jozef Tarrant, Amadeus Software Ltd., Oxford, UK ABSTRACT There are a great variety of business situations where it is necessary to automatically export data from a large number of similar Microsoft Excel spreadsheets (perhaps reports, forms etc.) into

More information

To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data:

To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data: You can analyze your data and display it in a histogram (a column chart that displays frequency data) by using the Histogram tool of the Analysis ToolPak. This data analysis add-in is available when you

More information

Getting Started Guide

Getting Started Guide Getting Started Guide Introduction... 3 What is Pastel Partner (BIC)?... 3 System Requirements... 4 Getting Started Guide... 6 Standard Reports Available... 6 Accessing the Pastel Partner (BIC) Reports...

More information

Working with Spreadsheets

Working with Spreadsheets osborne books Working with Spreadsheets UPDATE SUPPLEMENT 2015 The AAT has recently updated its Study and Assessment Guide for the Spreadsheet Software Unit with some minor additions and clarifications.

More information

Microsoft Office Series

Microsoft Office Series Microsoft Office Series Microsoft Office is the office suite of desktop applications delivering the tools and services to get work done. Our Microsoft Office Quickcert offerings allow your key individuals

More information

Emailing Automated Notification of Errors in a Batch SAS Program Julie Kilburn, City of Hope, Duarte, CA Rebecca Ottesen, City of Hope, Duarte, CA

Emailing Automated Notification of Errors in a Batch SAS Program Julie Kilburn, City of Hope, Duarte, CA Rebecca Ottesen, City of Hope, Duarte, CA Emailing Automated Notification of Errors in a Batch SAS Program Julie Kilburn, City of Hope, Duarte, CA Rebecca Ottesen, City of Hope, Duarte, CA ABSTRACT With multiple programmers contributing to a batch

More information

Excel Programming Tutorial 1

Excel Programming Tutorial 1 Excel Programming Tutorial 1 Macros and Functions by Dr. Tom Co Department of Chemical Engineering Michigan Technological University (8/31/07, 11/11/07) Excel Version: Excel 2007 Basic Concepts: Features:

More information

Microsoft' Excel & Access Integration

Microsoft' Excel & Access Integration Microsoft' Excel & Access Integration with Office 2007 Michael Alexander and Geoffrey Clark J1807 ; pwiueyb Wiley Publishing, Inc. Contents About the Authors Acknowledgments Introduction Part I: Basic

More information

SAS Add in to MS Office A Tutorial Angela Hall, Zencos Consulting, Cary, NC

SAS Add in to MS Office A Tutorial Angela Hall, Zencos Consulting, Cary, NC Paper CS-053 SAS Add in to MS Office A Tutorial Angela Hall, Zencos Consulting, Cary, NC ABSTRACT Business folks use Excel and have no desire to learn SAS Enterprise Guide? MS PowerPoint presentations

More information

St Petersburg College. Office of Professional Development. Technical Skills. Adobe

St Petersburg College. Office of Professional Development. Technical Skills. Adobe St Petersburg College Office of Professional Development Technical Skills Adobe Adobe Photoshop PhotoShop CS4: Getting Started PhotoShop CS4: Beyond the Basics Adobe Illustrator Illustrator CS4: Getting

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

Integrating SAS and Microsoft Office for Analysis and Reporting of Hearing Loss in Occupational Health Management

Integrating SAS and Microsoft Office for Analysis and Reporting of Hearing Loss in Occupational Health Management Integrating SAS and Microsoft Office for Analysis and Reporting of Hearing Loss in Occupational Health Management George Bukhbinder, Palisades Research, Inc., Bernardsville, NJ Mark Nicolich, ExxonMobil

More information

A universal method to create complex reports in Excel

A universal method to create complex reports in Excel A universal method to create complex reports in Excel 1 Introduction All organizations have the need for creating reports and to analyze data. There are many suppliers, tools and ideas how to accomplish

More information

Microsoft Excel Training - Course Topic Selections

Microsoft Excel Training - Course Topic Selections Microsoft Excel Training - Course Topic Selections The Basics Creating a New Workbook Navigating in Excel Moving the Cell Pointer Using Excel Menus Using Excel Toolbars: Hiding, Displaying, and Moving

More information

Instructions to operating forms created in MSWord and Excel

Instructions to operating forms created in MSWord and Excel Instructions to operating forms created in MSWord and Excel Forms created in MSWord and Excel can contain macros. In order for the form to work correctly, your MSWord/Excel security level must be set at

More information

SOAL-SOAL MICROSOFT EXCEL 1. The box on the chart that contains the name of each individual record is called the. A. cell B. title C. axis D.

SOAL-SOAL MICROSOFT EXCEL 1. The box on the chart that contains the name of each individual record is called the. A. cell B. title C. axis D. SOAL-SOAL MICROSOFT EXCEL 1. The box on the chart that contains the name of each individual record is called the. A. cell B. title C. axis D. legend 2. If you want all of the white cats grouped together

More information

Easy Map Excel Tool USER GUIDE

Easy Map Excel Tool USER GUIDE Easy Map Excel Tool USER GUIDE Overview Easy Map tool provides basic maps showing customized data, by Ontario health unit geographies. This tool will come in handy especially when there is no dedicated

More information