{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

VBA_Basics - VBA Principles CEE3804 Computer Applications...

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

View Full Document Right Arrow Icon
9/13/07 Copyright 2007 1 VBA Principles CEE3804: Computer Applications for Civil and Environmental Engineers
Image of page 1

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

View Full Document Right Arrow Icon
9/13/07 Copyright 2007 2 Objectives Develop a simple set of programs in VBA Learn to execute a macro from within a worksheet Introduction to loop structures
Image of page 2
9/13/07 Copyright 2007 3 Before You Program Develop a strategy to solve the problem Develop pseudo-code Develop a flowchart (helps guide your thought process) NOTE: most engineers do not to like to develop flowcharts This creates problems when someone else looks at your program Most programs do not work the first time, so a flowchart of pseudo- code can help you understand bad logic Start Output c Input b c = a + b Input a End Start here: Flowchart Then code
Image of page 3

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

View Full Document Right Arrow Icon
9/13/07 Copyright 2007 4 Flowchart Symbols Review them in Chapra’s book (page 115) Represents a comparison or a condition with more than one path Decision Represents input and output of data and information Input/Output Calculation of data manipulation Process Represent the flow of logic Flow lines Represents the beginning of end of a program Terminal Function Name Symbol Start c = a + b Input b If (a>b) True False
Image of page 4
Image of page 5
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