1. 程式人生 > >在Qt中用QAxObject來操作Excel

在Qt中用QAxObject來操作Excel

下一篇:用dumpcpp工具生成的excel.h/excel.cpp來操縱Excel

        最近寫程式中需要將資料輸出儲存到Excel檔案中。翻看《C++ GUI Programming with Qt 4》(Second Edition)發現可以在Qt中運用ActiveX控制元件,這真是太好了。

        看了很久教程也沒有學會,畢竟是新手,平時也沒學過ActiveX程式設計。一些在VB中可以方便使用的函式在Qt中都沒法兒執行。網上的方法也很多解決不了問題,還會報錯。也許是版本問題吧,Qt都更新了好幾次了。所以只好自己多試幾次。經過摸索我的方法如下:

首先在.pro檔案中新增CONFIG += qaxcontainer

接著程式實現

QString filepath=QFileDialog::getSaveFileName(this,tr("Save orbit"),".",tr("Microsoft Office 2007 (*.xlsx)"));//獲取儲存路徑
    if(!filepath.isEmpty()){
        QAxObject *excel = new QAxObject(this);
        excel->setControl("Excel.Application");//連線Excel控制元件
        excel->dynamicCall("SetVisible (bool Visible)","false");//不顯示窗體
        excel->setProperty("DisplayAlerts", false);//不顯示任何警告資訊。如果為true那麼在關閉是會出現類似“檔案已修改,是否儲存”的提示

        QAxObject *workbooks = excel->querySubObject("WorkBooks");//獲取工作簿集合
        workbooks->dynamicCall("Add");//新建一個工作簿
        QAxObject *workbook = excel->querySubObject("ActiveWorkBook");//獲取當前工作簿
        QAxObject *worksheets = workbook->querySubObject("Sheets");//獲取工作表集合
        QAxObject *worksheet = worksheets->querySubObject("Item(int)",1);//獲取工作表集合的工作表1,即sheet1
        QAxObject *cellX,*cellY;
        for(int i=0;i<curRow;i++){
            QString X="A"+QString::number(i+1);//設定要操作的單元格,如A1
            QString Y="B"+QString::number(i+1);
            cellX = worksheet->querySubObject("Range(QVariant, QVariant)",X);//獲取單元格
            cellY = worksheet->querySubObject("Range(QVariant, QVariant)",Y);
            cellX->dynamicCall("SetValue(const QVariant&)",QVariant(ui->tableWidget->formula(i,0).toInt()));//設定單元格的值
            cellY->dynamicCall("SetValue(const QVariant&)",QVariant(ui->tableWidget->formula(i,1).toInt()));
        }

        workbook->dynamicCall("SaveAs(const QString&)",QDir::toNativeSeparators(filepath));//儲存至filepath,注意一定要用QDir::toNativeSeparators將路徑中的"/"轉換為"\",不然一定儲存不了。
        workbook->dynamicCall("Close()");//關閉工作簿
        excel->dynamicCall("Quit()");//關閉excel
        delete excel;
        excel=NULL;
    }

        另外附上在網上搜到的一些常用操作:

QAxWidget excel("Excel.Application");
1) 顯示當前視窗:
excel.setProperty("Visible", true);
2) 更改 Excel 標題欄:
excel.setProperty("Caption", "Invoke Microsoft Excel");
3) 新增新工作簿:
QAxObject * workbooks = excel.querySubObject("WorkBooks");
workbooks->dynamicCall("Add");
4) 開啟已存在的工作簿:
workbooks->dynamicCall("Open (const QString&)", QString("c:/test.xls"));
5) 獲取活動工作簿:
QAxObject * workbook = excel.querySubObject("ActiveWorkBook");
6) 獲取所有的工作表:
QAxObject * worksheets = workbook->querySubObject("WorkSheets");
7) 獲取工作表數量:
int intCount = worksheets->property("Count").toInt();
8) 獲取第一個工作表:
QAxObject * worksheet = workbook->querySubObject("Worksheets(int)", 1);
9) 獲取cell的值:
QAxObject * range = worksheet->querySubObject("Cells(int,int)", 1, 1 );

以上操作不一定每個都可用(都好用),僅作為參考吧。起碼我第9)個就沒成功,不知為何?後來我改用了Range(QVariant, QVariant)的方法來替代它。

        最後附上我用QAxBase::generateDocumentation()方法獲得的對應於Excel.Application的帶Qt資料型別的QAxObject或者QAxWidget中可用的屬性、訊號和槽列表(雖然我還不大會用,不過參考下還是很好的): 

Reference

The COM object is a QAxObject with the CLSID {00024500-0000-0000-c000-000000000046}.

Interfaces

  • _Application

Event Interfaces

  • AppEvents

Public Slots:

  • void AddChartAutoFormat(QVariant Chart, QString Name, QVariant Description = 0);
  • void AddCustomList(QVariant ListArray, QVariant ByRow = 0);
  • QVariant Caller(QVariant Index = 0);
  • void CheckAbort(QVariant KeepAbort = 0);
  • bool CheckSpelling(QString Word, QVariant CustomDictionary = 0, QVariant IgnoreUppercase = 0);
  • QVariant ClipboardFormats(QVariant Index = 0);
  • QVariant ConvertFormula(QVariant Formula, XlReferenceStyle FromReferenceStyle, QVariant ToReferenceStyle = 0, QVariant ToAbsolute = 0, QVariant RelativeTo = 0);
  • void DDEExecute(int Channel, QString String);
  • int DDEInitiate(QString App, QString Topic);
  • void DDEPoke(int Channel, QVariant Item, QVariant Data);
  • QVariant DDERequest(int Channel, QString Item);
  • QVariant Dummy1(QVariant Arg1 = 0, QVariant Arg2 = 0, QVariant Arg3 = 0, QVariant Arg4 = 0);
  • bool Dummy10(QVariant arg = 0);
  • void Dummy12(IDispatch* p1, IDispatch* p2);
  • QVariant Dummy13(QVariant Arg1, QVariant Arg2 = 0, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0, QVariant Arg9 = 0, QVariant Arg10 = 0, QVariant Arg11 = 0, QVariant Arg12 = 0, QVariant Arg13 = 0, QVariant Arg14 = 0, QVariant Arg15 = 0, QVariant Arg16 = 0, QVariant Arg17 = 0, QVariant Arg18 = 0, QVariant Arg19 = 0, QVariant Arg20 = 0, QVariant Arg21 = 0, QVariant Arg22 = 0, QVariant Arg23 = 0, QVariant Arg24 = 0, QVariant Arg25 = 0, QVariant Arg26 = 0, QVariant Arg27 = 0, QVariant Arg28 = 0, QVariant Arg29 = 0, QVariant Arg30 = 0);
  • QVariant Dummy2(QVariant Arg1 = 0, QVariant Arg2 = 0, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0);
  • QVariant Dummy20(int grfCompareFunctions);
  • QVariant Dummy3();
  • QVariant Dummy4(QVariant Arg1 = 0, QVariant Arg2 = 0, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0, QVariant Arg9 = 0, QVariant Arg10 = 0, QVariant Arg11 = 0, QVariant Arg12 = 0, QVariant Arg13 = 0, QVariant Arg14 = 0, QVariant Arg15 = 0);
  • QVariant Dummy5(QVariant Arg1 = 0, QVariant Arg2 = 0, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0, QVariant Arg9 = 0, QVariant Arg10 = 0, QVariant Arg11 = 0, QVariant Arg12 = 0, QVariant Arg13 = 0);
  • QVariant Dummy6();
  • QVariant Dummy7();
  • QVariant Dummy8(QVariant Arg1 = 0);
  • QVariant Dummy9();
  • QVariant Evaluate(QVariant Name);
  • QVariant FileConverters(QVariant Index1 = 0, QVariant Index2 = 0);
  • IDispatch* FileDialog(Office::MsoFileDialogType fileDialogType);
  • QVariant GetOpenFilename(QVariant FileFilter = 0, QVariant FilterIndex = 0, QVariant Title = 0, QVariant ButtonText = 0, QVariant MultiSelect = 0);
  • QString GetPhonetic(QVariant Text = 0);
  • QVariant GetSaveAsFilename(QVariant InitialFilename = 0, QVariant FileFilter = 0, QVariant FilterIndex = 0, QVariant Title = 0, QVariant ButtonText = 0);
  • void Goto(QVariant Reference = 0, QVariant Scroll = 0);
  • void Help(QVariant HelpFile = 0, QVariant HelpContextID = 0);
  • double InchesToPoints(double Inches);
  • QVariant InputBox(QString Prompt, QVariant Title = 0, QVariant Default = 0, QVariant Left = 0, QVariant Top = 0, QVariant HelpFile = 0, QVariant HelpContextID = 0, QVariant Type = 0);
  • QVariant International(QVariant Index = 0);
  • IDispatch* Intersect(IDispatch* Arg1, IDispatch* Arg2, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0, QVariant Arg9 = 0, QVariant Arg10 = 0, QVariant Arg11 = 0, QVariant Arg12 = 0, QVariant Arg13 = 0, QVariant Arg14 = 0, QVariant Arg15 = 0, QVariant Arg16 = 0, QVariant Arg17 = 0, QVariant Arg18 = 0, QVariant Arg19 = 0, QVariant Arg20 = 0, QVariant Arg21 = 0, QVariant Arg22 = 0, QVariant Arg23 = 0, QVariant Arg24 = 0, QVariant Arg25 = 0, QVariant Arg26 = 0, QVariant Arg27 = 0, QVariant Arg28 = 0, QVariant Arg29 = 0, QVariant Arg30 = 0);
  • void MacroOptions(QVariant Macro = 0, QVariant Description = 0, QVariant HasMenu = 0, QVariant MenuText = 0, QVariant HasShortcutKey = 0, QVariant ShortcutKey = 0, QVariant Category = 0, QVariant StatusBar = 0, QVariant HelpContextID = 0, QVariant HelpFile = 0);
  • void MailLogon(QVariant Name = 0, QVariant Password = 0, QVariant DownloadNewMail = 0);
  • void OnKey(QString Key, QVariant Procedure = 0);
  • void OnRepeat(QString Text, QString Procedure);
  • void OnTime(QVariant EarliestTime, QString Procedure, QVariant LatestTime = 0, QVariant Schedule = 0);
  • void OnUndo(QString Text, QString Procedure);
  • void Quit();
  • IDispatch* Range(QVariant Cell1, QVariant Cell2 = 0);
  • void RecordMacro(QVariant BasicCode = 0, QVariant XlmCode = 0);
  • bool RegisterXLL(QString Filename);
  • QVariant RegisteredFunctions(QVariant Index1 = 0, QVariant Index2 = 0);
  • QVariant Run(QVariant Macro = 0, QVariant Arg1 = 0, QVariant Arg2 = 0, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0, QVariant Arg9 = 0, QVariant Arg10 = 0, QVariant Arg11 = 0, QVariant Arg12 = 0, QVariant Arg13 = 0, QVariant Arg14 = 0, QVariant Arg15 = 0, QVariant Arg16 = 0, QVariant Arg17 = 0, QVariant Arg18 = 0, QVariant Arg19 = 0, QVariant Arg20 = 0, QVariant Arg21 = 0, QVariant Arg22 = 0, QVariant Arg23 = 0, QVariant Arg24 = 0, QVariant Arg25 = 0, QVariant Arg26 = 0, QVariant Arg27 = 0, QVariant Arg28 = 0, QVariant Arg29 = 0, QVariant Arg30 = 0);
  • void Save(QVariant Filename = 0);
  • void SaveWorkspace(QVariant Filename = 0);
  • void SendKeys(QVariant Keys, QVariant Wait = 0);
  • void SetActivePrinter(QString ActivePrinter);
  • void SetAltStartupPath(QString AltStartupPath);
  • void SetAutomationSecurity(Office::MsoAutomationSecurity AutomationSecurity);
  • void SetCalculation(XlCalculation Calculation);
  • void SetCalculationInterruptKey(XlCalculationInterruptKey CalculationInterruptKey);
  • void SetCaption(QString Caption);
  • void SetColorButtons(bool ColorButtons);
  • void SetCommandUnderlines(XlCommandUnderlines CommandUnderlines);
  • void SetCursor(XlMousePointer Cursor);
  • void SetCutCopyMode(XlCutCopyMode CutCopyMode);
  • void SetDecimalSeparator(QString DecimalSeparator);
  • void SetDefaultChart(QVariant FormatName = 0, QVariant Gallery = 0);
  • void SetDefaultFilePath(QString DefaultFilePath);
  • void SetDefaultSaveFormat(XlFileFormat DefaultSaveFormat);
  • void SetDisplayAlerts(bool DisplayAlerts);
  • void SetDisplayCommentIndicator(XlCommentDisplayMode DisplayCommentIndicator);
  • void SetEnableCancelKey(XlEnableCancelKey EnableCancelKey);
  • void SetEnableEvents(bool EnableEvents);
  • void SetEnableSound(bool EnableSound);
  • void SetExtendList(bool ExtendList);
  • void SetFeatureInstall(Office::MsoFeatureInstall FeatureInstall);
  • void SetFixedDecimal(bool FixedDecimal);
  • void SetGenerateTableRefs(XlGenerateTableRefs GenerateTableRefs);
  • void SetHeight(double Height);
  • void SetInteractive(bool Interactive);
  • void SetIteration(bool Iteration);
  • void SetLargeButtons(bool LargeButtons);
  • void SetLeft(double Left);
  • void SetMapPaperSize(bool MapPaperSize);
  • void SetMaxChange(double MaxChange);
  • void SetMoveAfterReturnDirection(XlDirection MoveAfterReturnDirection);
  • void SetODBCTimeout(int ODBCTimeout);
  • void SetOnCalculate(QString OnCalculate);
  • void SetOnData(QString OnData);
  • void SetOnDoubleClick(QString OnDoubleClick);
  • void SetOnEntry(QString OnEntry);
  • void SetOnSheetActivate(QString OnSheetActivate);
  • void SetOnSheetDeactivate(QString OnSheetDeactivate);
  • void SetOnWindow(QString OnWindow);
  • void SetReferenceStyle(XlReferenceStyle ReferenceStyle);
  • void SetRollZoom(bool RollZoom);
  • void SetShowDevTools(bool ShowDevTools);
  • void SetShowToolTips(bool ShowToolTips);
  • void SetStandardFont(QString StandardFont);
  • void SetStandardFontSize(double StandardFontSize);
  • void SetStatusBar(QVariant StatusBar);
  • void SetThousandsSeparator(QString ThousandsSeparator);
  • void SetTop(double Top);
  • void SetTransitionMenuKey(QString TransitionMenuKey);
  • void SetUILanguage(int UILanguage);
  • void SetUserControl(bool UserControl);
  • void SetUserName(QString UserName);
  • void SetVisible(bool Visible);
  • void SetWidth(double Width);
  • void SetWindowState(XlWindowState WindowState);
  • IDispatch* ShortcutMenus(int Index);
  • QVariant Support(IDispatch* Object, int ID, QVariant arg = 0);
  • void Undo();
  • IDispatch* Union(IDispatch* Arg1, IDispatch* Arg2, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0, QVariant Arg9 = 0, QVariant Arg10 = 0, QVariant Arg11 = 0, QVariant Arg12 = 0, QVariant Arg13 = 0, QVariant Arg14 = 0, QVariant Arg15 = 0, QVariant Arg16 = 0, QVariant Arg17 = 0, QVariant Arg18 = 0, QVariant Arg19 = 0, QVariant Arg20 = 0, QVariant Arg21 = 0, QVariant Arg22 = 0, QVariant Arg23 = 0, QVariant Arg24 = 0, QVariant Arg25 = 0, QVariant Arg26 = 0, QVariant Arg27 = 0, QVariant Arg28 = 0, QVariant Arg29 = 0, QVariant Arg30 = 0);
  • void Volatile(QVariant Volatile = 0);
  • bool Wait(QVariant Time);
  • QVariant _Evaluate(QVariant Name);
  • QVariant _Run2(QVariant Macro = 0, QVariant Arg1 = 0, QVariant Arg2 = 0, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0, QVariant Arg9 = 0, QVariant Arg10 = 0, QVariant Arg11 = 0, QVariant Arg12 = 0, QVariant Arg13 = 0, QVariant Arg14 = 0, QVariant Arg15 = 0, QVariant Arg16 = 0, QVariant Arg17 = 0, QVariant Arg18 = 0, QVariant Arg19 = 0, QVariant Arg20 = 0, QVariant Arg21 = 0, QVariant Arg22 = 0, QVariant Arg23 = 0, QVariant Arg24 = 0, QVariant Arg25 = 0, QVariant Arg26 = 0, QVariant Arg27 = 0, QVariant Arg28 = 0, QVariant Arg29 = 0, QVariant Arg30 = 0);
  • QVariant _WSFunction(QVariant Arg1 = 0, QVariant Arg2 = 0, QVariant Arg3 = 0, QVariant Arg4 = 0, QVariant Arg5 = 0, QVariant Arg6 = 0, QVariant Arg7 = 0, QVariant Arg8 = 0, QVariant Arg9 = 0, QVariant Arg10 = 0, QVariant Arg11 = 0, QVariant Arg12 = 0, QVariant Arg13 = 0, QVariant Arg14 = 0, QVariant Arg15 = 0, QVariant Arg16 = 0, QVariant Arg17 = 0, QVariant Arg18 = 0, QVariant Arg19 = 0, QVariant Arg20 = 0, QVariant Arg21 = 0, QVariant Arg22 = 0, QVariant Arg23 = 0, QVariant Arg24 = 0, QVariant Arg25 = 0, QVariant Arg26 = 0, QVariant Arg27 = 0, QVariant Arg28 = 0, QVariant Arg29 = 0, QVariant Arg30 = 0);
  • void _Wait(QVariant Time);

