Tag: opentext

VBA excel使只读文本文件

是否有可能打开一个文本文件只读与workbooks.opentext方法? 当我尝试运行一个macros,而其他用户打开该文件时,我收到消息“正在使用的文件”。 在Opentextexpression式中没有可读的选项。 OpenText(Filename,Origin,StartRow,DataType,TextQualifier,ConsecutiveDelimiter,Tab,分号,逗号,空格,其他,OtherChar,FieldInfo,TextVisualLayout,DecimalSeparator,ThousandsSeparator,TrailingMinusNumbers,Local) 同时在Worbooks.Open方法中有一个ReadOnly选项。 谢谢