I want to write a macro that works as follows.

A user selects any number of cells and then uses a command button to execute a procedure.

How do i get the proceudure to execute only on the cells selected by the user.

Cheers