Signals:

Properties:

Member Type Documentation

Constants

  • xlAll =-4104
  • xlAutomatic =-4105
  • xlBoth =1
  • xlCenter =-4108
  • xlChecker =9
  • xlCircle =8
  • xlCorner =2
  • xlCrissCross =16
  • xlCross =4
  • xlDiamond =2
  • xlDistributed =-4117
  • xlDoubleAccounting =5
  • xlFixedValue =1
  • xlFormats =-4122
  • xlGray16 =17
  • xlGray8 =18
  • xlGrid =15
  • xlHigh =-4127
  • xlInside =2
  • xlJustify =-4130
  • xlLightDown =13
  • xlLightHorizontal =11
  • xlLightUp =14
  • xlLightVertical =12
  • xlLow =-4134
  • xlManual =-4135
  • xlMinusValues =3
  • xlModule =-4141
  • xlNextToAxis =4
  • xlNone =-4142
  • xlNotes =-4144
  • xlOff =-4146
  • xlOn =1
  • xlPercent =2
  • xlPlus =9
  • xlPlusValues =2
  • xlSemiGray75 =10
  • xlShowLabel =4
  • xlShowLabelAndPercent =5
  • xlShowPercent =3
  • xlShowValue =2
  • xlSimple =-4154
  • xlSingle =2
  • xlSingleAccounting =4
  • xlSolid =1
  • xlSquare =1
  • xlStar =5
  • xlStError =4
  • xlToolbarButton =2
  • xlTriangle =3
  • xlGray25 =-4124
  • xlGray50 =-4125
  • xlGray75 =-4126
  • xlBottom =-4107
  • xlLeft =-4131
  • xlRight =-4152
  • xlTop =-4160
  • xl3DBar =-4099
  • xl3DSurface =-4103
  • xlBar =2
  • xlColumn =3
  • xlCombination =-4111
  • xlCustom =-4114
  • xlDefaultAutoFormat =-1
  • xlMaximum =2
  • xlMinimum =4
  • xlOpaque =3
  • xlTransparent =2
  • xlBidi =-5000
  • xlLatin =-5001
  • xlContext =-5002
  • xlLTR =-5003
  • xlRTL =-5004
  • xlFullScript =1
  • xlPartialScript =2
  • xlMixedScript =3
  • xlMixedAuthorizedScript =4
  • xlVisualCursor =2
  • xlLogicalCursor =1
  • xlSystem =1
  • xlPartial =3
  • xlHindiNumerals =3
  • xlBidiCalendar =3
  • xlGregorian =2
  • xlComplete =4
  • xlScale =3
  • xlClosed =3
  • xlColor1 =7
  • xlColor2 =8
  • xlColor3 =9
  • xlConstants =2
  • xlContents =2
  • xlBelow =1
  • xlCascade =7
  • xlCenterAcrossSelection =7
  • xlChart4 =2
  • xlChartSeries =17
  • xlChartShort =6
  • xlChartTitles =18
  • xlClassic1 =1
  • xlClassic2 =2
  • xlClassic3 =3
  • xl3DEffects1 =13
  • xl3DEffects2 =14
  • xlAbove =0
  • xlAccounting1 =4
  • xlAccounting2 =5
  • xlAccounting3 =6
  • xlAccounting4 =17
  • xlAdd =2
  • xlDebugCodePane =13
  • xlDesktop =9
  • xlDirect =1
  • xlDivide =5
  • xlDoubleClosed =5
  • xlDoubleOpen =4
  • xlDoubleQuote =1
  • xlEntireChart =20
  • xlExcelMenus =1
  • xlExtended =3
  • xlFill =5
  • xlFirst =0
  • xlFloating =5
  • xlFormula =5
  • xlGeneral =1
  • xlGridline =22
  • xlIcons =1
  • xlImmediatePane =12
  • xlInteger =2
  • xlLast =1
  • xlLastCell =11
  • xlList1 =10
  • xlList2 =11
  • xlList3 =12
  • xlLocalFormat1 =15
  • xlLocalFormat2 =16
  • xlLong =3
  • xlLotusHelp =2
  • xlMacrosheetCell =7
  • xlMixed =2
  • xlMultiply =4
  • xlNarrow =1
  • xlNoDocuments =3
  • xlOpen =2
  • xlOutside =3
  • xlReference =4
  • xlSemiautomatic =2
  • xlShort =1
  • xlSingleQuote =2
  • xlStrict =2
  • xlSubtract =3
  • xlTextBox =16
  • xlTiled =1
  • xlTitleBar =8
  • xlToolbar =1
  • xlVisible =12
  • xlWatchPane =11
  • xlWide =3
  • xlWorkbookTab =6
  • xlWorksheet4 =1
  • xlWorksheetCell =3
  • xlWorksheetShort =5
  • xlAllExceptBorders =7
  • xlLeftToRight =2
  • xlTopToBottom =1
  • xlVeryHidden =2
  • xlDrawingObject =14

