How to use VBA in PowerPoint: A beginner’s guide

  • Written by: Jamie Garroch
  • Categories: PowerPoint productivity , Presentation technology
  • Comments: 45

visual basic presentation

Here at BrightCarbon we’re always looking for new ways to improve our own PowerPoint productivity and then share that knowledge with the presentation community (that includes you, by the way!). One of the ways we do this is by using VBA code to automate and extend the functionality of PowerPoint. We publish  free PowerPoint VBA code snippets here in our blog for you to use and also offer a PowerPoint automation service . This article explains how to grab the code from our articles and use it in your PowerPoint project, so that you can take your productivity to the next level!

What is VBA?

Visual Basic for Applications (VBA) is a programming environment for Microsoft Office applications. It’s included with your installation of Office by default  ( unless your system administrator has deactivated it ) . PowerPoint VBA provides you with a way to do one of two things   using macros and add-ins:  

  • A utomate  PowerPo int:   If you ever find yourself repeating the same task over and over again, VBA could be your new best friend.  Let’s say you have 100 slides and you need to unhide all hidden objects  across all those slides . That could take you  many  eye-straining minutes, but with a PowerPoint VBA it takes around a  second.
  • E xtend  PowerPoint :   Sometimes PowerPoint doesn’t have the feature you need  to complete your task . As an example, if you end up deleting default layouts from a template, there’s no  easy  way in PowerPoint to get them back. This article includes PowerPoint VBA code to do just that!

How to open the VBE (Visual Basic Editor)

Getting to meet your VBA friend is very simple. With PowerPoint open and at least one presentation file open, press  Alt+F11 * on your keyboard. This will open the VBE (Visual Basic Editor):  

PowerPoint VBE No Modules

*If for some reason Alt+F11 isn’t mapped on your keyboard you can right click anywhere on the ribbon, select  Customize the Ribbon…  and in the window that appears, tick the  Developer Tab  check box over on the right hand side before clicking  OK  to close the window. Now you can click the  Visual Basic  button within this tab:  

PowerPoint Developer Tab Visual Basic

Adding PowerPoint VBA code  

To add some VBA code, you need a container to put it in so go ahead and click  Insert  from the menu and then select  Module :  

PowerPoint VBE Insert Module

You now have a module ready to paste the VBA code into  from one of our blog articles :  

PowerPoint VBE Module Inserted

Copy the VBA code from  the required blog article  by double-clicking on it and then paste it into the  Module1  window above.  Here’s a very simple example of some code  to display a message dialogue :

You should now see something like this:  

PowerPoint VBA

Because this code is just a single  Sub  procedure called  HelloWorld , it’s referred to as a macro.  

Running  the PowerPoint VBA macro  

Now you have the macro in your presentation you can use  Alt+Tab  to return to the more familiar PowerPoint window. From here, the macro can be run by pressing  Alt+F8  on your keyboard  (or b y  clicking the  Macros  button in the Developer tab)  which opens a window containing a list of available macros:  

PowerPoint VBA

Security Soup

The first time you add VBA code to a file, Microsoft assumes that it is safe because you added it. As soon as you save, close and reopen the file, Microsoft doesn’t know that it’s your code so it will disable it by default. You can tell the Office app to allow your code to run either by signing it with a digital certificate (beyond the scope of this article) or by lowering the security setting for the app. You can do this in PowerPoint by clicking File / Options / Trust Center / Trust Center Settings / Macro Settings and selecting this option shown below:

VBA Macro Settings

Saving your file  

visual basic presentation

Once you ’ve added  VBA code  to  your presentation, PowerPoint will  ask you to save it as a  pptm  file  (the ‘m’ stands for macro)  instead of the more  familiar  pptx  format .  You can go ahead and do this to  either  keep a n archive  copy of your  code-enabled  project  or   to  create your personal macro library.  

If you want to distribute your  presentation,   it’s advisable to   save  it  using the familiar pptx format so that  your  recipients don’t see lots of verbose  security  messages  when opening  pptm  files!  

Y ou can  make  your file saveable as a standard presentation again  by  right – click ing  on  each   code module in the  project explorer pane , clicking  Remove   ModuleX …   and either click  Yes   (if you want to keep a backup of the modules independently of your presentation)  or  No   when  asked if you want to save the module before removing it :  

visual basic presentation

Now your presentation doesn’t include any code and you can save it as a pptx file.  

So, there you have it.  You now know how to open the VBE, insert a PowerPoint VBA code module, paste code into it, run the macro and save the file in either pptm  or pptx formats. All you need is a cool macro to make your daily life even easier. Keep checking in with our blog for more useful macros – like this one on restoring default slide master layouts!

Got something extra you’d like PowerPoint to do?

Check out our PowerPoint automation service which provides you with a custom solution to your specific needs.

visual basic presentation

Jamie Garroch

Principal technical consultant, related articles, how to consistently brand graphs and charts across microsoft office.

  • PowerPoint design / PowerPoint productivity
  • Comments: 1

How do you make sure that your graphs and charts have consistent branding across Excel, PowerPoint and Word? Learn how to create and use custom templates that support your brand identity across Microsoft Office.

visual basic presentation

Changes to VBA Macro Security in Microsoft 365

  • Presentation technology / Industry insights
  • Comments: 2

You can do some really cool things in Microsoft Office with just a few lines of Visual Basic for Applications (VBA) - from creating your own custom formula in Excel to correcting branded content in PowerPoint to merging address data for a mail campaign in Word. And sometimes you need to share that VBA solution with colleagues and clients, via the Internet. A change that Microsoft rolled out at the end of March 2022 tweaks the process required by Windows users to gain access to this active content.

visual basic presentation

Protecting your prized PowerPoint content

  • PowerPoint productivity / Presentation technology

Our comprehensive guide to password protecting PowerPoint files so your precious presentations stay just they you made them!

very simple, very explicit, very good help for a beginner vba programmer in powerpoint. Thanks

great resource, thanks. I’ve used VBA for years in MSaccess, and this is a good refresher for me.

I am trying to make a ppt file that loops until stopped. then I save it as a video. the ppt ran and looped continuously. Once recorded as video it stopped looping. do you have code to make ppt work when in video format

Hi Charles. As soon as you export a PowerPoint deck as a video all the PowerPoint functionality is removed as the file is magically transformed into an MP4 file, without VBA (sob sob). The only way to make the video loop is to use the looping feature of your video player.

Yeah, your best off recording a screen capture of the presentation running, then cutting it so it loops perfectly.

You can convert the video into gif file so that it will loop

Hi Jamie, thanks for the clear into, I am very new to this so that really helps. I am trying to develop a VBA macro that looks for the left hand mouse key being pressed and held down for more than two seconds whilst over a shape in slideshow mode. Once this is satisfied (i.e. two second press) for it then to hyperlink or take the user to a specified slide or even the next slide worst case.

I realise there is an automated/ built in feature (Action) that does this type of thing for a mouse click or mouse over but I really need a “long press” to activate if possible.

Any help appreciated.

Hi Simon and thanks for a great question. What you’re looking to do is pretty complex because VBA doesn’t natively support mouse actions in the PowerPoint slide show window. But, it is possible to use a Windows API (hence no Mac compatibility) called GetAsyncKeyState to gain access to mouse button click events. I had a look at this and quickly ran into a brick wall because an action link to a macro in slide show mode (Insert / Action / Mouse Click / Run macro) fires on the mouse up event, not mouse down. That means any corresponding VBA timer code can’t run until after the user releases the button and hence too late to detect if it was held down for two seconds. Maybe something could be done with the mouse over event to simulate what you need to achieve? Another approach could be to use the mouse down event on an invisible userform although that is also getting very involved with multiple Windows APIs. Depending on what you’re trying to do, you could also start the timer on click one, change the colour of the clicked shape and show countdown text before reverting to the original colour. If the user clicks a second time before the time expires, then the hyperlink is fired.

Valuable app

Hello I have a question:

Private Sub CommandButton2_Click() ActivePresentation.FollowHyperlink _ Address:=”http://192.168.16.49/?OUT1=ON”, _ NewWindow:=False, AddHistory:=False ActivePresentation.SlideShowWindow.View.GotoSlide (2)

Now it opens Chrome. but how can i make it that it opens te address en afther that shut down chrome.

Hi Tom. Your example should open the default browser at the URL specified by the Address parameter. For more information on the FollowHyperlink method, see this Microsoft documentation: https://docs.microsoft.com/en-us/office/vba/api/powerpoint.presentation.followhyperlink

Thank you very much! It’s exactly what I needed.

I have tried using your randomizing macro with a powerpoint – I must be doing something wrong, because it isn’t putting the slides in random order. Please advise! I copied the macro exactly (using cut & paste), and thought I was following all the directions here for how to use it in the powerpoint. But, no random presentation of the slides. Boo hoo!

Hi Marya. Let’s check that VBA is installed and enabled on your machine. Can you add the following macro to the VBE project (just below the existing one) and try to run it from the PowerPoint window using Alt+F8?

