VBA & Excel - VBA Excel Barry L Nelson IEMS 465...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
VBA & Excel Barry L. Nelson IEMS 465 Fall Quarter 2003
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
VBA Is a significant subset of the stand-alone Visual Basic programming language It is integrated into Microsoft Office applications (and others, like Arena) It is the macro language of Excel You can add Forms for dialog boxes with user Classes for object definitions Modules containing procedures
Image of page 2
Accessing VBA in Excel Tools Macros Visual Basic Editor Enter VBA through the navigation buttons in the top toolbars VBA Design Mode Visual Basic Editor Design mode is the time during which no code from the project is running and events from Excel or project will not execute. You can leave design mode by executing a macro or using the Immediate window.
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
VB Edit Window Project Explorer Property Inspector Code Window Edit Window Options
Image of page 4
Variables Declare by Dim Better to use Data Types: Dim amount As Double Dim year As Integer Dim name As String Other data types: Boolean , Byte , Currency , Date Default (no type) is Variant
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Variable (cont’d.) % - integer & - long integer ! - single # - double @ currency $ - string anIntegerValue% =3, aString$ = "hallo"
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern