Example given by Siddharth Rout is marvelous. Can someone tell how to use the same coding for the same result on an Excel Sheet instead of User Form?