End Sub作者: wang1950317 时间: 2004-12-13 23:06
foxxp老师:真棒!一切都非常好!谢谢您,谢谢楼上各位,从各位那里又学到不少东西!作者: 大熊 时间: 2004-12-14 06:12
Well done, Dear FOXAP, The main problem seems at the following sentence.You:Set xlsSheet = xlsApp.Workbooks(xlsApp.Workbooks.Count).Worksheets(1)文本44 = xlsSheet.Range("C4").TextMe文本44 = xlsApp.Range("C4").Text Can u give me the details of the difference? Mr.FoxXP?作者: foxxp 时间: 2004-12-14 18:59
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.作者: foxxp 时间: 2004-12-14 19:05
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,other 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.作者: 大熊 时间: 2004-12-14 21:54
many tks. at least we know how to deal with it now.作者: foxxp 时间: 2004-12-15 06:08
熊版见笑了.本想用英文和熊兄交流一下,没成想不仅错发了两次,语法还有多个错误.惭愧!作者: 大熊 时间: 2004-12-16 17:02
No.I will often make mistakes too. But My teacher tell me that making Mistakes is the necessary step to study a foreign language.[em04]