Finish Decryption 25 minutes. Introduction to VBA Day 4.

Slides:



Advertisements
Similar presentations
S.P.R.I.N.T v2.0 User Guide Infrastructure Access Feedback Survey.
Advertisements

MS-Word XP Lesson 1.
Creating a Dialog-Based Comet Windows Program Brian Levantine.
1 Overview Introduction to VBA The Visual Basic Editor (VBE) –First Program Getting Started with VBA –Subroutines –Declaring variables –Input boxes and.
Macros/VBA Project Modules and Creating Add-Ins on the Toolbar
Tutorial 12: Enhancing Excel with Visual Basic for Applications
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
Exploring Office Grauer and Barber 1 Creating More Powerful Applications: Introduction to VBA(Wk9)
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
SUNY Morrisville-Norwich Campus-Week 12 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Using the Visual Basic Editor Visual Basic for Applications 1.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
CIS101 Introduction to Computing Week 12 Spring 2004.
Adding Automated Functionality to Office Applications.
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)
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
An Overview of the GAP Assessment Tool. Brief Description of the Tool  It is based on ISO  The assessment provides a checklist for an review of.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
A First Program Using C#
Defining Styles and Automatically Creating Table of Contents and Indexes Word Processing 4.03.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Adapting a ready made PowerPoint quiz with VBA
© 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.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
JLabel, JTextField, JButton and JOptionPane
® Microsoft Access 2010 Tutorial 11 Using and Writing Visual Basic for Applications Code.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
Teacher: Ms. Olifer MICROSOFT VISUAL STUDIO 2010: PROPERTIES OF WINDOWS FORM OBJECT.
Microsoft Outlook Signature Set-Up Guide.
Assessment for Learning Questionnaire Staff Guide.
Exploring Microsoft Office XP - Microsoft Word 2002 Chapter 71 Exploring Microsoft Word Chapter 7 The Expert User: Workgroups, Forms, Master Documents,
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 5 Decision Making.
Creating a Website Using the Web Page Wizard. Introduction Microsoft Word is an application to create documents. A webpage is one such document. A website.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
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.
Dialog Boxes – Day 1 Built-in Dialog Boxes Input Box Message Box Custom Dialog Boxes – User Forms.
Exploring Microsoft Access Chapter 8 Creating More Powerful Applications: Introduction to VBA.
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
1 Chapter Nine Using GUI Objects and the Visual Studio IDE.
Chapter 10 Function Block Diagram
How to Create a PowerPoint Presentation Kelley Dixon 2007.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
ME 142 Engineering Computation I Input, Output & Documentation.
Learning to use the Interactive Online Classroom Classroom Activities.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
Lesson 6 – Part 2 Word Lesson 6 presentation prepared by Michele Smith – North Buncombe High School, Weaverville, NC. Content from Microsoft Office Word.
JavaScript 101 Lesson 6: Introduction to Functions.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Title of your site Title of your page Text and images arranged on the page in the design of your choice. Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page.
IE 8580 Module 4: DIY Monte Carlo Simulation
Chapter 2: The Visual Studio .NET Development Environment
Access VBA Programming for Beginners - Class 3 -
Chapter 1: An Introduction to Visual Basic 2015
Using GUI Objects and the Visual Studio IDE
Microsoft Access Illustrated
Microsoft Office Illustrated
How to Import an Excel File
Exploring Microsoft Excel
Diagram It! When you wish to visually render a process, variables or components that are part of a larger system, Diagram It! is your game!
Click to place title Sub title
Microsoft Word 2010 Lesson 6 – Part 5
Project and Assignment Submission
Please insert Title Please insert sub-title 1
3.3 – Invoke Workflow File Exercise 3.2: Extract as Workflow
Microsoft Word 2010 Lesson 6 – Part 2
Presentation transcript:

Finish Decryption 25 minutes

Introduction to VBA Day 4

Objectives: You should be able to… …open the Visual Basic Editor and understand the basic components of the editor. …implement a message box. …declare variables. …use conditional statements. …write to a text file using VBA. …understand some basic principles of programming (documentation and indentation).

Opening the VBA editor

Microsoft Visual Basic

Message Box MsgBox(“text” [, buttons] [, title] [helpfile, context])

Our first VBA program (part 1) Goal: Display a message that tells you “hello”. Sub MessageBox() MsgBox(“Hello!”) End Sub

Our first VBA program (part 2) Goal: –Display a message that tells you “hello”. –Title of the message box is “First Program” –The buttons are “Yes” and “No” Sub MessageBox() MsgBox(“Hello!”,vbYesNo,”First Program”) End Sub

Our first VBA program (part 3) Goal: –Change the message box to a yes/no question. –Add to our previous program to give a response to your answer.

Our first VBA program (part 4) Goal: –Modify the last program to output response to the message box to a text file.

Our first VBA program (part 5) Goal: –Modify the last program to output response to the message box to a text file without deleting previous content. –Also output the time and date of the response.