Sub CheckVBA() MsgBox “it’s working” End Sub

Make sure the quotes are the straight type.

I am trying to format my title page so that the number displayed is equal to the linked slide and updates automatically wherever the slide is moved. For example “about us” is on slide #5 and linked, so it goes to slide 5 when you click on the word. I need the number (in a separate text box) to update automatically to the slide number location that the link goes to.

Hi Mary and thanks for the question. It looks like you’re interested in some kind of automated agenda slide builder. That’s a fair bit of code to create and quite complex as it needs to handle events from PowerPoint to detect when slides have moved. It could be possible to write a simpler macro which you run manually each time you want to update that title page. You’d need start by finding a way to identify which objects are your numerical indicators. For example, if you named your objects in the selection pane (Alt+F10) “Agenda Link”, then is simple macro could be a starting place for you: Sub UpdateAgendaNumbers() Dim oSld As Slide Dim oShp As Shape Dim LinkedSlideIndex As Long On Error Resume Next For Each oSld In ActivePresentation.Slides For Each oShp In oSld.Shapes If oShp.Name = “Agenda Link” Then If oShp.ActionSettings(ppMouseClick).Action = ppActionHyperlink Then If oShp.HasTextFrame Then LinkedSlideIndex = Split(oShp.ActionSettings(ppMouseClick).Hyperlink.SubAddress, “,”)(1) oShp.TextFrame.TextRange.Text = LinkedSlideIndex End If End If End If Next Next End Sub

Great wealth of information. Have never used macros before but was looking to use them to help with this situation. At work we use Work Orders (created in Power Point) and are looking to include a sequential number to them (print 50-100 copies of one slide with the numbers) and if possible would like the number to continue from the last printed number…been trying to find some code to help but not having much luck possible partly due to being new to macros

That’s definitely something we could help design for you Joshua. If you’d like to discuss further, please click the Contact button at the top of this page.

I tried this changing the font color of text within the textbox. I used this to change the font color on a mouse over:

Public Sub GraphicHover(ByRef oGraphic As Shape)

oGraphic.TextFrame.TextRange.Font.Color.RGB = RGB(0, 130, 202)

and it works just fine. But, when I move the mouse off the text box, onto the invisible rectangle with this code attached to the mouseover event, it doesn’t change the text color back to it’s original color and remains the color I changed it to mentioned above. I know the mouseover event is being triggered because I checked “Highlight when mouse over” and I am seeing the highlight on the invisible rectangle:

Public Sub ResetGraphicHover(ByRef oCover As Shape) Dim oSld As Slide Dim oShp As Shape Set oSld = oCover.Parent For Each oShp In oSld.Shapes With oShp.TextFrame.TextRange.Font.Color If .RGB = RGB(0, 130, 202) Then .RGB = RGB(121, 135, 156) End With Next End Sub

Any clue where my ResetGraphicHover is failing?

Hi Dave. I took your code and it works for me. You could add a debug line after the For Each… line in the rest macro to check that (a) it’s firing and (b) which shapes are being looked at on your slide. To do that, add this:

Debug.Print oShp.Name

After you run the slide show, check the output in the VBE Immediate pane (Ctrl+G to toggle it).

Hi I am creating an interactive game (matching cards or concentration) in PowerPoint. If the 2 cards match, I need a pop-up text box to appear. If the 2 cards do not match, I need a sound to play.

I understand I need programming to make this happen. Please help or give alternative ways to achieve this. Thanks.

Hi Tammy. Have a look at this article which will help you: https://www.brightcarbon.com/blog/powerpoint-memory-game/

Hi Producer I will like to get comments on macros you can make available to me. Beautiful. I am using this approach frequently to make offline projects. Thanks. S. Fas

Excellent!!! Thank you!

You’re more than welcome Nataša!

Thank you! Is there any option to replace a font in the entire presentation for a specific character. Let’s say, I would like to change font only for dots in the deck but I would like to keep the rest in the original font. Any idea please? Thank you so much!

Hi Jan. You might be able to use the Replace Fonts feature found in the Home tab of PowerPoint under the Replace menu at the far end of the ribbon. If you need to use VBA then set up a nested loop to iterate all shapes within all slides and then use the oShp.TextFrame2.TextRange.Font object to change the font.

Exellent explenation. so beutiful. I am creating an interactive e learing quiz. Thanking you.

Hello! I have a client who’s interested in using tagging to help create searchable content within slides. For example, they have four different categories for slide content across multiple presentations (Overview, Market, Product, Country). I’d like to assign a different shape to represent each of the four categories, where a blue square might represent Overview slide content. Then, when someone uses the keyword “Overview” to search for overview content (on Teams or SharePoint), these slides are easily identified. Is this something that’s possible with VBA code?

