I just wanna know how to know if a workbooks is open.
I used to use this but it does'nt work the count method always send back
the zero value:
- Code: Select all
If form2.ExcelApplication1.Workbooks.Count <> 0 Then
begin
for cpt := 0 to form2.ExcelApplication1.Workbooks.Count
do
form2.ExcelApplication1.Workbooks.Close( cpt);
end;
I need your help.
Merci / Thanks