ExcelConstants.au3 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. #include-once
  2. ; #INDEX# =======================================================================================================================
  3. ; Title .........: ExcelConstants
  4. ; AutoIt Version : 3.3.14.5
  5. ; Language ......: English
  6. ; Description ...: Constants to be included in an AutoIt script when using the Excel UDF.
  7. ; Author(s) .....: water
  8. ; Resources .....: Excel 2010 Enumerations: http://msdn.microsoft.com/en-us/library/ff838815(v=office.14).aspx
  9. ; ===============================================================================================================================
  10. ; #CONSTANTS# ===================================================================================================================
  11. ; XlAutoFilterOperator Enumeration. Specifies the operator to use to associate two criteria applied by a filter.
  12. ; See: http://msdn.microsoft.com/en-us/library/ff839625(v=office.14).aspx
  13. Global Const $xlAnd = 1 ; Logical AND of Criteria1 and Criteria2
  14. Global Const $xlBottom10Items = 4 ; Lowest-valued items displayed (number of items specified in Criteria1)
  15. Global Const $xlBottom10Percent = 6 ; Lowest-valued items displayed (percentage specified in Criteria1)
  16. Global Const $xlFilterCellColor = 8 ; Color of the cell
  17. Global Const $xlFilterDynamic = 11 ; Dynamic filter
  18. Global Const $xlFilterFontColor = 9 ; Color of the font
  19. Global Const $xlFilterIcon = 10 ; Filter icon
  20. Global Const $xlFilterValues = 7 ; Filter values
  21. Global Const $xlOr = 2 ; Logical OR of Criteria1 or Criteria2
  22. Global Const $xlTop10Items = 3 ; Highest-valued items displayed (number of items specified in Criteria1)
  23. Global Const $xlTop10Percent = 5 ; Highest-valued items displayed (percentage specified in Criteria1)
  24. ; Constants Enumeration. This enumeration groups together constants used with various Excel methods.
  25. ; See: http://msdn.microsoft.com/en-us/library/ff197824(v=office.14).aspx
  26. Global Const $xlCenter = -4108 ; Center
  27. Global Const $xlLeft = -4131 ; Left
  28. Global Const $xlRight = -4152 ; Right
  29. ; XlCalculation Enumeration. Specifies the calculation mode.
  30. ; See: http://msdn.microsoft.com/en-us/library/ff835845(v=office.14).aspx
  31. Global Const $xlCalculationAutomatic = -4105 ; Excel controls recalculation
  32. Global Const $xlCalculationManual = -4135 ; Calculation is done when the user requests it
  33. Global Const $xlCalculationSemiautomatic = 2 ; Excel controls recalculation but ignores changes in tables
  34. ; XlCellType Enumeration. Specifies the type of cells.
  35. ; See: http://msdn.microsoft.com/en-us/library/ff836534(v=office.14).aspx
  36. Global Const $xlCellTypeAllFormatConditions = -4172 ; Cells of any format
  37. Global Const $xlCellTypeAllValidation = -4174 ; Cells having validation criteria
  38. Global Const $xlCellTypeBlanks = 4 ; Empty cells
  39. Global Const $xlCellTypeComments = -4144 ; Cells containing notes
  40. Global Const $xlCellTypeConstants = 2 ; Cells containing constants
  41. Global Const $xlCellTypeFormulas = -4123 ; Cells containing formulas
  42. Global Const $xlCellTypeLastCell = 11 ; The last cell in the used range
  43. Global Const $xlCellTypeSameFormatConditions = -4173 ; Cells having the same format
  44. Global Const $xlCellTypeSameValidation = -4175 ; Cells having the same validation criteria
  45. Global Const $xlCellTypeVisible = 12 ; All visible cells
  46. ; XlColumnDataType Enumeration. Specifies how a column is to be parsed.
  47. ; See: http://msdn.microsoft.com/en-us/library/ff193030(v=office.14).aspx
  48. Global Const $xlDMYFormat = 4 ; DMY date format
  49. Global Const $xlDYMFormat = 7 ; DYM date format
  50. Global Const $xlEMDFormat = 10 ; EMD date format
  51. Global Const $xlGeneralFormat = 1 ; General
  52. Global Const $xlMDYFormat = 3 ; MDY date format
  53. Global Const $xlMYDFormat = 6 ; MYD date format
  54. Global Const $xlSkipColumn = 9 ; Column is not parsed
  55. Global Const $xlTextFormat = 2 ; Text
  56. Global Const $xlYDMFormat = 8 ; YDM date format
  57. Global Const $xlYMDFormat = 5 ; YMD date format
  58. ; XlDeleteShiftDirection Enumeration. Specifies how to shift cells to replace deleted cells.
  59. ; See: http://msdn.microsoft.com/en-us/library/ff841140(v=office.14).aspx
  60. Global Const $xlShiftToLeft = -4159 ; Cells are shifted to the left
  61. Global Const $xlShiftUp = -4162 ; Cells are shifted up
  62. ; XlDVAlertStyle Enumeration. Specifies the icon used in message boxes displayed during validation.
  63. ; See: http://msdn.microsoft.com/en-us/library/ff841223(v=office.14).aspx
  64. Global Const $xlValidAlertInformation = 3 ; Information icon
  65. Global Const $xlValidAlertStop = 1 ; Stop icon
  66. Global Const $xlValidAlertWarning = 2 ; Warning icon
  67. ; XlDVType Enumeration. Specifies the type of validation test to be performed in conjunction with values.
  68. ; See: http://msdn.microsoft.com/en-us/library/ff840715(v=office.14).aspx
  69. Global Const $xlValidateCustom = 7 ; Data is validated using an arbitrary formula
  70. Global Const $xlValidateDate = 4 ; Date values
  71. Global Const $xlValidateDecimal = 2 ; Numeric values
  72. Global Const $xlValidateInputOnly = 0 ; Validate only when user changes the value
  73. Global Const $xlValidateList = 3 ; Value must be present in a specified list
  74. Global Const $xlValidateTextLength = 6 ; Length of text
  75. Global Const $xlValidateTime = 5 ; Time values
  76. Global Const $xlValidateWholeNumber = 1 ; Whole numeric values
  77. ; XlDynamicFilterCriteria Enumeration. Specifies the filter criterion.
  78. ; See: http://msdn.microsoft.com/en-us/library/ff840134(v=office.14).aspx
  79. Global Const $xlFilterAboveAverage = 33 ; Filter all above-average values
  80. Global Const $xlFilterAllDatesInPeriodApril = 24 ; Filter all dates in April
  81. Global Const $xlFilterAllDatesInPeriodAugust = 28 ; Filter all dates in August
  82. Global Const $xlFilterAllDatesInPeriodDecember = 32 ; Filter all dates in December
  83. Global Const $xlFilterAllDatesInPeriodFebruray = 22 ; Filter all dates in February
  84. Global Const $xlFilterAllDatesInPeriodJanuary = 21 ; Filter all dates in January
  85. Global Const $xlFilterAllDatesInPeriodJuly = 27 ; Filter all dates in July
  86. Global Const $xlFilterAllDatesInPeriodJune = 26 ; Filter all dates in June
  87. Global Const $xlFilterAllDatesInPeriodMarch = 23 ; Filter all dates in March
  88. Global Const $xlFilterAllDatesInPeriodMay = 25 ; Filter all dates in May
  89. Global Const $xlFilterAllDatesInPeriodNovember = 31 ; Filter all dates in November
  90. Global Const $xlFilterAllDatesInPeriodOctober = 30 ; Filter all dates in October
  91. Global Const $xlFilterAllDatesInPeriodQuarter1 = 17 ; Filter all dates in Quarter1
  92. Global Const $xlFilterAllDatesInPeriodQuarter2 = 18 ; Filter all dates in Quarter2
  93. Global Const $xlFilterAllDatesInPeriodQuarter3 = 19 ; Filter all dates in Quarter3
  94. Global Const $xlFilterAllDatesInPeriodQuarter4 = 20 ; Filter all dates in Quarter4
  95. Global Const $xlFilterAllDatesInPeriodSeptember = 29 ; Filter all dates in September
  96. Global Const $xlFilterBelowAverage = 34 ; Filter all below-average values
  97. Global Const $xlFilterLastMonth = 8 ; Filter all values related to last month
  98. Global Const $xlFilterLastQuarter = 11 ; Filter all values related to last quarter
  99. Global Const $xlFilterLastWeek = 5 ; Filter all values related to last week
  100. Global Const $xlFilterLastYear = 14 ; Filter all values related to last year
  101. Global Const $xlFilterNextMonth = 9 ; Filter all values related to next month
  102. Global Const $xlFilterNextQuarter = 12 ; Filter all values related to next quarter
  103. Global Const $xlFilterNextWeek = 6 ; Filter all values related to next week
  104. Global Const $xlFilterNextYear = 15 ; Filter all values related to next year
  105. Global Const $xlFilterThisMonth = 7 ; Filter all values related to the current month
  106. Global Const $xlFilterThisQuarter = 10 ; Filter all values related to the current quarter
  107. Global Const $xlFilterThisWeek = 4 ; Filter all values related to the current week
  108. Global Const $xlFilterThisYear = 13 ; Filter all values related to the current year
  109. Global Const $xlFilterToday = 1 ; Filter all values related to the current date
  110. Global Const $xlFilterTomorrow = 3 ; Filter all values related to tomorrow
  111. Global Const $xlFilterYearToDate = 16 ; Filter all values from today until a year ago
  112. Global Const $xlFilterYesterday = 2 ; Filter all values related to yesterday
  113. ; XlFileFormat Enumeration. Specifies the file format when saving the worksheet.
  114. ; See: http://msdn.microsoft.com/en-us/library/ff198017(v=office.14).aspx
  115. Global Const $xlAddIn = 18 ; Microsoft Excel 97-2003 Add-In
  116. Global Const $xlAddIn8 = 18 ; Microsoft Excel 97-2003 Add-In
  117. Global Const $xlCSV = 6 ; CSV
  118. Global Const $xlCSVMac = 22 ; Macintosh CSV
  119. Global Const $xlCSVMSDOS = 24 ; MSDOS CSV
  120. Global Const $xlCSVWindows = 23 ; Windows CSV
  121. Global Const $xlCurrentPlatformText = -4158 ; Current Platform Text
  122. Global Const $xlDBF2 = 7 ; DBF2
  123. Global Const $xlDBF3 = 8 ; DBF3
  124. Global Const $xlDBF4 = 11 ; DBF4
  125. Global Const $xlDIF = 9 ; DIF
  126. Global Const $xlExcel12 = 50 ; Excel12 (Excel Binary Workbook in 2007 with or without macro’s, .xlsb)
  127. Global Const $xlExcel2 = 16 ; Excel2
  128. Global Const $xlExcel2FarEast = 27 ; Excel2 FarEast
  129. Global Const $xlExcel3 = 29 ; Excel3
  130. Global Const $xlExcel4 = 33 ; Excel4
  131. Global Const $xlExcel4Workbook = 35 ; Excel4 Workbook
  132. Global Const $xlExcel5 = 39 ; Excel5
  133. Global Const $xlExcel7 = 39 ; Excel7
  134. Global Const $xlExcel8 = 56 ; Excel8 (97-2003 format in Excel 2007, .xls)
  135. Global Const $xlExcel9795 = 43 ; Excel9795
  136. Global Const $xlHtml = 44 ; HTML format
  137. Global Const $xlIntlAddIn = 26 ; International Add-In
  138. Global Const $xlIntlMacro = 25 ; International Macro
  139. Global Const $xlOpenDocumentSpreadsheet = 60 ; OpenDocument Spreadsheet
  140. Global Const $xlOpenXMLAddIn = 55 ; Open XML Add-In
  141. Global Const $xlOpenXMLTemplate = 54 ; Open XML Template
  142. Global Const $xlOpenXMLTemplateMacroEnabled = 53 ; Open XML Template Macro Enabled
  143. Global Const $xlOpenXMLWorkbook = 51 ; Open XML Workbook (without macro’s in 2007, .xlsx)
  144. Global Const $xlOpenXMLWorkbookMacroEnabled = 52 ; Open XML Workbook Macro Enabled (with or without macro’s in 2007, .xlsm)
  145. Global Const $xlSYLK = 2 ; SYLK
  146. Global Const $xlTemplate = 17 ; Template
  147. Global Const $xlTemplate8 = 17 ; Template 8
  148. Global Const $xlTextMac = 19; Macintosh Text
  149. Global Const $xlTextMSDOS = 21 ; MSDOS Text
  150. Global Const $xlTextPrinter = 36 ; Printer Text
  151. Global Const $xlTextWindows = 20 ; Windows Text
  152. Global Const $xlUnicodeText = 42 ; Unicode Text
  153. Global Const $xlWebArchive = 45 ; Web Archive
  154. Global Const $xlWJ2WD1 = 14 ; WJ2WD1
  155. Global Const $xlWJ3 = 40 ; WJ3
  156. Global Const $xlWJ3FJ3 = 41 ; WJ3FJ3
  157. Global Const $xlWK1 = 5 ; WK1
  158. Global Const $xlWK1ALL = 31 ; WK1ALL
  159. Global Const $xlWK1FMT = 30 ; WK1FMT
  160. Global Const $xlWK3 = 15 ; WK3
  161. Global Const $xlWK3FM3 = 32 ; WK3FM3
  162. Global Const $xlWK4 = 38; WK4
  163. Global Const $xlWKS = 4 ; Worksheet
  164. Global Const $xlWorkbookDefault = 51 ; Workbook default (.xls for < Excel 2007, .xlsx for > Excel 2007)
  165. Global Const $xlWorkbookNormal = -4143 ; Workbook normal
  166. Global Const $xlWorks2FarEast = 28 ; Works2 FarEast
  167. Global Const $xlWQ1 = 34 ; WQ1
  168. Global Const $xlXMLSpreadsheet = 46 ; XML Spreadsheet
  169. ; XlFindLookIn Enumeration. Specifies the type of data to search.
  170. ; See: http://msdn.microsoft.com/en-us/library/ff822180(v=office.14).aspx
  171. Global Const $xlComments = -4144 ; Comments
  172. Global Const $xlFormulas = -4123 ; Formulas
  173. Global Const $xlValues = -4163 ; Values
  174. ; XlFixedFormatQuality Enumeration. Specifies the quality of speadsheets saved in different fixed formats.
  175. ; See: http://msdn.microsoft.com/en-us/library/ff838396(v=office.14).aspx
  176. Global Const $xlQualityMinimum = 1 ; Minimum quality
  177. Global Const $xlQualityStandard = 0 ; Standard quality
  178. ; XlFixedFormatType Enumeration. Specifies the type of file format.
  179. ; See: http://msdn.microsoft.com/en-us/library/ff195006(v=office.14).aspx
  180. Global Const $xlTypePDF = 0 ; "PDF" — Portable Document Format file (.pdf)
  181. Global Const $xlTypeXPS = 1 ; "XPS" — XPS Document (.xps)
  182. ; XlFormatConditionOperator Enumeration. Specifies the operator to use to compare a formula against the value in a cell or, for xlBetween and xlNotBetween, to compare two formulas.
  183. ; See: http://msdn.microsoft.com/en-us/library/ff840923(v=office.14).aspx
  184. Global Const $xlBetween = 1 ; Between. Can be used only if two formulas are provided
  185. Global Const $xlEqual = 3 ; Equal
  186. Global Const $xlGreater = 5 ; Greater than
  187. Global Const $xlGreaterEqual = 7 ; Greater than or equal to
  188. Global Const $xlLess = 6 ; Less than
  189. Global Const $xlLessEqual = 8 ; Less than or equal to
  190. Global Const $xlNotBetween = 2 ; Not between. Can be used only if two formulas are provided
  191. Global Const $xlNotEqual = 4 ; Not equal
  192. ; XlInsertFormatOrigin Enumeration: Specifies from where to copy the format for inserted rows.
  193. ; See: http://msdn.microsoft.com/en-us/library/ff195129(v=office.14).aspx
  194. Global Const $xlFormatFromLeftOrAbove = 0 ; Copy the format from cells above and/or to the left
  195. Global Const $xlFormatFromRightOrBelow = 1 ; Copy the format from cells below and/or to the right
  196. ; XlInsertShiftDirection Enumeration. Specifies the direction in which to shift cells during an insertion.
  197. ; See: http://msdn.microsoft.com/en-us/library/ff837618(v=office.14).aspx
  198. Global Const $xlShiftDown = -4121 ; Shift cells down
  199. Global Const $xlShiftToRight = -4161 ; Shift cells to the right
  200. ; XlLookAt Enumeration. Specifies whether a match is made against the whole of the search text or any part of the search text.
  201. ; See: http://msdn.microsoft.com/en-us/library/ff823160(v=office.14).aspx
  202. Global Const $xlPart = 2 ; Match against any part of the search text
  203. Global Const $xlWhole = 1 ; Match against the whole of the search text
  204. ; XlPasteSpecialOperation Enumeration. Specifies how numeric data will be calculated with the destinations cells in the worksheet
  205. ; See: http://msdn.microsoft.com/en-us/library/ff838010(v=office.14).aspx
  206. Global Const $xlPasteSpecialOperationAdd = 2 ; Copied data will be added with the value in the destination cell
  207. Global Const $xlPasteSpecialOperationDivide = 5 ; Copied data will be divided with the value in the destination cell
  208. Global Const $xlPasteSpecialOperationMultiply = 4 ; Copied data will be multiplied with the value in the destination cell
  209. Global Const $xlPasteSpecialOperationNone = -4142 ; No calculation will be done in the paste operation
  210. Global Const $xlPasteSpecialOperationSubtract = 3 ; Copied data will be subtracted with the value in the destination cell
  211. ; XlPasteType Enumeration. Specifies the part of the range to be pasted.
  212. ; See: http://msdn.microsoft.com/en-us/library/ff837425(v=office.14).aspx
  213. Global Const $xlPasteAll = -4104 ; Everything will be pasted
  214. Global Const $xlPasteAllExceptBorders = 7 ; Everything except borders will be pasted
  215. Global Const $xlPasteAllMergingConditionalFormats = 14 ; Everything will be pasted and conditional formats will be merged
  216. Global Const $xlPasteAllUsingSourceTheme = 13 ; Everything will be pasted using the source theme
  217. Global Const $xlPasteColumnWidths = 8 ; Copied column width is pasted
  218. Global Const $xlPasteComments = -4144 ; Comments are pasted
  219. Global Const $xlPasteFormats = -4122 ; Copied source format is pasted
  220. Global Const $xlPasteFormulas = -4123 ; Formulas are pasted
  221. Global Const $xlPasteFormulasAndNumberFormats = 11 ; Formulas and Number formats are pasted
  222. Global Const $xlPasteValidation = 6 ; Validations are pasted
  223. Global Const $xlPasteValues = -4163 ; Values are pasted
  224. Global Const $xlPasteValuesAndNumberFormats = 12 ; Values and Number formats are pasted
  225. ; XlPlatform Enumeration. Specifies the platform on which a text file originated.
  226. ; See: http://msdn.microsoft.com/en-us/library/ff197617(v=office.14).aspx
  227. Global Const $xlMacintosh = 1 ; Macintosh
  228. Global Const $xlMSDOS = 3 ; MS-DOS
  229. Global Const $xlWindows = 2 ; Microsoft Windows
  230. ; XlReferenceStyle Enumeration. Specifies the reference style.
  231. ; See: http://msdn.microsoft.com/en-us/library/ff821207(v=office.14).aspx
  232. Global Const $xlA1 = 1 ; Default. Use xlA1 to return an A1-style reference
  233. Global Const $xlR1C1 = -4150 ; Use xlR1C1 to return an R1C1-style reference
  234. ; XlReferenceType Enumeration. Specifies cell reference style when a formula is being converted.
  235. ; See: http://msdn.microsoft.com/en-us/library/ff837117(v=office.14).aspx
  236. Global Const $xlAbsolute = 1 ; Convert to absolute row and column style
  237. Global Const $xlAbsRowRelColumn = 2 ; Convert to absolute row and relative column style
  238. Global Const $xlRelative = 4 ; Convert to relative row and column style
  239. Global Const $xlRelRowAbsColumn = 3 ; Convert to relative row and absolute column style
  240. ; xlSheetVisibility Enumeration. Specifies whether the object is visible.
  241. ; See: http://msdn.microsoft.com/en-us/library/ff821673(v=office.14).aspx
  242. Global Const $xlSheetHidden = 0 ; Hides the worksheet which the user can unhide via menu
  243. Global Const $xlSheetVeryHidden = 2 ; Hides the object so that the only way for you to make it visible again is by setting this property to True (the user cannot make the object visible)
  244. Global Const $xlSheetVisible = -1 ; Displays the sheet
  245. ; XlSortDataOption Enumeration. Specifies how to sort text.
  246. ; See: http://msdn.microsoft.com/en-us/library/ff821069(v=office.14).aspx
  247. Global Const $xlSortNormal = 0 ; Sorts numeric and text data separately
  248. Global Const $xlSortTextAsNumbers = 1 ; Treat text as numeric data for the sort
  249. ; XlSortOrder Enumeration. Specifies the sort order for the specified field or range.
  250. ; See: http://msdn.microsoft.com/en-us/library/ff834316(v=office.14).aspx
  251. Global Const $xlAscending = 1 ; Sorts the specified field in ascending order
  252. Global Const $xlDescending = 2 ; Sorts the specified field in descending order
  253. ; XlSortOn Enumeration. Specifies the parameter on which the data should be sorted.
  254. ; See: http://msdn.microsoft.com/en-us/library/ff839572(v=office.14).aspx
  255. Global Const $xlSortOnCellColor = 1 ; Cell color
  256. Global Const $xlSortOnFontColor = 2 ; Font color
  257. Global Const $xlSortOnIcon = 3 ; Icon
  258. Global Const $xlSortOnValues = 0 ; Values
  259. ; XlSortOrientation Enumeration. Specifies the sort orientation.
  260. ; See: http://msdn.microsoft.com/en-us/library/ff839607(v=office.14).aspx
  261. Global Const $xlSortColumns = 1 ; Sorts by column
  262. Global Const $xlSortRows = 2 ; Sorts by row. This is the default value
  263. ; XlTextParsingType Enumeration. Specifies the column format for the data in the text file that you are importing into a query table.
  264. ; See: http://msdn.microsoft.com/en-us/library/ff822876(v=office.14).aspx
  265. Global Const $xlDelimited = 1 ; Default. Indicates that the file is delimited by delimiter characters
  266. Global Const $xlFixedWidth = 2 ; Indicates that the data in the file is arranged in columns of fixed widths
  267. ; XlTextQualifier Enumeration. Specifies the delimiter to use to specify text.
  268. ; See: http://msdn.microsoft.com/en-us/library/ff838376(v=office.14).aspx
  269. Global Const $xlTextQualifierDoubleQuote = 1 ; Double quotation mark (")
  270. Global Const $xlTextQualifierNone = -4142 ; No delimiter
  271. Global Const $xlTextQualifierSingleQuote = 2 ; Single quotation mark (')
  272. ; XlYesNoGuess Enumeration. Specifies whether or not the first row contains headers.
  273. ; See: http://msdn.microsoft.com/en-us/library/ff838812(v=office.14).aspx
  274. Global Const $xlGuess = 0 ; Excel determines whether there is a header, and where it is, if there is one
  275. Global Const $xlNo = 2 ; Default. The entire range should be sorted
  276. Global Const $xlYes = 1 ; The entire range should not be sorted
  277. ; ===============================================================================================================================