谁能帮我看看下面这个代理啊?在线等待……

icecoldy 2003-05-11 11:44:43
我写了这个代理:
Sub Initialize
Dim sht As Variant
Dim StartRow As Integer,i As Integer,m As Integer,n As Integer,q As Integer
Set xcl = CreateObject("Excel.Application")
xcl.Visible = False
Call xcl.Workbooks.Add("c:\中心住宅通信费用明细.xls")
Set sht = xcl.ActiveSheet

Dim ws As New NotesUIWorkspace
Dim uiview As NotesUIView
Dim view As Notesview
Dim vc As NotesViewEntryCollection
Dim entry As NotesViewEntry
Dim temp As NotesViewEntry
Dim flag As String
Set uiview=ws.CurrentView
Set view=uiview.view
Set vc=view.allentries
Set entry=vc.getfirstentry()
startrow=1
While Not entry Is Nothing
For i=0 To 15
sht.Cells(StartRow, i).Value=entry.columnvalues(i)
Next
Set entry=vc.getnextentry(entry)
StartRow=StartRow+1
Wend

End Sub
执行的时候,弹出对话框,提示信息是“OLE:Automation Object Error”,谁能告诉我是什么原因呢?救命哪。
...全文
36 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
inrunlxf 2003-05-11
  • 打赏
  • 举报
回复
不是代理的问题,应该是你的excel有问题把.

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