$ 0 0 Use SchematicSheetDocuments.GetAvailableSheets(SchematicName).Count to get the total number of sheets. John