បង ក ត Excel UserForm ង ម ប បញ ច លទ ន នន យង ក ន ត រ នន Excel 2007

Size: px
Start display at page:

Download "បង ក ត Excel UserForm ង ម ប បញ ច លទ ន នន យង ក ន ត រ នន Excel 2007"

Transcription

1 បង ក ត Excel UserForm ង ម ប បញ ច លទ ន នន យង ក ន ត រ នន Excel 2007 UserForm គ ជ ម ខង រម យង ក ន ក ម មវ ធ Microsoft Excel ដ លជ Form ម យម ន លក ខណ ព ង ម រម ប ង ក អ នក យក វ ម ក ងម រប ក ន ក រក ណត រង រក ង ម ប បញ ច លទ ន នន យង ត ម record ន ម យៗង ក ន Worksheet ង ម ប ឱ យន ព ស រ ខ ន នន ក រងម រប UserForm ខ ងម រក ម ងន ងយ ខ ន ងល ក យក ឧទ ហរណ ព ក រងម រប ម រ ន ក របង ក ត Form ង យខល ន ឯ ដ លជ ជ ហ ន ប ដ លអ នក ម រត វក រ I បង ក តExcel UserForm ១.ងប ក ក ម មវ ធ Ms.Excel បន ទ ប ម ក ង ក អ នក ច ចងល Key Alt +F11 ២.ច ចងល View > Project Explorer ង ម ប ងម លន វត រ នន Projects ដ លជ ទ ង វ ថ តនន ដ នក ខ ងវ ន នន VBE Window ៣.ក ន Project Explorer ងម រជ ងរ យក ង ម Project រប អ នក ៤.ព ម ន យ រច ចងល Insert > UserForm ៥.UserForm វ ន បង ញ ល អ នក ងហ យ ToolBox វ ក បង ញដ រប ដន ក ន ក រណ ToolBox វ អ ត បង ញង ក អ នក ច ចងល Insert > Toolbox II ក ង ម ឱ យ UserForm ១.ច ចងល Key F4 ង ម ប ងប ក Properties Window ២.ក ន Properties Window ច ចព រ ងល UserForm1ដ នក ខ ងល ខ ស ដ នន Window ៣.វ យង ម ថ frmpartdata រ ចច ច Enter Key ៤.បន ទ ប ម ក ង ម ដ លអ នក ន ក ងន ទ ន បង ញង ក ន Project Explorer ប ដន Form ង ដតបង ញ UserForm1 ម រត ច ណ ងជ ខ ងល ដ ល ៥.ង ក ន Properties Window ម ច ចព រ ង ម រត Caption property នន UserForm1 ៦. ម វ យច ណ ងជ ក ថ Parts Inventory រ ចច ច Enter ៧.ច ណ ងជ ន បង ញង ក ន Caption ថ ម ងន ទ Reseacht by Mr SOK RAKSMEY / Tel: / hello_smey@yahoo.com Page 1 of 7

2 III បញ ច ល Textbox ក ងល Excel UserForm Objects ដ លម រត វ ក ងល UserForm ម ន ចជ ប ត ម រម ប ច ចឱ យ ក ម មភ ពន textboxes ទ អ ងន ទ ដ លងគង ថ Controls ង ម ប អ ន ញ ញ តឱ យអ នក ងម រប ឬ Users អ ចបញ ច លទ ន នន យ ន ងហ យង ក អ នក អ ច បញ ច ល textbox control ង ងល Form ង យងម រប Label controls ងធ ក រព ពណ ន ទងល ម ខង រន ម យរប វ ១.ង ក ន Toolbox ម ច ចងល TextBox ប ត ២.ង ងល UserForm អ នក ច ចងល textbox ង ម ប បញ ច លវ ង ងល UserForm ៣.ឈរងល textbox ងន ទ រ ចច ចព រ ងល Name Properties ង ក ន Properties window ង យ ក ង ម ថ txtpartបន ទ ប ម ក ច ច Enter ៤.ច ចងល ទ ត ទ ងន រនន UserForm ង ម ប ឱ យ UserForm ងណ រក រ textbox ដ លអ នក ន បញ ច លងន ទ Reseacht by Mr SOK RAKSMEY / Tel: / hello_smey@yahoo.com Page 2 of 7

3 IV បញ ច លម ខង រ Label ក ងល Excel UserForm ១.ង ក ន Toolbox ច ចងល Label ប ត បន ទ ប ម ក គ រ ក ងល UserForm ២. ក ង ម ឱ យ Label ងន ទ ង យច ចងល Caption property ង ក ន Property window ង យ ក ង ម ថ Part រ ចច ច Enter Vបញ ច លម ខង រទ ៤ងល UserForm ងន ជ ក របញ ច លង -textbox ង ម txtid ជ ម យ Label ID វ ញទ អ នន ម ខង រដ លអ នក ម រត វងម រប ងល Form ម ន -textbox ង ម txtloc ជ ម យ Label Location -textbox ង ម txtdate ជ ម យ Label Date -textbox ង ម txtqty ជ ម យ Label Quantity VI បញ ច លប ត ង ម ប ក ណត ក ម មភ ពងល Form ង ម ប អ ន ញ ញ តឱ យ Users ទ អ ម ន ក ម មភ ពអ ម យងល UserForm ងន ទ ង ក អ នក អ ចបញ ច ល Reseacht by Mr SOK RAKSMEY / Tel: / hello_smey@yahoo.com Page 3 of 7

