OK, Sheet3 is the default object name of worksheets("Sheet 3"), it can be changed to whatever you want from the Properties pane in the VBE. And although .Cells is not necessary, it is a good idea now to start explicitly stating the default value/object of objects as a way of easing the move to VBA.NET when it happens (.NET does not have a default attribute, everything must be specified)
hesham, I think you have your first If condition backwards.
Chris
There are two secrets to success in this world:
1. Never tell everything you know
|