-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnf_Excel.lss
2469 lines (2293 loc) · 69.2 KB
/
Enf_Excel.lss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Option Public
Option Base 1
'Option Declare SADLY THE EXCEL STUFF DOES NOT ALL WORK WITH THIS ON
Use "logging"
Dim xlsess As notessession
Dim xldb As notesdatabase
Dim xlerrorstub As String
Dim xlerrortext As String
'TWOLINE = 1 IS BIG BOX, 32 IS SMALL LINE. 2 and 3 are other valid values
Const NPB_TWOLINE = 1
Declare Function NEMProgressBegin Lib "nnotesws.dll" ( Byval wFlags As Integer ) As Long
Declare Sub NEMProgressEnd Lib "nnotesws.dll" ( Byval hwnd As Long )
Declare Sub NEMProgressSetBarPos Lib "nnotesws.dll" ( Byval hwnd As Long, Byval dwPos As Long)
Declare Sub NEMProgressSetBarRange Lib "nnotesws.dll" ( Byval hwnd As Long, Byval dwMax As Long )
Declare Sub NEMProgressSetText Lib "nnotesws.dll" ( Byval hwnd As Long, Byval pcszLine1 As String, Byval pcszLine2 As String )
Dim SortedArray As Variant
Const xl24HourClock=33
Const xl3DArea=-4098
Const xl3DAreaStacked=78
Const xl3DAreaStacked100=79
Const xl3DBar=-4099
Const xl3DBarClustered=60
Const xl3DBarStacked=61
Const xl3DBarStacked100=62
Const xl3DColumn=-4100
Const xl3DColumnClustered=54
Const xl3DColumnStacked=55
Const xl3DColumnStacked100=56
Const xl3DEffects1=13
Const xl3DEffects2=14
Const xl3DLine=-4101
Const xl3DPie=-4102
Const xl3DPieExploded=70
Const xl3DSurface=-4103
Const xl4DigitYears=43
Const xlA1=1
Const xlAbove=0
Const xlAbsolute=1
Const xlAbsRowRelColumn=2
Const xlAccounting1=4
Const xlAccounting2=5
Const xlAccounting3=6
Const xlAccounting4=17
Const xlAdd=2
Const xlAddIn=18
Const xlAll=-4104
Const xlAllAtOnce=2
Const xlAllChanges=2
Const xlAllExceptBorders=6
Const xlAllFaces=7
Const xlAlternateArraySeparator=16
Const xlAnd=1
Const xlAnyGallery=23
Const xlArea=1
Const xlAreaStacked=76
Const xlAreaStacked100=77
Const xlArrangeStyleCascade=7
Const xlArrangeStyleHorizontal=-4128
Const xlArrangeStyleTiled=1
Const xlArrangeStyleVertical=-4166
Const xlArrowHeadLengthLong=3
Const xlArrowHeadLengthMedium=-4138
Const xlArrowHeadLengthShort=1
Const xlArrowHeadStyleClosed=3
Const xlArrowHeadStyleDoubleClosed=5
Const xlArrowHeadStyleDoubleOpen=4
Const xlArrowHeadStyleNone=-4142
Const xlArrowHeadStyleOpen=2
Const xlArrowHeadWidthMedium=-4138
Const xlArrowHeadWidthNarrow=1
Const xlArrowHeadWidthWide=3
Const xlAscending=1
Const xlAutoActivate=3
Const xlAutoClose=2
Const xlAutoDeactivate=4
Const xlAutoFill=4
Const xlAutomatic=-4105
Const xlAutomaticScale=-4105
Const xlAutomaticUpdate=4
Const xlAutoOpen=1
Const xlAverage=-4106
Const xlAxis=21
Const xlAxisCrossesAutomatic=-4105
Const xlAxisCrossesCustom=-4114
Const xlAxisCrossesMaximum=2
Const xlAxisCrossesMinimum=4
Const xlAxisTitle=17
Const xlBackgroundAutomatic=-4105
Const xlBackgroundOpaque=3
Const xlBackgroundTransparent=2
Const xlBarClustered=57
Const xlBarOfPie=71
Const xlBarStacked=58
Const xlBarStacked100=59
Const xlBelow=1
Const xlBetween=1
Const xlBidi=-5000
Const xlBidiCalendar=3
Const xlBIFF=2
Const xlBitmap=2
Const xlBlanks=4
Const xlBMP=1
Const xlBoth=1
Const xlBottom=-4107
Const xlBottom10Items=4
Const xlBottom10Percent=6
Const xlBox=0
Const xlBubble=15
Const xlBubble3DEffect=87
Const xlBuiltIn=21
Const xlButton=15
Const xlButtonControl=0
Const xlByColumns=2
Const xlByRows=1
Const xlCalculationAutomatic=-4105
Const xlCalculationManual=-4135
Const xlCalculationSemiautomatic=2
Const xlCancel=1
Const xlCap=1
Const xlCascade=7
Const xlCategory=1
Const xlCategoryScale=2
Const xlCellTypeAllFormatConditions=-4172
Const xlCellTypeAllValidation=-4174
Const xlCellTypeBlanks=4
Const xlCellTypeComments=-4144
Const xlCellTypeConstants=2
Const xlCellTypeFormulas=-4123
Const xlCellTypeLastCell=11
Const xlCellTypeSameFormatConditions=-4173
Const xlCellTypeSameValidation=-4175
Const xlCellTypeVisible=12
Const xlCellValue=1
Const xlCenter=-4108
Const xlCenterAcrossSelection=7
Const xlCGM=7
Const xlChangeAttributes=6
Const xlChart=-4109
Const xlChart4=2
Const xlChartArea=2
Const xlChartAsWindow=5
Const xlChartInPlace=4
Const xlChartSeries=17
Const xlChartShort=6
Const xlChartTitle=4
Const xlChartTitles=18
Const xlCheckBox=1
Const xlChecker=9
Const xlChronological=3
Const xlCircle=8
Const xlClassic1=1
Const xlClassic2=2
Const xlClassic3=3
Const xlClipboard=3
Const xlClipboardFormatBIFF=8
Const xlClipboardFormatBIFF2=18
Const xlClipboardFormatBIFF3=20
Const xlClipboardFormatBIFF4=30
Const xlClipboardFormatBinary=15
Const xlClipboardFormatBitmap=9
Const xlClipboardFormatCGM=13
Const xlClipboardFormatCSV=5
Const xlClipboardFormatDIF=4
Const xlClipboardFormatDspText=12
Const xlClipboardFormatEmbeddedObject=21
Const xlClipboardFormatEmbedSource=22
Const xlClipboardFormatLink=11
Const xlClipboardFormatLinkSource=23
Const xlClipboardFormatLinkSourceDesc=32
Const xlClipboardFormatMovie=24
Const xlClipboardFormatNative=14
Const xlClipboardFormatObjectDesc=31
Const xlClipboardFormatObjectLink=19
Const xlClipboardFormatOwnerLink=17
Const xlClipboardFormatPICT=2
Const xlClipboardFormatPrintPICT=3
Const xlClipboardFormatRTF=7
Const xlClipboardFormatScreenPICT=29
Const xlClipboardFormatStandardFont=28
Const xlClipboardFormatStandardScale=27
Const xlClipboardFormatSYLK=6
Const xlClipboardFormatTable=16
Const xlClipboardFormatText=0
Const xlClipboardFormatToolFace=25
Const xlClipboardFormatToolFacePICT=26
Const xlClipboardFormatVALU=1
Const xlClipboardFormatWK1=10
Const xlClosed=3
Const xlCodePage=2
Const xlColor1=7
Const xlColor2=8
Const xlColor3=9
Const xlColorIndexAutomatic=-4105
Const xlColorIndexNone=-4142
Const Column=999
Const xlColumnClustered=51
Const xlColumnField=2
Const xlColumnHeader=-4110
Const xlColumnItem=5
Const xlColumnLabels=2
Const xlColumns=2
Const xlColumnSeparator=14
Const xlColumnStacked=52
Const xlColumnStacked100=53
Const xlColumnThenRow=2
Const xlCombination=-4111
Const xlCommand=2
Const xlCommandUnderlinesAutomatic=-4105
Const xlCommandUnderlinesOff=-4146
Const xlCommandUnderlinesOn=1
Const xlCommentAndIndicator=1
Const xlCommentIndicatorOnly=-1
Const xlComments=-4144
Const xlComplete=4
Const xlConeBarClustered=102
Const xlConeBarStacked=103
Const xlConeBarStacked100=104
Const xlConeCol=105
Const xlConeColClustered=99
Const xlConeColStacked=100
Const xlConeColStacked100=101
Const xlConeToMax=5
Const xlConeToPoint=4
Const xlConsolidation=3
Const xlConstant=1
Const xlConstants=2
Const xlContents=2
Const xlContext=-5002
Const xlContinuous=1
Const xlCopy=1
Const xlCorner=2
Const xlCorners=6
Const xlCount=-4112
Const xlCountNums=-4113
Const xlCountryCode=1
Const xlCountrySetting=2
Const xlCreatorCode=1480803660
Const xlCrissCross=16
Const xlCross=4
Const xlCSV=6
Const xlCSVMac=22
Const xlCSVMSDOS=24
Const xlCSVWindows=23
Const xlCurrencyBefore=37
Const xlCurrencyCode=25
Const xlCurrencyDigits=27
Const xlCurrencyLeadingZeros=40
Const xlCurrencyMinusSign=38
Const xlCurrencyNegative=28
Const xlCurrencySpaceBefore=36
Const xlCurrencyTrailingZeros=39
Const xlCurrentPlatformText=-4158
Const xlCustom=-4114
Const xlCut=2
Const xlCylinder=3
Const xlCylinderBarClustered=95
Const xlCylinderBarStacked=96
Const xlCylinderBarStacked100=97
Const xlCylinderCol=98
Const xlCylinderColClustered=92
Const xlCylinderColStacked=93
Const xlCylinderColStacked100=94
Const xlDash=-4115
Const xlDashDot=4
Const xlDashDotDot=5
Const xlDataAndLabel=0
Const xlDatabase=1
Const xlDataField=4
Const xlDataHeader=3
Const xlDataItem=7
Const xlDataLabel=0
Const xlDataLabelsShowBubbleSizes=6
Const xlDataLabelsShowLabel=4
Const xlDataLabelsShowLabelAndPercent=5
Const xlDataLabelsShowNone=-4142
Const xlDataLabelsShowPercent=3
Const xlDataLabelsShowValue=2
Const xlDataOnly=2
Const xlDataSeriesLinear=-4132
Const xlDataTable=7
Const xlDate=2
Const xlDateOrder=32
Const xlDateSeparator=17
Const xlDay=1
Const xlDayCode=21
Const xlDayLeadingZero=42
Const xlDays=0
Const xlDBF2=7
Const xlDBF3=8
Const xlDBF4=11
Const xlDebugCodePane=13
Const xlDecimalSeparator=3
Const xlDefault=-4143
Const xlDefaultAutoFormat=-1
Const xlDelimited=1
Const xlDescending=2
Const xlDesktop=9
Const xlDiagonalDown=5
Const xlDiagonalUp=6
Const xlDialogActivate=103
Const xlDialogActiveCellFont=476
Const xlDialogAddChartAutoformat=390
Const xlDialogAddinManager=321
Const xlDialogAlignment=43
Const xlDialogApplyNames=133
Const xlDialogApplyStyle=212
Const xlDialogAppMove=170
Const xlDialogAppSize=171
Const xlDialogArrangeAll=12
Const xlDialogAssignToObject=213
Const xlDialogAssignToTool=293
Const xlDialogAttachText=80
Const xlDialogAttachToolbars=323
Const xlDialogAutoCorrect=485
Const xlDialogAxes=78
Const xlDialogBorder=45
Const xlDialogCalculation=32
Const xlDialogCellProtection=46
Const xlDialogChangeLink=166
Const xlDialogChartAddData=392
Const xlDialogChartLocation=527
Const xlDialogChartOptionsDataLabels=505
Const xlDialogChartOptionsDataTable=506
Const xlDialogChartSourceData=541
Const xlDialogChartTrend=350
Const xlDialogChartType=526
Const xlDialogChartWizard=288
Const xlDialogCheckboxProperties=435
Const xlDialogClear=52
Const xlDialogColorPalette=161
Const xlDialogColumnWidth=47
Const xlDialogCombination=73
Const xlDialogConditionalFormatting=583
Const xlDialogConsolidate=191
Const xlDialogCopyChart=147
Const xlDialogCopyPicture=108
Const xlDialogCreateNames=62
Const xlDialogCreatePublisher=217
Const xlDialogCustomizeToolbar=276
Const xlDialogCustomViews=493
Const xlDialogDataDelete=36
Const xlDialogDataLabel=379
Const xlDialogDataSeries=40
Const xlDialogDataValidation=525
Const xlDialogDefineName=61
Const xlDialogDefineStyle=229
Const xlDialogDeleteFormat=111
Const xlDialogDeleteName=110
Const xlDialogDemote=203
Const xlDialogDisplay=27
Const xlDialogEditboxProperties=438
Const xlDialogEditColor=223
Const xlDialogEditDelete=54
Const xlDialogEditionOptions=251
Const xlDialogEditSeries=228
Const xlDialogErrorbarX=463
Const xlDialogErrorbarY=464
Const xlDialogExtract=35
Const xlDialogFileDelete=6
Const xlDialogFileSharing=481
Const xlDialogFillGroup=200
Const xlDialogFillWorkgroup=301
Const xlDialogFilter=447
Const xlDialogFilterAdvanced=370
Const xlDialogFindFile=475
Const xlDialogFont=26
Const xlDialogFontProperties=381
Const xlDialogFormatAuto=269
Const xlDialogFormatChart=465
Const xlDialogFormatCharttype=423
Const xlDialogFormatFont=150
Const xlDialogFormatLegend=88
Const xlDialogFormatMain=225
Const xlDialogFormatMove=128
Const xlDialogFormatNumber=42
Const xlDialogFormatOverlay=226
Const xlDialogFormatSize=129
Const xlDialogFormatText=89
Const xlDialogFormulaFind=64
Const xlDialogFormulaGoto=63
Const xlDialogFormulaReplace=130
Const xlDialogFunctionWizard=450
Const xlDialogGallery3dArea=193
Const xlDialogGallery3dBar=272
Const xlDialogGallery3dColumn=194
Const xlDialogGallery3dLine=195
Const xlDialogGallery3dPie=196
Const xlDialogGallery3dSurface=273
Const xlDialogGalleryArea=67
Const xlDialogGalleryBar=68
Const xlDialogGalleryColumn=69
Const xlDialogGalleryCustom=388
Const xlDialogGalleryDoughnut=344
Const xlDialogGalleryLine=70
Const xlDialogGalleryPie=71
Const xlDialogGalleryRadar=249
Const xlDialogGalleryScatter=72
Const xlDialogGoalSeek=198
Const xlDialogGridlines=76
Const xlDialogInsert=55
Const xlDialogInsertHyperlink=596
Const xlDialogInsertNameLabel=496
Const xlDialogInsertObject=259
Const xlDialogInsertPicture=342
Const xlDialogInsertTitle=380
Const xlDialogLabelProperties=436
Const xlDialogListboxProperties=437
Const xlDialogMacroOptions=382
Const xlDialogMailEditMailer=470
Const xlDialogMailLogon=339
Const xlDialogMailNextLetter=378
Const xlDialogMainChart=85
Const xlDialogMainChartType=185
Const xlDialogMenuEditor=322
Const xlDialogMove=262
Const xlDialogNew=119
Const xlDialogNote=154
Const xlDialogObjectProperties=207
Const xlDialogObjectProtection=214
Const xlDialogOpen=1
Const xlDialogOpenLinks=2
Const xlDialogOpenMail=188
Const xlDialogOpenText=441
Const xlDialogOptionsCalculation=318
Const xlDialogOptionsChart=325
Const xlDialogOptionsEdit=319
Const xlDialogOptionsGeneral=356
Const xlDialogOptionsListsAdd=458
Const xlDialogOptionsTransition=355
Const xlDialogOptionsView=320
Const xlDialogOutline=142
Const xlDialogOverlay=86
Const xlDialogOverlayChartType=186
Const xlDialogPageSetup=7
Const xlDialogParse=91
Const xlDialogPasteNames=58
Const xlDialogPasteSpecial=53
Const xlDialogPatterns=84
Const xlDialogPhonetic=538
Const xlDialogPivotCalculatedField=570
Const xlDialogPivotCalculatedItem=572
Const xlDialogPivotFieldGroup=433
Const xlDialogPivotFieldProperties=313
Const xlDialogPivotFieldUngroup=434
Const xlDialogPivotShowPages=421
Const xlDialogPivotSolveOrder=568
Const xlDialogPivotTableOptions=567
Const xlDialogPivotTableWizard=312
Const xlDialogPlacement=300
Const xlDialogPrint=8
Const xlDialogPrinterSetup=9
Const xlDialogPrintPreview=222
Const xlDialogPromote=202
Const xlDialogProperties=474
Const xlDialogProtectDocument=28
Const xlDialogProtectSharing=620
Const xlDialogPushbuttonProperties=445
Const xlDialogReplaceFont=134
Const xlDialogRoutingSlip=336
Const xlDialogRowHeight=127
Const xlDialogRun=17
Const xlDialogSaveAs=5
Const xlDialogSaveCopyAs=456
Const xlDialogSaveNewObject=208
Const xlDialogSaveWorkbook=145
Const xlDialogSaveWorkspace=285
Const xlDialogScale=87
Const xlDialogScenarioAdd=307
Const xlDialogScenarioCells=305
Const xlDialogScenarioEdit=308
Const xlDialogScenarioMerge=473
Const xlDialogScenarioSummary=311
Const xlDialogScrollbarProperties=420
Const xlDialogSelectSpecial=132
Const xlDialogSendMail=189
Const xlDialogSeriesAxes=460
Const xlDialogSeriesOptions=557
Const xlDialogSeriesOrder=466
Const xlDialogSeriesShape=504
Const xlDialogSeriesX=461
Const xlDialogSeriesY=462
Const xlDialogSetBackgroundPicture=509
Const xlDialogSetPrintTitles=23
Const xlDialogSetUpdateStatus=159
Const xlDialogSheet=-4116
Const xlDialogShowDetail=204
Const xlDialogShowToolbar=220
Const xlDialogSize=261
Const xlDialogSort=39
Const xlDialogSortSpecial=192
Const xlDialogSplit=137
Const xlDialogStandardFont=190
Const xlDialogStandardWidth=472
Const xlDialogStyle=44
Const xlDialogSubscribeTo=218
Const xlDialogSubtotalCreate=398
Const xlDialogSummaryInfo=474
Const xlDialogTable=41
Const xlDialogTabOrder=394
Const xlDialogTextToColumns=422
Const xlDialogUnhide=94
Const xlDialogUpdateLink=201
Const xlDialogVbaInsertFile=328
Const xlDialogVbaMakeAddin=478
Const xlDialogVbaProcedureDefinition=330
Const xlDialogView3d=197
Const xlDialogWindowMove=14
Const xlDialogWindowSize=13
Const xlDialogWorkbookAdd=281
Const xlDialogWorkbookCopy=283
Const xlDialogWorkbookInsert=354
Const xlDialogWorkbookMove=282
Const xlDialogWorkbookName=386
Const xlDialogWorkbookNew=302
Const xlDialogWorkbookOptions=284
Const xlDialogWorkbookProtect=417
Const xlDialogWorkbookTabSplit=415
Const xlDialogWorkbookUnhide=384
Const xlDialogWorkgroup=199
Const xlDialogWorkspace=95
Const xlDialogZoom=256
Const xlDiamond=2
Const xlDIF=9
Const xlDifferenceFrom=2
Const xlDirect=1
Const xlDisabled=0
Const XlDisplayShapes=-4104
Const xlDistributed=-4117
Const xlDivide=5
Const xlDoNotSaveChanges=2
Const xlDot=-4118
Const xlDouble=-4119
Const xlDoubleAccounting=5
Const xlDoubleClosed=5
Const xlDoubleOpen=4
Const xlDoubleQuote=1
Const xlDoughnut=-4120
Const xlDoughnutExploded=80
Const xlDown=-4121
Const xlDownBars=20
Const xlDownThenOver=1
Const xlDownward=-4170
Const xlDrawingObject=14
Const xlDropDown=2
Const xlDropLines=26
Const xlDRW=4
Const xlDXF=5
Const xlEdgeBottom=9
Const xlEdgeLeft=7
Const xlEdgeRight=10
Const xlEdgeTop=8
Const xlEditBox=3
Const xlEditionDate=2
Const xlEnd=2
Const xlEndSides=3
Const xlEntireChart=20
Const xlEPS=8
Const xlEqual=3
Const xlErrDiv0=2007
Const xlErrNA=2042
Const xlErrName=2029
Const xlErrNull=2000
Const xlErrNum=2036
Const xlErrorBarIncludeBoth=1
Const xlErrorBarIncludeMinusValues=3
Const xlErrorBarIncludeNone=-4142
Const xlErrorBarIncludePlusValues=2
Const xlErrorBars=9
Const xlErrorBarTypeCustom=-4114
Const xlErrorBarTypeFixedValue=1
Const xlErrorBarTypePercent=2
Const xlErrorBarTypeStDev=-4155
Const xlErrorBarTypeStError=4
Const xlErrorHandler=2
Const xlErrors=16
Const xlErrRef=2023
Const xlErrValue=2015
Const xlExcel2=16
Const xlExcel2FarEast=27
Const xlExcel3=29
Const xlExcel4=33
Const xlExcel4IntlMacroSheet=4
Const xlExcel4MacroSheet=3
Const xlExcel4Workbook=35
Const xlExcel5=39
Const xlExcel7=39
Const xlExcel9795=43
Const xlExcelLinks=1
Const xlExcelMenus=1
Const xlExclusive=3
Const xlExponential=5
Const xlExpression=2
Const xlExtended=3
Const xlExternal=2
Const xlFill=5
Const xlFillCopy=1
Const xlFillDays=5
Const xlFillDefault=0
Const xlFillFormats=3
Const xlFillMonths=7
Const xlFillSeries=2
Const xlFillValues=4
Const xlFillWeekdays=6
Const xlFillWithAll=-4104
Const xlFillWithContents=2
Const xlFillWithFormats=-4122
Const xlFillYears=8
Const xlFilterCopy=2
Const xlFilterInPlace=1
Const xlFirst=0
Const xlFitToPage=2
Const xlFixedValue=1
Const xlFixedWidth=2
Const xlFloating=5
Const xlFloor=23
Const xlFormats=-4122
Const xlFormula=5
Const xlFormulas=-4123
Const xlFreeFloating=3
Const xlFront=4
Const xlFrontEnd=6
Const xlFrontSides=5
Const xlFullPage=3
Const xlFunction=1
Const xlGeneral=1
Const xlGeneralFormatName=26
Const xlGray16=17
Const xlGray25=-4124
Const xlGray50=-4125
Const xlGray75=-4126
Const xlGray8=18
Const xlGreater=5
Const xlGreaterEqual=7
Const xlGregorian=2
Const xlGrid=15
Const xlGridline=22
Const xlGroupBox=4
Const xlGrowth=2
Const xlGrowthTrend=10
Const xlGuess=0
Const xlHairline=1
Const xlHAlignCenter=-4108
Const xlHAlignCenterAcrossSelection=7
Const xlHAlignDistributed=-4117
Const xlHAlignFill=5
Const xlHAlignGeneral=1
Const xlHAlignJustify=-4130
Const xlHAlignLeft=-4131
Const xlHAlignRight=-4152
Const xlHGL=6
Const xlHidden=0
Const xlHide=3
Const xlHigh=-4127
Const xlHiLoLines=25
Const xlHindiNumerals=3
Const xlHiragana=2
Const xlHorizontal=-4128
Const xlHourCode=22
Const xlIBeam=3
Const xlIcons=1
Const xlIMEModeAlpha=8
Const xlIMEModeAlphaFull=7
Const xlIMEModeDisable=3
Const xlIMEModeHangul=10
Const xlIMEModeHangulFull=9
Const xlIMEModeHiragana=4
Const xlIMEModeKatakana=5
Const xlIMEModeKatakanaHalf=6
Const xlIMEModeNoControl=0
Const xlIMEModeOff=2
Const xlIMEModeOn=1
Const xlImmediatePane=12
Const xlIndex=9
Const xlInfo=-4129
Const xlInsertDeleteCells=1
Const xlInsertEntireRows=2
Const xlInside=2
Const xlInsideHorizontal=12
Const xlInsideVertical=11
Const xlInteger=2
Const xlInterpolated=3
Const xlInterrupt=1
Const xlIntlAddIn=26
Const xlIntlMacro=25
Const xlJustify=-4130
Const xlKatakana=1
Const xlKatakanaHalf=0
Const xlLabel=5
Const xlLabelOnly=1
Const xlLabelPositionAbove=0
Const xlLabelPositionBelow=1
Const xlLabelPositionBestFit=5
Const xlLabelPositionCenter=-4108
Const xlLabelPositionCustom=7
Const xlLabelPositionInsideBase=4
Const xlLabelPositionInsideEnd=3
Const xlLabelPositionLeft=-4131
Const xlLabelPositionMixed=6
Const xlLabelPositionOutsideEnd=2
Const xlLabelPositionRight=-4152
Const xlLandscape=2
Const xlLast=1
Const xlLastCell=11
Const xlLatin=-5001
Const xlLeaderLines=29
Const xlLeft=-4131
Const xlLeftBrace=12
Const xlLeftBracket=10
Const xlLeftToRight=2
Const xlLegend=24
Const xlLegendEntry=12
Const xlLegendKey=13
Const xlLegendPositionBottom=-4107
Const xlLegendPositionCorner=2
Const xlLegendPositionLeft=-4131
Const xlLegendPositionRight=-4152
Const xlLegendPositionTop=-4160
Const xlLess=6
Const xlLessEqual=8
Const xlLightDown=13
Const xlLightHorizontal=11
Const xlLightUp=14
Const xlLightVertical=12
Const xlLine=4
Const xlLinear=-4132
Const xlLinearTrend=9
Const xlLineMarkers=65
Const xlLineMarkersStacked=66
Const xlLineMarkersStacked100=67
Const xlLineStacked=63
Const xlLineStacked100=64
Const xlLineStyleNone=-4142
Const xlLinkInfoOLELinks=2
Const xlLinkInfoPublishers=5
Const xlLinkInfoSubscribers=6
Const xlLinkTypeExcelLinks=1
Const xlLinkTypeOLELinks=2
Const xlList1=10
Const xlList2=11
Const xlList3=12
Const xlListBox=6
Const xlListSeparator=5
Const xlLocalFormat1=15
Const xlLocalFormat2=16
Const xlLocalSessionChanges=2
Const xlLocationAsNewSheet=1
Const xlLocationAsObject=2
Const xlLocationAutomatic=3
Const xlLogarithmic=-4133
Const xlLogical=4
Const xlLogicalCursor=1
Const xlLong=3
Const xlLotusHelp=2
Const xlLow=-4134
Const xlLowerCaseColumnLetter=9
Const xlLowerCaseRowLetter=8
Const xlLTR=-5003
Const xlMacintosh=1
Const xlMacrosheetCell=7
Const xlMajorGridlines=15
Const xlManual=-4135
Const xlManualUpdate=5
Const xlMAPI=1
Const xlMarkerStyleAutomatic=-4105
Const xlMarkerStyleCircle=8
Const xlMarkerStyleDash=-4115
Const xlMarkerStyleDiamond=2
Const xlMarkerStyleDot=-4118
Const xlMarkerStyleNone=-4142
Const xlMarkerStylePicture=-4147
Const xlMarkerStylePlus=9
Const xlMarkerStyleSquare=1
Const xlMarkerStyleStar=5
Const xlMarkerStyleTriangle=3
Const xlMarkerStyleX=-4168
Const xlMax=-4136
Const xlMaximized=-4137
Const xlMaximum=2
Const xlMDY=44
Const xlMedium=-4138
Const xlMetric=35
Const xlMicrosoftAccess=4
Const xlMicrosoftFoxPro=5
Const xlMicrosoftMail=3
Const xlMicrosoftPowerPoint=2
Const xlMicrosoftProject=6
Const xlMicrosoftSchedulePlus=7
Const xlMicrosoftWord=1
Const xlMin=-4139
Const xlMinimized=-4140
Const xlMinimum=4
Const xlMinorGridlines=16
Const xlMinusValues=3
Const xlMinuteCode=23
Const xlMixed=2
Const xlMixedLabels=3
Const xlModule=-4141
Const xlMonth=3
Const xlMonthCode=20
Const xlMonthLeadingZero=41
Const xlMonthNameChars=30
Const xlMonths=1
Const xlMove=2
Const xlMoveAndSize=1
Const xlMovingAvg=6
Const xlMSDOS=3
Const xlMultiply=4
Const xlNarrow=1
Const xlNext=1
Const xlNextToAxis=4
Const xlNo=2
Const xlNoAdditionalCalculation=-4143
Const xlNoButton=0
Const xlNoButtonChanges=1
Const xlNoCap=2
Const xlNoChange=1
Const xlNoChanges=4
Const xlNoConversion=3
Const xlNoDockingChanges=3
Const xlNoDocuments=3
Const xlNoIndicator=0
Const xlNoLabels=-4142
Const xlNoMailSystem=0
Const xlNoncurrencyDigits=29
Const xlNone=-4142
Const xlNonEnglishFunctions=34
Const xlNoRestrictions=0
Const xlNormal=-4143
Const xlNormalView=1
Const xlNorthwestArrow=1
Const xlNoSelection=-4142
Const xlNoShapeChanges=2
Const xlNotBetween=2
Const xlNotEqual=4
Const xlNotes=-4144
Const xlNothing=28
Const xlNotPlotted=1
Const xlNotXLM=3
Const xlNotYetReviewed=3
Const xlNotYetRouted=0
Const xlNumber=-4145
Const xlNumbers=1
Const xlOff=-4146
Const xlOLEControl=2
Const xlOLEEmbed=1
Const xlOLELink=0
Const xlOLELinks=2
Const xlOn=1
Const xlOneAfterAnother=1
Const xlOpaque=3
Const xlOpen=2
Const xlOpenSource=3
Const xlOptionButton=7
Const xlOr=2
Const xlOrigin=3
Const xlOtherSessionChanges=3
Const xlOutside=3
Const xlOverThenDown=2
Const xlOverwriteCells=0
Const xlPageBreakAutomatic=-4105
Const xlPageBreakFull=1
Const xlPageBreakManual=-4135
Const xlPageBreakPartial=2
Const xlPageBreakPreview=2
Const xlPageField=3
Const xlPageHeader=2
Const xlPageItem=6
Const xlPaper10x14=16
Const xlPaper11x17=17
Const xlPaperA3=8
Const xlPaperA4=9
Const xlPaperA4Small=10
Const xlPaperA5=11
Const xlPaperB4=12
Const xlPaperB5=13
Const xlPaperCsheet=24
Const xlPaperDsheet=25
Const xlPaperEnvelope10=20
Const xlPaperEnvelope11=21
Const xlPaperEnvelope12=22
Const xlPaperEnvelope14=23
Const xlPaperEnvelope9=19
Const xlPaperEnvelopeB4=33
Const xlPaperEnvelopeB5=34
Const xlPaperEnvelopeB6=35
Const xlPaperEnvelopeC3=29
Const xlPaperEnvelopeC4=30
Const xlPaperEnvelopeC5=28
Const xlPaperEnvelopeC6=31
Const xlPaperEnvelopeC65=32
Const xlPaperEnvelopeDL=27
Const xlPaperEnvelopeItaly=36
Const xlPaperEnvelopeMonarch=37
Const xlPaperEnvelopePersonal=38
Const xlPaperEsheet=26
Const xlPaperExecutive=7
Const xlPaperFanfoldLegalGerman=41
Const xlPaperFanfoldStdGerman=40
Const xlPaperFanfoldUS=39
Const xlPaperFolio=14
Const xlPaperLedger=4
Const xlPaperLegal=5
Const xlPaperLetter=1
Const xlPaperLetterSmall=2
Const xlPaperNote=18
Const xlPaperQuarto=15
Const xlPaperStatement=6
Const xlPaperTabloid=3
Const xlPaperUser=256
Const xlParamTypeBigInt=-5
Const xlParamTypeBinary=-2
Const xlParamTypeBit=-7
Const xlParamTypeChar=1
Const xlParamTypeDate=9
Const xlParamTypeDecimal=3
Const xlParamTypeDouble=8
Const xlParamTypeFloat=6
Const xlParamTypeInteger=4
Const xlParamTypeLongVarBinary=-4
Const xlParamTypeLongVarChar=-1
Const xlParamTypeNumeric=2
Const xlParamTypeReal=7
Const xlParamTypeSmallInt=5
Const xlParamTypeTime=10
Const xlParamTypeTimestamp=11
Const xlParamTypeTinyInt=-6
Const xlParamTypeUnknown=0
Const xlParamTypeVarBinary=-3
Const xlParamTypeVarChar=12
Const xlPart=2
Const xlPartial=3
Const xlPasteAll=-4104
Const xlPasteAllExceptBorders=6
Const xlPasteComments=-4144
Const xlPasteFormats=-4122
Const xlPasteFormulas=-4123
Const xlPasteSpecialOperationAdd=2
Const xlPasteSpecialOperationDivide=5
Const xlPasteSpecialOperationMultiply=4
Const xlPasteSpecialOperationNone=-4142
Const xlPasteSpecialOperationSubtract=3
Const xlPasteValues=-4163
Const xlPatternAutomatic=-4105
Const xlPatternChecker=9
Const xlPatternCrissCross=16
Const xlPatternDown=-4121
Const xlPatternGray16=17
Const xlPatternGray25=-4124
Const xlPatternGray50=-4125
Const xlPatternGray75=-4126
Const xlPatternGray8=18
Const xlPatternGrid=15
Const xlPatternHorizontal=-4128
Const xlPatternLightDown=13
Const xlPatternLightHorizontal=11
Const xlPatternLightUp=14
Const xlPatternLightVertical=12
Const xlPatternNone=-4142
Const xlPatternSemiGray75=10
Const xlPatternSolid=1
Const xlPatternUp=-4162
Const xlPatternVertical=-4166
Const xlPCT=13
Const xlPCX=10
Const xlPercent=2
Const xlPercentDifferenceFrom=4
Const xlPercentOf=3
Const xlPercentOfColumn=7
Const xlPercentOfRow=6
Const xlPercentOfTotal=8
Const xlPhoneticAlignCenter=2
Const xlPhoneticAlignDistributed=3
Const xlPhoneticAlignLeft=1
Const xlPhoneticAlignNoControl=0
Const xlPIC=11
Const xlPICT=1
Const xlPicture=-4147
Const xlPie=5
Const xlPieExploded=69
Const xlPieOfPie=68
Const xlPinYin=1
Const xlPivotTable=-4148
Const xlPlaceholders=2
Const xlPlotArea=19
Const xlPLT=12
Const xlPlus=9
Const xlPlusValues=2
Const xlPolynomial=3
Const xlPortrait=1
Const xlPower=4
Const xlPowerTalk=2
Const xlPrevious=2
Const xlPrimary=1
Const xlPrimaryButton=1
Const xlPrinter=2
Const xlPrintInPlace=16
Const xlPrintNoComments=-4142
Const xlPrintSheetEnd=1