XlAboveBelow

  • xlAboveAverage =0
  • xlBelowAverage =1
  • xlEqualAboveAverage =2
  • xlEqualBelowAverage =3
  • xlAboveStdDev =4
  • xlBelowStdDev =5

XlActionType

  • xlActionTypeUrl =1
  • xlActionTypeRowset =16
  • xlActionTypeReport =128
  • xlActionTypeDrillthrough =256

XlApplicationInternational

  • xl24HourClock =33
  • xl4DigitYears =43
  • xlAlternateArraySeparator =16
  • xlColumnSeparator =14
  • xlCountryCode =1
  • xlCountrySetting =2
  • xlCurrencyBefore =37
  • xlCurrencyCode =25
  • xlCurrencyDigits =27
  • xlCurrencyLeadingZeros =40
  • xlCurrencyMinusSign =38
  • xlCurrencyNegative =28
  • xlCurrencySpaceBefore =36
  • xlCurrencyTrailingZeros =39
  • xlDateOrder =32
  • xlDateSeparator =17
  • xlDayCode =21
  • xlDayLeadingZero =42
  • xlDecimalSeparator =3
  • xlGeneralFormatName =26
  • xlHourCode =22
  • xlLeftBrace =12
  • xlLeftBracket =10
  • xlListSeparator =5
  • xlLowerCaseColumnLetter =9
  • xlLowerCaseRowLetter =8
  • xlMDY =44
  • xlMetric =35
  • xlMinuteCode =23
  • xlMonthCode =20
  • xlMonthLeadingZero =41
  • xlMonthNameChars =30
  • xlNoncurrencyDigits =29
  • xlNonEnglishFunctions =34
  • xlRightBrace =13
  • xlRightBracket =11
  • xlRowSeparator =15
  • xlSecondCode =24
  • xlThousandsSeparator =4
  • xlTimeLeadingZero =45
  • xlTimeSeparator =18
  • xlUpperCaseColumnLetter =7
  • xlUpperCaseRowLetter =6
  • xlWeekdayNameChars =31
  • xlYearCode =19

XlApplyNamesOrder

  • xlColumnThenRow =2
  • xlRowThenColumn =1

XlArabicModes

  • xlArabicNone =0
  • xlArabicStrictAlefHamza =1
  • xlArabicStrictFinalYaa =2
  • xlArabicBothStrict =3

XlArrangeStyle

  • xlArrangeStyleCascade =7
  • xlArrangeStyleHorizontal =-4128
  • xlArrangeStyleTiled =1
  • xlArrangeStyleVertical =-4166

XlArrowHeadLength

  • xlArrowHeadLengthLong =3
  • xlArrowHeadLengthMedium =-4138
  • xlArrowHeadLengthShort =1

XlArrowHeadStyle

  • xlArrowHeadStyleClosed =3
  • xlArrowHeadStyleDoubleClosed =5
  • xlArrowHeadStyleDoubleOpen =4
  • xlArrowHeadStyleNone =-4142
  • xlArrowHeadStyleOpen =2

XlArrowHeadWidth

  • xlArrowHeadWidthMedium =-4138
  • xlArrowHeadWidthNarrow =1
  • xlArrowHeadWidthWide =3

XlAutoFillType

  • xlFillCopy =1
  • xlFillDays =5
  • xlFillDefault =0
  • xlFillFormats =3
  • xlFillMonths =7
  • xlFillSeries =2
  • xlFillValues =4
  • xlFillWeekdays =6
  • xlFillYears =8
  • xlGrowthTrend =10
  • xlLinearTrend =9

XlAutoFilterOperator

  • xlAnd =1
  • xlBottom10Items =4
  • xlBottom10Percent =6
  • xlOr =2
  • xlTop10Items =3
  • xlTop10Percent =5
  • xlFilterValues =7
  • xlFilterCellColor =8
  • xlFilterFontColor =9
  • xlFilterIcon =10
  • xlFilterDynamic =11
  • xlFilterNoFill =12
  • xlFilterAutomaticFontColor =13
  • xlFilterNoIcon =14

XlAxisCrosses

  • xlAxisCrossesAutomatic =-4105
  • xlAxisCrossesCustom =-4114
  • xlAxisCrossesMaximum =2
  • xlAxisCrossesMinimum =4

XlAxisGroup

  • xlPrimary =1
  • xlSecondary =2

XlAxisType

  • xlCategory =1
  • xlSeriesAxis =3
  • xlValue =2

XlBackground

  • xlBackgroundAutomatic =-4105
  • xlBackgroundOpaque =3
  • xlBackgroundTransparent =2

XlBarShape

  • xlBox =0
  • xlPyramidToPoint =1
  • xlPyramidToMax =2
  • xlCylinder =3
  • xlConeToPoint =4
  • xlConeToMax =5

XlBorderWeight

  • xlHairline =1
  • xlMedium =-4138
  • xlThick =4
  • xlThin =2

XlBordersIndex

  • xlInsideHorizontal =12
  • xlInsideVertical =11
  • xlDiagonalDown =5
  • xlDiagonalUp =6
  • xlEdgeBottom =9
  • xlEdgeLeft =7
  • xlEdgeRight =10
  • xlEdgeTop =8

XlBuiltInDialog

  • xlDialogOpen =1
  • xlDialogOpenLinks =2
  • xlDialogSaveAs =5
  • xlDialogFileDelete =6
  • xlDialogPageSetup =7
  • xlDialogPrint =8
  • xlDialogPrinterSetup =9
  • xlDialogArrangeAll =12
  • xlDialogWindowSize =13
  • xlDialogWindowMove =14
  • xlDialogRun =17
  • xlDialogSetPrintTitles =23
  • xlDialogFont =26
  • xlDialogDisplay =27
  • xlDialogProtectDocument =28
  • xlDialogCalculation =32
  • xlDialogExtract =35
  • xlDialogDataDelete =36
  • xlDialogSort =39
  • xlDialogDataSeries =40
  • xlDialogTable =41
  • xlDialogFormatNumber =42
  • xlDialogAlignment =43
  • xlDialogStyle =44
  • xlDialogBorder =45
  • xlDialogCellProtection =46
  • xlDialogColumnWidth =47
  • xlDialogClear =52
  • xlDialogPasteSpecial =53
  • xlDialogEditDelete =54
  • xlDialogInsert =55
  • xlDialogPasteNames =58
  • xlDialogDefineName =61
  • xlDialogCreateNames =62
  • xlDialogFormulaGoto =63
  • xlDialogFormulaFind =64
  • xlDialogGalleryArea =67
  • xlDialogGalleryBar =68
  • xlDialogGalleryColumn =69
  • xlDialogGalleryLine =70
  • xlDialogGalleryPie =71
  • xlDialogGalleryScatter =72
  • xlDialogCombination =73
  • xlDialogGridlines =76
  • xlDialogAxes =78
  • xlDialogAttachText =80
  • xlDialogPatterns =84
  • xlDialogMainChart =85
  • xlDialogOverlay =86
  • xlDialogScale =87
  • xlDialogFormatLegend =88
  • xlDialogFormatText =89
  • xlDialogParse =91
  • xlDialogUnhide =94
  • xlDialogWorkspace =95
  • xlDialogActivate =103
  • xlDialogCopyPicture =108
  • xlDialogDeleteName =110
  • xlDialogDeleteFormat =111
  • xlDialogNew =119
  • xlDialogRowHeight =127
  • xlDialogFormatMove =128
  • xlDialogFormatSize =129
  • xlDialogFormulaReplace =130
  • xlDialogSelectSpecial =132
  • xlDialogApplyNames =133
  • xlDialogReplaceFont =134
  • xlDialogSplit =137
  • xlDialogOutline =142
  • xlDialogSaveWorkbook =145
  • xlDialogCopyChart =147
  • xlDialogFormatFont =150
  • xlDialogNote =154
  • xlDialogSetUpdateStatus =159
  • xlDialogColorPalette =161
  • xlDialogChangeLink =166
  • xlDialogAppMove =170
  • xlDialogAppSize =171
  • xlDialogMainChartType =185
  • xlDialogOverlayChartType =186
  • xlDialogOpenMail =188
  • xlDialogSendMail =189
  • xlDialogStandardFont =190
  • xlDialogConsolidate =191
  • xlDialogSortSpecial =192
  • xlDialogGallery3dArea =193
  • xlDialogGallery3dColumn =194
  • xlDialogGallery3dLine =195
  • xlDialogGallery3dPie =196
  • xlDialogView3d =197
  • xlDialogGoalSeek =198
  • xlDialogWorkgroup =199
  • xlDialogFillGroup =200
  • xlDialogUpdateLink =201
  • xlDialogPromote =202
  • xlDialogDemote =203
  • xlDialogShowDetail =204
  • xlDialogObjectProperties =207
  • xlDialogSaveNewObject =208
  • xlDialogApplyStyle =212
  • xlDialogAssignToObject =213
  • xlDialogObjectProtection =214
  • xlDialogCreatePublisher =217
  • xlDialogSubscribeTo =218
  • xlDialogShowToolbar =220
  • xlDialogPrintPreview =222
  • xlDialogEditColor =223
  • xlDialogFormatMain =225
  • xlDialogFormatOverlay =226
  • xlDialogEditSeries =228
  • xlDialogDefineStyle =229
  • xlDialogGalleryRadar =249
  • xlDialogEditionOptions =251
  • xlDialogZoom =256
  • xlDialogInsertObject =259
  • xlDialogSize =261
  • xlDialogMove =262
  • xlDialogFormatAuto =269
  • xlDialogGallery3dBar =272
  • xlDialogGallery3dSurface =273
  • xlDialogCustomizeToolbar =276
  • xlDialogWorkbookAdd =281
  • xlDialogWorkbookMove =282
  • xlDialogWorkbookCopy =283
  • xlDialogWorkbookOptions =284
  • xlDialogSaveWorkspace =285
  • xlDialogChartWizard =288
  • xlDialogAssignToTool =293
  • xlDialogPlacement =300
  • xlDialogFillWorkgroup =301
  • xlDialogWorkbookNew =302
  • xlDialogScenarioCells =305
  • xlDialogScenarioAdd =307
  • xlDialogScenarioEdit =308
  • xlDialogScenarioSummary =311
  • xlDialogPivotTableWizard =312
  • xlDialogPivotFieldProperties =313
  • xlDialogOptionsCalculation =318
  • xlDialogOptionsEdit =319
  • xlDialogOptionsView =320
  • xlDialogAddinManager =321
  • xlDialogMenuEditor =322
  • xlDialogAttachToolbars =323
  • xlDialogOptionsChart =325
  • xlDialogVbaInsertFile =328
  • xlDialogVbaProcedureDefinition =330
  • xlDialogRoutingSlip =336
  • xlDialogMailLogon =339
  • xlDialogInsertPicture =342
  • xlDialogGalleryDoughnut =344
  • xlDialogChartTrend =350
  • xlDialogWorkbookInsert =354
  • xlDialogOptionsTransition =355
  • xlDialogOptionsGeneral =356
  • xlDialogFilterAdvanced =370
  • xlDialogMailNextLetter =378
  • xlDialogDataLabel =379
  • xlDialogInsertTitle =380
  • xlDialogFontProperties =381
  • xlDialogMacroOptions =382
  • xlDialogWorkbookUnhide =384
  • xlDialogWorkbookName =386
  • xlDialogGalleryCustom =388
  • xlDialogAddChartAutoformat =390
  • xlDialogChartAddData =392
  • xlDialogTabOrder =394
  • xlDialogSubtotalCreate =398
  • xlDialogWorkbookTabSplit =415
  • xlDialogWorkbookProtect =417
  • xlDialogScrollbarProperties =420
  • xlDialogPivotShowPages =421
  • xlDialogTextToColumns =422
  • xlDialogFormatCharttype =423
  • xlDialogPivotFieldGroup =433
  • xlDialogPivotFieldUngroup =434
  • xlDialogCheckboxProperties =435
  • xlDialogLabelProperties =436
  • xlDialogListboxProperties =437
  • xlDialogEditboxProperties =438
  • xlDialogOpenText =441
  • xlDialogPushbuttonProperties =445
  • xlDialogFilter =447
  • xlDialogFunctionWizard =450
  • xlDialogSaveCopyAs =456
  • xlDialogOptionsListsAdd =458
  • xlDialogSeriesAxes =460
  • xlDialogSeriesX =461
  • xlDialogSeriesY =462
  • xlDialogErrorbarX =463
  • xlDialogErrorbarY =464
  • xlDialogFormatChart =465
  • xlDialogSeriesOrder =466
  • xlDialogMailEditMailer =470
  • xlDialogStandardWidth =472
  • xlDialogScenarioMerge =473
  • xlDialogProperties =474
  • xlDialogSummaryInfo =474
  • xlDialogFindFile =475
  • xlDialogActiveCellFont =476
  • xlDialogVbaMakeAddin =478
  • xlDialogFileSharing =481
  • xlDialogAutoCorrect =485
  • xlDialogCustomViews =493
  • xlDialogInsertNameLabel =496
  • xlDialogSeriesShape =504
  • xlDialogChartOptionsDataLabels =505
  • xlDialogChartOptionsDataTable =506
  • xlDialogSetBackgroundPicture =509
  • xlDialogDataValidation =525
  • xlDialogChartType =526
  • xlDialogChartLocation =527
  • _xlDialogPhonetic =538
  • xlDialogChartSourceData =540
  • _xlDialogChartSourceData =541
  • xlDialogSeriesOptions =557
  • xlDialogPivotTableOptions =567
  • xlDialogPivotSolveOrder =568
  • xlDialogPivotCalculatedField =570
  • xlDialogPivotCalculatedItem =572
  • xlDialogConditionalFormatting =583
  • xlDialogInsertHyperlink =596
  • xlDialogProtectSharing =620
  • xlDialogOptionsME =647
  • xlDialogPublishAsWebPage =653
  • xlDialogPhonetic =656
  • xlDialogNewWebQuery =667
  • xlDialogImportTextFile =666
  • xlDialogExternalDataProperties =530
  • xlDialogWebOptionsGeneral =683
  • xlDialogWebOptionsFiles =684
  • xlDialogWebOptionsPictures =685
  • xlDialogWebOptionsEncoding =686
  • xlDialogWebOptionsFonts =687
  • xlDialogPivotClientServerSet =689
  • xlDialogPropertyFields =754
  • xlDialogSearch =731
  • xlDialogEvaluateFormula =709
  • xlDialogDataLabelMultiple =723
  • xlDialogChartOptionsDataLabelMultiple =724
  • xlDialogErrorChecking =732
  • xlDialogWebOptionsBrowsers =773
  • xlDialogCreateList =796
  • xlDialogPermission =832
  • xlDialogMyPermission =834
  • xlDialogDocumentInspector =862
  • xlDialogNameManager =977
  • xlDialogNewName =978

XlCVError

  • xlErrDiv0 =2007
  • xlErrNA =2042
  • xlErrName =2029
  • xlErrNull =2000
  • xlErrNum =2036
  • xlErrRef =2023
  • xlErrValue =2015

XlCalcFor

  • xlAllValues =0
  • xlRowGroups =1
  • xlColGroups =2

XlCalculatedMemberType

  • xlCalculatedMember =0
  • xlCalculatedSet =1

XlCalculation

  • xlCalculationAutomatic =-4105
  • xlCalculationManual =-4135
  • xlCalculationSemiautomatic =2

XlCalculationInterruptKey

  • xlNoKey =0
  • xlEscKey =1
  • xlAnyKey =2

XlCalculationState

  • xlDone =0
  • xlCalculating =1
  • xlPending =2

XlCategoryType

  • xlCategoryScale =2
  • xlTimeScale =3
  • xlAutomaticScale =-4105

XlCellInsertionMode

  • xlOverwriteCells =0
  • xlInsertDeleteCells =1
  • xlInsertEntireRows =2

XlCellType

  • xlCellTypeBlanks =4
  • xlCellTypeConstants =2
  • xlCellTypeFormulas =-4123
  • xlCellTypeLastCell =11
  • xlCellTypeComments =-4144
  • xlCellTypeVisible =12
  • xlCellTypeAllFormatConditions =-4172
  • xlCellTypeSameFormatConditions =-4173
  • xlCellTypeAllValidation =-4174
  • xlCellTypeSameValidation =-4175

XlChartElementPosition

  • xlChartElementPositionAutomatic =-4105
  • xlChartElementPositionCustom =-4114

XlChartGallery

  • xlBuiltIn =21
  • xlUserDefined =22
  • xlAnyGallery =23

