The sub will need to find its own data. Or you need a parent sub that asksthe user for the information.It is common to select a cell or range before running the sub and have thesub look at that.