4 CAMBODIAN UNIVERSITY FOR SPECIAL TIES 10/29/2013 commandbutton ងល វ ង យងយ ច បង ញង ក អ នក ន វ ក ម មភ ពព រដ លម ន ង ងល UserForm ងន ទ ១ គ ប ត បញ ច លទ ន នន យន ទ ២គ ប ត ម រម ប ប ទ Form -ប ត Add this partម រត Caption ន ម រត Property Name ម ន ង ម ថ cmdadd ម រម ប បញ ច លទ ន នន យច ល ក ន Database ព UserForm ងហ យប ត Close form ម ន ង ម ថ cmdclose ម រម ប ប ទForm ង យង ក អ នក អ ន វត ត ម ក រក ណត texbox & label ខ ងល VII បញ ច លក ងល ប ត ង ម ប បញ ញ Form ង ម ប ឱ យ Excel UserForm ប ត ម ន ក ម មភ ពអ ម យង ក អ នក ម រត វដតបញ ច លក ងហ យក ងន ទ ង ក អ នក អ ច បញ ច លវ ឱ យ ងណ រក រន វងពលអ នក ច ចងល ប ត ណ ម យ ជ ប ងយ ខ ងធ ក របញ ច លក ម រម ប ប ត cmdadd ១.ឈរឬ Select ងល ប ត cmdadd Reseacht by Mr SOK RAKSMEY / Tel: / hello_smey@yahoo.com Page 4 of 7

5 ២.ងប ក ម ន យ រ> ងម រជ ងរ យក View Code ៣.ច ណ ចងន អ នក អ ចងធ ក រងម រជ ងរ យក Procedureន វទ ត ណ ម យដ លង ក អ នក អ ចបញ ច លក ន ៤. ក Cursor ង ច ណ ចណ ម យង យបញ ច លក ចខ ងម រក ម ងន Option Explicit Private Sub cmdadd_click() Dim irow As Long Dim ws As Worksheet Set ws = Worksheets( PartsData ) \\ PartsDataជ ន ល ក ក រង រដ លអ នក ម រត វក ត ម រត ទ ន នន យដ ល ន បញ ច លព Form \\ irow=ws.cells. ក ណត ឱ យទ ន នន យបញ ច លង ត ម ជ រន ម យៗង យច ប ព ជ រឬ Row ទ ២ង irow = ws.cells.find(what:= *, SearchOrder:=xlRows, _ SearchDirection:=xlPrevious, LookIn:=xlValues).Row + 1 \\ ព ន តយងម លតនម លម ន ឬអ ត ងពលអ នក ច ចងល ប ត Add this Part If Trim(Me.txtPart.Value) = Then Me.txtPart.SetFocus MsgBox Please enter a part number Exit Sub End If \\ចម ល ទ ន នន យព Form ង ក ក ន Database ws.cells(irow, 1).Value = Me.txtPart.Value ws.cells(irow, 2).Value = Me.txtLoc.Value ws.cells(irow, 3).Value = Me.txtDate.Value ws.cells(irow, 4).Value = Me.txtQty.Value \\ល បទ ន នន យងចញព Textbox បន ទ ប ព អ នក ន Add រ ច Me.txtPart.Value = Me.txtLoc.Value = Me.txtDate.Value = Reseacht by Mr SOK RAKSMEY / Tel: / hello_smey@yahoo.com Page 5 of 7

6 Me.txtQty.Value = Me.txtPart.SetFocus End Sub - \\ប ទ Form ងពលង ក អ នក ច ចងល ប ត Close form Private Sub cmdclose_click() Unload Me End Sub \\ងពលអ នក ច ចងល ញ ញ ដខ ង ម ប ប ទ Form ងយ ច ឱ យង ក អ នក ងម រប ប ត ង ម ប ប ទ Private Sub UserForm_QueryClose(Cancel As Integer, _ CloseMode As Integer) If CloseMode = vbformcontrolmenu Then Cancel = True MsgBox Please use the button! End If End Sub ងម រក យព ន អ ន វត ត ម ជ ហ ន ន ម យៗខ ងល រ ចង ក អ នក ស ក លប ងណ រក រក ម មវ ធ ង ក អ នក ន ទទ ល ន ទម រម ន លទធនល ចខ ងម រក ម បញ ញ ក ម ខន ច ប ងនដ ម បញ ច លទ ន នន យង ក អ នក ម រត វដត ក ច ណ ងជ ងល ន ល ក ដ លរក Database ជ ម ន ន ព ងម ររ ងយ បញ ច លទ ន នន យច ប ព Rowទ ២ង ងប ម ន ងចន ងទវ ន ម ន ងណ រក រងទ Reseacht by Mr SOK RAKSMEY / Tel: / hello_smey@yahoo.com Page 6 of 7

