L06 Macro v1.pptx - Excel Modeling Macro Dr Ronald K CHUNG FINA0404/3351 – Spreadsheet Modelling in Finance Macro v Excel v VBA Macros used to

L06 Macro v1.pptx - Excel Modeling Macro Dr Ronald K CHUNG...

This preview shows page 1 - 10 out of 29 pages.

Excel Modeling: Macro Dr. Ronald K. CHUNG FINA0404/3351 – Spreadsheet Modelling in Finance
Image of page 1

Subscribe to view the full document.

Macro v. Excel v. VBA? Macros: used to automate commonly used (or complex) operations What are these? Formatting Visual basic for applications (VBA): programming language 2 ways to create macros: Macro recorder – for simple macros Writing visual basic code ©EQCC 2
Image of page 2
Outline: Macro Enable macro: the developer ribbon (2010) Macro security and file types Start/Stop Recording Recording a macro Absolute and relative recording Assigning macro to: a shortcut key; a button; an object Macro good practice Macro Limitations ©EQCC 3
Image of page 3

Subscribe to view the full document.

Enable The Developer Ribbon 2010: Alt-F-T Just in case…2007: Popular: show developer tab in the ribbon ©EQCC 4
Image of page 4
Macro Security protects computer against viruses via (auto-execute) programs in Excel macros. …to run macros in Excel 2010, save Excel file as a macro-enabled workbook with the file extension xlsm (v. xlsx). xlsm… won’t get a warning msg xlsx… gets a warning msg Save A s and change the type to "Excel Macro-Enabled Workbook". ©EQCC 5
Image of page 5

Subscribe to view the full document.

Macro Security Select the File tab, and from this, select Options (ALT F T) From the window that pops up, select Trust Center Option and from within this, click on the T rust Center Settings ... button From the Macro Settings option, select one of the settings and click OK ©EQCC 6
Image of page 6
Macro Security …directories on your computer that you want Excel to 'trust‘ (when opening) files that are stored in these locations. Excel Options (Alt-F-T) select Trust Center Option, click on the T rust Center Settings ... button ©EQCC 7
Image of page 7

Subscribe to view the full document.

Macro Security From the Macro Settings option, select one of the settings and click OK ©EQCC 8
Image of page 8
Macro Security ©EQCC 9 'Disable al l macros without notification’ ' This setting does not allow any macros to run , so a workbook with macros will not work as expected. Users are not alerted to the fact a file contains macros.
Image of page 9

Subscribe to view the full document.

Image of page 10
  • Spring '17
  • Visual Basic for Applications, Keyboard shortcut, User interface techniques

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

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes