thanks, how would i input the code if i wanted it inserted into a macro?

thanks

Gary