VBA for Modelers: Developing Decision Support Systems with Microsoft Office Excel
The "CP212 Lecture Notes" document provides a comprehensive overview of the "Windows Application Programming" course, focusing on VBA (Visual Basic for Applications) programming. The notes cover essential concepts and practical applications of VBA within the Windows environment, with the main textb...
Chapter 2:
- Visual basic programming language: texted based languages (ex: python, C)
- VB vs VBA
- Subroutine, program & Sub
- Methods (set of arguments)
Chapter 3:
➔ firstName = InputBox(“Enter first name:”, “First Name”) -> Text in the dialog box
◆ First name is the title (Parentheses are required, no spaces)
➔ MsgBox”The product’s unit price is $2.4.”, vbInformation, “Selling price”
◆ No parentheses required, vblinfo → type of an icon
➔ There are 4 types of icons:
◆ VbInformation, vbQuestion, vbCritical, vbExclamation
➔ MsgBox InputBox(“Type your name.” “User’s name”), vbInformation, “User’s name”
◆ Must start with parentheses
➔ To write a statement that is more than one line → Use Space + underscore
➔ Functions of excel: we have to start with WorksheetFunction
◆ LN,SQRT,RAND → cannot be used
➔ String functions
➔ Specifying a property & Method
Week 6
Workbooks, charts and arrays
● Better messages format
○
● Saving workbooks
, ○
○
● Charts in VBA
○
● Chart properties
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller WilfridLaurier. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.