Hi Linda. That’s a very good question! Given the need is to search via SharePoint, VBA probably won’t help here as the PowerPoint file needs to be opened for VBA to examine its content. I have a sneaking suspicion that if you add keywords in the Tags field under File / Info that SharePoint may use this. But, that’s at the file level rather than the slide level. We have a PowerPoint add-in called ShowMaker that might be of interest as it allows you to add category metadata to slides and then the presenter can use that to filter the deck and export the required content. You can find an overview of it here: https://www.brightcarbon.com/showmaker/ and we could set up a demo if you’re interested (please use the Contact button at the top of this page if that’s the case).

I’ve just created an elearning package in PowerPoint using VBA , I didn’t realise it could sum up text boxes within PowerPoint to mark the qualification at the end. Also used AWS text to speech over the top of the learning . Looks great

Sounds like a fun and successful project Stu! Thanks for sharing 🙂

I have a bit of a tricky one but hoping it is possible to do with VBA. We offer training services to multiple clients that can be customized but the majority of training is consistent from one client to the next (main changes are the slide masters/formatting and addition/removal of certain sections).

What we want to do is create one master (or multiple) training document(s), and then use VBA’s to link it to the client specific PowerPoint. We want to link the master rather than using the “reuse slide” command so that if we update one file the other will automatically update as well.

Not sure if it matters, but our company uses sharepoint as storage

Hi Dave and thanks for a great question. VBA is an excellent solution for automating a manual process. In general, if a person can perform a task manually via a sequence of pre-defined steps then VBA can do it automatically, faster, and with less chance of mistakes for something done many times. We’d be happy set up a call to discuss your needs further and see what could be automated with VBA. If that’s of interest, please use the contact button at the top of the page and mention my name in the form.

PP does not seem to have the record macro feature. To write vba code in PP by someone who only worked with vba in excel, would require some prior knowledge. Is there a summary of the most common objects, methods etc to refer to?

