跳到主要內容

Lotus Script-Excel 多種版本開啟方式

由臭氧層前輩取得

因為Excel 有多種版本, 不見每得每一種版都可以用下列的方式建立Object :
Set excelObject = CreateObject("Excel.Application") 'Excel 其它
請試試以下多種方式, for 不同Excel client user 使用
新版本的Excel , 請依Regedit.exe 查看登錄錄內, Excel 登錄的資訊就可以了


'===============================================
'initial Excel Object
'===============================================
On Error Resume Next
Set excelObject = CreateObject("Excel.Application.10") 'Excel 2000
If excelObject Is Nothing Then
Set excelObject = CreateObject("Excel.Application.11") 'Excel 2003
If excelObject Is Nothing Then
Set excelObject = CreateObject("Excel.Application.9") 'Excel 97 (Office 97)
If excelObject Is Nothing Then
Set excelObject = CreateObject("Excel.Application") 'Excel 其它
If excelObject Is Nothing Then
Beep
Messagebox "建議您安裝 Microsoft Excel 2000" & Chr(10)_
&"~~再執行此動作,謝謝!~~" ,16,"Error"
Exit Sub
End If
End If
End If
End If

留言

這個網誌中的熱門文章

XPage 紀錄 – IBM XPage Lab 實作 (四)

本次重點在於,自動搜尋 (type-ahead) 功能,跟目前 Web 上輸入文字,自動帶出關鍵字方便使用者輸入。 1.開啟 profileForm 建立下拉 ( 組合框 ) 欄位的選項值↓ 點選該欄位,選下方『值』 à 先點『新增項目』出現未命名,在輸入選項值↑

安裝 Office 2003 Service Pack 3 後,特定檔案格式會被封鎖的資訊

安裝 Office 2003 Service Pack 3 後,特定檔案格式會被封鎖的資訊 檢視此文章適用的產品。 注意事項 重要 本文包含如何修改登錄的相關資訊。修改登錄之前,請務必將它備份起來,並了解在發生問題時如何還原登錄。如需有關如何備份、還原和修改登錄的詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件: 256986 (http://support.microsoft.com/kb/256986/ ) 說明 Microsoft Windows 登錄 在此頁中 結論 簡介 其他相關資訊 Excel PowerPoint PowerPoint Word Corel Draw

Notes改 Internet Password

Internet Password Change application helps users in changing their Internet Password. This application is 'web browser only' application and is IE and Netscape browser complaint. The application gets the new password as input from the user and updates the Internet Password in his person document in the address book. Please note that this application is an enhancement over previous version available at:   http://www.notes.net/sandbox.nsf/ByDateNJ/6b3ac13c82ba68c885256b4f0074c89d?OpenDocument Use this version when "Use more secure Internet Passwords" option is enabled in the Domino Directory Profile. If the option is not enabled then using the previous version is advisable. Using the application: Step 1: Sign the database using an ID which can edit any person document in the names.nsf. Usually this will be the server administrator. Step 2: Open the "Change Password" form from anywhere on your Intranet. Sample Code -