MS Exceli automatiseerimine makrode abil

Size: px
Start display at page:

Download "MS Exceli automatiseerimine makrode abil"

Transcription

1 MS Exceli automatiseerimine makrode abil 1 Koolitaja Silver Toompalu, MSc silver@toompalu.ee, postiindeks TTK ja EMÜ õppejõud (majanduse alused, statistika ja andmeanalüüs, informaatika, majandusmatemaatika, andmebaasid ja SQL ). Majanduskõrgharidus (2001), infotehnoloogia magister (2005). Juhtimiskogemus 8 aastat (Audentese Ülikool, õppedirektor). Arvutikoolitaja aastast

2 Saame tuttavaks Kes Sa oled, millega tegeled? Sinu varasemad kokkupuuted Exceli makrodega? Olulisemad teemad, soovid, ootused? 3 Makrod milleks? Mida saab makrodega teha? Ajas korduvate tegevuste automatiseerimine Tegevused, mida on vaja korrata nt järjest erinevatel töölehtedel Käivitada toiminguid automaatselt mingi sündmuse toimumisel Luua uusi töölehe funktsioone Luua kasutajate jaoks mitte-exceli töökeskkonda ja seda automatiseerida Pöörduda teiste Office rakenduste poole Exceli kaudu 4 2

3 Olulisemad teemad VBA kasutamine Excelis mis ja milleks? VBA ja programmeerimise põhimõisted Protseduurid ja funktsioonid Muutujad, andmetüübid Valikulaused (If, Select) Korduslaused (Do Loop; For Next; For Each Next) 5 Orienteeruv ajakava ja materjalid 2 PÄEVA 09:00 10:30 Koolitus (2 ak tundi) 10:30 10:45 Paus 10:45 12:15 Koolitus (2 ak tundi) 12:15 12:45 Lõuna 12:45 14:15 Koolitus (2 ak tundi) 14:30 14:45 Paus 14:30 15:30 Koolitus (1,5 ak tundi) 6 3

4 Lihtne näide 7 Turvalisus Makrosid sisaldav fail tuleb salvestada laiendiga.xlsm (Excel Macro-Enabled Workbook) Faili avamisel hoiatus! 8 4

5 Turvalisus Makrode ühekordseks lubamiseks valige File / Info Enable Content ning sealt Advanced Options ja Enable content for this session 9 Turvalisus Turvalise asukoha määramiseks vali File / Options Trust Center ning sealt Trust Center Settings ja Trusted Locations. 10 5

6 Makrode liigid VBA abil on Exceli keskkonnas võimalik luua järgmisi rakendusi: programmid, mis käivituvadhiireklõpsugamõnel nupul, objektil, klahvikombinatsiooni abil või läbi menüüsüsteemi makrode väljakutse akna; programmid, mis käivituvad mingi sündmuse peale Excelis (nt tööraamatu avamine või sulgemine, printimine, liikumine töölehel jne); programmid, mis käivituvad teatud kellaaegadel; töölehefunktsioonid, mida saab kasutada Exceli töölehel olevates valemites analoogselt Exceli sisemiste funktsioonidega 11 VBA projekt 12 6

7 Makro salvestamine Makro nime esimene märk peab olema täht (A-Z), edasi võivad tulla tähed, numbrid või alakriips (_). Makro nimes ei tohi olla tühikuid! Mittesoovitatavad on ka Õ, Ä, Ö, Ü. Salvestamise lõpetamiseks Stop Recording. 13 VBA keele põhireeglid Programm koosneb lausete jadast. Lauseid täidetakse selles järjekorras, nagu nad programmis esinevad. Täitmise järjekorda saab muuta spetsiaalsete juhtimislausete abil (nt valiku- ja korduslaused). Lisaks lausetele esinevad protseduurides ja nende vahel ka kommentaarid. Kommentaarid algavad alati ülakomaga ning lõpevad rea lõpus. 14 7

8 VBA keele põhireeglid Lause jätkemiseks järgmisel real tuleb pooliku rea lõppu panna <tühik><alakriips> ( _), mille järel peab rida vahetuma. Reapoolitusmärgi järel ei tohi olla ka kommentaare! Mitme lause kirjutamiseks ühele ja samale reale tuleb need üksteisest eraldada kooloniga. 15 VBA keele põhireeglid 16 8

9 VBA süntaksireeglid 17 VBA süntaksireeglid 18 9

10 VBA süntaksireeglid 19 Andmete lugemine töölehelt 20 10

11 Andmete kirjutamine töölehele ActiveSheet.Cells(7,3).Offset(5,4).Value = 7 21 MsgBox Function Syntax MsgBox(prompt[, buttons] [, title] [, helpfile, context]) Buttons Return Values vbokonly 0 vbdefaultbutton1 0 vbok 1 vbokcancel 1 vbdefaultbutton2 256 vbcancel 2 vbabortretryignore 2 vbdefaultbutton3 512 vbabort 3 vbyesnocancel 3 vbdefaultbutton4 768 vbretry 4 vbyesno 4 vbignore 5 vbretrycancel 5 vbyes 6 vbno 7 vbcritical 16 vbapplicationmodal 0 vbquestion 32 vbsystemmodal 4096 vbexclamation 48 vbinformation

12 InputBox Function 23 Kausta valik 24 12

13 Muutujate defineerimine 25 Andmetüübid 26 13

14 Muutuja skoop (ulatus) 27 For Nextlause 28 14

15 For Each lause 29 Do Loop lause 30 15

16 Esimene tühi lahter Sub Lahter() Dim FirstBlankCell As Range Set FirstBlankCell = _ Range("A" & Rows.Count). _ End(xlUp).Offset(1, 0) FirstBlankCell.Activate End Sub 31 Ekraani uuendamine Sub Lahter() Dim FirstBlankCell As Range Set FirstBlankCell = _ Range("A" & Rows.Count). _ End(xlUp).Offset(1, 0) FirstBlankCell.Activate End Sub 32 16

17 Tööraamat Sub AddNew() Set NewBook = Workbooks.Add With NewBook.Title = "All Sales".Subject = "Sales".SaveAs Filename:="Allsales.xls" End With End Sub Sub OpenUp() Workbooks.Open ("C:\Book2.xlsx") End Sub Sub Sulgemine() Workbooks("Allsales.xls").Close End Sub 33 Tööraamat Sub CheckOpen() Dim x As Workbook fname = "Allsales.xls" On Error Resume Next Set x = Workbooks(fname) If Err <> 0 Then v = Application.GetOpenFilename Workbooks.Open v Else MsgBox ("On avatud") End If End Sub 34 17

18 Töölehed 35 Töölehe funktsiooni kasutamine 36 18

19 Tekstifunktsioonid Stringide liitmine text = text1 & text2 Left algne = Lorem Ipsum text = Left(algne,4) Right algne = Lorem Ipsum text = Right(algne,4) Len algne = Lorem Ipsum text = Len(algne) Instr annab alamstr positsiooni algne = Lorem Ipsum text=instr(algne, re ) Mid algne = Lorem Ipsum text=mid(algne,2,3) Trim algne = Lorem Ipsum text = Trim(algne) Replace algne = Lorem Ipsum text=replace(algne, dolor ) Ucase algne = Lorem Ipsum text=ucase(algne) CHR/ASC StrComp StrComp(StringA, StringB, vbtextcompare) 37 Teksti asendamine 38 19

