D_yyyymmdd.xls files, 545
daily reports , 545-46, 550-53
DailyRandomnumbers procedure, 548
DailyReport worksheet, 547, 550
data. See also external data
importing without altering, 638
inserting, 214, 591
querying, 625
updating, 630-31
data analysis, 687-729
grouping data (subtotals), 688-91
internal management (PivotCache), 720-27
macros for, 44
overview, 687
pivot tables, 692-710
construction and reconstruction of, 716-20
example, 692-96
for external data, 703-7
generating and deleting, 711-15
layout options, 697-703
options for, 708-9
overview, 692
pivot charts , 709-10
syntax summary, 728-29
data fields, 96, 657-59
defining relations between, 634
what they are, 571
working with, 363, 364-65
data formatting options, 639
data management, 569-618. See also databases
balance sheet example, 602-18
components of application, 607-8
editing preexisting invoice, 616-18
event procedures, 613-14
initializing Invoice form, 612-13
opening Excel file for monthly reports, 610-11
overview, 602
printing Invoice form, 614-15
program code, 608
removing keyboard focus from listboxes, 613
running program, 603-6
saving Data from Invoice form in monthly report, 615-16
Workbook Open procedure, 609-10
consolidating tables, 599-602
data processing in VBA Code, 588-94
displaying Database form, 591
elementary database management, 588-89
filtering form, 590
form letter in Microsoft Word (example), 591-94
inserting, editing, and deleting data, 591
overview, 588
searching for data, 589-90
sorting data, 590
syntax summary, 594-95
database worksheet functions, 595-98
Excel vs. database systems, 572-75
filtering data, 582-88
advanced filters, 585-87, 585-88
autofilters, 583-85
input, alteration, and deletion of Data with Database Form, 579-80
overview, 569
sorting data, 581-82
tracking down data, 582-83
data presentation with graphs, 42
data records
adding, 661
creating a list with rec.Open sql, conn, 654
deleting, 661
editing, 660-61
navigation in, 659
searching and locally sorting, 660
what they are, 571
data source
ODBC, 652-53
and QueryType property, 640
selecting, 627-28
Data Source parameter, 647, 651, 652
data transfer via clipboard, 228-31
data types, 87-89
custom, 96
links between differing, 90
DataConsolidate function, 548, 599, 602
DataConvert to MS Access command, 643
DataFilterAdvanced Filter command, 585, 586, 587
DataFilterAutofilter command, 19
DataFilterAutoFilter command, 583
DataFilterShow all command, 21
DataFilterShow All command, 584, 585
DataGet External DataData Range Properties command, 638
DataGet External DataEdit Query command, 631
DataGet External DataImport Text File command, 289, 292
DataGet External DataNew Database Query command, 52, 627
DataGet External Data command, 626
Data Group and Outline command, 691, 701
DataPivotTable and PivotChart Report command, 693, 710
DataRefreash Data command, 692
DataRefresh Data command, 630
Data Sort command, 19, 21, 581, 699
DataSubtotals command, 688
DataValidation command, 28-29, 57, 674
Database form
displaying, 591
inputting, altering, and deleting data with, 579-80
database worksheet functions, 595-98
databases. See also literature database; Northwind database; relational databases; specific types of databases
commands, standardized language for, 636-37
construction of, 674-75
creating in Excel, 576-78
dialog for data records, 391
difference from worksheet calculational programs, 572-73
vs. Excel, 572-75
exporting to, 643
extracting data from, 52
importing external data from, 627-39
reading questionnaires into, 675-76
sharing data among several of, 620-22
survey, 679-83
templates linked to deleting linkage, 508
format of, 505-7
terminology related to, 571-72
transferring data into, 676-78
what they are, 570-71
DataBodyRange property, 716, 728
DataFields() method, 717, 728
DataLabelRange property, 716, 728
DataObject object, 230-31, 820
DataRange property, 717, 729
DataTemplate worksheet, 547
date, setting with spin button, 455
Date variables , 88, 95, 249
DATE worksheet function, 253, 266
DateCreated property, 272, 302
DateLastAccessed property, 272, 302
DateLastChanged property, 302
DateLastModified property, 272
dates and times, 246-66
application and programming techniques, 254-57
calendar generation, 262-65
errors, 249
holidays, 257-65
internal representation of, 248-49
overview, 246
in program code, 248
syntax summary, 265-66
VBA functions, 250-53
worksheet functions, 253-54
year 2000, 246-47
DateSerial function, 248, 250, 265
DateValue function, 250, 265
DATEVALUE worksheet function, 253, 266
Day function, 250, 253, 265, 266
DAYS360 worksheet function, 253, 266
DB_Functions.xls file, 597
DB_Share.xls file, 602, 603, 607
dbsurvey.mdb database, 674, 675, 679
DCOUNT function, 596, 598
DDE (dynamic data exchange), 788
Deactivate event, 145, 146, 157, 158, 436
deactivating
Ask Again Later button, 37
chart objects, 541
code, 79
OK button, 37
Debug object, 76
methods and properties, 820
Print method, 376, 386, 820
Run To method, 376
Set Next method, 377
Step Into method, 376
Step Out method, 376
Step Over method, 376
Toggle Breakpoint method, 377
debugging, 7, 371-86, 372-73
debugging aids, 372-79
controlled program execution, 376-79
reaction to errors, 373-76
syntax control, 372-73
and error-tolerant behavior of programs, 380-85, 385-86
overview, 371
syntax summary, 386
Debug.Print instruction, 81, 86, 240
DecimalSeparator parameter, 291
Default Style setting, 461
Default to Full Module View option, 73
DefaultDir attribute, 727
DefaultWebOptions object, 331, 744, 821
DefinedSize field property, 668
defining new tools, 12-13
definition operators, 178
Delete method, 62, 124, 193-94, 220, 224, 274, 302, 535, 661, 714
DeleteTextFile method, 277-78
deleting
charts, 541-42
columns , 632
data, 214, 579-80
fields, 93-94
files, 274
folders, 274
new toolbars , 14
pivot tables, 711-15
sheets, 224
desktop database systems, 571
Destination parameters, 63
development environment, 67-84
code input in modules, 76-80
components of, 69-76
conditional compilation, 75
editor options, 73
general options, 74
object browser, 72-73
overview, 69-70
project explorer, 71
project properties, 75
properties window, 71-72
in Excel 97, 55
executing macros, 80-82
keyboard shortcuts, 83-84
overview, 67
recording macros, 82-83
VBA components, 68-69
DiagramNode object, 565, 566, 821
DiagramNodeChildren object, 565, 821
dialog management, 556-58
dialogs
database form, 391
in Excel 2000, 53
positioning, 394-95
predefined
for file selection, 390-91
passing parameters to, 388-89
simulating keyboard input in, 389-90
standard Excel, 388-93
warning messages, 392
Dialogs(xlDialogFormulaFind).Show, 23
Dictionary object, 166, 822
Dim command, 86, 88, 89, 92, 109
Dim field1(5), field2(10, 10), 96
Dimfield(-3 through 3) field, 96
[Direct]Dependents method, 191
[Direct]Precedents method, 191
Display All Data button, 23
Display All Data macro, 21
DisplayAlerts property, 360, 368, 392
DisplayFullScreen property, 124
DisplayGridlines property, 218
DisplayHeadings property, 218
displaying Database form, 591
DisplayOutline property, 691
DisplayStatusBar property, 358-59, 368
DisplayUnitLabel object, 536, 539, 822
DisplayUnitXxx properties, 52
DLL (dynamic link libraries)
GDI library, 755
Kernel library, 755
limitations, 755
overview, 754-55
User library, 755
DLL functions
add-ins compiled to, 736
calling, 758
and character strings, 757-58
controlled via ActiveX, 761
declaring, 755-56
example, 758-59
overview, 754-55
parameter list, 757-58
Document superclass, 169, 170, 171
documentation, on-line, 367
DocumentProperties object, 823
DocumentProperty object, 823
Double variables, 88, 95, 99, 116, 282
drawing objects ( shapes ), 560-64
Drawing toolbar, menu of, 542
Drive object, 269-70, 823
DriveExists method, 275, 301
drives
changing, 271
properties of, 269-70, 302
DriveType property, 269, 302
dynamic code changing, 61
dynamic link libraries. See DLL (dynamic link libraries)