Accountancy 2258

Only available on StudyMode
  • Topic: Visual Basic for Applications, Spreadsheet, DNA
  • Pages : 4 (830 words )
  • Download(s) : 147
  • Published : April 20, 2013
Open Document
Text Preview
Written Macro Assignment Solutions

True/False Questions. Read each statement carefully, and neatly write the word TRUE on the line next to the statement if you believe the statement is true, or neatly write the word FALSE on the line next to the statement if you believe the statement is false.

FALSE1. Do…Loops are used in macros to repeat lines of code a specified number of times.

TRUE2. The area where macro code is displayed in Visual Basic is called the Code Window.

TRUE3. A macro name is not required when creating a private macro.

TRUE4. When declaring a variable, Dim stands for “define in memory”.

FALSE5. Objects, Variables, and Actions are used to write macro code.

TRUE6. One way to create a new macro is to use Record New Macro.

TRUE7. The If…Then…Else…End If code allows code to be conditionally executed depending on whether a specified logical condition has been met.

FALSE8. The last line of code for a private macro should be End Private Sub.

FALSE9. The formula for a user-defined function must be entered in quotation marks.

TRUE10. A public macro/procedure is activated by the user pressing the shortcut keys or clicking on a button.

Problems. Read each problem carefully and follow the instructions given.

1. Open up Excel. Go to Cell E9 and use the Name Box to name this cell “Winter”. Then go to the Developer tab on the Ribbon, and click on the Record Macro button in the Code group. Name your macro “Referencing” and give it a shortcut key of “R”. After clicking OK to close the Record Macro dialog box, do the following:

• Select Cell C7 using absolute referencing (do not select the Use Relative Reference button). • Using the drop-down arrow to the right of the Name Box, select “Winter”. • Click on the Use Relative Reference...
tracking img