Hi Reef. You’re correct that there’s no VBA macro recording feature in newer versions of PowerPoint. The best place to start learning is by purchasing a book (there’s one called “Mastering VBA for Microsoft Office 365” on Amazon or reading the extremely exciting Object Model documentation from Microsoft: https://docs.microsoft.com/en-us/office/vba/api/overview/powerpoint/object-model

Hi Greeting I had made a game in power point using VBA codes. At last it generate a report every time a candidate conduct the game . My requirement is to generate result in same excel sheet after conducting the game. Like Row 1 player 1 result Row 2 player 2 result I need your help Regards

Hi Asheesh. It’s possible to use VBA to get PowerPoint to “talk” to Excel (and other Office apps) but it’s a bit complicated to mention in a comment here. We’d be happy to help if you’d like a quote or if you want to try yourself you could start with this: Set oXL = CreateObject(“Excel.Application”) and have a look at some online examples. I’d also recommend the book “Mastering VBA for Microsoft Office 365” available from Amazon.

If there are two colors of font in the textFrame, how to change the font of one color through VBA?

Hi Bruce. You could either iterate through the Characters collection of the TextRange2 object or the Runs collection which returns all of the TextRanges with the same style. Example: ActiveWindow.Selection.ShapeRange(1).TextFrame2.TextRange.Runs(1).Font.Fill.ForeColor.RGB

Hi – can you help, please?

How can I change the font color and size of the message box? What code will work and where will I put it? Creating an interactive game in powerpoint. Thank you!

—– Sub Correct() Points.Caption = (Points.Caption) + 10 Output = MsgBox(“Your answer is correct, well done!”, vbOKOnly, “Correct Answer”) ActivePresentation.SlideShowWindow.View.Next End Sub

Sub Incorrect() Points.Caption = (Points.Caption) – 5 Output = MsgBox(“Your answer is incorrect.”, vbOKOnly, “Wrong Answer”) ActivePresentation.SlideShowWindow.View.Next End Sub

Sub Reset() SlideLayout.Points.Caption = 0 ActivePresentation.SlideShowWindow.View.Exit End Sub ———-

Thanks for your explanation.

Hi Jamie, Is there any way to keep my macro save in a file so I can utilize on any other PPTs equivalent as.normal.dotm for Word, .xlam(add-in) for Excel.

Hi Anurag. Thanks for the question and Happy New Year! The best way to do this would be to export your project as a ppam and activate it as an add-in via the PowerPoint add-ins UI. Save your ppam in %AppData%\Microsoft\AddIns and then in the Windows PowerPoint Developer tab, click PowerPoint Add-Ins and add your ppam from there. If you’re not code-signing your VBA project, you may need to adjust Trust Centre settings. You could optionally build an EXE/MSI installer package for Windows and PKG for macOS, although that is a more complex topic.

Join the BrightCarbon mailing list for monthly invites and resources

I did not think it was possible for an external team to get our message so quickly and accurately. You got our messages better than we did, and delivered presentations that were slick and really effective. Guy Shepherd Bouygues

visual basic presentation

visual basic presentation

Lesson 1 : Introduction to Visual Basic

1.1 the concept of computer programming.

Programming involves the creation of a series of instructions aimed at directing a computer to perform tasks far more efficiently than humans. The initial programming language, known as machine language, relied on binary code (consisting of 0s and 1s) to establish communication with the computer. Nonetheless, machine language posed significant challenges due to its complexity. Thankfully, scientists have since developed high-level programming languages that are considerably more user-friendly and accessible for mastering. Among the high-level programming languages are Java, Javascript , C, C++, c# and Visual Basic.

If you are looking for help with your computer science essays and research papers, don't hesitate to contact paper writing services provided by CustomWritings.com.

1.2 What is Visual Basic?

Visual Basic is a third-generation event-driven programming language first released by Microsoft in 1991. It evolved from the earlier DOS version called BASIC. BASIC means B eginners' A ll-purpose S ymbolic I nstruction C ode. Since then Microsoft has released many versions of Visual Basic, from Visual Basic 1.0 to the final version Visual Basic 6.0. Visual Basic is a user-friendly programming language designed for beginners, and it enables anyone to develop GUI window applications easily.

In 2002, Microsoft released Visual Basic.NET(VB.NET) to replace Visual Basic 6. Thereafter, Microsoft declared VB6 a legacy programming language in 2008. Fortunately, Microsoft still provides some form of support for VB6. VB.NET is a fully object-oriented programming language implemented in the .NET Framework. It was created to cater for the development of the web as well as mobile applications. However, many developers still favor Visual Basic 6.0 over its successor Visual Basic.NET.

1.3 What kind of programs can you develop using Visual Basic 6?

In VB 6, the possibilities for program creation are virtually limitless. Whether you're a math teacher interested in coding programs like geometric progression, quadratic equation solver, simultaneous equation solver, prime number tester, factors finder, or a quadratic function graph Plotter—the scope is expansive. For science educators, the potential extends to simulation programs covering projectile, simple harmonic motion, star war, and beyond. Businesses can leverage VB 6 to develop applications like inventory management systems, Amortization Calculators, investments calculators, point-of-sale systems, payroll systems, accounting programs, and more, streamlining operations and boosting productivity. Gaming enthusiasts can delve into the world of VB 6 to create engaging programs such as slot machines, reversi, tic-tac-toe, and others. Moreover, the realm of multimedia is at your fingertips with the ability to craft Smart Audio Players, Multimedia Players, and a variety of other applications. For inspiration, explore our collection of VB sample codes .

1.4 The Visual Basic 6 Integrated Development Environment

visual basic presentation

You can also install VB6 on Windows 10 but you need to follow certain steps otherwise the installation will fail. First, you need to run setup as administrator. Next, you need to use custom installation. Clear the checkbox for Data Access. If you don't, set up will hang at the end of the installation. Finally, click next and wait for the installation to complete. For complete instructions, please follow this link Install VB6 on Windows 10

visual basic presentation

You can choose to either start a new project, open an existing project or select a list of recently opened programs. A project is a collection of files that make up your application. There are various types of applications that we could create, however, we shall concentrate on creating Standard EXE programs (EXE means executable). Before you begin, you must think of an application that preferably have commercial ,educational or recreational value. Next, click on the Standard EXE icon to go into the actual Visual Basic 6 programming environment.

When you start a new Visual Basic 6 Standard EXE project, you will be presented  with the Visual Basic 6 Integrated Development Environment (IDE). The Visual Basic 6 Integrated Programming Environment is shown in Figure 1.2. It consists of the toolbox, the form, the project explorer and the properties window.

visual basic presentation

The Form is the primary building block of a Visual Basic 6 application. A Visual Basic 6 application can actually comprise many forms, but we shall focus on developing an application with one form first. We will learn how to develop applications with multiple forms later. Before you proceed to build the application, it is a good practice to save the project first. You can save the project by selecting  Save Project from the File menu, assign a name to your project and save it in a certain folder. You shall now proceed to learn Visual Basic programming from the next lesson onwards.

Copyright©2008 Dr.Liew Voon Kiong. All rights reserved | Contact | Privacy Policy

SlidePlayer

  • My presentations

Auth with social network:

Download presentation

We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!

Presentation is loading. Please wait.

Chapter 1 Introduction to Visual Basic

Published by Erick Robertson Modified over 6 years ago

Similar presentations

Presentation on theme: "Chapter 1 Introduction to Visual Basic"— Presentation transcript:

Chapter 1 Introduction to Visual Basic

An Introduction to Programming General Concepts. What is a program? A program is an algorithm expressed in a programming language. programming language.

visual basic presentation

Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.

visual basic presentation

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.

visual basic presentation

Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.

visual basic presentation

VISUAL BASIC Presented By: Jerrell Chandler Jenita Pondexter Thomas Whitfield.

visual basic presentation

1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.

visual basic presentation

Objectives Machine language vs.. High-level language Procedure-oriented, object-oriented, and event- driven languages Background of Visual Basic VB Integrated.

visual basic presentation

Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)

visual basic presentation

A Tour of Visual Basic BACS 287. Early History of Basic Beginners All-Purpose Symbolic Instruction Code An “Interpreted” teaching language English-like.

visual basic presentation

2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.

visual basic presentation

Introduction to VBA. What is VBA? VBA stands for Visual Basic for Applications. It is a programming language used exclusively by the Microsoft Office.

visual basic presentation

Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.

visual basic presentation

CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]

visual basic presentation

1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:

visual basic presentation

Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA.

visual basic presentation

Microsoft Visual Basic 2005: Reloaded Second Edition

visual basic presentation

Visual Basic Advanced Programming.

visual basic presentation

COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.

visual basic presentation

Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.

About project

© 2024 SlidePlayer.com Inc. All rights reserved.

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Visual Basic documentation

Visual Basic is an object-oriented programming language developed by Microsoft. Using Visual Basic makes it fast and easy to create type-safe .NET apps.

Get started

  • Download the .NET SDK

Get Started

  • Create a .NET Core console application using Visual Studio
  • Create a .NET Standard library using Visual Studio
  • Walkthroughs
  • Additional resources

Fundamentals

  • Language strategy
  • Programming concepts
  • What's new in Visual Basic
  • Structure of a Visual Basic app
  • Language features
  • Develop apps with Visual Basic
  • Windows Forms apps
  • Visual Basic on Q&A

Language reference

  • String functions
  • Language specification

an introduction to visual basic

An Introduction to Visual Basic

Sep 30, 2014

880 likes | 2.08k Views

An Introduction to Visual Basic. Terms & Concepts. What is VB?. Visual Basic is a programming language (actually an environment) designed to create computer programs that run in Microsoft Windows. VB has been developed through many versions. This course uses VB 6.0. Getting Started.

Share Presentation

  • visual basic
  • programming language
  • project explorer window
  • vb6 addresses problem solving

giulio

Presentation Transcript

An Introduction to Visual Basic Terms & Concepts

What is VB? • Visual Basic is a programming language (actually an environment) designed to create computer programs that run in Microsoft Windows. • VB has been developed through many versions. This course uses VB 6.0

Getting Started VB6 addresses problem solving “from the outside, in.” In other words, the user interface is designed and created first, then it’s Events are programmed.

The Windows GUI • The Graphical User Interface is the means through which users can interact with programs. • Each window is called a form. • Each form is populated with controls.

The Windows GUI • There are many different kinds of controls: • Label • Text box • Option button • Check box • Command button • Image • List box • Drop-down list • Frame • Line / Shape

A Sample Form The Tools » Options dialog box in MSWord

Programming Language Paradigms • Procedural • Functional • Declarative • Object-oriented • Event-driven In this paradigm we develop projects rather than programs.

Object Oriented Programming A VB project consists of: • Objects - the nouns of OOP • forms and controls are examples of objects. • Properties - the adjectives • size, location, name, caption • Methods - the verbs • Move, Print, Resize, Clear The dot operator • Object.property is the syntax for referring to a particular property of a particular object.

The Components of a Project A VB project consists of at least two files: • projectName.vbp - the project file • a text file that lists the names of all the other files in the project • formName.frm - a form module • a description of all objects and their properties for each form, AND the Basic code written to handle events

Planning Design the interface Plan the properties for all the controls Plan the Basic code Implementing Define the interface Set the properties Write the Basic code Creating VB Projects

Working with VB VB has 3 modes: • Design • The editor is used to create and change programs. • Run • Executes the program. • Break • Running is suspended to report an error in the program.

