Preview

Macro Examples

Good Essays
Open Document
Open Document
1120 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Macro Examples
Written Macro Assignment

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.

______T____ 1. Do…Loops are used in macros to repeat lines of code until or while a specified condition is met.

_______F___ 2. The area where macro code is displayed in Visual Basic is called the Project Explorer Window.

_______F___ 3. A macro name is not required when creating a private macro.

__________ 4. When declaring a variable, Dim stands for “declare in macro”.

__________ 5. Objects, Attributes, Variables, and Methods are used to write macro code.

__________ 6. One way to create a new macro is to use the Macro Wizard.

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

__________ 8. The last line of code for a private macro should be End Sub.

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

__________ 10. A public macro/procedure is also known as an activation procedure, because it 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 “Summer”. 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 D11 using absolute referencing (do not select the Use Relative Reference button). •

You May Also Find These Documents Helpful

  • Good Essays

    If- Then code was created to be used for the Analysis (=IF(A2=LOOKUP(A2,$B$1:$B$130),"",A2). Copy and paste this code into column G row 2. Once pasted the code will be active.…

    • 414 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    BIS115_Quizzes

    • 2722 Words
    • 11 Pages

    Question 2. 2. (TCO 1) In Excel 2010, a sheet tab ________. (Points : 2)…

    • 2722 Words
    • 11 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1330 Unit 2 Assignment 1

    • 3740 Words
    • 15 Pages

    1. A while loop will not execute the body of the code if you have your test condition incorrect.…

    • 3740 Words
    • 15 Pages
    Satisfactory Essays
  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    2. What type of instruction is used to execute different code based on a condition? -Jumps…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit 7 assignment 1

    • 431 Words
    • 2 Pages

    5. What three actions do count-controlled loops typically perform using the counter variable? Initialization: Before the loop begins, the counter variable is initialized to a starting value. Test : The loop tests the counter variable by comparing it to a maximum value. If the counter variable is less than or equal to the maximum, the loop iterates. If the counter is greater than the maximum value, the program exits the loop. Increment : To increment a variable means to increase its value. During each iteration, the loop increments the counter variable by adding a predetermined amount to it…

    • 431 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Type the PLUS sign (+) into cell C1 after the cell reference A1 (e.g. =A1+).…

    • 2823 Words
    • 12 Pages
    Good Essays
  • Good Essays

    10. In cell B21, enter a formula that uses the SUM function to total the range B15:B20. Use AutoFill to fill the range C21:F21 with the formula you just created in cell B21.…

    • 404 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Pt1420 Assignment

    • 1058 Words
    • 5 Pages

    A condition-controlled loop uses a true/false condition to control the number of times that it repeats…

    • 1058 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 42 M3

    • 430 Words
    • 2 Pages

    The recorded procedures or steps in Excel are in fact lines of codes in visual basic that can be edited and tweaked for better results. These macros can then be exported to other worksheets if you want to replicate certain actions.…

    • 430 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit 3

    • 313 Words
    • 2 Pages

    7. Write a pseudocode statement that assigns the value of 27 to the variable count.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Write the flowchart for a program that displays the numbers 1 through 7 using a condition controlled loop (While and/or Do-While loops).…

    • 651 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    I Like to 1321

    • 459 Words
    • 2 Pages

    statement. Also included is a for loop (repetition statement). Pay close attention to these as you…

    • 459 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Which one of the following formats will allow you to keep the same cell reference?…

    • 985 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Object-oriented programming and procedural programming are two programming paradigms. A programming paradigm is a fundamental style of computer programming, and they differ in the way different elements of the program are represented and how steps for solving problems are defined (Ragel, 2011). The above statements describes two popular ways of defining and solving a problem involving the need for a computer program and are similar in nature but also have some important differences that need to be weighed when choosing which one will be used. The similarities and differences will be discussed in terms of procedural programming modules and objects in relation to; reusability, security (as in hiding code), and the passing of data within the program itself.…

    • 729 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CICLO WHILE … WHILE Expresión DO Begin Sentencia1; Sentencia2; . . Sentencia N; Modificar expresión End;…

    • 353 Words
    • 2 Pages
    Satisfactory Essays

Related Topics