怎样用lotus script控制excel???

xsc2001 2003-10-17 10:06:25
怎样用lotus script控制excel???高分
...全文
78 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ibm123 2003-10-17
  • 打赏
  • 举报
回复
Sub Click(Source As Button)

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim excelApplication As Variant
Dim excelWorkbook As Variant
Dim excelSheet As Variant
Dim i As Integer
Dim Mood As String

Dim selection As Variant

On Error Goto Err1

Set excelApplication = CreateObject("Excel.Application")

'excelApplication.Visible = True

Set excelWorkbook = excelApplication.Workbooks.Add
Set excelSheet = excelWorkbook.Worksheets("Sheet1")
'定义excel的列植
excelSheet.Cells(1,1).Value = "序号"
……
excelSheet.Cells(1,9).Value = "备注"

excelWorkbook.SaveAs("c:\产品状态表.xls")

excelApplication.Quit
Set excelApplication = Nothing
End Sub

535

社区成员

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

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