20 Teksti tükeldamine 39 Kuupäeva funktsioonid Now Date Time Timer TimeValue() DateValue() Current date and time. Example: 7/5/003:16:38 PM returned by Now Current date only. Example: 7/5/00 returned by Date Current time only. Example: 3:12:38 PM returned by Time Number of seconds since midnight. Example: 3:16:38 PM returned by Timer See other examples below this table. Time part of argument. Example: 3:16:38 PM returned by TimeValue(Now) Date part of argument (excellent for ordering by date) Example: SELECT * from tblpeople ORDER BY DateValue(Review) DateSerial() DatePart() Date part of three arguments: year, month, day Example: HAVING InvoiceDate <= DateSerial(Year(Now), Month(Now)-1, Day(Now)) DateSerial handles January correctly in the above example Returns a portion of the date. Year example: 2000 returned by DatePart('yyyy', Date) Month example: 10 returned by DatePart('m', #10/11/2001#) Week of year example: 41 returned by DatePart('ww', #10/11/2001#) Day of Week example: Monday returned by DatePart('dddd', #6/3/2002#) Quarter example: 4 returned by DatePart('q', #10/11/2001#) Year() Month() Day() Returns the year portion of the date argument. Also see DatePart() above. Returns the month portion of the date argument. Also see DatePart() above. Returns the day portion of the date argument. Also see DatePart() above

21 Kuupäeva funktsioonid MonthName() WeekdayName() Today() DateDiff() DateAdd() Format() Used to format month names. July returned by MonthName(Month(Date)) Used to format day names. Wednesday returned by WeekdayName(Weekday(Date)) Current date only; used in Excel, not available in Access Returns the difference in dates. Days example: -656 returned by DateDiff("d", #10/11/2001#,#12/25/1999#) Months example: 1 returned by DateDiff("m", #8/10/2000#,#9/14/2000#) Days example: 0 returned by DateDiff("m", date1, date2) 0 is returned above only if the two dates have same month and year Add and subtract dates. 10/11/2002 returned by DateAdd("yyyy", 1, #10/11/2001#)) Today's date + 30 days returned by DateAdd("d", 30, Date) The date 45 days ago returned by DateAdd("d", -45, Date) To find Monday of a week: DateAdd("d",-WeekDay(Date)+2,Date) Very useful for formatting dates. Examples: Wed, 5-July-2000 returned by Format(Date,"ddd, d-mmmm-yyyy") 5-Jul-00 returned by Format(Date,"d-mmm-yy") 41 Vormid UserForm1.Height =

22 Vormi elementide nimetamine frmmainwindow.txtusername.text = Nipitiri 43 Vormi avamine/sulgemine 44 22

Understanding the MsgBox command in Visual Basic

Understanding the MsgBox command in Visual Basic Understanding the MsgBox command in Visual Basic This VB2008 tutorial explains how to use the MsgBox function in Visual Basic. This also works for VBS MsgBox. The MsgBox function displays a message in

More information

Excel & Visual Basic for Applications (VBA)

Excel & Visual Basic for Applications (VBA) Class meeting #18 Monday, Oct. 26 th GEEN 1300 Introduction to Engineering Computing Excel & Visual Basic for Applications (VBA) user interfaces o on-sheet buttons o InputBox and MsgBox functions o userforms

More information

Programming Concepts and Skills. Arrays continued and Functions

Programming Concepts and Skills. Arrays continued and Functions Programming Concepts and Skills Arrays continued and Functions Fixed-Size vs. Dynamic Arrays A fixed-size array has a limited number of spots you can place information in. Dim strcdrack(0 to 2) As String

More information

Puudub protseduur. Protseduuri nimi võib olla valesti kirjutatud. Protseduuri (või funktsiooni) poole pöördumisel on vähem argumente kui vaja.

Puudub protseduur. Protseduuri nimi võib olla valesti kirjutatud. Protseduuri (või funktsiooni) poole pöördumisel on vähem argumente kui vaja. Puudub protseduur. Protseduuri nimi võib olla valesti kirjutatud. Sub prog1() Msgox "Tere" Sub prog2() a = si(1) Protseduuri (või funktsiooni) poole pöördumisel on vähem argumente kui vaja. a = Sin() Protseduuri

More information

variables programming statements

variables programming statements 1 VB PROGRAMMERS GUIDE LESSON 1 File: VbGuideL1.doc Date Started: May 24, 2002 Last Update: Dec 27, 2002 ISBN: 0-9730824-9-6 Version: 0.0 INTRODUCTION TO VB PROGRAMMING VB stands for Visual Basic. Visual

More information

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is InputBox( ) Function An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is A = InputBox ( Question or Phrase, Window Title, ) Example1: Integer:

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

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 2: Basic Visual Basic programming 2-1: What is Visual Basic IFA/QFN VBA Tutorial Notes prepared by Keith Wong BASIC is an acronym for Beginner's All-purpose Symbolic Instruction Code. It is a type

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE

MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE NOTE Unless otherwise stated, screenshots of dialog boxes and screens in this book were taken using Excel 2003 running on Window XP Professional.

More information

3 IN THIS CHAPTER. Understanding Program Variables

3 IN THIS CHAPTER. Understanding Program Variables Understanding Program Variables Your VBA procedures often need to store temporary values for use in statements and calculations that come later in the code. For example, you might want to store values

More information

Creating Macros David Giusto, Technical Services Specialist, Synergy Resources

Creating Macros David Giusto, Technical Services Specialist, Synergy Resources Creating Macros David Giusto, Technical Services Specialist, Synergy Resources Session Background Ever want to automate a repetitive function or have the system perform calculations that you may be doing

More information

SWITCH(DatePart("w",DateOfYear) IN(1,7),"Weekend",DatePart("w",DateOfYear) IN(2,3,4,5,6),"Weekday") AS DayType,

SWITCH(DatePart(w,DateOfYear) IN(1,7),Weekend,DatePart(w,DateOfYear) IN(2,3,4,5,6),Weekday) AS DayType, SeQueL 4 Queries and their Hidden Functions! by Clark Anderson A friend recently exclaimed Can you really use this function in SQL! In this article of my series I will explore and demonstrate many of the

More information

VBA. VBA at a glance. Lecture 61

VBA. VBA at a glance. Lecture 61 VBA VBA at a glance Lecture 61 1 Activating VBA within SOLIDWORKS Lecture 6 2 VBA Sub main() Function Declaration Dim A, B, C, D, E As Double Dim Message, Title, Default Message = "A : " ' Set prompt.

More information

1. Macro. 1.1 Overview. 1.2 Enable Developer Tab in Ribbon

1. Macro. 1.1 Overview. 1.2 Enable Developer Tab in Ribbon 1. Macro 1.1 Overview If you perform a task repeatedly in Microsoft Excel, you can automate the task with a macro. A macro is a series of commands and functions that are stored in a Microsoft Visual Basic

More information

In-Built Functions. String Handling Functions:-

In-Built Functions. String Handling Functions:- L i b r a r y F u n c t i o n s : String Handling Functions:- In-Built Functions 1) LTrim() :- Usage: The LTrim() function returns a string containing a copy of specified string without leading spaces.

More information

Excel VBA Programming

Excel VBA Programming Exclusive Study Manual Excel VBA Programming Advanced Excel Study Notes (For Private Circulation Only Not For Sale) 7208669962 8976789830 (022 ) 28114695 www.laqshya.in info@laqshya.in Study Notes Excel

More information

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number.

Phụ lục 2. Bởi: Khoa CNTT ĐHSP KT Hưng Yên. Returns the absolute value of a number. Phụ lục 2 Bởi: Khoa CNTT ĐHSP KT Hưng Yên Language Element Abs Function Array Function Asc Function Atn Function CBool Function CByte Function CCur Function CDate Function CDbl Function Chr Function CInt

More information

WD My Net N600 juhend:

WD My Net N600 juhend: WD My Net N600 juhend: 1) Kui WD My Net N600 seade on ühendatud näiteks Elioni Thomsoni ruuteriga (TG789vn või TG784) või Elioni Inteno DG301a ruuteriga, kus üldiselt on ruuteri Default Gateway sama, nagu

More information

SQL Server 2005 Expressi paigaldamine

SQL Server 2005 Expressi paigaldamine SQL Server 2005 Expressi paigaldamine Laadige alla.net Framework 2.0 http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d- 8edd-aab15c5e04f5 Avage http://www.microsoft.com/express/2005/sql/download/default.aspx

More information

INFORMATICS: Computer Hardware and Programming in Visual Basic 81

