nerdexam
Microsoft

77-427 · Question #28

You work as an Office Assistant for Blue well Inc. You want to record a macro and save it with the name "Auto_Open" so that the macro will run whenever you open the workbook containing the macro…

The correct answer is A. The default workbook or a workbook loaded from the XLStart folder is opened before B. The workbook is opened programmatically using the Open method. C. The workbook where a user wants to save the Auto_Open macro already contains a. The various limitations of recording an Auto_Open macro are as follows: 1. If the workbook where a user wants to save the Auto_Open macro already contains a VBA procedure in its Open event, then all actions in the Auto_Open macro are overridden by the VBA procedure used for the…

Manage and share workbooks

Question

You work as an Office Assistant for Blue well Inc. You want to record a macro and save it with the name "Auto_Open" so that the macro will run whenever you open the workbook containing the macro. While doing so, you observe that the Auto_Open macro fails every time. Which of the following are the causes of this? Each correct answer represents a complete solution. Choose all that apply.

Options

  • AThe default workbook or a workbook loaded from the XLStart folder is opened before
  • BThe workbook is opened programmatically using the Open method.
  • CThe workbook where a user wants to save the Auto_Open macro already contains a
  • DThe workbook is based on the record button that is disabled by default before running the

How the community answered

(26 responses)
  • A
    73% (19)
  • D
    27% (7)

Explanation

The various limitations of recording an Auto_Open macro are as follows: 1. If the workbook where a user wants to save the Auto_Open macro already contains a VBA procedure in its Open event, then all actions in the Auto_Open macro are overridden by the VBA procedure used for the Open event. 2. The Auto_Open macro will be ignored when a workbook is opened programmatically using the 3. The Auto_Open macro runs before any other workbooks are opened. Therefore, if the user records actions he wants Excel to perform on the default workbook or a workbook loaded from the XLStart folder, the Auto_Open macro will fail when the user restarts Excel because it runs before the default and start-up workbooks are opened. Answer option D is incorrect. This is an invalid answer option.

Topics

#Auto_Open macro#macro execution#workbook events#XLStart folder

Community Discussion

No community discussion yet for this question.

Full 77-427 Practice