The Visual Basic Environment • Form Window • Project Explorer Window • Properties Window • Form Layout Window • Toolbox • The Main VB Window • Toolbar

The Visual Basic Environment

  • More by User

Introduction to Visual Basic

Introduction to Visual Basic

Introduction to Visual Basic. Language developed for special-purpose Windows applications – 1991 Uses IDE – Integrated Development Environment Code based on Q-Basic Event Driven Prebuilt graphical components (controls). Two Time Frames. Design Time – when application is being built

439 views • 27 slides

Introduction to Visual Basic

Introduction to Visual Basic. What it is, and a simple program. Mike Thelwall University of Wolverhampton, UK. Origins through BASIC. B eginners A ll-purpose S ymbolic I nstruction C ode A simple programming language Developed mid 1960’s

532 views • 28 slides

Introduction To Visual Basic 6

Introduction To Visual Basic 6

Introduction To Visual Basic 6. Announcements. Thursday, Oct 9th, 7:30PM, C106 Lloyd Douglas (NSF) Diversity in Science-Who needs it? 5 extra credits. About the extra credit Please submit printed copy. Don’t hand in through blackboard system or send email. . Programming language.

534 views • 33 slides

Introduction to Visual Basic Programming

Introduction to Visual Basic Programming

2. A client is to me a mere unit, a factor in a problem.Sir Arthur Conan Doyle ...if the simplest things of nature have a message that you understand, rejoice, for your soul is alive. Eleonora Duse Protocol is everything. Francoise Giuliani They also serve who only stand and wait. John Mil

1.38k views • 115 slides

Visual Basic Introduction

Visual Basic Introduction

Visual Basic. One of the most widely used windows programming language.Relatively easy to learn.Create professional looking systems very quickly.Useful for prototyping.Internet connectivity.Provides wizards to assist users.. VB and IDEs. The VB environment can be used to create and execute

338 views • 21 slides

Introduction to Visual Basic Programming

2. OBJECTIVES. In this chapter you will learn: To write simple Visual Basic programs using code rather than visual programming.To write statements that input data from the keyboard and output data to the screen.To declare and use data of various types.To store and retrieve data from memory.To u

951 views • 86 slides

Visual Basic: Introduction

Visual Basic: Introduction

CIS 115 Lecture 2. Visual Basic: Introduction. Software to Install . Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available from MSDNAA. Visual Studio.NET.

848 views • 41 slides

Introduction to Visual Basic

Introduction to Visual Basic. Presented by Charley Jones The Maxim Group Las Vegas, NV [email protected] All code samples will be posted to: http://www.crjones.com/vbintro. Introduction to Visual Basic. Integrated Development Environment Compiler Optimizer Debugger Demonstration:

240 views • 8 slides

An Introduction to Visual Basic 2005

An Introduction to Visual Basic 2005

An Introduction to Visual Basic 2005. Objectives. Explain the history of programming languages Define the terminology used in object-oriented programming Explain the role of the .NET Framework class library and Common Language Runtime (CLR) Create a Visual Basic 2005 Windows-based application

925 views • 72 slides

Introduction to Visual Basic

Introduction to Visual Basic. Chulantha Kulasekere. VB IDE. Explanation of IDE. Project: A collection of files for easy management. Standard.EXE: Should be used if the file is an executable. It will open a blank form to write your application. VB Environment. Creating Your First Program.

266 views • 11 slides

Visual Basic Introduction

Visual Basic Introduction. IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques. Processing. Parallel Processing -- more than one CPU (each with its own memory); able to carry out more than one instruction at a time

370 views • 23 slides

Visual Basic Introduction

Visual Basic Introduction. Rosalind Archer. Running Visual Basic. Visual Basic is included with Microsoft Excel. My examples use Excel ‘97. When you open a file containing Visual Basic code make sure you choose “Enable Macros”. Your message may look a little different to this one.

838 views • 49 slides

Introduction to Visual Basic

Introduction to Visual Basic. Event-driven programming The interface for a VB program consists of one or more forms, containing one or more controls (screen objects).

760 views • 47 slides

Introduction to Visual Basic (VB)

Introduction to Visual Basic (VB)

Introduction to Visual Basic (VB). Topics. 1. What is VB? 2. What is Event-Driven? 3. What is Object-Orientation? 4. Objects used in VB 5. VB objects naming practice 6. Files in VB 7. OOED Programming process 8. VB statements 9. VB Help. What is VB?.

410 views • 28 slides

Introduction to Visual Basic