INFORMATICS: Computer Hardware and Programming in Visual Basic 81 INFORMATICS: Computer Hardware and Programming in Visual Basic 81 Chapter 3 THE REPRESENTATION OF PROCESSING ALGORITHMS... 83 3.1 Concepts... 83 3.1.1 The Stages of Solving a Problem by Means of Computer...

More information

Andmebaasid (6EAP) I praktikum

Andmebaasid (6EAP) I praktikum Andmebaasid (6EAP) I praktikum Mõisteid Server on arvutisüsteem või selles töötav tarkvara, mis pakub teatud infoteenust sellega ühenduvatele klientidele. Klient on tarkvara, mis võimaldab suhelda serveriga.

More information

PA R T. A ppendix. Appendix A VBA Statements and Function Reference

PA R T. A ppendix. Appendix A VBA Statements and Function Reference PA R T V A ppendix Appendix A VBA Statements and Reference A d Reference This appendix contains a complete listing of all Visual Basic for Applications (VBA) statements (Table A-1 ) and built-in functions

More information

Kirje. Kirje. Tüpiseeritud fail. CASE-lause. Laiendatud klahvikoodid. 1

Kirje. Kirje. Tüpiseeritud fail. CASE-lause. Laiendatud klahvikoodid. 1 Kirje. Tüpiseeritud fail. CASE-lause. Laiendatud klahvikoodid. 1 Kirje Kirje (record) on struktuurne andmetüüp (nagu massiiv) erinevat tüüpi andmete gruppeerimiseks. Kirje koosneb väljadest (field). Iga

More information

I

I I II Disclaimer Excel VBA Made Easy is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft Corporation. Trademarks Microsoft,

More information

Makrode koostamine. Menüüde koostamine

Makrode koostamine. Menüüde koostamine Makrode koostamine Makrode abil Access lubab automaatselt korrata erinevaid tegevusi ning seega tarbija ei pea kirjutama keerukaid programmi mooduleid. Makro on samasugune Accessi objekt, nagu tabel, päring,

More information

Mis on tõene? Tsüklid, failihaldus. if - näited. unless - näited. unless. Merle Sibola. if ($arv > $suur) { #leitakse suurim arv $suur=$arv; } #if

Mis on tõene? Tsüklid, failihaldus. if - näited. unless - näited. unless. Merle Sibola. if ($arv > $suur) { #leitakse suurim arv $suur=$arv; } #if Mis on tõene? Tsüklid, failihaldus Merle Sibola iga string on tõene, välja arvatud "" ja "0" iga number on tõene, v.a. number 0 Iga viide (reference) on tõene Iga defineerimata muutuja on väär. if if (EXPR)

More information

Programming with visual Basic:

Programming with visual Basic: Programming with visual Basic: 1-Introdution to Visual Basics 2-Forms and Control tools. 3-Project explorer, properties and events. 4-make project, save it and its applications. 5- Files projects and exercises.

More information

String Functions on Excel Macros

String Functions on Excel Macros String Functions on Excel Macros The word "string" is used to described the combination of one or more characters in an orderly manner. In excel vba, variables can be declared as String or the Variant

More information

MSDE Upgrade platvormile SQL 2005 Server Express SP4

MSDE Upgrade platvormile SQL 2005 Server Express SP4 MSDE Upgrade platvormile SQL 2005 Server Express SP4 NB! Windos XP puhul peab veenduma, et masinas oleks paigaldatud.net Framework vähemalt versioon 2.0!!! NB! Muutke oma SA parool turvaliseks ( minimaalne

More information

XmlHttpRequest asemel võib olla vajalik objekt XDomainRequest

XmlHttpRequest asemel võib olla vajalik objekt XDomainRequest 1 2 3 XmlHttpRequest asemel võib olla vajalik objekt XDomainRequest 4 5 6 7 8 https://www.trustwave.com/global-security-report http://redmondmag.com/articles/2012/03/12/user-password-not-sophisticated.aspx

More information

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12.

The Year argument can be one to four digits between 1 and Month is a number representing the month of the year between 1 and 12. The table below lists all of the Excel -style date and time functions provided by the WinCalcManager control, along with a description and example of each function. FUNCTION DESCRIPTION REMARKS EXAMPLE

More information

Strings in Visual Basic. Words, Phrases, and Spaces

Strings in Visual Basic. Words, Phrases, and Spaces Strings in Visual Basic Words, Phrases, and Spaces Strings are a series of characters. Constant strings never change and are indicated by double quotes. Examples: Fleeb Here is a string. Strings are a

More information

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis.

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis. Section 1 Multiple Choice MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam 1. Spreadsheets are known as the of business analysis. A. German motor car B. Mexican jumping bean C. Swiss army

More information

VBA Exceli. Visual Basic for Applications Excel 2010 baasil Erki Savisaar

VBA Exceli. Visual Basic for Applications Excel 2010 baasil Erki Savisaar VBA Exceli Visual Basic for Applications Excel 2010 baasil Erki Savisaar Sisukord Sissejuhatus... 3 1 PROGRAMMIDE LOOMISE ÜLDPÕHIMÕTTED... 4 2 VBA KASUTAMINE EXCELIS... 7 2.1 Turvalisus... 7 2.1.1 Üksikute

More information

Erik Jõgi. twitter.com/erikjogi twitter.com/codeborne

Erik Jõgi. twitter.com/erikjogi twitter.com/codeborne Disain Erik Jõgi erik@codeborne.com twitter.com/erikjogi twitter.com/codeborne Disain? Miks? Bad code Clean Code A Handbook of Agile Software Craftsmanship Robert C. Martin, 2008 Uncle Bob You know you

More information

TP-Link TL-WR743ND Juhend

TP-Link TL-WR743ND Juhend TP-Link TL-WR743ND Juhend 1) Ühenda oma arvuti TP-Link ruuteriga üle kaabli (LAN). 2) Kui arvuti ja ruuter said omavahel ühendatud, siis võid minna seadme koduleheküljele (interneti brauseri otsingu reasse

More information

Adobe EchoSign Calculated Fields Guide

Adobe EchoSign Calculated Fields Guide Adobe EchoSign Calculated Fields Guide Version 1.0 Last Updated: May, 2013 Table of Contents Table of Contents... 2 Overview... 3 Calculated Fields Use-Cases... 3 Calculated Fields Basics... 3 Calculated

More information

Tabelid <TABLE> Koostanud: Merike Hein

Tabelid <TABLE> Koostanud: Merike Hein Tabelid Tabelite kasutusvõimalus on HTML'is olemas juba pikka aega. Tabelimärgendite esmaseks kasutusalaks oli muidugi mõista tabelkujul info kuvamine. tähendab siis tabelite joonistamist.

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

Lab Manual Visual Basic 6.0

Lab Manual Visual Basic 6.0 Lab Manual Visual Basic 6.0 What is Visual Basic? VISUAL BASIC is a high level programming language evolved from the earlier DOS version called BASIC. BASIC means Beginners' All-purpose Symbolic Instruction

More information

Excel Macro Record and VBA Editor. Presented by Wayne Wilmeth

Excel Macro Record and VBA Editor. Presented by Wayne Wilmeth Excel Macro Record and VBA Editor Presented by Wayne Wilmeth 1 What Is a Macro? Automates Repetitive Tasks Written in Visual Basic for Applications (VBA) Code Macro Recorder VBA Editor (Alt + F11) 2 Executing

More information

EESTI STANDARD EVS-ISO/IEC 27003:2011

EESTI STANDARD EVS-ISO/IEC 27003:2011 EESTI STANDARD EVS-ISO/IEC 27003:2011 INFOTEHNOLOOGIA Turbemeetodid Infoturbe halduse süsteemi teostusjuhis Information technology Security techniques Information security management system Implementation

More information

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual

More information

As an A+ Certified Professional, you will want to use the full range of

As an A+ Certified Professional, you will want to use the full range of Bonus Chapter 1: Creating Automation Scripts In This Chapter Understanding basic programming techniques Introducing batch file scripting Introducing VBScript Introducing PowerShell As an A+ Certified Professional,

More information

Active Planner. How to Create and Use Database Query Formulas

Active Planner. How to Create and Use Database Query Formulas Active Planner How to Create and Use Database Query Formulas Table of Contents Introduction... 1 Database Query Part 1 - The Basics... 2 Database Query Part 2 Excel as the Data source... 12 Database Query

More information

Contents. Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference

Contents. Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference Introduction To VBA Contents Some Basics Simple VBA Procedure (Macro) To Execute The Procedure Recording A Macro About Macro Recorder VBA Objects Reference Some Basics Code: You perform actions in VBA

More information

Andmebaasi krüpteerimine ja dekrüpteerimine

Andmebaasi krüpteerimine ja dekrüpteerimine Andmebaasi krüpteerimine ja dekrüpteerimine Me võime küll asetanud kõikidele andmebaasi objektidele ligipääsuõigused eri kasutajate jaoks, kuid ikkagi võib mõni häkker avada vastava faili lihtsalt failina

More information

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 1 References & Info Chapra (Part 2 of ENGG1811 Text) Topic 21 (chapter

More information

NOTES: String Functions (module 12)

NOTES: String Functions (module 12) Computer Science 110 NAME: NOTES: String Functions (module 12) String Functions In the previous module, we had our first look at the String data type. We looked at declaring and initializing strings, how

More information

VB Script Reference. Contents

VB Script Reference. Contents VB Script Reference Contents Exploring the VB Script Language Altium Designer and Borland Delphi Run Time Libraries Server Processes VB Script Source Files PRJSCR, VBS and DFM files About VB Script Examples

More information

Access: using operators and functions in queries

Access: using operators and functions in queries Access: using operators and functions in queries Reference document Aims and Learning Objectives This document aims to cover all the query language elements (expressions, functions etc) that are available

More information

Andmebaaside varundamine ja taastamine

Andmebaaside varundamine ja taastamine Andmebaaside varundamine ja taastamine Sybase SQL Anywhere 12 Menüü Pane tähele... 1. Andmebaasist kujutise tegemine ja taastamine 2. Andmebaasist pakitud varukoopia tegemine ja taastamine 3. Andmebaasist

More information

NAS, IP-SAN, CAS. Loeng 4

NAS, IP-SAN, CAS. Loeng 4 NAS, IP-SAN, CAS Loeng 4 Tunniteemad Network Attached Storage IP Storage Attached Network Content Addressed Storage Network Attached Storage Tehnoloogia, kus andmed on jagatud üle võrgu Salvestusvahendile

More information

Date and Time Functions

Date and Time Functions Date and Time Functions Introduction If you are using these functions in conjunction with either the Now() or Now_() functions, be aware that the time zone returned is the one configured on the machine

More information

Public Function randomdouble(lowerbound As Double, upperbound As Double) As Double On Error Resume Next

Public Function randomdouble(lowerbound As Double, upperbound As Double) As Double On Error Resume Next Table of Contents Introduction...1 Using VBA Functions...1 Accessing Visual Basic in Excel...2 Some Example Functions...3 Random Numbers...4 RandomDouble...4 randomint...4 Using the random numbers...5

More information

Ms Excel Dashboards & VBA

Ms Excel Dashboards & VBA Ms Excel Dashboards & VBA 32 hours, 4 sessions, 8 hours each Day 1 Formatting Conditional Formatting: Beyond Simple Conditional Formats Data Validation: Extended Uses of Data Validation working with Validation

More information

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy

Objectives Reading SAS Data Sets and Creating Variables Reading a SAS Data Set Reading a SAS Data Set onboard ia.dfwlax FirstClass Economy Reading SAS Data Sets and Creating Variables Objectives Create a SAS data set using another SAS data set as input. Create SAS variables. Use operators and SAS functions to manipulate data values. Control

More information

ABIMATERJAL ROBOOTIKA TÖÖVIHIKULE Algoritmid ja programmeerimine

ABIMATERJAL ROBOOTIKA TÖÖVIHIKULE Algoritmid ja programmeerimine Raivo Sell, Mikk Leini ABIMATERJAL ROBOOTIKA TÖÖVIHIKULE Algoritmid ja programmeerimine Robootika Kodulabori baasil Kujundus ja küljendus: Raivo Sell Arvutigraafika: Raivo Sell Keeletoimetus: Airi Veber

More information

Vea haldus ja logiraamat hajutatud süsteemides Enn Õunapuu.

Vea haldus ja logiraamat hajutatud süsteemides Enn Õunapuu. Vea haldus ja logiraamat hajutatud süsteemides Enn Õunapuu enn.ounapuu@ttu.ee Millest tuleb jutt? Kuidas ma näen, millises sammus erinevad protsessid parasjagu on? Kuidas ma aru saan, kas protsess töötab

More information

EESTI STANDARD EVS-ISO 11620:2010

EESTI STANDARD EVS-ISO 11620:2010 EESTI STANDARD EVS-ISO INFORMATSIOON JA DOKUMENTATSIOON Raamatukogu tulemusindikaatorid Information and documentation Library performance indicators (ISO 11620:2008) EVS-ISO EESTI STANDARDI EESSÕNA NATIONAL

More information

Mälu interfeisid Arvutikomponendid Ergo Nõmmiste

Mälu interfeisid Arvutikomponendid Ergo Nõmmiste Mälu interfeisid Arvutikomponendid Ergo Nõmmiste Mälu liigid Read-only memory (ROM) Flash memory (EEPROM) Static random access memory (SRAM) Dynamic random access memoty (DRAM) 1 kbaidine mälu vajab 10

More information

SQL Serveri paigaldus. Laadimine:

SQL Serveri paigaldus. Laadimine: SQL Serveri paigaldus Laadimine: http://msdn.microsoft.com/vstudio/express/sql/download/ Tasub paigaldada kõige lihtsam versioon (SQL Server 2005 Express Edition SP2). Samalt lehelt saab laadida ka Sql

More information

Lühike kokkuvõte Pascal-keele süntaksist 1

Lühike kokkuvõte Pascal-keele süntaksist 1 Lühike kokkuvõte Pascal-keele süntaksist 1 Sellest osast leiab järgmised mõisted ja teemad Keeltest, kompileerimisest ja Pascali ajaloost identifikaator, programmi struktuur, lihtandmetüübid, konstant,

More information

Millennium Report Writer

Millennium Report Writer Millennium Report Writer The report writer can be used for most of your reporting needs, including employee and personnel listings. You also can access current, MTD, QTD, and YTD values for any earning,

More information

Programmeerimine. 3. loeng

Programmeerimine. 3. loeng Programmeerimine 3. loeng Tana loengus T~oevaartustuup ja loogilised avaldised Hargnemisdirektiivid { Lihtne if-lause { if-else-lause { Uldkujuline if-lause Tsuklidirektiivid { Eelkontrolliga tsukkel {

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

'This library is to be used in the context of data management of IoT devices

'This library is to be used in the context of data management of IoT devices Annex A: Full Code '' 'Library created by Pol Sarmiento Lozano @TDdeviceAPI ' 'This library is to be used in the context of data management of IoT devices ' 'This library relates to the URL requests available

More information

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio for InduSoft Web Studio www.indusoft.com info@indusoft.com InduSoft Web Studio Copyright 2006-2007 by InduSoft. All rights reserved worldwide. No part of this publication may be reproduced or transmitted

More information

Alternatives To Custom Dialog Box

Alternatives To Custom Dialog Box Alternatives To Custom Dialog Box Contents VBA Input Box Syntax & Function The Excel InputBox method Syntax The VBA MsgBox Function The Excel GetOpenFilename Method The Excel GetSaveAsFilename Method Reference

More information

Milleks tüübid? Mida teeb järgmine programmijupp? x 1 := "Pii siinus on : "; x 2 := ; printx 2 ; print(sin(x 1 ));

Milleks tüübid? Mida teeb järgmine programmijupp? x 1 := Pii siinus on : ; x 2 := ; printx 2 ; print(sin(x 1 )); Milleks tüübid? Mida teeb järgmine programmijupp? x 1 := "Pii siinus on : "; x 2 := 3.1415926;... printx 2 ; print(sin(x 1 )); Ei tea (loodetavasti siiski mitte midagi väga hullu :-) VARMO VENE 1 Milleks

More information

Programmeerimise 2. vaheeksam

Programmeerimise 2. vaheeksam Programmeerimise 2. vaheeksam 5. jaanuar 2015, kell 10:00 13:00 1. Fraktal (3p) yl1.py Kõrvaloleval pildil on fraktali 1., 2., 3. ja 4. taseme näidised. Kirjuta rekursiivne funktsioon, mis võtab argumendiks

More information

Respond to Data Entry Events

Respond to Data Entry Events Respond to Data Entry Events Callahan Chapter 4 Understanding Form and Control Events Developer s Goal make data entry easy, fast, complete, accurate Many form- and control-level events occur as user works

More information

3. (1.0 point) To quickly switch to the Visual Basic Editor, press on your keyboard. a. Esc + F1 b. Ctrl + F7 c. Alt + F11 d.

3. (1.0 point) To quickly switch to the Visual Basic Editor, press on your keyboard. a. Esc + F1 b. Ctrl + F7 c. Alt + F11 d. Excel Tutorial 12 1. (1.0 point) Excel macros are written in the programming language. a. Perl b. JavaScript c. HTML d. VBA 2. (1.0 point) To edit a VBA macro, you need to use the Visual Basic. a. Manager

More information

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function:

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Lookup Project frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Help About, in a Message Box lookup.vbp programmed by C.Gribble Page 2 Code for

More information

Lõimed. Lõime mõiste. Lõimede mudelid. Probleemid lõimedega seoses. Pthreads. Solarise lõimed. Windowsi lõimed. FreeBSD lõimed.

Lõimed. Lõime mõiste. Lõimede mudelid. Probleemid lõimedega seoses. Pthreads. Solarise lõimed. Windowsi lõimed. FreeBSD lõimed. Lõimed Lõime mõiste Lõimede mudelid Probleemid lõimedega seoses Pthreads Solarise lõimed Windowsi lõimed FreeBSD lõimed Linuxi lõimed MEELIS ROOS 1 Ühe- ja mitmelõimelised protsessid code data files code

More information

VB Script Reference. Summary. Exploring the VB Script Language. Altium Designer and Borland Delphi Run Time Libraries

VB Script Reference. Summary. Exploring the VB Script Language. Altium Designer and Borland Delphi Run Time Libraries Summary Technical Reference TR0125 (v1.6) February 27, 2008 This reference manual describes the VB Script language used in Altium Designer. This reference covers the following topics: Exploring the VB

More information

As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action

As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action queries and how to create queries that perform more

More information

Tallinna Ülikooli veebipuhvri teenuse kasutamine väljaspool ülikooli arvutivõrku

Tallinna Ülikooli veebipuhvri teenuse kasutamine väljaspool ülikooli arvutivõrku Tallinna Ülikooli veebipuhvri teenuse kasutamine väljaspool ülikooli arvutivõrku Selleks, et kasutada Tallinna Ülikooli veebipuhvrit väljaspool ülikooli arvutivõrku, tuleb luua ühendus serveriga lin2.tlu.ee

More information

InADS infopäev Villem Vannas Maarja Mahlapuu Janno Tetsmann

InADS infopäev Villem Vannas Maarja Mahlapuu Janno Tetsmann www.datel.ee InADS infopäev Villem Vannas Maarja Mahlapuu Janno Tetsmann Millest räägime Mis on InADS, kasutusjuhud Villem InADS visard keskkond Maarja Arendaja vaade: InADS API Janno Põhiline vajadus

More information

SDL MultiTerm i koolitus

SDL MultiTerm i koolitus SDL MultiTerm i koolitus Üldist...3 Kasutamisviisid...3 MultiTerm versioonid...3 Varasemad MT versioonid...3 MT komponendid...3 Formaadid...3 Andmebaasi komponendid ja ülesehitus...3 Töö MultiTerm'i põhiprogrammiga...4

More information

Electronic Invoicing 6.0 Final Invoice Packaging Reference. January 2018

Electronic Invoicing 6.0 Final Invoice Packaging Reference. January 2018 Electronic Invoicing 6.0 Final Invoice Packaging Reference January 2018 Copyright Information While EleVia Software has attempted to make the information in this document accurate and complete, some typographical

More information

ต วอย างการสร างฟอร ม เมน การใช งาน

ต วอย างการสร างฟอร ม เมน การใช งาน ต วอย างการสร างฟอร ม เมน การใช งาน Option Explicit Dim conn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim Sql As String Private Sub Command6_Click() Form2.Hide Form3.Show Private Sub Command7_Click()

More information

Digitaalne signaal Diskreetimine ja Dirac Delta Digitaalfiltrid. Digitaalne heli. Hendrik Nigul. Mathematics of Sound and Music.

Digitaalne signaal Diskreetimine ja Dirac Delta Digitaalfiltrid. Digitaalne heli. Hendrik Nigul. Mathematics of Sound and Music. Mathematics of Sound and Music Aprill 2007 Outline 1 Digitaalne signaal 2 3 z-teisendus Mis on heli? Digitaalne signaal Heli on elastses keskkonnas lainena leviv mehaaniline võnkumine. amplituud heli tugevus

More information

IT infrastruktuuri teenused. Failiserver. Margus Ernits

IT infrastruktuuri teenused. Failiserver. Margus Ernits IT infrastruktuuri teenused Failiserver Margus Ernits margus.ernits@itcollege.ee 1 Failide hoidmine kasutaja arvutis pole tihti mõistlik, kuna Failiserver Arvuti kõvaketta hävimisega kaovad andmed ja nendest

More information

Use Do Until to break links

Use Do Until to break links Excel magazines, seminars, add-ons, support and bespoke Excel Systems Edition 0 January 00 IN THIS EDITION Use Do Until to break links Edition 0 Jan 00 >>Files: BreakLinks.xls, AusData.xls, NZData.xls

More information

Reporting Functions & Operators

Reporting Functions & Operators Functions Reporting Functions & Operators List of Built-in Field Functions Function Average Count Count Distinct Maximum Minimum Sum Sum Distinct Return the average of all values within the field. Return

More information

SKA Modify. vorming (Styles. lõik tabulaator. keel

SKA Modify. vorming (Styles. lõik tabulaator. keel Teadustöö vormindamine (Word 2003 ja 2007 näitel) Kirjalaadid (pealkirjad, sisutekst) ja nende modifitseerimine Automaatseid sisukordi, jooniste ja tabelite loetelu saab kasutada siis kui eelnevalt on

More information

AUTHENTICATION WITH MICROSOFT OAUTH2 SERVICE, MICROSOFT OUTLOOK API AND IMPLEMENTED FRAMEWORK

AUTHENTICATION WITH MICROSOFT OAUTH2 SERVICE, MICROSOFT OUTLOOK API AND IMPLEMENTED FRAMEWORK TALLINN UNIVERSITY OF TECHNOLOGY Faculty of Information Technology Department of Computer Science ITV40LT Ilja Krjutškov 112528 AUTHENTICATION WITH MICROSOFT OAUTH2 SERVICE, MICROSOFT OUTLOOK API AND IMPLEMENTED

More information

Visual Basic for Applications

Visual Basic for Applications Visual Basic for Applications Programming Damiano SOMENZI School of Economics and Management Advanced Computer Skills damiano.somenzi@unibz.it Week 1 Outline 1 Visual Basic for Applications Programming

More information

Programmeerimine. 2. loeng

Programmeerimine. 2. loeng Programmeerimine 2. loeng Tana loengus Nimed ja muutujad Baastuubid Litaraalkonstandid Omistamine Aritmeetilised avaldised Funktsioonide rakendamine Standardteegid Muutujad Imperatiivses programmeerimises

More information

2

2 1 2 3 4 5 St. seotud grupid 6 7 Soovitused: Vältida sidusgruppide tähtsuse järgi järjestamist. Minimeerige üksikute sidusgruppide esiletõstmist. 8 9 10 11 12 Päästeameti avalik veebileht (www.päästeamet.ee)

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

The Excel. Analyst s. Guide to. Access. Michael Alexander

The Excel. Analyst s. Guide to. Access. Michael Alexander The Excel Analyst s Guide to Access Michael Alexander The Excel Analyst s Guide to Access The Excel Analyst s Guide to Access Michael Alexander Wiley Publishing, Inc. The Excel Analyst s Guide to Access

More information

TTÜ informaatikainstituut. Algoritmimine

TTÜ informaatikainstituut. Algoritmimine TTÜ informaatikainstituut Algoritmimine Algoritm on täpne ja ühemõtteline eeskiri antud liiki ülesannete lahendamiseks või tegevuste täitmiseks kindla eesmärgi saavutamisel. Algoritm määrab, milliseid

More information

Regulaaravaldised Unixis ja Windowsis

Regulaaravaldised Unixis ja Windowsis Tartu Ülikool Matemaatika-informaatikateaduskond Arvutiteaduse instituut Regulaaravaldised Unixis ja Windowsis Referaat Koostajad: Tarvo Kärberg, Marko Peterson, Kaupo Voormansik Juhendaja: Kersti Taurus

More information

ROCK V5 + Kasutusjuhend

ROCK V5 + Kasutusjuhend ROCK V5 + Kasutusjuhend Telefoni kirjeldus: Kõrvaklappide pistikupesa ESIKÜLG Sisselülitamisnupp Valjuhääldi Lähedusandur USB-pesa Esikaamera Helitugevusnupud Puuteekraan Taskulambi nupp Kaameranupp Otsingunupp

More information

Control Properties. Example: Program to change background color

Control Properties. Example: Program to change background color Control Properties Before writing an event procedure for the control to response to an event, you have to set certain properties for the control to determine its appearance and how will it work with the

More information

Instruction Case Vba Excel Between Two Date

Instruction Case Vba Excel Between Two Date Instruction Case Vba Excel Between Two Date Countdown Timer Between Two Times (Not Dates). No problem. We won't Random date-time between two date-times in Excel VBA 0 two processes in VBA. Excel VBA Date

More information

Andmebaasid kursuse andmemudel

Andmebaasid kursuse andmemudel Veebiteenused SyBase SQL Anywhere koostanud Sander Sepp SQL Anywhere on andmebaasi juhtsüsteem, mis sisaldab HTTP veebiserveri funktsionaalsust. Veebiserver võimaldab andmebaasi luua veebiteenuseid. Veebiteenused

More information