7 Reseacht by Mr SOK RAKSMEY / Tel: / hello_smey@yahoo.com Page 7 of 7

Ubuntu Desktop LTS

Ubuntu Desktop LTS 3 ឧ ( ) TRISILCO SOLUTIONS (CAMBODIA) CO., LTD ល Desktop Virtualization ឧ ណ NComputing Ubuntu Desktop 12.04 LTS ០៦ ១០ ឧ ២០១៣ ១: Ubuntu Desktop 12.04 LTS ១. Computer Operating System... ១ ២. ង Ubuntu Dekstop

More information

[aksa:] by Dara Saoyuth and Christine Schmutzler Phnom Penh 2010

[aksa:] by Dara Saoyuth and Christine Schmutzler Phnom Penh 2010 [aksa:] by Dara Saoyuth and Christine Schmutzler Phnom Penh 2010 ក រធ វ ឱ យដ ងអ ព ម ទ ទវ ទ យ ន ក ន ងប ទ សកម ព ជ ក រយល ឃ ញត មរយ ក ររចន ក ហ វ ក Raising awareness of Typography in Cambodia A Graphic Design

More information

Microsoft Word ១ របប បច ល Windows Explorer ២. របប បស អ តផ ផ ថ ស ( Scan Disk and Defragmenter)... 5

Microsoft Word ១ របប បច ល Windows Explorer ២. របប បស អ តផ ផ ថ ស ( Scan Disk and Defragmenter)... 5 Table of Contents Microsoft Word... 7 ១ របប បច ល Windows Explorer... 5 ២. របប បស អ តផ ផ ថ ស ( Scan Disk and Defragmenter)... 5 ៣. របប បព ន តយបម លថ ស ( Scan Disk )... 6 ៤. របប បស អ តបមប គ ( Scan Virus )...

More information

HTML & xhtml បង ក តង ហទ ព រជ ម យ ស ក ស របប បបប ក ត បវបស យ ដ លទ ន សម យ. ត ត វត មសត ដ HTML ន xhtml ងរ បងរ ង យ ក យ ទ តយត រ

HTML & xhtml បង ក តង ហទ ព រជ ម យ ស ក ស របប បបប ក ត បវបស យ ដ លទ ន សម យ. ត ត វត មសត ដ HTML ន xhtml ងរ បងរ ង យ ក យ ទ តយត រ បង ក តង ហទ ព រជ ម យ HTML & xhtml ស ក ស របប បបប ក ត បវបស យ ដ លទ ន សម យ ត ត វត មសត ដ HTML ន xhtml ងរ បងរ ង យ ក យ ទ តយត រ ស រ ប បង នង មជ ឈមណ ឌ ល ITEC ន ច កច យត ម Bayon Hosting 1 Module 1: HTML Basic Bayon

More information

RDBMS (Relational Database Management System) ចជ ស ថល គរ ន, ក ម ហ ន វ ជ យ ល គល កអ នកប នកន ងក រ រក ទ កពត ម នទ ងអ ស របស

RDBMS (Relational Database Management System) ចជ ស ថល គរ ន, ក ម ហ ន វ ជ យ ល គល កអ នកប នកន ងក រ រក ទ កពត ម នទ ងអ ស របស ម ម នទ ១ ក រស គ ល ព Ms. Access 2010 1. Microsoft Access 2010 Ms.Access: គ ជ កញ ច ប កម មវ ធ ដ លគគគ ប ស រ ប ក រគរ បច រក ទ ក ន ង បម លផ ទ នន យ គប ទ នន យ, ដស ងរកទ នន យ, ន ងស សង ទ នន យជ គ ម Microsoft Access

More information

Khmer Angkor Keyboard

Khmer Angkor Keyboard Khmer Angkor Keyboard Contents Overview... 2 Khmer Angkor Keyboard Layouts... 2 Desktop Layout Windows/macOS... 2 Touch Layout Android/iOS... 3 Khmer Character Categories and Keystrokes for Desktop...

More information

1. Internet. Internet គ រត ប រង ទ រប នជ វ ព កមរយ: Protocol TCP/IP. Internet គ យ ច ប ស ង. Internet (ISP) Internet

1. Internet. Internet គ រត ប រង ទ រប នជ វ ព កមរយ: Protocol TCP/IP. Internet គ យ ច ប ស ង. Internet (ISP) Internet ម យៗន ហមក ក ង វ ន ព យស ន មព នកមហ ន ម កចធ ស ធ នក ព ង ផ នឬឯ ពយស ង ក ទខ ន ច ន យ ព ន ដល កមហ ពអច ម យ ន ន ន ស កជ ន ន ច ស ល ទ ល ន នក ង ច យ ន ន ធ ផ ធ ធ ធ ល ព ក កមហ មច ច ពចល ន ហ ស ច ជ កន ន កចម ស នស ង ជ សន ធ ស ស

More information

Unit 9 Spreadsheet development. Create a user form

Unit 9 Spreadsheet development. Create a user form Unit 9 Spreadsheet development Create a user form So far Unit introduction Learning aim A Features and uses Assignment 1 Learning aim B - Design a Spreadsheet Assignment 2 Learning aim C Develop and test

More information

Javascript & DOM Scripting

Javascript & DOM Scripting 1 Content BAYON HOSTING ច ប ផ ត ម Javascript & DOM Scripting អ នកន ងស ក ព ម ម នត ប ង វ ធ ស ស រសតថ ម ៗ ន ងវ ធ ស ស រសតម រ ជ ញ កញ ប កន ងក បមងក តមវបស យ ផ បផ ងផ យ ក យ ទ ត យត រ ស រ ប បផ ង នផ មជ ឈមណ ឌ ល ITEC

More information

Issues in Khmer Unicode 4.0

Issues in Khmer Unicode 4.0 Issues in Khmer Unicode 4.0 Javier Solá Abstract Some changes have been introduced in Khmer Unicode 4.0 standard order of components which render it non compatible with Unicode 3.0 or which introduce ambiguity

More information

- ខ!"រ - អងស. IT (Information Technology) Dictionary English - Khmer - English

- ខ!រ - អងស. IT (Information Technology) Dictionary English - Khmer - English ខ រអយធ សរបអក Khmer IT for You www.khmeritforyou.blogspot.com អ-ស វស e-book វចននក ម អយធ (បសច វទ ពតមន) អងស - ខ!"រ - អងស IT (Iformatio Techology) Dictioary Eglish - Khmer - Eglish $រល % ដល (នខ!"រក បរ(ប សកប)ក*

More information

CAMBODIA INTERNATIONAL COOPERATION INSTITUTE

CAMBODIA INTERNATIONAL COOPERATION INSTITUTE ១. PowerPoint Microsoft office PowerPoint ២. ៣ PowerPoint 2010 Double-Click Icon Microsoft PowerPoint 2010 Start All Programs Microsoft Office Microsoft PowerPoint 2010 Start Microsoft PowerPoint 2010

More information

IMAGINE. Живели! yežafk ចង ដ ង ភ ម. hípômäniyå. Mirna. A typeface family for magazines

IMAGINE. Живели! yežafk ចង ដ ង ភ ម. hípômäniyå. Mirna. A typeface family for magazines IMAGINE Живели! yežafk ចង ដ ង ភ ម hípômäniyå Mirna A typeface family for magazines ឝឞសឥឯ ផពរ វឝឞសឥឯ៥៦កខប ក ដតថកទធនបផពរ វឝឞសឥឯ៥៦កខប៨តក ខគឃ ឆជដតថកទធនបផពរ វឝឞសឥឯ៥៦កខប៨តក ខគឃ៤ង ដតថកទធនបផពរ វឝឞសឥឯ៥៦កខប៨តក ខគឃ៤ងចឆជ

More information

REGISTER WITH BLUE CONNECT Your guide to online tools and resources

REGISTER WITH BLUE CONNECT Your guide to online tools and resources REGISTER WITH BLUE CONNECT Your guide to online tools and resources Dear Member, This visual guide will help you register for BlueConnectNC.com, your personalized member services website. It is the guide

More information

Open Collaboration for Developing and Using Asian Language Treebank

Open Collaboration for Developing and Using Asian Language Treebank Open Collaboration for Developing and Using Asian Language Treebank Hammam Riza, Michael Purwoadi, Gunarso, Teduh Uliniansyah (BPPT) Aw Ai Ti, Sharifah Mahani Aljunied (I2R) Luong Chi Mai, Vu Tat Thang,

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

'... '... '... Developer: William H. White (consultant) '... With: TEKsystems Inc. '... For: AIG. Financial Information Systems

'... '... '... Developer: William H. White (consultant) '... With: TEKsystems Inc.   '... For: AIG. Financial Information Systems ThisWorkbook - 1 Developer: William H. White (consultant) With: TEKsystems Inc. www.teksystems.com For: AIG Financial Information Systems 1 NY Plaza, 15th floor Current contact: william.white@aig.com (212)

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator...

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator... INTRODUCTION TO VBA PROGRAMMING LESSON2 dario.bonino@polito.it Agenda First Example Simple Calculator First Example The world s simplest calculator... 1 Simple Calculator We want to design and implement

More information

Excel Programming with VBA (Macro Programming) 24 hours Getting Started

Excel Programming with VBA (Macro Programming) 24 hours Getting Started Excel Programming with VBA (Macro Programming) 24 hours Getting Started Introducing Visual Basic for Applications Displaying the Developer Tab in the Ribbon Recording a Macro Saving a Macro-Enabled Workbook

More information

SolidWorks A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS

SolidWorks A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS Automating SolidWorks 2004 using Macros A Visual Basic for Applications tutorial for SolidWorks users SDC PUBLICATIONS Schroff Development Corporation www.schroff.com www.schroff-europe.com By Mike Spens

More information

Copyrighted Material. Copyrighted. Material. Copyrighted

Copyrighted Material. Copyrighted. Material. Copyrighted Properties Basic Properties User Forms Arrays Working with Assemblies Selection Manager Verification and Error Handling Introduction This exercise is designed to go through the process of changing document

More information

Read More: Index Function Excel [Examples, Make Dynamic Range, INDEX MATCH]

Read More: Index Function Excel [Examples, Make Dynamic Range, INDEX MATCH] You can utilize the built-in Excel Worksheet functions such as the VLOOKUP Function, the CHOOSE Function and the PMT Function in your VBA code and applications as well. In fact, most of the Excel worksheet

More information

Creating a Dynamo with VBA Scripts

Creating a Dynamo with VBA Scripts Creating a Dynamo with VBA Scripts Creating a Dynamo with VBA 1 Table of Contents 1. CREATING A DYNAMO WITH VBA... 3 1.1 NAMING CONVENTIONS FOR DYNAMO OBJECTS...3 1.2 CREATING A DYNAMO...4 1.3 DESIGNING

More information

Extending the Unit Converter

Extending the Unit Converter Extending the Unit Converter You wrote a unit converter previously that converted the values in selected cells from degrees Celsius to degrees Fahrenheit. You could write separate macros to do different

More information

How to Use the Select Case Structure in Excel VBA

How to Use the Select Case Structure in Excel VBA One can implement conditional logic in VBA using an IF statement, multiple IF-Elseif statements or one can use the Select Case statement in order to implement conditional logic. In the case where one has

More information

Hands-On Lab. Core Office Solution Development. Lab version: Last updated: 2/23/2011

Hands-On Lab. Core Office Solution Development. Lab version: Last updated: 2/23/2011 Hands-On Lab Core Office Solution Development Lab version: 1.0.1 Last updated: 2/23/2011 CONTENTS OVERVIEW... 4 EXERCISE 1: SETTING UP A DATA CONNECTION... 5 Task 1 Accessing external data in Excel...

More information

On this class sheet, we can specify the members (properties and methods) that the objects created using this template will have.

On this class sheet, we can specify the members (properties and methods) that the objects created using this template will have. Classes A class is a template for creating our own objects. In Excel VBA a class comes in the form of a special sheet which we can inset into our program. On this class sheet, we can specify the members

More information

Manual Vba Access 2010 Close Form Without Saving Record

Manual Vba Access 2010 Close Form Without Saving Record Manual Vba Access 2010 Close Form Without Saving Record I have an Access 2010 database which is using a form frmtimekeeper to keep Then when the database is closed the close sub writes to that same record

More information

NOTES: Procedures (module 15)

NOTES: Procedures (module 15) Computer Science 110 NAME: NOTES: Procedures (module 15) Introduction to Procedures When you use a top-down, structured program design, you take a problem, analyze it to determine what the outcome should

More information

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE Course Title: Introduction to Visual Basic Code No.: Semester: Three Program: Computer Programming Author: Willem de Bruyne

More information

This project was originally conceived as a pocket database application for a mobile platform, allowing a

This project was originally conceived as a pocket database application for a mobile platform, allowing a Dynamic Database ISYS 540 Final Project Executive Summary This project was originally conceived as a pocket database application for a mobile platform, allowing a user to dynamically build, update, and

More information

NetRiders Asia Pacific and Japan

NetRiders Asia Pacific and Japan NetRiders Asia Pacific and Japan Round 2 Results 21 advance to Round 3 Posted 14 September, 2017 Cisco Networking Academy NetRiders Asia Pacific and Japan 2017 CCNA Competition Below are the NetRiders

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

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

Human Factors Engineering Short Course Topic: A Simple Numeric Entry Keypad

Human Factors Engineering Short Course Topic: A Simple Numeric Entry Keypad Human Factors Engineering Short Course 2016 Creating User Interface Prototypes with Microsoft Visual Basic for Applications 3:55 pm 4:55 pm, Wednesday, July 27, 2016 Topic: A Simple Numeric Entry Keypad

More information

VBA Foundations, Part 7

VBA Foundations, Part 7 Welcome to this months edition of VBA Foundations in its new home as part of AUGIWorld. This document is the full version of the article that appears in the September/October issue of Augiworld magazine,

More information

Ms Excel Vba Continue Loop Through Worksheets By Name

Ms Excel Vba Continue Loop Through Worksheets By Name Ms Excel Vba Continue Loop Through Worksheets By Name exceltip.com/files-workbook-and-worksheets-in-vba/determine-if- Checks if the Sheet name is matching the Sheet name passed from the main macro. It

More information

<excelunusual.com> Easy Zoom -Chart axis Scaling Using VBA - by George Lungu. <www.excelunusual.com> 1. Introduction: Chart naming: by George Lungu

<excelunusual.com> Easy Zoom -Chart axis Scaling Using VBA - by George Lungu. <www.excelunusual.com> 1. Introduction: Chart naming: by George Lungu Easy Zoom -Chart axis Scaling Using VBA - by George Lungu Introduction: - In certain models we need to be able to change the scale of the chart axes function of the result of a simulation - An Excel chart

More information

Telecommunication Regulator of Cambodia (TRC) TRC Presented by Mr. Im Vutha Director of Regulation and Dispute Unit TRC