Introduction to Visual Basic. What is Visual Basic?. An environment for developing Windows applications Components A GUI (Graphical User Interface - gooey) designer Tools (command buttons, list boxes, text boxes, option buttons, etc.) A programming language Qbasic like

515 views • 12 slides

An Introduction to Visual Basic

An Introduction to Visual Basic. Terms & Concepts. What is VB?. Visual Basic is a programming language (actually an environment) designed to create computer programs that run in Microsoft Windows. VB has been developed through many versions. This course uses VB 2005. Getting Started.

304 views • 8 slides

Chapter 1: An Introduction to Visual Basic 2012

Chapter 1: An Introduction to Visual Basic 2012

Chapter 1: An Introduction to Visual Basic 2012. Lesson A Objectives. After studying Lesson A, you should be able to: Start and customize Visual Studio 2012 Create a Visual Basic 2012 Windows application Manage the windows in the IDE Set the properties of an object

647 views • 53 slides

An Introduction to Visual Basic 2005

An Introduction to Visual Basic 2005. Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual Basic. Programmer and User. Programmer – the person who solves the problem and writes the instructions for the computer

363 views • 13 slides

Introduction to Visual Basic

Introduction to Visual Basic. Visual - A method used to create GUI applications. BASIC - B eginner’s A ll - purpose S ymbolic I nstruction C ode developed by John Kemeny. VB- Evolved from BASIC language. Developed by Microsoft Corporation in 1990s. Visual Basic Concepts.

676 views • 8 slides

Introduction to Visual Basic

Introduction to Visual Basic. laura leventhal and lisa weihl. Dinosaurs?. The COBOL Programmer

572 views • 39 slides

Visual Basic: Introduction

CIS 115 Lecture 2. Visual Basic: Introduction. Software to Install. Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available from MSDNAA. Visual Studio.NET.

662 views • 41 slides

Tutorial 1 An Introduction to Visual Basic .NET

Tutorial 1 An Introduction to Visual Basic .NET

Tutorial 1 An Introduction to Visual Basic .NET. Creating a Windows-Based Application in Visual Basic .NET Lesson A. Lesson A Objectives. After completing this lesson, you will be able to: Start and customize Visual Studio .NET Create a Visual Studio .NET solution and project

267 views • 12 slides

COMMENTS

  1. How to use VBA in PowerPoint: A beginner’s guide

    You can do some really cool things in Microsoft Office with just a few lines of Visual Basic for Applications (VBA) - from creating your own custom formula in Excel to correcting branded content in PowerPoint to merging address data for a mail campaign in Word.

  2. introduction to visual basic PPT.pptx - SlideShare

    The document discusses the history and evolution of Visual Basic, the core components of a Visual Basic application like forms and controls, and the basic steps to develop an application in Visual Basic.

  3. Tutorial: Use Windows Presentation Foundation (WPF) - Visual ...

    Create a Windows Desktop .NET app in Visual Basic with Visual Studio by using the Windows Presentation Foundation (WPF) UI framework.

  4. PowerPoint Visual Basic for Applications (VBA) reference

    How-to topics: Provides step-by-step instructions for developing custom PowerPoint solutions. Object model reference: Provides reference materials for the PowerPoint object model.

  5. Visual basic | PPT - SlideShare

    The document discusses the history and evolution of Visual Basic, the core components of a Visual Basic application like forms and controls, and the basic steps to develop an application in Visual Basic.

  6. Introduction to Visual Basic

    Visual Basic is a user-friendly programming language designed for beginners, and it enables anyone to develop GUI window applications easily. In 2002, Microsoft released Visual Basic.NET (VB.NET) to replace Visual Basic 6. Thereafter, Microsoft declared VB6 a legacy programming language in 2008.

  7. Introduction to visual basic programming | PPT - SlideShare

    It introduces Visual Basic and its history, covers basic concepts like object-oriented programming and event-driven programming. It describes setting up the Visual Studio development environment and how to plan and create Visual Basic projects using forms, controls, properties, and code.

  8. Chapter 1 Introduction to Visual Basic - ppt download

    Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.

  9. Visual Basic docs - get started, tutorials, reference ...

    Visual Basic is an object-oriented programming language developed by Microsoft. Using Visual Basic makes it fast and easy to create type-safe .NET apps.

  10. PPT - An Introduction to Visual Basic PowerPoint Presentation ...

    What is VB? • Visual Basic is a programming language (actually an environment) designed to create computer programs that run in Microsoft Windows. • VB has been developed through many versions. This course uses VB 6.0. Getting Started VB6 addresses problem solving “from the outside, in.”