|
cause I found there were some sheets in OLE CALLING,see the code below
...
Debug.Print xlsApp.Workbooks.Count
...
the last one was the OLE OBJECT,others sheets were PERSONAL.XLS , XLA , XLL etc
but they were all unvisible 。
so i thought if this was the reason .
"All Were Unvisible " = "There Were No ActiveSheet" = "There Were No Current Sheet"
so we must gave the absolute reference of the sheet .
but i was puzzled why it was no error in the second try.
thanks. |
|