XlChartItem

  • xlDataLabel =0
  • xlChartArea =2
  • xlSeries =3
  • xlChartTitle =4
  • xlWalls =5
  • xlCorners =6
  • xlDataTable =7
  • xlTrendline =8
  • xlErrorBars =9
  • xlXErrorBars =10
  • xlYErrorBars =11
  • xlLegendEntry =12
  • xlLegendKey =13
  • xlShape =14
  • xlMajorGridlines =15
  • xlMinorGridlines =16
  • xlAxisTitle =17
  • xlUpBars =18
  • xlPlotArea =19
  • xlDownBars =20
  • xlAxis =21
  • xlSeriesLines =22
  • xlFloor =23
  • xlLegend =24
  • xlHiLoLines =25
  • xlDropLines =26
  • xlRadarAxisLabels =27
  • xlNothing =28
  • xlLeaderLines =29
  • xlDisplayUnitLabel =30
  • xlPivotChartFieldButton =31
  • xlPivotChartDropZone =32

XlChartLocation

  • xlLocationAsNewSheet =1
  • xlLocationAsObject =2
  • xlLocationAutomatic =3

XlChartPicturePlacement

  • xlSides =1
  • xlEnd =2
  • xlEndSides =3
  • xlFront =4
  • xlFrontSides =5
  • xlFrontEnd =6
  • xlAllFaces =7

XlChartPictureType

  • xlStackScale =3
  • xlStack =2
  • xlStretch =1

XlChartSplitType

  • xlSplitByPosition =1
  • xlSplitByPercentValue =3
  • xlSplitByCustomSplit =4
  • xlSplitByValue =2

XlChartType

  • xlColumnClustered =51
  • xlColumnStacked =52
  • xlColumnStacked100 =53
  • xl3DColumnClustered =54
  • xl3DColumnStacked =55
  • xl3DColumnStacked100 =56
  • xlBarClustered =57
  • xlBarStacked =58
  • xlBarStacked100 =59
  • xl3DBarClustered =60
  • xl3DBarStacked =61
  • xl3DBarStacked100 =62
  • xlLineStacked =63
  • xlLineStacked100 =64
  • xlLineMarkers =65
  • xlLineMarkersStacked =66
  • xlLineMarkersStacked100 =67
  • xlPieOfPie =68
  • xlPieExploded =69
  • xl3DPieExploded =70
  • xlBarOfPie =71
  • xlXYScatterSmooth =72
  • xlXYScatterSmoothNoMarkers =73
  • xlXYScatterLines =74
  • xlXYScatterLinesNoMarkers =75
  • xlAreaStacked =76
  • xlAreaStacked100 =77
  • xl3DAreaStacked =78
  • xl3DAreaStacked100 =79
  • xlDoughnutExploded =80
  • xlRadarMarkers =81
  • xlRadarFilled =82
  • xlSurface =83
  • xlSurfaceWireframe =84
  • xlSurfaceTopView =85
  • xlSurfaceTopViewWireframe =86
  • xlBubble =15
  • xlBubble3DEffect =87
  • xlStockHLC =88
  • xlStockOHLC =89
  • xlStockVHLC =90
  • xlStockVOHLC =91
  • xlCylinderColClustered =92
  • xlCylinderColStacked =93
  • xlCylinderColStacked100 =94
  • xlCylinderBarClustered =95
  • xlCylinderBarStacked =96
  • xlCylinderBarStacked100 =97
  • xlCylinderCol =98
  • xlConeColClustered =99
  • xlConeColStacked =100
  • xlConeColStacked100 =101
  • xlConeBarClustered =102
  • xlConeBarStacked =103
  • xlConeBarStacked100 =104
  • xlConeCol =105
  • xlPyramidColClustered =106
  • xlPyramidColStacked =107
  • xlPyramidColStacked100 =108
  • xlPyramidBarClustered =109
  • xlPyramidBarStacked =110
  • xlPyramidBarStacked100 =111
  • xlPyramidCol =112
  • xl3DColumn =-4100
  • xlLine =4
  • xl3DLine =-4101
  • xl3DPie =-4102
  • xlPie =5
  • xlXYScatter =-4169
  • xl3DArea =-4098
  • xlArea =1
  • xlDoughnut =-4120
  • xlRadar =-4151

XlCheckInVersionType

  • xlCheckInMinorVersion =0
  • xlCheckInMajorVersion =1
  • xlCheckInOverwriteVersion =2

XlClipboardFormat

  • xlClipboardFormatBIFF12 =63
  • xlClipboardFormatBIFF =8
  • xlClipboardFormatBIFF2 =18
  • xlClipboardFormatBIFF3 =20
  • xlClipboardFormatBIFF4 =30
  • xlClipboardFormatBinary =15
  • xlClipboardFormatBitmap =9
  • xlClipboardFormatCGM =13
  • xlClipboardFormatCSV =5
  • xlClipboardFormatDIF =4
  • xlClipboardFormatDspText =12
  • xlClipboardFormatEmbeddedObject =21
  • xlClipboardFormatEmbedSource =22
  • xlClipboardFormatLink =11
  • xlClipboardFormatLinkSource =23
  • xlClipboardFormatLinkSourceDesc =32
  • xlClipboardFormatMovie =24
  • xlClipboardFormatNative =14
  • xlClipboardFormatObjectDesc =31
  • xlClipboardFormatObjectLink =19
  • xlClipboardFormatOwnerLink =17
  • xlClipboardFormatPICT =2
  • xlClipboardFormatPrintPICT =3
  • xlClipboardFormatRTF =7
  • xlClipboardFormatScreenPICT =29
  • xlClipboardFormatStandardFont =28
  • xlClipboardFormatStandardScale =27
  • xlClipboardFormatSYLK =6
  • xlClipboardFormatTable =16
  • xlClipboardFormatText =0
  • xlClipboardFormatToolFace =25
  • xlClipboardFormatToolFacePICT =26
  • xlClipboardFormatVALU =1
  • xlClipboardFormatWK1 =10

XlCmdType

  • xlCmdCube =1
  • xlCmdSql =2
  • xlCmdTable =3
  • xlCmdDefault =4
  • xlCmdList =5

XlColorIndex

  • xlColorIndexAutomatic =-4105
  • xlColorIndexNone =-4142

XlColumnDataType

  • xlGeneralFormat =1
  • xlTextFormat =2
  • xlMDYFormat =3
  • xlDMYFormat =4
  • xlYMDFormat =5
  • xlMYDFormat =6
  • xlDYMFormat =7
  • xlYDMFormat =8
  • xlSkipColumn =9
  • xlEMDFormat =10

XlCommandUnderlines

  • xlCommandUnderlinesAutomatic =-4105
  • xlCommandUnderlinesOff =-4146
  • xlCommandUnderlinesOn =1

XlCommentDisplayMode

  • xlNoIndicator =0
  • xlCommentIndicatorOnly =-1
  • xlCommentAndIndicator =1

XlConditionValueTypes

  • xlConditionValueNone =-1
  • xlConditionValueNumber =0
  • xlConditionValueLowestValue =1
  • xlConditionValueHighestValue =2
  • xlConditionValuePercent =3
  • xlConditionValueFormula =4
  • xlConditionValuePercentile =5

