付費(fèi)下載
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、FameView 組態(tài)軟件技術(shù)附件.腳本如何以只讀方式打開 Excel 文件啟動ExcelSet ExcelObj = CreateObject(Excel.Application) 打開某Excel文件ExcelFile = C:Temp20100309.xls ExcelObj.Workbooks.Open ExcelFile,1 True 顯示Excel窗口 ExcelObj.Visible = True 銷毀Excel對象Set ExcelObj=Nothing附打開Excel文件的函數(shù)說明:expression.Open(FileName, UpdateLinks, ReadOnly
2、, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMru, Local, CorruptLoad).1.NameRequired/O ptionalData TypeDescriptionFileNameOptionalVariantString. The file name of the workbook to be opened.UpdateLinksOptionalVariantSpecifies the
3、 way links in the file are updated. If this argument is omitted, the user is prompted to specify how links will be updated. For more information on the values used by this parameter, see the Remarks section. If Microsoft Excel is opening a file in the WKS, WK1, or WK3 format and the UpdateLinks argu
4、ment is 2, Microsoft Excel generates charts from the graphs attached to the file. If theFameView 組態(tài)軟件技術(shù)附件.腳本argument is 0, no charts are created.ReadOnlyOptionalVariantTrue to open the workbook in read-only mode.FormatOptionalVariantIf Microsoft Excel is opening a text file, this argument specifies
5、the delimiter character. If this argument is omitted, the current delimiter is used. For more information on the values used by this parameter, see the Remarks section.PasswordOptionalVariantA string that contains the password required to open a protected workbook. If this argument is omitted and th
6、e workbook requires a password, the user is prompted for the password.WriteResPasswordOptionalVariantA string that contains the password required to write to a write-reserved workbook. If this argument is omitted and the workbook requires a password, the user will be prompted for the password.Ignore
7、ReadOnlyRecommendedOptionalVariantTrue to have Microsoft Excel not display the read-only recommended message (if the workbook was saved with the Read-Only Recommended option).OriginOptionalVariantIf the file is a text file, this argument indicates where it originated (so that code pages and Carriage
8、 Return/Line Feed (CR/LF) can be mapped correctly). Can be one of the following XlPlatform constants: xlMacintosh, xlWindows, or xlMSDOS. If this argument is omitted, the current operating system is used.DelimiterOptionalVariantIf the file is a text file and the Format argument is 6, this argument i
9、s a string that specifies the character.2.FameView 組態(tài)軟件技術(shù)附件.腳本to be used as the delimiter. For example, use Chr(9) for tabs, use , for commas, use ; for semicolons, or use a custom character. Only the first character of the string is used.EditableOptionalVariantIf the file is a Microsoft Excel 4.0 a
10、dd-in, this argument is True to open the add-in so that its a visible window. If this argument is False or omitted, the add-in is opened as hidden, and it cannot be unhidden. This option doesnt apply to add-ins created in Microsoft Excel 5.0 or later. If the file is an Excel template, True to open t
11、he specified template for editing. False to open a new workbook based on the specified template. The default value is False.NotifyOptionalVariantIf the file cannot be opened in read/write mode, this argument is True to add the file to the file notification list. Microsoft Excel will open the file as
12、 read-only, poll the file notification list, and then notify the user when the file becomes available. If this argument is False or omitted, no notification is requested, and any attempts to open an unavailable file will fail.ConverterOptionalVariantThe index of the first file converter to try when
13、opening the file. The specified file converter is tried first; if this converter doesnt recognize the file, all other converters are tried. The converter index consists of the row numbers of the converters returned by the FileConverters property.AddToMruOptionalVariantTrue to add this workbook to th
14、e list of recently used files. The default value is False.LocalOptionalVariantTrue saves files against the language of Microsoft Excel (including control panel settings). False (default) saves files against the language of Visual Basic for Applications (VBA) (which is typically US English.3.FameView 組態(tài)軟件技術(shù)附件.腳本unless the VBA project where Workbooks.Open is run from is an old internationalized XL5/95 VBA project).CorruptLoadOpt
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年高職護(hù)理(護(hù)理風(fēng)險(xiǎn)管理)試題及答案
- 2025年中職交通運(yùn)營管理(交通調(diào)度管理)試題及答案
- 2025年大學(xué)車輛工程(汽車制造企業(yè)生產(chǎn)管理)試題及答案
- 2025年大學(xué)大二(人力資源管理)員工關(guān)系綜合測試試題及答案
- 2025年高職建筑材料工程技術(shù)(新型建筑材料研發(fā))試題及答案
- 2026年重慶大學(xué)附屬江津醫(yī)院招聘備考題庫(中藥調(diào)劑崗)及完整答案詳解1套
- 娛樂直播介紹
- 攝影比賽教學(xué)介紹
- 2026年浙江安保管理員考試題庫含答案
- 2026年母嬰護(hù)理新生兒急救基礎(chǔ)技能考核題及解析
- 2025年中小學(xué)校長選拔筆試試題及答案
- 光伏發(fā)電項(xiàng)目設(shè)備維護(hù)合同范本
- 2026內(nèi)蒙古華能扎賚諾爾煤業(yè)限責(zé)任公司招聘50人易考易錯(cuò)模擬試題(共500題)試卷后附參考答案
- 2025年京東慧采廠直考試京東自營供應(yīng)商廠直考試題目及答案
- 周黑鴨加盟合同協(xié)議
- 黃色垃圾袋合同
- 骨科手術(shù)術(shù)前宣教
- 居住權(quán)協(xié)議書
- 病案管理考核標(biāo)準(zhǔn)表格2022版
- 中國家庭金融調(diào)查報(bào)告
- 頂板安全生產(chǎn)責(zé)任制
評論
0/150
提交評論