September 19th, 2002, 2:32 pm
Steve,try debugging when the error message occurs and in the debug panel type:? typename(Worksheets("Risks").Cells.Find(What:="CC", LookIn:=xlValues, SearchOrder:=xlByColumns, SearchDirection:=xlNext).Row)This should shed some light on what is being returned!There is some difference between what you can do in code that is executed as part of a calculation (i.e. in a cell) and run via the macro tool. But mainly the difference is in what you are allowed to modify (i.e. cells other than the one calling the code).