XlConnectionType

  • xlConnectionTypeOLEDB =1
  • xlConnectionTypeODBC =2
  • xlConnectionTypeXMLMAP =3
  • xlConnectionTypeTEXT =4
  • xlConnectionTypeWEB =5

XlConsolidationFunction

  • xlAverage =-4106
  • xlCount =-4112
  • xlCountNums =-4113
  • xlMax =-4136
  • xlMin =-4139
  • xlProduct =-4149
  • xlStDev =-4155
  • xlStDevP =-4156
  • xlSum =-4157
  • xlVar =-4164
  • xlVarP =-4165
  • xlUnknown =1000

XlContainsOperator

  • xlContains =0
  • xlDoesNotContain =1
  • xlBeginsWith =2
  • xlEndsWith =3

XlCopyPictureFormat

  • xlBitmap =2
  • xlPicture =-4147

XlCorruptLoad

  • xlNormalLoad =0
  • xlRepairFile =1
  • xlExtractData =2

XlCreator

  • xlCreatorCode =1480803660

XlCredentialsMethod

  • xlCredentialsMethodIntegrated =0
  • xlCredentialsMethodNone =1
  • xlCredentialsMethodStored =2

XlCubeFieldSubType

  • xlCubeHierarchy =1
  • xlCubeMeasure =2
  • xlCubeSet =3
  • xlCubeAttribute =4
  • xlCubeCalculatedMeasure =5
  • xlCubeKPIValue =6
  • xlCubeKPIGoal =7
  • xlCubeKPIStatus =8
  • xlCubeKPITrend =9
  • xlCubeKPIWeight =10

XlCubeFieldType

  • xlHierarchy =1
  • xlMeasure =2
  • xlSet =3

XlCutCopyMode

  • xlCopy =1
  • xlCut =2

XlDVAlertStyle

  • xlValidAlertStop =1
  • xlValidAlertWarning =2
  • xlValidAlertInformation =3

XlDVType

  • xlValidateInputOnly =0
  • xlValidateWholeNumber =1
  • xlValidateDecimal =2
  • xlValidateList =3
  • xlValidateDate =4
  • xlValidateTime =5
  • xlValidateTextLength =6
  • xlValidateCustom =7

XlDataLabelPosition

  • xlLabelPositionCenter =-4108
  • xlLabelPositionAbove =0
  • xlLabelPositionBelow =1
  • xlLabelPositionLeft =-4131
  • xlLabelPositionRight =-4152
  • xlLabelPositionOutsideEnd =2
  • xlLabelPositionInsideEnd =3
  • xlLabelPositionInsideBase =4
  • xlLabelPositionBestFit =5
  • xlLabelPositionMixed =6
  • xlLabelPositionCustom =7

XlDataLabelSeparator

  • xlDataLabelSeparatorDefault =1

XlDataLabelsType

  • xlDataLabelsShowNone =-4142
  • xlDataLabelsShowValue =2
  • xlDataLabelsShowPercent =3
  • xlDataLabelsShowLabel =4
  • xlDataLabelsShowLabelAndPercent =5
  • xlDataLabelsShowBubbleSizes =6

XlDataSeriesDate

  • xlDay =1
  • xlMonth =3
  • xlWeekday =2
  • xlYear =4

XlDataSeriesType

  • xlAutoFill =4
  • xlChronological =3
  • xlGrowth =2
  • xlDataSeriesLinear =-4132

XlDeleteShiftDirection

  • xlShiftToLeft =-4159
  • xlShiftUp =-4162

XlDirection

  • xlDown =-4121
  • xlToLeft =-4159
  • xlToRight =-4161
  • xlUp =-4162

XlDisplayBlanksAs

  • xlInterpolated =3
  • xlNotPlotted =1
  • xlZero =2

XlDisplayDrawingObjects

  • xlDisplayShapes =-4104
  • xlHide =3
  • xlPlaceholders =2

XlDisplayUnit

  • xlHundreds =-2
  • xlThousands =-3
  • xlTenThousands =-4
  • xlHundredThousands =-5
  • xlMillions =-6
  • xlTenMillions =-7
  • xlHundredMillions =-8
  • xlThousandMillions =-9
  • xlMillionMillions =-10

XlDupeUnique

  • xlUnique =0
  • xlDuplicate =1

XlDynamicFilterCriteria

  • xlFilterToday =1
  • xlFilterYesterday =2
  • xlFilterTomorrow =3
  • xlFilterThisWeek =4
  • xlFilterLastWeek =5
  • xlFilterNextWeek =6
  • xlFilterThisMonth =7
  • xlFilterLastMonth =8
  • xlFilterNextMonth =9
  • xlFilterThisQuarter =10
  • xlFilterLastQuarter =11
  • xlFilterNextQuarter =12
  • xlFilterThisYear =13
  • xlFilterLastYear =14
  • xlFilterNextYear =15
  • xlFilterYearToDate =16
  • xlFilterAllDatesInPeriodQuarter1 =17
  • xlFilterAllDatesInPeriodQuarter2 =18
  • xlFilterAllDatesInPeriodQuarter3 =19
  • xlFilterAllDatesInPeriodQuarter4 =20
  • xlFilterAllDatesInPeriodJanuary =21
  • xlFilterAllDatesInPeriodFebruray =22
  • xlFilterAllDatesInPeriodMarch =23
  • xlFilterAllDatesInPeriodApril =24
  • xlFilterAllDatesInPeriodMay =25
  • xlFilterAllDatesInPeriodJune =26
  • xlFilterAllDatesInPeriodJuly =27
  • xlFilterAllDatesInPeriodAugust =28
  • xlFilterAllDatesInPeriodSeptember =29
  • xlFilterAllDatesInPeriodOctober =30
  • xlFilterAllDatesInPeriodNovember =31
  • xlFilterAllDatesInPeriodDecember =32
  • xlFilterAboveAverage =33
  • xlFilterBelowAverage =34

XlEditionFormat

  • xlBIFF =2
  • xlPICT =1
  • xlRTF =4
  • xlVALU =8

XlEditionOptionsOption

  • xlAutomaticUpdate =4
  • xlCancel =1
  • xlChangeAttributes =6
  • xlManualUpdate =5
  • xlOpenSource =3
  • xlSelect =3
  • xlSendPublisher =2
  • xlUpdateSubscriber =2

XlEditionType

  • xlPublisher =1
  • xlSubscriber =2

XlEnableCancelKey

  • xlDisabled =0
  • xlErrorHandler =2
  • xlInterrupt =1

XlEnableSelection

  • xlNoRestrictions =0