Telecommunication Regulator of Cambodia (TRC) TRC Presented by Mr. Im Vutha Director of Regulation and Dispute Unit TRC Telecommunication Regulator of Cambodia (TRC) TRC - 2015 Presented by Mr. Im Vutha Director of Regulation and Dispute Unit TRC 1 Telecommunication Sector Reform 2 Dispute resolution Procedure of TRC 3

More information

17. Introduction to Visual Basic Programming

17. Introduction to Visual Basic Programming 17. Introduction to Visual Basic Programming Visual Basic (VB) is the fastest and easiest way to create applications for MS Windows. Whether you are an experienced professional or brand new to Windows

More information

2-26 Learn Visual Basic 6.0

2-26 Learn Visual Basic 6.0 2-26 Learn Visual Basic 6.0 cmdcompute Click Event: Private Sub cmdcompute_click() Dim Mean As Single Dim StdDev As Single txtinput.setfocus Make sure there are at least two values If NumValues < 2 Then

More information

Scoping Information Report

Scoping Information Report Scoping Information Report February 2019 To request accommodations for persons with disabilities or information in alternative formats, call 1-800-201-4900/TTY Relay: 711 or email accessibility@soundtransit.org.

More information

Microsoft Power Tools for Data Analysis #5 Power Query: Append All Tables in Current Workbook Notes from Video:

Microsoft Power Tools for Data Analysis #5 Power Query: Append All Tables in Current Workbook Notes from Video: Microsoft Power Tools for Data Analysis #5 Power Query: Append All Tables in Current Workbook Notes from Video: Table of Contents: 1. Goal of Video... 3 2. Each Excel Table on New Sheet... 3 3. What does

More information

Introduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31

Introduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31 Contents at a Glance Introduction... 1 Part I: Getting Started with Excel VBA Programming... 9 Chapter 1: What Is VBA?...11 Chapter 2: Jumping Right In...21 Part II: How VBA Works with Excel... 31 Chapter

More information

HSA Contribution Guide. How to set up and send employer-directed HSA contributions

HSA Contribution Guide. How to set up and send employer-directed HSA contributions HSA Guide How to set up and send employer-directed HSA contributions Table of contents Introduction 2 Employer contribution options. 3 Getting started: Before you upload, run new reports to confirm accounts

More information

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code Your comments and suggestions on the operation of this software are welcome. Please address them to: ICONICS 100 Foxborough Blvd. Foxborough, MA 02035 Tel: 508-543-8600 Fax: 508-543-1503 E-mail: support@iconics.com

More information

Rooftop Industries Pvt. Ltd.

Rooftop Industries Pvt. Ltd. Rooftop Industries Pvt. Ltd. Production and inventory management system A level Computing Project Shritesh Bhattarai Little Angels' College 1 Table of Contents Definition, investigation and analysis...

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

Drawing an Integrated Circuit Chip

Drawing an Integrated Circuit Chip Appendix C Drawing an Integrated Circuit Chip In this chapter, you will learn how to use the following VBA functions to World Class standards: Beginning a New Visual Basic Application Opening the Visual

More information

PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA

PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA PROGRAMMING LANGUAGE 2 (SPM3112) INTRODUCTION TO VISUAL BASIC NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA Topics Visual Basic Components Basic Operation Screen Size

More information

19. VB Project and Menu Design

19. VB Project and Menu Design 19. VB Project and Menu Design 19.1 Working with Projects As you develop an application, you work with a project to manage all the different files that make up the application. A VB project consists of:

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

The For Next and For Each Loops Explained for VBA & Excel

The For Next and For Each Loops Explained for VBA & Excel The For Next and For Each Loops Explained for VBA & Excel excelcampus.com /vba/for-each-next-loop/ 16 Bottom line: The For Next Loops are some of the most powerful VBA macro coding techniques for automating

More information

Sébastien Mathier wwwexcel-pratiquecom/en Variables : Variables make it possible to store all sorts of information Here's the first example : 'Display the value of the variable in a dialog box 'Declaring

More information

Create this Awesome Excel VBA Roster System with a Shift-Flow Generator

Create this Awesome Excel VBA Roster System with a Shift-Flow Generator Create this Awesome Excel VBA Roster System with a Shift-Flow Generator Excel VBA Roster: -I have a bit of a history with Rosters and data extract applications. I have been developing roster and data extract

More information

Learning VB.Net. Tutorial 17 Classes

Learning VB.Net. Tutorial 17 Classes Learning VB.Net Tutorial 17 Classes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

Basic Programming Algorithms. 1-D Arrays

Basic Programming Algorithms. 1-D Arrays Basic Programming Algorithms 1-D Arrays 1-D fixed-size array Dim arr(5) As Double 0-base, 6 elements Dim arr(0 to 5) As Double 0-base, 6 elements Dim arr(1 to 5) As Double 1-base, 5 elements Option Base

More information

The construction of MS Excel program:

The construction of MS Excel program: Chapter 10 Introduction to MS Excel 2003 Introduction to Microsoft Excel 2003: MS Excel is an application program. MS Excel is the most famous spreadsheet program. We can use it mainly for calculations.

