Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all, i use the code below to count the workbooks open.
My problem, i have my workbook "Recon_Tools.xls" open and Book1, Book2 & book3 but it shows me a count of "2" ?? I believe it should show me a count of "4" ?? Any help would be appreciated. Sub testing1() ' Dim wkb As Integer wkb = Application.Workbooks.Count If wkb = 2 Then Application.Quit Else Unload SelectionForm ActiveWorkbook.Close Workbooks("Recon_Tool.xls").Close End If End Sub Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create Pivot Table Data with Column "Sum" rather than "count" defa | Excel Discussion (Misc queries) | |||
Pivot tables - how do I change default from "count of" to "sum of" | Excel Worksheet Functions | |||
EXCEL allow 2 options on status bar e.g. show "Count" + "Sum" | Excel Discussion (Misc queries) | |||
Count(if(A3:A200)="100000" if (B3:B200="Y") and (C3:C200=Z))) | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |