Sub SheetCount() Dim num As Integer num = ThisWorkbook.Sheets.Count Sheets(1).Select Cells(1, 1) = num End Sub
x
=GET.WORKBOOK(4)
=x