Hi,
You can first get the worksheet name by OriginObject::GetName() method, and then compare with your specified name to see whether that is the worksheet you are looking for. If yes, use the Layer::GetIndex() method to get the worksheet index, then you can finish the rest loop by starting from this index.
Penn |