[英]What are the options for a .iqy file?
I'm trying to understand the options for the.iqy file format.我试图了解 .iqy 文件格式的选项。 I'm trying to use it to feed CSV data from an external web source into Microsoft Excel but I'm not finding any canonical documentation to make sure that I'm doing it right.
我正在尝试使用它将来自外部 Web 源的 CSV 数据提供给 Microsoft Excel,但我没有找到任何规范文档来确保我做对了。
Note: I'm doing a Q&A-style post and will be answering my own question.注意:我正在做一个问答式的帖子,并将回答我自己的问题。
Microsoft has very little documentation on their.iqy (or a Excel Web Query - Internet Inquiry) file and nothing about their allowed options or format. Microsoft 几乎没有关于他们的.iqy(或 Excel Web 查询 - Internet 查询)文件的文档,也没有关于他们允许的选项或格式的文档。 This because the.iqy file is normally created from a VBA Web Query output.
这是因为 .iqy 文件通常是从 VBA Web 查询输出创建的。 But, if you reference the VBA QueryTable documentation instead and do some translation, you'll find this (simplified here):
但是,如果您改为参考 VBA QueryTable 文档并进行一些翻译,您会发现这个(此处已简化):
.iqy Options ![]() |
VBA Web Query Options ![]() |
Type![]() |
.iqy Values ![]() |
Default Value![]() |
---|---|---|---|---|
ConsecutiveDelimitersAsOne![]() |
WebConsecutiveDelimitersAsOne ![]() |
Boolean![]() |
True/False![]() |
False![]() |
DisableDateRecognition![]() |
WebDisableDateRecognition ![]() |
Boolean![]() |
True/False![]() |
False![]() |
DisableRedirections![]() |
WebDisableRedirections ![]() |
Boolean![]() |
True/False![]() |
False![]() |
Formatting![]() |
WebFormatting ![]() |
List![]() |
All (1), RFT (2), None (3)![]() |
RFT ![]() |
PreFormattedTextToColumns![]() |
WebPreFormattedTextToColumns ![]() |
Boolean![]() |
True/False![]() |
True![]() |
Selection![]() |
WebSelectionType ![]() |
List![]() |
EntirePage (1), AllTables (2), SpecifiedTables (3) ![]() |
AllTables![]() |
SingleBlockTextImport![]() |
WebSingleBlockTextImport ![]() |
Boolean![]() |
True/False![]() |
False![]() |
Note: There are other.iqy options like SharePointApplication
but aren't prefixed with "Web" and therefore weren't added to this list.注意:还有其他 .iqy 选项,例如
SharePointApplication
,但没有以“Web”为前缀,因此未添加到此列表中。 You can find the rest of them under Properties .您可以在Properties下找到它们的其余部分。
An example Web.iqy file is formatted in this style:示例 Web.iqy 文件格式为以下样式:
WEB
1
https://www.example.com/file.csv
Selection=1
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.