Question: The Selection object represents the current selection in the worksheet. Selection is usually, and for our purposes always, a Range object. Rewrite the subroutine in

The Selection object represents the current selection in the worksheet. Selection is usually, and for our purposes always, a Range object. Rewrite the subroutine in exercise 6 so that it works on a selected range.

Note the following:

If the selected range is a single cell, activate the subroutine in exercise 6.

If the selected range is a column, activate a subroutine repeatedly for all cells in the column.

If the selected range is more than one column, the subroutine should abort with an appropriate message.

Step by Step Solution

3.38 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sub ProcessSelection Dim Sel As Range Set Sel Selection ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Financial Modeling Questions!