Question: To demonstrate your competence with navigating a worksheet with VBA, create a workbook with the name of your choice, and make sure to save it
To demonstrate your competence with navigating a worksheet with VBA, create a workbook with the name of your choice, and make sure to save it as macro-enabled: .xlsm. Then, complete the steps below.
- Write code to do the following:
- Make A1 the active cell
- Offset 3 rows and 2 columns, and make that the new active cell
- Set the value of the new active cell equal to your first name
- Offset 3 rows and -2 columns, and make that the new active cell
- Set the value of the new active cell equal to your last name
- Make the cell furthest up from the current active cell the new active cell (use .end)
- Set the value of the new active cell equal to your professors last name
- Activate Sheet2
- Set the value of cell A1 equal to your desired or current major
- Make all of this code run in a single subroutine that is triggered by a button somewhere on the first worksheet.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