More information

A casual approach to numerical modeling

A casual approach to numerical modeling A casual approach to numerical modeling Spring-Mass-Damper System - part 2. by George Lungu It contains a tutorial about the implementation of a static SMD model in Excel

More information

Corporate essentials

Corporate essentials Microsoft Office Excel 2016, Corporate essentials A comprehensive package for corporates and government organisations Knowledge Capital London transforming perfomance through learning MS OFFICE EXCEL 2016

More information

2Practicals Visual Basic 6.0

2Practicals Visual Basic 6.0 2Practicals Visual Basic 6.0 Practical 1: 1. Navigation of Visual Basic Integrated Development Environment The Visual Basic IDE is made up of a number of components Menu Bar Tool Bar Project Explorer Properties

More information

Customizing the Excel 2013 program window. Getting started with Excel 2013

Customizing the Excel 2013 program window. Getting started with Excel 2013 Customizing the Excel 2013 program window 1 2 Getting started with Excel 2013 Working with data and Excel tables Creating workbooks Modifying workbooks Modifying worksheets Merging and unmerging cells

More information

LmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions

LmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions LmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions No. 9, 1st Floor, 8th Main, 9th Cross, SBM Colony, Brindavan Nagar, Mathikere, Bangalore 560 054 Email: itechanalytcisolutions@gmail.com Website: www.itechanalytcisolutions.com

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

Excel VBA Variables, Data Types & Constant

Excel VBA Variables, Data Types & Constant Excel VBA Variables, Data Types & Constant Variables are used in almost all computer program and VBA is no different. It's a good practice to declare a variable at the beginning of the procedure. It is

More information

TOOLBOX FUNCTION: Import Inventory Adjustments from Spreadsheet

TOOLBOX FUNCTION: Import Inventory Adjustments from Spreadsheet TOOLBOX FUNCTION: Modules Affected: Versions Affected: Purchase Order/Inventory Version 7 (software level 9.7c2.33) and COINS Ti The discussion of this new function is divided into the sections shown below.

More information

Error Vba Code For Vlookup Function In Excel 2010

Error Vba Code For Vlookup Function In Excel 2010 Error Vba Code For Vlookup Function In Excel 2010 Users who use VLOOKUP or HLOOKUP function get N/A Error many times when In case, if there is a need to use these function in a Excel VBA Macro, then. Excel

More information

AlphaCam Routing Example

AlphaCam Routing Example The Project In this project we are going to draw a door front with an arched panel from information supplied by the user and then machine the door complete. The project will contain a single form and two

More information

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C 1. Visual Basic is a tool that allows you to develop application in A. Real time B. Graphical User Interface C. Menu Driven D. None Of These 2. IDE stands for.. A. Internet Development Environment B. Integrated

More information

PROGRAM 1: SIMPLE CALCULATOR

PROGRAM 1: SIMPLE CALCULATOR PROGRAM 1: SIMPLE CALCULATOR Option Explicit Dim operand1 As Double, operand2 As Double Dim op1 As Double, op2 As Double Dim operator As String Dim cleardisplay As Boolean Private Sub Cmdclear_Click()

More information

Learn Visual Basic 6.0

Learn Visual Basic 6.0 8-1 Learn Visual Basic 6.0 8. Database Access and Management Review and Preview In past classes, we ve seen the power of the built-in Visual Basic tools. In this class, we look at one of the more powerful

More information

Simply Access Tips. Issue April 26 th, Welcome to the twelfth edition of Simply Access Tips for 2007.

Simply Access Tips. Issue April 26 th, Welcome to the twelfth edition of Simply Access Tips for 2007. Hi [FirstName], Simply Access Tips Issue 12 2007 April 26 th, 2007 Welcome to the twelfth edition of Simply Access Tips for 2007. Housekeeping as usual is at the end of the Newsletter so, if you need to

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

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

Updating Your Local Program Webpage

Updating Your Local Program Webpage I. Go to www.soor.org Updating Your Local Program Webpage II. III. IV. On the top right hand side of the home page of www.soor.org click on LPC LOGIN. Type in your Username and Password, then click the

More information

This chapter is intended to take you through the basic steps of using the Visual Basic

This chapter is intended to take you through the basic steps of using the Visual Basic CHAPTER 1 The Basics This chapter is intended to take you through the basic steps of using the Visual Basic Editor window and writing a simple piece of VBA code. It will show you how to use the Visual

More information

Example File Manipulation in Visual Basic

Example File Manipulation in Visual Basic Example File Manipulation in Visual Basic Obtain the file from your lecturer: Ex-files.vbp Ex-Files.bas Stock.dat Ex-Files.frm ex-files.vbw Prices.dat One of the most important functions of programming

More information

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be

More information

Microfocus VBA Add-On for Rumba+ Desktop. Quick Start Guide

Microfocus VBA Add-On for Rumba+ Desktop. Quick Start Guide Microfocus VBA Add-On for Rumba+ Desktop Quick Start Guide Micro Focus The Lawn 22-30 Old Bath Road Newbury, Berkshire RG14 1QN UK http://www.microfocus.com Copyright Micro Focus 1984-2018. All rights

More information

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II) Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual

More information

Sébastien Mathier wwwexcel-pratiquecom/en While : Loops make it possible to repeat instructions a number of times, which can save a lot of time The following code puts sequential numbers into each of the

More information

Integration of AutoCAD VBA with Microsoft Excel

Integration of AutoCAD VBA with Microsoft Excel 11/29/2005-5:00 pm - 6:30 pm Room:Swan 4 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida Integration of AutoCAD VBA with Microsoft Excel dave espinosa-aguilar - Toxic Frog Multimedia

More information

EGR1301_Linear_Equation_Solver_ docx. 1. Select Options 2. Select Add Ins. 3. Select Solver Add in and press OK.

EGR1301_Linear_Equation_Solver_ docx. 1. Select Options 2. Select Add Ins. 3. Select Solver Add in and press OK. 1. Select Options 2. Select Add Ins 3. Select Solver Add in and press OK Page 1 of 13 4. Select Analysis ToolPak and press OK 5. Select Analysis ToolPak VBA and press OK Page 2 of 13 6. From Quick Access

More information

Introduction VBA for AutoCAD (Mini Guide)

Introduction VBA for AutoCAD (Mini Guide) Introduction VBA for AutoCAD (Mini Guide) This course covers these areas: 1. The AutoCAD VBA Environment 2. Working with the AutoCAD VBA Environment 3. Automating other Applications from AutoCAD Contact

More information

Izrada VI laboratorijske vježbe

Izrada VI laboratorijske vježbe Izrada VI laboratorijske vježbe 1. Programirati proceduru koja se aktivira sa Standard palete alatki klikom na button Fajlovi. Prilikom startovanja procedure prikazuje se forma koja sadrži jedan list box

More information

Programming with Visual Basic for Applications

Programming with Visual Basic for Applications BONUS CHAPTER Programming with Visual Basic for Applications 3 IN THIS CHAPTER Understanding VBA and AutoCAD Writing VBA code Getting user input Creating dialog boxes Modifying objects Creating loops and

More information

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed The code that follows has been courtesy of this forum and the extensive help i received from everyone. But after an Runtime Error '1004'

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

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 The VB6 IDE (Integrated Development Environment) is a very simple and fully featured IDE. If you start out programming in VB6 you may end up being too spoiled to

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 8 1 Data Structure: Array Array as Argument Examples

More information

CSE 123 Introduction to Computing

CSE 123 Introduction to Computing CSE 123 Introduction to Computing Lecture 11 Programming with Arrays SPRING 2012 Assist. Prof. A. Evren Tugtas Array Variables Review For detailed information on array variables look at the notes of Lecture

More information

Pivot Tables, Lookup Tables and Scenarios

Pivot Tables, Lookup Tables and Scenarios Introduction Format and manipulate data using pivot tables. Using a grading sheet as and example you will be shown how to set up and use lookup tables and scenarios. Contents Introduction Contents Pivot

More information

Chapter 1. Block Diagram. Text .. 1

Chapter 1. Block Diagram. Text .. 1 Chapter 1 ก Visual Basic Scilab ก ก Visual Basic Scilab ก ก (Temporary File) ก ก ก ก ก ก Visual Basic ก (Interface) ก Scilab Text File ก Visual Basic ก ก ก ก Block Diagram ก ก Visual Basic ก Scilab ก.sce

More information

CODE V COM Interface COM-1

CODE V COM Interface COM-1 CODE V COM Interface 3280 East Foothill Boulevard Pasadena, California 91107 USA (626) 795-9101 Fax (626) 795-0184 e-mail: service@opticalres.com World Wide Web: http://www.opticalres.com COM API CODE

More information

IS 320 A/B Winter 1998 Page 1 Exam 1

IS 320 A/B Winter 1998 Page 1 Exam 1 IS 320 A/B Winter 1998 Page 1 Use your own paper to answer the questions. You may do work on this document but transfer your answers to separate sheets of paper. Turn in this document as well as your answers

More information

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools

Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools Structured Solutions Inc. Tools MS Project to Excel Export/Import Tools This Macro Enabled Excel workbook contains a collection of useful tools that enables the user to Get, Post or Lookup data from MS

More information

Read or Write Trace Data

Read or Write Trace Data Agilent E5070B/E5071B ENA Series RF Network Analyzers Read or Write Trace Data Second Edition No. 16000-95017 August 2002 Notices The information contained in this document is subject to change without

More information

Excel2MDB Importer Documentation

Excel2MDB Importer Documentation Excel2MDB Importer Documentation This documentation, and Excel2MDB, is solely purposed for the cloud-based usage of labfolder. If your organization runs labfolder through an installed local server, please

More information

Proficy* HMI/SCADA - ifix W RITING S CRIPTS

Proficy* HMI/SCADA - ifix W RITING S CRIPTS Proficy* HMI/SCADA - ifix W RITING S CRIPTS Version 5.5 January 2012 All rights reserved. No part of this publication may be reproduced in any form or by any electronic or mechanical means, including photocopying

More information