Exam 3 Flashcards
The leftmost worksheet
Worksheets(1)
Close active worksheet
ActiveSheet.Delete
Delete worksheet Sheet5
Worksheets(“Sheet5”).Delete
Copy Sheet3 to a new workbook
Worksheets(“Sheet3”).Copy
Copy active worksheet and place after Sheet3
ActiveSheet.Copy After=“Sheet3”
Make Chart3 the active sheet
Sheets(“Chart3”).Activate
Create a new worksheet
Worksheets.Add
Select cell B1
Range(“B1”).Select
Auto fit columns A,B,C on first sheet
Worksheets(1).Columns(“A:C”).AutoFit
Put value 30 in cell A1
Range(“A1”) = 30
Rename the active sheet Results
ActiveSheet.Name = “Results”
Put an “x” in same row, 1 column to the right of the active cell
ActiveCell.Offset(0,1) = “x”
Select the cell 1 row below, in the same column as active cell
ActiveCell.Offset(1,0).Select
Add the formula SUM(B2:C2) to cell D2
Cells(2,4).Formula = “=SUM(B2:C2)”
D2 is the second row, 4th column
Clear values from cell A2
Range(“A2”).Clear