Listing Some Issues For Access

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1431

Contents

Office Products Troubleshooting


Access
"Ambiguous name detected" error
"Enter Parameter Value" dialog box appears
"File already in use" error
"Linked table connection failed" when using Azure AD
"No current record" error
.LDB files
0x80004005 Microsoft Jet Database Engine cannot open the file
Access cache formats for SharePoint
Access crashes after you install Office 2010 SP1
Access database engine cannot find input table
Access error “Your network access was interrupted” when using a mapped drive
Access freezes when opening a linked table
ADODB code errors with adBiglnt data
Automate the process of selecting printer for a report
Build a dynamic query with values from a search form
Cannot update. Database or object is read-only
Can't add new records programmatically
Can't add or delete records with ADO methods
Can't change linked Excel tables
Can't enter a large amount of text in Memo field with an index
Can't export fields with data type Single or Double
Can't group on fields
Can't import attribute-centric XML
Can't open a previous created database
Can't open any wizard
Can't open databases compiled as MDE, ACCDE or ADE files
Can't open or make a reference to a linked table
Can't perform an operation on a table
Can't process transactions in a multi-user environment
Can't publish or export to SharePoint
Can't save a table after updating a field
Can't update or delete data in a linked table
Can't use CDec() function in Access query
Can't use ODBC driver or OLEDB provider
Change dates by using functions and operators
Change the connection of a project programmatically
Connection error in database
Convert data values of Text data type to proper case format
Could not deploy package when deploying DACPAC files
Count occurrences of Yes or No in a field with Yes/No data type
Crashes after install security update MS16-004
Crashes when updating linked SharePoint list
Create DSN-less connection to SQL Server for linked tables
Create new columns programmatically
Create query to evaluate complex criteria
Create SQL pass-through query with ADO
Damaged data on the Clipboard
Database begins to bloat after you use DAO
Database in an unexpected state
Database normalization basics
Database requires a newer version of Access
Database user-defined function isn't displayed
Decimal value is rounded up or down to integer value
Define relationships between tables
Determine who is logged on to a database
Determine who opened a database
Display images using custom function
Enforce or disable startup options in a database
Error 2950 when running a macro
Error loading DLL
Error running query with UniqueValues property
Error running wizards
Error using special characters
Error when you work in Access table linked to a list
Errors during importing/exporting to Excel
Exclusive lock required for saving changes
Extra Access report page prints
Features incompatible with current Access version
File association errors when opening databases
Find a record by using ADO and Jet OLE DB provider
Floating-point calculations
Force a new line in a MsgBox message
Functions return a wrong week number
Functions to calculate age in months and in years
Hide combo box drop-down arrow
How Table Analyzer Wizard works
How to create a running totals query
ID is increment when adding a new field
Incorrect FirstDay property value
Incorrect registry key for current version of Access
Introduction to lock files (.laccdb & .ldb)
Issue when loading an Access web app
Issues when you retrieve SharePoint list data
Jet compact utility is available in download center
Linked Excel data is truncated
Linked table to a SharePoint list returns
Linked table to SQL Server database returns
List Access reserved words
Memory leak when Access connects to database files
Missing or broken reference
Move to a specific record from Combo Box selection
No license to start Access
Not a valid Teradata SQL token when running outer join queries
ODBC Data Source Administrator crashes when adding a system DSN
OLE DB Provider for Jet and ODBC driver
Optimize Access when using ODBC data sources
Populate text boxes with multicolumn Combo Box selections
Prompt users to save changes
Prompted for username and password
Query doesn't return any data
Query fails because of double-byte arabic number
Query must have at least one destination field
Query to filter unique data
Register or unregister ActiveX controls
Reset an AutoNumber field value
Reset page number on group level in a report
Resolve database reference issues
Resolve references in VBA
Runtime error 2147319779 (8002801d) library not registered
Scroll records with mouse wheel
Security Update impairs Access Database
Shut down a custom Access application remotely
Split a database manually
SQL Server Native Client drivers used by Access
Store items from multiple selection list box as comma-delimited string
Store, calculate, and compare Date/Time data
Support diagnostic
Switchboard Manager doesn't appear
Synchronize two combo boxes
Troubleshooting corruption in database
Troubleshoot errors updating queries or forms
Unable to connect to FoxPro databases
Unable to create an MDE, ACCDE, or ADE database
Unable to save multi-table view record
Use Attributes property of a TableDef object
Use Common Dialog API
Use exclusive lock to save design changes
Use query by form (QBF) technique
Use SetOption to disable warning messages
Use SQLConfigDataSource to create a system DSN
Use the Workgroup Administrator utility
Activation
Can't activate Office on a new computer
Can't verify the license for this product
Office activation process issues
Issue when activating Microsoft 365 Apps for enterprise
Issue when activating Office from Office 365
Issue with changing Office 2010 product key
We can't sign you into your company portal
Error Messages
"Missing file" error with a web page file
"This file can’t be previewed" error
"0x80004005: General Error Unable to Open Registry Key"
0x80041015 when starting an Office application
Another account is already signed in
Apps for Office don't start
Background task activation is spurious
Can't create user name that contains special characters
Can't install 64-bit version of Office with Click-to-Run
Can't locate proxy server when clicking hyperlink
Can't open a file from UNC share
Can't open Click-to-run version of Office on terminal server
Can't open Excel, Word or PowerPoint file
Can't open this add-in from localhost when loading an add-in
Can't start an Office Starter program
Can't uninstall Office
Error 25090 with an Office application
Error when edit an equation in Office
Error when you install Office 2013
Error when you install VS2010 Toos for Office Runtime
Error when you open a presentation
Excel cannot complete this task
Files necessary to run the Office Customization Tool were not found
Incorrect function with saving to a CD-RW or DVD/CD-RW drive
Installing Office 2010 from Office 365 Subscription fails
Invalid product key or license mismatch
Issue when launching Office in Microsoft Store app
Issue when Office 365 activates Skype for Business
Issue when opening a file with a long folder name
Issue with starting Office applications
Issue with updating a data connection or change PivotTable fields
Mobile viewing PDF files with Office Web Apps
Office 2010 installation doesn't finish
Office has detected a problem with this file
Office file previews in Windows Explorer may not show after switching from 64-bit
Office to 32-bit Office
Repair process of click-to-run app
"Run-time Error 13: Type Mismatch"
Selected a single-byte font to replace a double-byte font with Japanese
The document caused a serious error the last time it was opened
The password you supplied is not correct
View error signatures for Office
Excel
"Center Across Columns" does not appear on the toolbar
"Margins do not fit page size" error with print
"Total" row is not shown in waterfall charts
.SpecialCells(xlCellTypeBlanks) VBA function doesn't work
A file is updated without user interaction
A serious error the last time it was opened
Access data connections are slow to refresh
Algorithm is used by the XIRR() function
An active process continues to run
Apply permissions to separate ranges
AutoComplete may not work
AutoRecover functions in Excel
Blank pages are unexpectedly printed
Border missing when pasting table in email for Mac
Calculate ages before 1/1/1900
Calculate interpolation step value
Cannot use object linking and embedding
Can't add refedit control to VBA userform
Can't create a PivotTable in Excel 2013
Can't export to Excel from SharePoint Online
Can't open .xls files
Can't open a workbook saved in Excel version 1805
Can't open IRM protected workbook
Can't paste any attributes into a workbook in another instance
Can't remove error tracing arrow
Can't resize the Chart Area of a chart
Can't scroll to view other areas
Can't use external references with data validation
Category labels are missing or too small to read
Cell content is displayed as
Cell shading continually darkens
Change formula from absolute to relative or mixed references
Change the Software License Registration Information for Mac
CHIINV statistical functions
Clean up workbooks with less memory
Columns and rows are labeled numerically
COM add-ins are not displayed
Command bars of add-ins aren't displayed or removed
Command can't be used on multiple selections
Conditional formatting is set incorrectly with VBA
Connection to ODBC driver fails in PowerPivot
Convert degrees/minutes/seconds angles
Convert Excel column numbers
Crashing issues with Excel
Create a conditional format to hide errors
Create a dynamic defined range
Create a formula to correctly evaluate blank cells
Create a monthly calendar
Create a sequential numbered list
Create and user two-input data tables
Create application-level event handlers
Custom function may not calculate expected value
Data collected by Excel Baseline Diagnostic
Date format is incorrect when converting a CSV text file with macros
Delete cells with a "For Each...Next" loop
Delete every other row on a worksheet
Determine the current mode of calculation
Determine whether a year is a leap year
Difference between STDEVPA and STDEVP functions
Differences between 1900 and 1904 date system
Digital signatures and code signing
Display more digits in trendline equation coefficients
Dsum and Dcount functions not working
Embedded macros are blocked from running
Endlessly loop calculating cells when inserting several subtotals
Error when sending commands in Excel
Error when you copy formulas over large area
Error when you import data to a workbook
Error when you save a workbook in OneDrive
Excel 2013 crashes when you scroll down
Excel 2013 or Word 2013 crashes on close
Excel 2016 for Mac crashes
Excel crashes when moving Excel sheet tab
Excel crashes when working on multiple workbooks
Excel crashing issues are fixed in recent updates
Excel doesn't recognize data as Date type data
Excel doesn't shut down after calling Quit method
Excel hangs, freezes or stops working
Excel incorrectly assumes 1900 is a leap year
Excel opening blank
Excel stops working after KB3118373 is installed
Excel takes long time to insert or delete rows
Export a text file with both comma and quote delimiters
F4 keyboard shortcut doesn't work in Excel
FALSE result with the ISBLANK() function
First sheet name displays different language
Floating-point arithmetic gives inaccurate results
Force Excel to open in a new instance by default
Format Cells settings
Formatted text is limited to 240 characters per line
Formula errors when list separater isn't set
Formulas to count text occurrences in Excel
Gridlines are not printed
GROWTH statistical functions
Hide sheets and use xlVeryHidden constant in a macro
How column widths are determined
How Excel works with two-digit year numbers
How to obtain the latest Excel Viewer
Hyperlink to mht file fails to load
Hyperlinks stop working when saving as a PDF
Incorrect icon shows when inserting an object
Inquire COM add-in options don't respond
INTERCEPT statistical functions
Invalid signature error in Excel workbooks
Issue when saving Excel workbooks
Issue when setting the Fit to option
Issue when sorting a range that has merged cells
Issue when starting Excel for Mac
Issue when updating external links
Issue with using different print quality for sheets
Large Address Aware capability change
Legacy UML features are missing
Limitations for working with arrays
Link a Visio drawing to a specific region
LOGEST statistical functions
Long numbers appear incorrectly in Excel
Loop through a list of data by using macros
Macro to extract data from a chart
Macros run slowly
Make Paste Options button disappear
Manage multiple windows
Memory usage in the 32-bit edition of Excel
Minimize the size of an XML Spreadsheet file
Misleading labels in the output of Analysis ToolPak t-Test tools
Network Mapped Drive hyperlinks resolve as UNC
Office 365 users can't open or synchronize files
Operation Must Use an Updateable Query
Parts of Excel turn white or gray
Paster special option is missing or not working
Power View sheet is not displayed in a workbook
PowerPivot controls disabled with non-default Excel file format
Prevent files from opening automatically
Print preview misses lines
Programmatically copy all range names
Programmatically print all embedded charts
Programmatically save a file to a network drive
Query and update data with ADO from ASP
Recalculation with a SUMIF formula takes a longer time
Registry keys that control the File Repair feature
Remove smart tags from a workbook
Representing ties by using RANK
RSQ statistical functions
Run a macro with certain cells change
Run-time Error 1004 with legend entries in charts
Run-time error '-2147467259 (80004005)' when setting a chart property
Sample macro to insert/delete rows or columns
Sample user-defined function to hide formula errors
SAP add-ins don't display controls after update to version 1806
Save the addresses from a Word mail-merge label document
Security settings for Dynamic Data Exchange
Set page setup attributes for sheets
Set starting page in header or footer
Set up and use the RTD function
Smart tag functionality
Startup message about updating linked workbooks
STEYX statistical functions
Too many different cell formats in Excel
Toolbar missing or reset menus in Excel for Mac
Top columns in an Excel spreadsheet pasted into PowerPoint cut off
Transfer data to Excel from Visual Basic
Troubleshoot available resources issues
Turn off Function Argument ToolTips
Unable to cast COM object
Unexpected value with the DAYS360 function
Use a worksheet function in a VB macro
Use cell references and defined names in criteria
Use defined names to update a chart range
Use Draw Border tools with cell borders
Use INDIRECT function to create references
Use left, right, mid, and len functions in VB
Use logical AND or OR in a SUM+IF statement
Use macro to apply cell shading format to other rows
Use OnEntry macro to create a running total in cell comment
Use saved property to determine if workbook is changed
Use shared workbooks with different versions
Use startup folders
Use the "Insert Options" button
Use the AutoRepublish feature
Use the IF worksheet function to suppress the
VBA writes to cells slowly when ActiveX controls are invisible
Workbook isn't activated when you run a macro
Workbook loads slowly the first time that it is opened
Workbooks not open
Worksheets may be printed at an unexpected different size
Wrap text doesn't adjust row height
InfoPath
Disable code-behind prompt for InfoPath forms
Generated .PDB files don't match InfoPath form name
InfoPath 2013 crashes when connect Access database
Installation
Error starting Microsoft Office third-party .NET add-in
Error 1935 when install Office 2010
Error when uninstalling O365 Pro Plus
How to download and run Office 2019 installation files not in VLSC
Install Office Pro 2013 on a Terminal Server
Office setup issues
Miscellaneous
Document Information Panel is deprecated
Document Information Panel is deprecated
Enable Office 2010 to run on a terminal server
Features to enable collaboration
Incompatibilities between Office and Adob
Numbering Schema for Office 2016
Numbering Schema for Office 2013
Updates are offered for nonexistent Office programs
Use different versions of Office on the same PC
Office
"No default mail client" error
"Your system is low on virtual memory" error
Applications crash when opening IRM doccument
Can't change the number of places in Recent Places
Can't embed Adobe OpenType fonts
Can't install 64-bit Office with 32-bit
Can't install Office Starter 2010 on Windows 8
Can't use "Convert bibliography to static text"
"Compile Error: Procedure too large"
AD FS sites are slow to open
Connection to a network document is lost
Document files in Office Document Cache not deleted
Edit OLE document property with Dsofile.dll
Error when you install an Office program
Error when you move mailboxes to or from Office 365
FAQ about Office Activation Wizard
Information about Office Click-to-Run installation
Introduce Click-to-Run for Office 2010
Issues when you click hyperlink to SSO Web site in a document
Loss of image quality occurs in a document
Manage templates in Office program
Missing fonts issue in documents
No Office entitlement found on device
Office 2010 Installation failure
Office 2010 installation requires MSXML
Office 2010 Setup program not restart
Office crash with SendToBluetooth add-in installed
Office End User License Agreement always appears
Office files with RMS protection crash
Office installtion Error 1401, 1402 or 1406
Office stops responding when you open a file
Prevent Office 2010 from disabling printers
Saving documents to network server is slow
Services display incorrectly in Research pane
Set default font for Office apps
Some VB Editor settings disabled in Office 2010
The ability to uninstall Office updates
Unable to create DSN for Office System Driver
Use GetObject and CreateObject with automation server
Win32API_PtrSafe with 64-bit Support
Windows Installer service could not be accessed
Office for Mac
"wkresources" files in Trash
Can't pass the Welcome Screen in Office for Mac
Error when you open files from SharePoint in Office client
Known issues with Office for Mac
Office 2016 for Mac 64-bit upgrade
Office 2016 for Mac prompts you for authentication
Office 365 Enterprise E3 setup is incomplete
PowerPoint for Mac is closed unexpectedly
OneNote
"Open new side note" missing from Windows notification
Errors when you sync a notebook
Locate Onenote notebooks
OneNote error “Content Not Yet Available”
Temporary change to file size download limit in OneNote
Warning when a notebook is in an offline location
"We couldn't start OneNote the last time we tried" error
Performance
Some Office applications are not responding
Open network file slow or stop responding
PowerPoint
"Play CD Audio Track" command is not available
A .pps file is saved as a .pptx file
Add custom values to animation effect options
Add section command is unavailable
Audio stops playback after you leave original slide
Cannot edit the footer information in the Header and Footer
Cannot edit video or audio in a presentation
Cannot load an add-in with a low macro security level
Change the export resolution of PowerPoint slide
Create a mailto hyperlink in a presentation in PowerPoint for Mac
Embedded videos don't play
File size of an existing presentation increases
Hlink.dll Can't Be Loaded
Not enough printer memory available to print page
Office opens blank from SharePoint
Only the audio plays with a video file
Password to modify a presentation is required
PowerPoint 2010 not responding
Powerpoint doesn't print in pure black and white
PowerPoint files not rendering in Office Online Server after Security Update
PowerPoint for Mac startup error
PowerPoint stops responding (spinning wheel)
Shortcuts to control display of grid and guides
Slide transition sounds are missing
Troubleshoot a damaged presentation
You can't embed an online video in a presentation
Videos are listed as "Unsupported
Project
"Can not save to global.mpt" when existing Project
Calculate work and duration with resource assignment changes
Can't add or edit resources in Enterprise Resource Pool
Can't enter User Logon Account for new resource
Can't view a timesheet in PWA
Circular relationship error when indenting task
Create a report template
Definition of project constraints
Error when accessing Project Web App
Error when opening a visual report
Error when you click project link
Errors when you access PWA
File size increases when inserting picture
Gantt Chart or Usage views print on too many pages
How to remove leading split in a task
How to upgrade Project global template
Import task outline structure into-project
Issue when changing user's status to inactive in Project
Make a custom toolbarribbon available to all users
Operatio times out when connecting to Odata
Print Gantt Chart view without table information
Progress bars not drawn for tasks that are in progress
Project opens calendar from a different instance
Project Publish job process remains at 80%
Removed users are not inactivated
SharePoint task list sync job fails when Project is published
Show fiscal dates on a timescaled view
Sync Jobs take a long time to complete
Sync with SharePoint tasks list
Tasks are not scheduled
Publisher
Publication is printed incorrectly
Publisher can't open file with OLE objects
Text boxes in Publisher-created email are converted to bitmap
Settings
Display issues in Office applications
Error in Office when file is blocked
Task panes in Office
Use registry to clear the most recently used files list
End of Support
Office 2007 has reached end of extended support
Support for 2013 versions of Microsoft 365 Apps for enterprise ends
Visio
"Fit to Drawing" not working
Can't add visio drawing control
Can't change text or shape fill color
Can't open file type blocked by registry policy settings
Can't open Visio files in Visio Web Access
Enable Windows Search service to use Search for Shapes
Search for Shapes feature is discontinued
Text not displayed when the drawing opens in a browser
This is not a valid win32 application when installing Office 365
Troubleshoot damaged drawings in Visio
Visip doesn't have shapes and stencils
Visio Services does not render diagrams
Visio Services was unable to load Web Drawing
Word
"End tag" error when opening docx file
"relationship rID8 was not found" in Word
A connector doesn't move when moving a shape
Background is not printed in Word
Can't edit text in print preview
Can't insert QuickTime media into presentations
Can't modify oData connection in PowerPivot
Can't open documents with unsupported XML elements
Can't open this file because it is larger than 512 Megabytes
Can't start the converter SSPDFCG_X64.cnv
Can't use mouse to draw selection rectangle
Change default view to Draft view
Changes in Word content layout
Changes to default font not retained
Changes to settings aren't updated in the Preview window
Configure the default search engine
Cross-reference links don't update to the correct heading number
Custom XML markup is removed
Customize the color of the spelling and grammar checker underlines
Damaged documents in Word
Faq about hyperlinks in Word
Faq about the Comments feature in Word
Fonts in Word
Graphics and images don't display correctly in 32-bit version of Word
Image DPI is changed after you print to PDF
Issue when opening a .wps file
Issues when start or use Word
Mail merge issue
Merge multiple Word documents into one
Object may not appear in Word 2010
On-screen keyboard opens repeatedly
Opening file is blocked by registry policy
Operating parameter limitations and specifications
Overtype mode is disabled
Performance issues with AutoRecover location
Print a general field
Print a range of pages in a multiple-section document
Print failures in Word
Printer settings are ignored
Recover lost documents
Reset user options and registry settings in Word
Scan and insert images into a document
Scroll bars are missing in Word for Mac
Spell checker doesn't check text in the form fields
Spell Checker not recognizes misspelled words in Word 2010
Tabbing form fields content controls not working
Text is not copied from the Clipboard
Third-party installed fonts isn't in the font list in Word for Mac
Toolbars missing in Word for Mac
Track Changes functionality disabled when RMS is disabled
Troubleshoot print failures in Word for Office 365 on Windows 10
Troubleshooting guide for unwanted page breaks
Word could not create the work file
Word for Mac crashes with saving
Word for Mac is closed unexpectedly
Word slows or stops responding
Work with toolbars in Word
Wrong paper size in the Printer Properties
You're prompted to save changes to global template
Office Developer
Office Products Troubleshooting
12/10/2019 • 2 minutes to read • Edit Online

Welcome to Office! Here's a collection of information on how to identify and fix errors that you may run into when
you use Office products.

Still need help?


Go to Microsoft Community or Office help.
"Ambiguous name detected" error when you run a
procedure in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 817411

NOTE
Requires basic macro, coding, and interoperability skills.

Symptoms
When you run a procedure in Microsoft Access 2000 or later, you may receive the following error message:

The expression Event_Name you entered as the event property setting produced the following error:
Ambiguous name detected: EventProcedure_Name .

Cause
This error occurs when there are multiple procedures with the same name in a module.

Workaround
To work around this problem, delete the unwanted duplicate procedure. To do this, follow these steps:
1. Open the form in Design view.
2. In Microsoft Office Access 2003, click Code on the View menu.
In Microsoft Office Access 2007, click View Code in the Tools group on the Design tab.
3. On the Debug menu, click Compile Database Name .
You receive the following error message:

Compile error: Ambiguous name detected: Procedure Name .

4. Notice the procedure name, and then click OK .


5. In the code, find the other occurrences of the Procedure Name procedure, where Procedure Name
produced the compile error mentioned in step 3.
6. Select and then delete the unwanted procedure.
7. On the Debug menu, click Compile Database Name .
8. On the File menu, click Close .
"Enter Parameter Value" dialog box appears when
you run a query, a form, or a report
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies only to a Microsoft Access database (.mdb).

Symptoms
When you try to run a query, a form, or a report, the Enter Parameter Value dialog box may appear unexpectedly.

Cause
This behavior occurs when a field, a criteria, an expression, or a control in a query, a form, or a report references a
name that Access cannot find. For example, a name could be misspelled or a field may not be available within that
scope.

Resolution
To resolve this behavior, rename the reference to a valid field name. If you do not know where the reference is
located, run the Database Documenter for the object listed in the Enter Parameter Value dialog box, and then output
the information to a text file. To do so, follow these steps:
If you use Access 2002 and 2003, follow these steps:
1. On the Tools menu, point to Analyze , and then click Documenter .
2. Click the tab that corresponds to the type of database object that you are looking for, and then click to
select the check box of the query, the form, or the report that you tried to run.
Note If the object is a form or a report, include all source queries and subforms or subreports in your
list of selections.
3. Click Options to specify which feature of the selected object you want to print, and then click OK .
4. Click OK to close the Documenter dialog box.
5. On the File menu, click Expor t .
6. In the Save as type list, click Text Files , and then complete the remainder of the information as
needed.
7. Open the exported file in Microsoft Word, and then search for the parameter requested in the Enter
Parameter Value dialog box.
If you use Access 2007 or a later version, follow these steps:
1. On the Database Tools tab, click Database Documenter in the Analyze group.
2. Click the tab that corresponds to the type of database object that you are looking for, and then click to
select the check box of the query, the form, or the report that you tried to run.
Note If the object is a form or a report, include all source queries and subforms or subreports in your
list of selections.
3. Click Options to specify which feature of the selected object you want to print, and then click OK .
4. Click OK to close the Documenter dialog box.
5. In Data group, click Text File , and then complete the remainder of the information as needed.
6. Open the exported file in Microsoft Word, and then search for the parameter requested in the Enter
Parameter Value dialog box.
If you cannot run the Database Documenter, check to see if there is a missing reference. The most common missing
reference in this case is to the Utility.mda. To check for this reference, follow these steps:
1. In the Database window, click Modules under Objects .
Note If you use Access 2007 or a later version, on the Database Tools tab, click Visual Basic , and then go to
step 3.
2. Select any existing module, and then click Design or insert a new module. This will start the Visual Basic
Editor.
3. On the Tools menu, click References.
4. In the Available References list, look for any reference that has "MISSING: " in front of the name. Click to clear
the check box.
NOTE If you do not need a reference to Utility.mda, skip to step 8.
5. Click Browse.
6. In the Files of type list, click Add-ins (*.mda).
7. Browse to the folder that contains Utility.mda, select it, and then click Open. By default, this file is in the folder
C:\Program Files\Microsoft Office\Office\1033.
8. Click OK.
9. On the Debug menu, click Compile database name .
10. On the File menu, click Close and Return to Microsoft Access .

More information
Steps to reproduce the behavior in Access 2002 or in Access 2003
Cau t i on

If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up
the Northwind.mdb file and follow these steps on a copy of the database.
1. Open the sample database Northwind.mdb.
2. Open the Order Subtotals query in Design view .
3. Rename the OrderID field to OrderIDNumber .
4. Close the query, and then click Yes to save the changes.
5. Run the Order Subtotals query.
Note that the Enter Parameter Value dialog box appears.
"File already in use" error when you try to open an
Access database that's located on a server
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 289681

NOTE
This article applies only to a Microsoft Access database (.accdb and .mdb). Requires knowledge of the user interface on single-
user computers.

Symptoms
When you try to open a database that is located on a server, you may receive the following error message:

Couldn't use <filename>; file already in use.

Cause
If doesn't have the Create permissions for the folder in which the database is located, the Microsoft Jet database
engine can't create the locking information file. The file is necessary for multiple users to open the database. So if a
corresponding file doesn't already exist, a user who doesn't have the Create permissions opens the database
exclusively.

NOTE
The locking information file is:
*.ldb in Access 2003 and in earlier versions of Access
*.laccdb in Access 2007/2010

Resolution
To prevent this behavior, make sure that all users who open the database have the Read, Write, and Create
permissions for the folder in which the database is located.
Additionally, if you're using a security-enhanced Access database, make sure that the users who open the database
also have the Read and Write permissions on the folder. The folder contains the workgroup information (.mdw) file.

More Information
In order to open a database in shared mode, the Microsoft Jet database engine must be able to create a locking
information file (*.ldb or *.laccdb) in the same folder as the database itself.
For more information about .ldb files, click Microsoft Access Help on the Help menu, type sharing access database
in the Office Assistant or the Answer Wizard, and then click Search to view the content.

References
For additional information about .ldb files, see the following article:
Introduction to lock files (.laccdb and .ldb) in Access
Access: Linked table "connection failed" messages
when using Azure AD interactive authentication
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Access, you create a linked table that uses Azure Active Directory interactive authentication. When you
open objects that use this connection, you experience repetitive "connection failed" messages that resemble the
following:

Connection failed: SQLState: 'FA003' SQL Server Error: 0 [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]
User option must be specified, if Authentication option is 'ActiveDirectoryInteractive'.

After you receive these messages, you are prompted to sign in.

Cause
When you establish the connection in Access, the Save Password option is not selected. Therefore, the connection
string that is stored in Access is missing the user ID (UID).

NOTE
Although the option is labeled as Save Password , selecting this option stores both the UID and PWD (if it exists) in the
connection string.

Resolution
In this situation, Azure Active Directory (Azure AD) interactive authentication doesn't use a stored password.
However, you should select the Save Password option to store the UID in the connection string.

More Information
If you create the linked table through DAO in Visual Basic for Applications (VBA), you should specify the Save
Password option as a table attribute, as follows:

td.Attributes = dbAttachSavePWD

For more information about the dbAttachSavePWD attribute, see TableDefAttributeEnum enumeration (DAO).
"No current record" error when you print or preview a
report in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 888635

NOTE
Novice: Requires knowledge of the user interface on single-user computers. This article applies to a Microsoft Office Access
database (.mdb and .accdb) and a Microsoft Office Access project (.adp).

Symptoms
You receive a "No current record" error message in Microsoft Access when you try to print or preview a report by
using the Print command or the Print Preview command, and then you move between the report pages.

Cause
This problem may occur when the following conditions are true:
Your report is grouped on multiple fields.
In the Group On group property list, you selected Each Value .
In the Group Footer group property list, you selected Yes .
You have calculations in the group footer.

Workaround
To work around this problem, use one of the following methods:
Change the Group On group property to Inter val for one of the field groups.
Change the Group Footer group property to No for one of the field groups.
Remove the calculations from the group footer.

NOTE
To troubleshoot the precise cause of this problem, try each of these methods one at a time until you no longer receive the
error message.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
For more information about how to group and how to sort in a report, click Microsoft Office Access Help on the
Help menu, type change sorting and grouping levels in the Search for box in the Assistance pane, and then click
Star t searching to view the topic.
What is an .LDB File?
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

LDB files are Microsoft Access lock information files. An .LDB file is created when an Access database is
opened/accessed by a user - the file is created with the same name as the Access database, but with an .LDB
extension. The file is used to keep track of all users that are currently accessing the database.
Because FRx uses Access databases for most of its normal operations, .LDB files are created in the FRx directory
when the Designer, Report Launcher, or Queue Monitor applications are in use. Although .LDB files are typically
removed when all users have closed FRx, one or more .LDB files may occasionally be left behind. When this occurs,
these files are safe to delete - they will be re-created the next time a user launches FRx. The .LDB file may be used to
determine which users are logged into FRx. This is useful when users must be asked to exit for a task that requires
the FRx databases to be available.
To view the file, simply open it in Notepad. When viewing an .LDB file for an FRx database, all users will be shown
logged in as "admin" - the computer name should be used to determine which users are currently accessing the file.
If the .LDB file contains a computer name for a user that has already closed FRx, but the file cannot be deleted, it
may be necessary to disconnect the user from the file (this can be done at the server from the Windows Control
Panel). If the file is still locked after disconnecting all users, the server may need to be restarted.
PRB: Error 80004005 "The Microsoft Jet Database
Engine cannot open the file '(unknown)'"
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use ActiveX Data Objects (ADO) or ODBC to connect to a Microsoft Access database, you may receive the
following error message:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'


[Microsoft][ODBC Microsoft Access 97 Driver] The Microsoft Jet database engine cannot open the file
'(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.

Cause
There are several causes for this error message:
The account that Microsoft Internet Information Server (IIS) is using (which is usually IUSR) does not have the
correct Windows NT permissions for a file-based database or for the folder that contains the file.
The file and the data source name are marked as Exclusive.
Another process or user has the Access database open.
The error may be caused by a delegation issue. Check the authentication method (Basic versus NTLM), if any. If
the connection string uses the Universal Naming Convention (UNC), try to use Basic authentication or an
absolute path such as C:\Mydata\Data.mdb. This problem can occur even if the UNC points to a resource that is
local to the IIS computer.
This error may also occur when you access a local Microsoft Access database that is linked to a table where the
table is in an Access database on a network server.

Resolution
The following items correspond to the previous list of causes:
Check the permissions on the file and the folder. Make sure that you have the ability to create and/or destroy
any temporary files. Temporary files are usually created in the same folder as the database, but the file may
also be created in other folders such as the WINNT folder.
If you use a network path to the database (UNC or mapped drive), check the permissions on the share, the
file, and the folder.
Verify that the file and the data source name (DSN) are not marked as Exclusive.
The "other user" may be Microsoft Visual InterDev. Close any Visual InterDev projects that contain a data
connection to the database.
Simplify. Use a System DSN that uses a local drive letter. If necessary, move the database to the local drive to
test.

References
To check for file access failures, use the Windows NT File Monitor. To download the File Monitor, see the following
Sysinternals Web site:
Windows Sysinternals
Access cache formats for SharePoint lists and
document libraries
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Both Microsoft Access 2010 and Microsoft Office Access 2007 make significant improvements over earlier versions
in how they work together with linked Microsoft SharePoint lists and document libraries to deliver a better user
experience.
Beginning in Access 2010, you can choose which caching format best suits your needs. To do this, you can adjust
the Caching Web Ser vice and SharePoint tables options in the File > Options > Current Database dialog
base. Unless you're experiencing one of the known issues that are listed in the following sections, we recommend
that you select the option to Use the cache format that is compatible with Microsoft Access 2010 and
later .

Improvements in Access 2007


The following improvements in Access 2007 are major changes that increase SharePoint performance:
Make asynchronous fetches of data from the server. These allow some scenarios to immediately show data
before the complete recordset is returned from the server.
Fetch incremental data changes to a list within an Access session. After the app fetches data in later requests,
only query what has changed in the list.
Cache lists in the local database as XML.
Asynchronous fetching
When data is loaded into a datasheet or form, the first page of data or a single record is often all that is required to
let you begin working or scrolling through records. To speed up these scenarios, control is returned to Access as
soon as the first batch of data is retrieved from the server. A background thread continues parsing and fetching the
remaining data from the server. It blocks you from interacting with data only when the requested record is not yet
available (for example, you press the Move to last record button immediately after you open the datasheet or
form). Although this works in some scenarios, queries that have joins, sorts, and filters require that all the data be
retrieved before you can access it.
Fetch incremental data changes
Although data must be fetched from the server when a link is first used within an session of Access, changes that
were to the web service infrastructure enable the program to fetch incremental data changes. Access 2007 caches
the data rowsets in memory after they are first opened. Therefore, later use of the SharePoint links becomes
significantly faster. In cases of large datasets, there is contention for RAM on the client computer. In this case,
rowsets are released, and this frees RAM for the rest of the system.
Cache lists in XML
In addition to the in-memory caching, there are options to cache the XML within the database by using either
offline mode or cached mode. This helps in cases in which the rowsets are recycled out of memory or when using
the links in a new session of Access. This Is because some of the network time and server calls were eliminated.

Improvements in Access 2010


Just as in Access 2007, Access 2010 connects to SharePoint lists through web services over HTTP. When a user
opens a query, form, or report that consumes data from a SharePoint link, web service requests are made to the
SharePoint server to get the list data. The server returns the data in XML, and this is parsed and cached in local
tables. Then, the data is fetched by the Access data engine and displayed to the user.
The following improvements in Access 2010 increase SharePoint performance:
Cache data in local tables
Improve bulk query operations
Reduce web service calls
Cache data in local tables
Access 2010 enhances the connected SharePoint list experience by caching data in local tables that persist across
Access sessions. This enables Access to parse the bulk of the SharePoint XML data only one time. Later use of the
links fetches only incremental data changes from the server. An additional benefit of using local tables internally
instead of the in-memory rowsets is that multi-valued lookups and value list use in a SharePoint list becomes much
faster.
The first time that a link is opened, Access must still download all the data from SharePoint and parse it into the
local tables. In some cases, all the data may be required immediately. For example, all the data must be read before
you can move to the last record in the datasheet or run a query that has a join. In these cases, the time that is
required to use the data is about the same as in Access 2007. The real-time savings occurs the next time that the
link is used. This occurs either after you start a new session of Access or if many SharePoint links are used within a
session.
Using Access 2010 Cached mode
By default, the new cached mode is turned on for all new ACCDBs and published applications. You can have existing
ACCDBs use the new cached mode by selecting the check box in the File > Options > Current Database dialog
box.
Bulk query operations
When you export data to SharePoint, changes are typically sent in batches of 50 records at a time. Access 2010
extends this batching to bulk queries against SharePoint lists.
Reduce web service calls
When you use objects such as forms and subforms that contain multiple SharePoint links, only one web service call
is required every time that you open a SharePoint link.

Known issues in Cache mode


Access 2010 Cache mode should not be selected if that database will be shared together with Access 2007 users.
However, you can use Cache mode in a copy of the database that will be shared.
Access hangs when updating linked SharePoint list
Access: "Cannot update. Database or object is read-only" error in linked SharePoint list (about a hidden taxonomy
list)
Access: "Cannot update. Database or object is read-only" error when executing update query against the linked
SharePoint view (about lookup data that is missing)
Access: Troubleshooting errors opening linked SharePoint lists/document libraries
Synchronize a SharePoint 2010 list with Access 2010
Access: "Cannot update. Database or object is read-only" error when executing update query against the linked
SharePoint list (because the record exceeds the MaxSize property)
You cannot download data from a SharePoint list to Access 2010
TransferSharePointList / ImportSharePointList Macro Action
Access 2010 crashes after you install Office 2010
Service Pack 1, and the error signature in Event
Viewer points to the Vbe7.dll file
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you install Microsoft Office 2010 Service Pack 1 (SP1), you may experience random crashes when you work
with Microsoft Access 2010 databases. These crashes may occur in those databases when you open objects, or you
try to use the Visual Basic Editor. When you look in Event Viewer, the error signature resembles the following:

Resolution
To resolve this issue, install update 2553385. For more information, click the following article number to view the
article in the Microsoft Knowledge Base:
2553385 Description of the Office 2010 update: December 13, 2011
This issue was originally fixed in the following October 2011 hotfix package:
2596585 Description of the Office 2010 hotfix package (Vbe7-x-none.msp): October 25, 2011
To work around this problem, decompile and then recompile the database. To do this, follow these steps:
1. Make a copy or backup of your database.
2. On the computer that is exhibiting the problem, decompile the database. To do this, at a command prompt,
run the following command where c:\folder\test.accdb is the path of your database together with the
database file name:
c:\folder\test.accdb /decompile
3. Close the database.
4. Open the database in Access 2010 SP1.

More Information
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
"The Microsoft Office Access database engine cannot
find the input table" when you try to open a table in
an Access 2010 template
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You create a Microsoft Access 2010 database.
You link a table in this database to external Data Services tables from Business Data Catalog (BDC) service
system tables on a Microsoft SharePoint server.
You save the database as an Access 2010 template (.accdt), and then you hydrate the template.
You try to open the table that is linked to the Data Services tables.
In this scenario, you receive the following error message:

The Microsoft Office Access database engine cannot find the input table or query 'MSysBDCMetadata'. Make sure
that it exists and that its name is spelled correctly.

Cause
This issue occurs because the BDC system tables that you linked to are not included in the template that you saved
from the database.

Workaround
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure. However, they will not modify these examples to provide added functionality
or construct procedures to meet your specific requirements.
To work around this issue, follow these steps:
1. In Access 2010, create a blank database.
2. On the External Data tab, in the More drop-down list that is in the Impor t & Data group, click Data
Ser vices .
3. In the Create Link to Data Ser vices dialog box, click Install new connection .
4. Select the source XML file that defines the connection, and then click Open .
5. Click Close .
6. On the Database Tools tab, in the Macro group, click Visual Basic .
7. On the Inser t menu, click Module .
8. In the new module, add the following code.

'// Set all the MSysBDC* system tables so that they become visible to Save As Template

'// This should only be needed as soon as in the database that will be used to create the template
(accdt)

Sub PrepareBDCTables()

Dim db As Database, tbl As TableDef

Set db = CurrentDb

For Each tbl In db.TableDefs

If tbl.Name Like "MSysBDC*" Then

'//Set all the bdc tables so that they are visible to the save as template wizard

tbl.Attributes = 0

End If

Next

End Sub

9. On the **View **menu, click Immediate Window .


10. Type the following command, and then press ENTER:
PrepareBDCTables
Note This command makes the BDC tables available to the template.
11. In the Project pane, right-click the new module, and then click Remove module_name .
12. Click No when you are prompted to export the module.
13. Close the Microsoft Visual Basic editor.
14. On the File tab, click Save & Publish .
15. Under Save Database As , click Template (*.accdt) .
16. In the Create New Template from This Database dialog box, enter information for the template, and
then click to select the Include data in template check box.
17. Click OK .
Access error "Your network access was interrupted"
when using a mapped drive
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When opening Access from a mapped drive, using linked tables mapped to a drive, or executing VBA code based on
mapped drive locations, you get the error "Your network access was interrupted. To continue, close the database,
and then open it again."

Cause
Access requires a fast and stable network connection when opening databases over a local area network. There are
two common causes using mapped drives which may result in an interruption to the network connection:
A group policy that maintains the mapped drive is using Replace instead of Update. This results in the mapped
drive being disconnected and reconnected during each group policy refresh interval.
The mapped drive detects an idle period resulting in the drive performing an auto disconnect.

Resolution
Review the mapped drive preferences within the Group Policy Management Console. If the GPO is set to Replace,
change the GPO to Update.
Configure a Mapped Drive Item
See the following article to prevent mapped drives from performing an auto disconnect:
Mapped Drive Connection to Network Share May Be Lost

More information
You may also consider using a UNC path to specify the database location on a network instead of using mapped
drives within Access as the UNC path is unaffected by mapped drive policies. A UNC path uses the server name
instead of the mapped drive letter. Sample UNC path: \\ServerName\FolderName\FileName.accdb
Access freezes when you open a linked table to a
SharePoint list
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In a Microsoft Access desktop database, when you try to open a table that's linked to a SharePoint list, Access stops
responding.

Cause
The issue occurs when the user who tries to open the existing linked table in Access doesn't have locally
stored credentials for the SharePoint site that contains the list. A stored credential may be either a credential in
Windows Credential Manager or a persistent cookie in Internet Explorer.

Resolution
To work around this issue, use one of the following methods.
Method 1: Add the EnableLegacyListAuth registry entry
Note For Access 2016, you must have Click-to-Run version 1804 (build 9226.2114) or MSI version (build
16.0.4690.1000) or a later version installed to use this method. To add the EnableLegacyListAuth registry entry,
follow these steps:
1. Open Registry Editor, and then locate and select the following registry subkey:
For 32-bit Office on 32-bit Windows or 64-bit Office on 64-bit Windows
For Access 2013
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\List
For Access 2016
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\List
For 32-bit Office on 64-bit Windows
For Access 2013
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\List
For Access 2016
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\List
2. On the Edit menu, point to New , and then click DWORD Value .
3. Type EnableLegacyListAuth , and then press Enter .
4. Right-click EnableLegacyListAuth , and then click Modify .
5. In the Value data box, type 1 , and then click OK .
6. Locate the following registry key:
For Access 2013
HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity
For Access 2016
HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Identity
7. Make sure that the value of EnableADAL is 0 .
8. Exit Registry Editor.
Method 2: Refresh the list
To refresh the list, follow these steps:
1. Open Windows Task Manager, select Microsoft Access, and then click End task .
2. Reopen the database.
3. Right-click the linked table in Access, and then select More Options > Refresh List .
4. Log on by using your credentials.
Method 3: Programmatically relink the list
To relink the list, follow these steps:
1. Open Windows Task Manager, select Microsoft Access, and then click End task .
2. Reopen the database, and create a new module.
3. In VBA code, use the RefreshLink method of the TableDefs collection for the linked tables:

Public Function TableRelinkSample()


CurrentDb.TableDefs("<TableName>").RefreshLink
End Function

Note If you have multiple linked SharePoint lists, you have to call RefreshLink only one time for any one of the
tables.
4. Call the TableRelinkSample() function from the AutoExec macro or other startup code in the database.
TableDef.RefreshLink Method (DAO)
Access ADODB code errors when you use the
adBigInt data type
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Access for Office 365 and Microsoft Access 2019, you may encounter the following error messages in
the Visual Basic for Applications (VBA) ADODB code that refers to the adBigInt data type:
The value you entered isn't valid for this field.
Too few parameters. Expected x.
Not enough memory resources are available to complete the operation.

Cause
This issue occurs because Access for Office 365 and Access 2019 introduced the Large Number data type support.
In earlier versions of Access, adBigInt values were converted to strings. Now, with the Large Number data type
support, Access maps adBigInt to a binary value.
Within various ADODB methods, you must specify the data type that you use. In earlier versions of Access, the code
may run successfully even though you don't use compatible data types because they are converted to strings.
However, you might now see one of the error messages that are described in the Symptoms section with the Large
Number data type support.
Example 1:
Assume that you have two ADODB Recordset objects where RS!MyID is defined as adInteger and RS2!MyID is
defined as adBigInt. If you try to set RS!MyID = RS2!MyID, you will encounter an error message because of the
Large Number data type support.
Example 2:
Assume that you try to run an ADODB command object. If you create a parameter that uses adBigInt but then use
that parameter against a field of a smaller data type, you will encounter an error message.

Resolution
To resolve this issue, change the ADODB code to use the data type that best matches the data type of the underlying
object. To do this, use the following guide to select the appropriate data type within ADODB.

A C C ESS DATA T Y P E A DO DB DATA T Y P E

Number adInteger
A C C ESS DATA T Y P E A DO DB DATA T Y P E

Large Number adBigInt

Still need help? Go to Microsoft Community.


How to automate the process of selecting the printer
for a report in Microsoft Access
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Novice: Requires knowledge of the user interface on single-user computers.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Summary
If you want to print a report to a particular printer, you can manually select the printer and all of the print options,
or you can automate the process so that with a click of a button, you can switch printers and then print your report
with the options that you predefine. This article explains how to automate the process of printer selection.

More information
This procedure uses two examples: printing to a laser printer and printing to a dot-matrix printer. You can substitute
the particular printers that you want to use. To automate the process of printer selection for a particular report,
follow these steps:
1. Create the following three reports:
rptLaserPrinter
rptDotMatrix
rptMyReport
NOTE rptMyReport represents the actual report that you want to print.
2. To set the printer options, follow these steps:
a. Open rptLaserPrinter in Design view.
b. On the File menu, click Print .
Note In Access 2007 or a later version, click the Microsoft Office Button , and then click Print .
3. In the Print dialog box, click the laser printer that you want to use in the Name box, and then click OK .
4. Click Properties, set any print options that you want, such as the orientation and paper size, and then click
OK.
5. Repeat steps a through d for rptDotMatrix. Click the dot-matrix printer in step c.
6. In the Database window, click Modules, click New, and then type the following function:
Note In Access 2007 or a later version, click Module in the Other group on the Create tab.
Function ChangePrinter(rptToChange As String, rptPrinter As String)

Dim rpt1 As Report, rpt2 As Report

DoCmd.OpenReport rptToChange, acViewDesign


DoCmd.OpenReport rptPrinter, acViewDesign

Set rpt1 = Reports(rptToChange)


Set rpt2 = Reports(rptPrinter)

rpt1.PrtDevNames = rpt2.PrtDevNames

DoCmd.Close acReport, rptPrinter, acSaveNo


DoCmd.OpenReport rptToChange, acViewPreview
End Function

NOTE The ChangePrinter function copies the Pr tDevNames property from one report to another. You can then
copy the print options that you set for the rptLaserPrinter and rptDotMatrix reports to a specific report that you
want to print.
NOTE The "acSaveNo" property is used in the "DoCmd.Close acReport, rptPrinter, acSaveNo" line of the code that is
shown earlier in this section. If you do not use this option and you save the PrtDevName of a nondefault printer to
the report design, the report will not be able to find the printer when it runs the next time. You will receive the
following error message:

This document was previously formatted for the printer <PrinterName> on <Port>; but that printer isn't
available. Do you want to use the default printer <DefaultPrinterName> on <Port>?

4. Save the module as Module1 , and then exit the Visual Basic Editor.
5. Create the following form:

Form: frmForm1
------------------------------
RecordSource: Unbound

Control Type: Command Button


Name: cmdLaser
Caption: Laser
Control Type: Command Button
Name: cmdDotMatrix
Caption: Dot Matrix

6. On the View menu, click Code .


Note In Access 2007 and later, click View Code in the Tools group on the Design tab.
7. In the Visual Basic Editor, type the following procedures:
Private Sub cmdLaser_Click ()

Call ChangePrinter("rptMyReport", "rptLaserPrinter")


DoCmd.PrintOut

End Sub

Private Sub cmdDotMatrix_Click ()

Call ChangePrinter("rptMyReport", "rptDotMatrix")


DoCmd.PrintOut

End Sub

8. Exit the Visual Basic Editor, and then change the On Click property of both command buttons to [Event
Procedure] . To do so, follow these steps:
a. In Design view, click the command button, and then click Proper ties on the View menu.
Note In Access 2007 or a later version, click the command button in the design view, and then click
Proper ty Sheet in the Tools group on the Design tab.
b. Click the Event tab, click the On Click property, click the down arrow, and then click [Event
Procedure] .
9. To print rptMyRepor t to a specific printer, open frmForm1 in Form view, and then click the appropriate
button.

References
For more information about how to control your printer from Microsoft Access, visit the following Microsoft Web
site:
PrtDevMode Property
How to build a dynamic query with values from a
search form in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to either a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file,
and to a Microsoft Access project (.adp) file.

Summary
This article shows you how to dynamically build criteria for a query string with values from a search form in
Microsoft Access.

More information
Sometimes, you may want to create a form that serves as a search form. You want to be able to enter values on the
form and dynamically build the appropriate SQL string. The following steps show you how to dynamically build a
query string that uses the BuildCriteria method.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.CAUTION: If you follow the steps in this example, you
modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these
steps on a copy of the database.
Step-by-Step Example
1. Start Access.
2. On the Help menu, point to Sample Databases , and then click Nor thwind Sample Database .
3. Open the Customers form in Design view.
4. Add a command button and a text box to the form, and then set the following properties:
Command Button
------------------------
Name: cmdSearch
Caption: Search
OnClick: Event Procedure

Text Box
--------------
Name: txtSQL
Width: 4.4583"
Height: 1.25"

5. Set the OnClick property of the command button to the following event procedure:

Private Sub cmdSearch_Click()


On Error Resume Next

Dim ctl As Control


Dim sSQL As String
Dim sWhereClause As String

'Initialize the Where Clause variable.


sWhereClause = " Where "

'Start the first part of the select statement.


sSQL = "select * from customers "

'Loop through each control on the form to get its value.


For Each ctl In Me.Controls
With ctl
'The only Control you are using is the text box.
'However, you can add as many types of controls as you want.
Select Case .ControlType
Case acTextBox
.SetFocus
'This is the function that actually builds
'the clause.
If sWhereClause = " Where " Then
sWhereClause = sWhereClause & BuildCriteria(.Name, dbtext, .Text)
Else
sWhereClause = sWhereClause & " and " & BuildCriteria(.Name, dbtext, .Text)
End If
End Select
End With
Next ctl

'Set the forms recordsource equal to the new


'select statement.
Me.txtSQL = sSQL & sWhereClause
Me.RecordSource = sSQL & sWhereClause
Me.Requery

End Sub

6. Save the form, and then open it in Form view.


Note that when you click the Search command button, the txtSQL text box reflects the query that was
created from the values on the Customers form. Also, the Customers form has been requeried so that it
reflects the results of the new SQL string.

References
For more information about the BuildCriteria method, in the Visual Basic Editor, click Microsoft Visual Basic Help on
the Help menu, type buildcriteria method in the Office Assistant or the Answer Wizard, and then click Search to
view the topic.
"Cannot update. Database or object is read-only" in a
query against a linked SharePoint view if there are
unlinked lookup fields
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You are working in Microsoft Access.
You execute update queries against a linked Microsoft SharePoint view.
The underlying list that you are updating includes lookup fields that are not linked to Access because they are
not included in the current view.
In this scenario, you receive the following error message:
Cannot update. Database or object is read-only.

Cause
This problem occurs when you use the ImportSharePointList macro action (as of Access 2016, previously known as
TransferSharePointList) to link to a view of a SharePoint list in Access. This macro creates linked tables in Access for
each lookup column in the SharePoint view. However, when the update query runs, it first checks that all lookup
columns have linked tables in the database for the underlying list. The update query does not check exclusively for
the lookups that are part of the current query.

Workaround
To work around this problem, use one of the following methods:
Method 1
Link all the lookup columns in the underlying list to tables. To do this, follow these steps:
1. Link to the SharePoint list itself. This makes sure that all lookup tables for the underlying list are present within
Access.
2. Delete the linked table for the SharePoint list in Access. (Leave the linked tables for the lookup columns.)
3. Link to the SharePoint view by using the Impor tSharePointList macro action.
After you follow these steps, Access contains a linked table for the SharePoint view and linked tables for all the
lookup columns in the underlying list instead of for only the lookup columns that are included in the view.
Method 2
Disable caching in Access 2010. To do this, follow these steps:
1. In Access, select File > Options .
2. Select Current Database .
3. Scroll down to the Caching Web Ser vice area, and then locate the Microsoft SharePoint tables.
4. Select the Never Cache check box.

More Information
For more information about known issues that occur when you use SharePoint lists in Access, see Access cache
formats for SharePoint lists/document libraries.
For more information about the TransferSharePointList macro, see TransferSharePointList Macro Action.
"The text you entered isn't an item in the list" error
when you add a new record to a table
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 824176

NOTE
This article applies only to a Microsoft Access database (.mdb). Requires basic macro, coding, and interoperability skills.

Symptoms
When you try to programmatically add a new record to a table by using the NotInList event of the combo box on a
form, you might receive the following error message:

The text you entered isn't an item in the list.


Select an item from the list, or type the text that matches one of the listed items.

However, the new record is successfully added to the table. As a result, the new item that you entered is added to
the list of items in the combo box.

Cause
This problem occurs when the combo box is bound to a Number data type column and the format property for the
column is set to Currency or to Euro .

Workaround
To work around this problem, type the value in the combo box that matches the format of the column that the
combo box is bound to. For example, if the format of the column is Currency , type $20 instead of 20.
However, if the format of the column is set to Euro , you might not be able to enter a number that matches the
format of the column.

NOTE
If you reset the Format property of the column, the problem does not occur.

More Information
You might also receive the error message when you type a number that corresponds to an item in the combo box
that already exists. This problem might occur if the number that you type does not match the formatted entries of
the underlying recordset that already exists.
Steps to reproduce the behavior in Microsoft Office Access 2003
1. Start Microsoft Access.
2. Create a new Db1.mdb database.
3. To create the required sample table, follow these steps:
a. In the Database window, click Tables under Objects .
b. In the right pane, double-click Create table in Design view .
c. In the first row of the Field Name column, typeID, and then set the corresponding Data Type to
AutoNumber .
d. In the second row of the Field Name column, typeRates, and then set the corresponding Data Type to
Number .
e. In the Field Proper ties pane, click the General tab.
f. Set the Format property to Currency .
g. On the File menu, click Save .
h. In the Save As dialog box, type Rates, and then click OK .
i. On the File menu, click Close .
4. In the Database window, click Forms under Objects .
5. In the right pane, double-click Create form in Design view .
6. Add a ComboTest combo box to the form, and then set the properties as follows:

Name: ComboTest

Bound Column: 1

RowSourceType: Table/Query

Row Source: SELECT Rates.ID, Rates.Rates FROM Rates;

Auto Expand: Yes

Limit to List: Yes

Column Count: 2

Column Widths: 0";1"

7. On the View menu, click Code to open the Microsoft Visual Basic Editor.
8. Paste the following code in the NotInList event of the ComboTest combo box.

NOTE
The sample code in this article uses Microsoft Data Access Objects. For this code to run correctly, you must reference
the Microsoft DAO 3.6 Object Library. To do so, click References on the Tools menu in the Visual Basic Editor, and
make sure that the Microsoft DAO 3.6 Object Librar y check box is selected.
Dim Db As DAO.Database
Dim Rs As DAO.Recordset
Dim Msg As String

Msg = "'" & NewData & "' is not in the list." & vbCr & vbCr
Msg = Msg & "Do you want to add it?"
If MsgBox(Msg, vbQuestion + vbYesNo) = vbNo Then
Response = acDataErrContinue
MsgBox "Try again."
Else
Set Db = CurrentDb
Set Rs = Db.OpenRecordset("Rates", dbOpenDynaset)

Rs.AddNew
Rs![Rates] = NewData
Rs.Update
Response = acDataErrAdded

End If

9. On the File menu, click Save .


10. In the Save As dialog box, type FormTest, and then click OK .
11. On the File menu, click Close .
12. In the right pane of the Database window, double-click FormTest .
13. Type a number in the combo box, and then press the ENTER key.
The NotInList event is triggered. You receive the error message that is mentioned in the "Symptoms"
section of this article.

References
For more information about the NotInList event, click Microsoft Access Help on the Help menu, type NotInList
Event in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
You cannot add records or delete records with the
ADO AddNew method or with the Delete method
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to a Microsoft Access database (.mdb or .accdb) and to a Microsoft Access project (.adp).

Symptoms
When you are using ActiveX Data Objects (ADO), if you use the AddNew or Delete method of the Recordset object,
and you open the recordset with an unspecified lock type, you may receive one of the following error messages:

Run-time error '3251': Object or provider is not capable of performing requested operation.

-or-

Run-time error '3251':


The operation requested by the application is not supported by the provider.

-or-

Run-time error '3251':


Current Recordset does not support updating. This may be a limitation of the provider, or of the selected
locktype.

Cause
By default, ADO recordsets are opened with a lock type of adLockReadOnly, which does not allow additions and
deletions.

Resolution
To allow additions and deletions, open the recordset with a lock type of either adLockOptimistic or
adLockPessimistic, as in the following code sample:
Sub DelFirstRec()
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset

rs.Open "Select * from TestTable", CurrentProject.Connection, _


adOpenKeyset, adLockOptimistic
rs.MoveFirst
rs.Delete
rs.Close
End Sub

NOTE You can use this sample code to resolve the behavior in the "Steps to Reproduce Behavior" section of this
article.

More information
Steps to Reproduce Behavior
1. In a new Access database, create the following new table and name it TestTable:

Table:TestTable
----------------------------
Field Name: ID
Data Type: Autonumber
Indexed: Yes (No Duplicates)

Field Name: Name


Data Type: Text

2. Open the new table in Datasheet view, and then type the following test data:

ID Name
-----------------
1 Beverages
2 Condiments
3 Confections
4 Dairy
5 Grains
6 Meat
7 Produce
8 Seafood

3. NOTE The sample code in this article uses Microsoft ActiveX Data Objects. For this code to run properly, you
must reference the Microsoft ActiveX Data Objects 2.x Library (where 2.x is 2.1 or later.) To do so, click
References on the Tools menu in the Visual Basic Editor, and make sure that the Microsoft ActiveX Data
Objects 2.x Library check box is selected.
Create a module, and then type the following line in the Declarations section if it is not already there:
Option Explicit
4. Type the following procedure:
Sub DelFirstRec()
Dim rs As New ADODB.Recordset

rs.Open "Select * from TestTable", CurrentProject.Connection, adOpenKeyset


rs.MoveFirst
rs.Delete
rs.Close
End Sub

5. To test this function, type the following line in the Immediate window, and then press ENTER:
DelFirstRec
Note that you receive the error message that is mentioned in the "Symptoms" section of this article. Also,
when you check the table, you see that no records have been deleted.
You cannot change, add, or delete data in tables that
are linked to an Excel workbook in Access
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 904953

Symptoms
In Microsoft Office Access 2007 or in Microsoft Office Access 2003 or in Microsoft Access 2002, you cannot change,
add, or delete data in tables that are linked to a Microsoft Excel workbook.
Additionally, you may experience this behavior when any one of the following conditions is true:
You build a query to retrieve data from tables that are linked to an Excel workbook.
You build a form that accesses data from tables that are linked to an Excel workbook.
You use DAO or ADO to update tables programmatically that are linked to an Excel workbook.
You receive the following message when you perform a query to update records in a linked Excel workbook:

Operation must use an updateable query

You receive the following message when you use DAO to programmatically update tables that are linked to an Excel
workbook:

Runtime Error '3027' Cannot update. Database or object is read-only.

When you try to update the linked data in ADO, the message is the same, but the error number may be similar to
the following:

-2147217911 (80040e09)

When you run a query to insert records into an Excel workbook, you receive the following error message even if
the Excel workbook is not linked to an Access database:

Operation must use an updateable query

Cause
This expected behavior occurs when either of the following conditions is true:
You are using Office Access 2007.
You have installed Microsoft Office 2003 Service Pack 2 (SP2) or a later service pack or any Access 2003 updates
that were released after Office 2003 SP2.
You have installed the update for Access 2002 (KB904018) that is dated October 18, 2005.
You have installed an Access runtime application that includes Microsoft Office 2003 Service Pack 2 (SP2) or a
later service pack, any Access 2003 updates that were released after Office 2003 SP2, or the update for Access
2002 (KB904018) that is dated October 18, 2005 or later.

Workaround
To work around this expected behavior, use one of the following methods.
Method 1: Use Microsoft Excel
Open the linked Excel workbook in Microsoft Excel, and then make your changes to the workbook. When you have
completed the changes, save the changes and then close the workbook.
Method 2: Use Office Access 2007, Access 2003, or Access 2002
Import the linked Excel workbook into Access, and then make your changes to the data. When you have completed
the changes, export the data as an Excel .xls file.
To export the table from Access to Excel, run the following code in Access.
Public Sub WorkArounds()
On Error GoTo Leave

Dim strSQL, SQL As String


Dim Db As ADODB.Connection
Set Db = New ADODB.Connection
Db.CursorLocation = adUseClient
Db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=<AccessPath>"
'Note: In Office Access 2007, use the following line of code:
'Db.Open "PROVIDER=Microsoft.ACE.OLEDB.12.0;Data Source=<AccessPath>"
SQL = "<MyQuery>"
CopyRecordSetToXL SQL, Db
Db.Close
MsgBox "Access has successfully exported the data to excel file.", vbInformation, "Export Successful."
Exit Sub
Leave:
MsgBox Err.Description, vbCritical, "Error"
Exit Sub
End Sub

Private Sub CopyRecordSetToXL(SQL As String, con As ADODB.Connection)


Dim rs As New ADODB.Recordset
Dim x
Dim i As Integer, y As Integer
Dim xlApp As Excel.Application
Dim xlwbBook As Excel.Workbook, xlwbAddin As Excel.Workbook
Dim xlwsSheet As Excel.Worksheet
Dim rnData As Excel.Range
Dim stFile As String, stAddin As String
Dim rng As Range
stFile = "<ExcelPath>"
'Instantiate a new session with the COM-Object Excel.exe.
Set xlApp = New Excel.Application
Set xlwbBook = xlApp.Workbooks.Open(stFile)
Set xlwsSheet = xlwbBook.Worksheets("<WorkSheets>")
xlwsSheet.Activate
'Getting the first cell to input the data.
xlwsSheet.Cells.SpecialCells(xlCellTypeLastCell).Select
y = xlApp.ActiveCell.Column - 1
xlApp.ActiveCell.Offset(1, -y).Select
x = xlwsSheet.Application.ActiveCell.Cells.Address
'Opening the recordset based on the SQL query and saving the data in the Excel worksheet.
rs.CursorLocation = adUseClient
If rs.State = adStateOpen Then
rs.Close
End If
rs.Open SQL, con
If rs.RecordCount > 0 Then
rs.MoveFirst
x = Replace(x, "$", "")
y = Mid(x, 2)
Set rng = xlwsSheet.Range(x)
xlwsSheet.Range(x).CopyFromRecordset rs
End If
xlwbBook.Close True
xlApp.Quit
Set xlwsSheet = Nothing
Set xlwbBook = Nothing
Set xlApp = Nothing

End Sub
NOTE
In this code example, replace the following placeholders:

<AccessPath>
<ExcelPath>
<MyQuery>
<MyQuery> is placeholder for the query that you run against the tables in the Access database. The result of
the query is exported to the Excel workbook.
<WorkSheets>
<WorkSheets> is a placeholder for the worksheet in Excel to which you want to export the result. To run this
code example, press CTRL+G to open the Immediate window, type WorkArounds, and then press ENTER.

More Information
Because of legal issues, Microsoft has disabled the functionality in Access 2003 and in Access 2002 that let users
change the data in linked tables that point to a range in an Excel workbook. However, when you make changes
directly in the Excel workbook, the changes appear in the linked table in Access.
"Run-time error '3709'" when you enter a large
amount of text in a Memo field that contains an index
in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Symptoms
In a Microsoft Access database, when you create a Memo field that includes an index or you create a field name that
includes the automatically indexed text, you cannot enter the text that includes more than approximately 3450
characters into the field. When you try to enter more text into the field or try to edit the existing data, you receive
the following error message:

Run-time error '3709':

The search key not found in any record.

Resolution
If you must enter a large amount of text in the Memo field, delete the index for the Memo field. To do so follow
these steps:
1. Open the table with the Memo field in Design view.
2. On the View Menu, click Indexes.
Note In Microsoft Office Access 2007, click the Design tab, and then click Indexes in the Show/Hide
group.
3. Click the index for the Memo field, and then delete it.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this
article.

More information
This behavior does not occur in versions of Microsoft Access before Microsoft Access 2000 because Memo fields
could not be indexed in Jet 3.5 and earlier.
Steps to reproduce the behavior in Access 2003
1. In a new database, create a new table with the following properties, and then save it as Table1:

Table: Table1
------------------------
Field Name: Id
Data Type: AutoNumber
Primary Key

Field Name: MyCode


Data Type: Memo

2. Add the following record to the Table1 table:

Id MyCode
------------------------------------
1 This is the Memo test data

3. Copy the following SQL statement, paste it into a new query in SQL view, and then save the query as query1:
UPDATE Table1 SET Table1.MyCode = [MyCode] & " " & [MyCode];
4. Create the following module, and then save it Module1:

Sub TestMemoUpdate()
Dim i As Integer
Docmd.setwarnings false
For i = 1 To 10
Docmd.openquery "Query1"
Next i
Docmd.setwarnings true
End Sub

5. Place your pointer so that it is in the procedure. Press F5 to run the code.
Access causes an error when you export fields with
data type single or double to Oracle
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 301915

NOTE
Requires basic macro, coding, and interoperability skills. This article applies to a Microsoft Access database (.mdb) and to a
Microsoft Access project (.adp).

Symptoms
When you use the Oracle ODBC driver to export an Access table that has fields of data type Single or Double, the
driver fails to export those fields as follows.
The Microsoft Oracle driver displays the following error message:

Microsoft Access was unable to append all the data to the table. The contents of fields in <number> record(s)
were deleted, and 0 record(s) were lost due to key violations.
If data was deleted, the data you pasted or imported doesn't match the field data types or the FieldSize
property in the destination table.
If records were lost either the records you pasted contain primary key values that already exist in the
destination table, or they violate referential integrity rules for a relationship defined between tables. Do you
want to continue anyway?

The Oracle ODBC drivers up to and including version 8.1.6 display the following error message:

ODBC - call failed [Oracle][ODBC][ORA] ORA-01401: Inserted value too large for column (#1401)

Cause
In Microsoft Access 97, the export process converts the Single and Double data type fields to VarChar2(40).
However, in Microsoft Access 2000 and later, the fields are converted to VarChar2(4), which it too small to hold the
data.

Resolution
To successfully export the data to Oracle, use a query based on the relevant tables. Use the CStr()function to convert
the data type to String.
For example, consider the following SQL syntax:
SELECT tblExample.pkeyDataID, tblExample.dblTest
FROM tblExample;

where dblTest is a field with a data type of Double. Convert dblTest to a String data type by making the following
change to the SQL syntax:

SELECT tblExample.pkeyDataID, CStr([dblTest]) AS Expr1


FROM tblExample;

The query can now be successfully exported to Oracle.


This problem is resolved in Microsoft Jet 4.0 Database Engine Service Pack 8 (SP8).

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this
article.

More Information
The third-party products that are discussed in this article are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.
"Cannot group on fields selected with '*'" error when
you run a query in Access
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 835414

NOTE
This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file. Requires basic
macro, coding, and interoperability skills.

Symptoms
You may receive an error message when you run a query in a Microsoft Access database that uses one of the
following aggregate functions:
Sum
Min
Max
The error message that you receive is as follow:

Cannot group on fields selected with '*'.

Cause
This problem occurs when you use aggregate functions in the query, and you do not set the Output All Fields
property of the query to No .
When you set the Output All Fields property of the query to Yes , an asterisk (*) wildcard character that
represents all columns of the database table is added to the select clause of the Access query. However, you cannot
have an asterisk (*) wildcard character together with an aggregate function in the select clause of the Access query.
Therefore, when you run the Access query, you may receive the error message that is mentioned in the
"Symptoms" section.

Resolution
To resolve this problem, set the Output All Fields property of the query to No , and then run the Access query that
uses an aggregate function. To do this, follow these steps:
1. Start Access.
2. Open the Access database that contains the problem query.
3. In the Database window, click Queries under the Objects section.
NOTE
In Access 2007, click the Queries group in the left Navigation Pane.

4. Right-click the query that you want to modify, and then click Design View .
5. On the View menu, click Proper ties .

NOTE
In Access 2007, click the Design tab, and then click Proper ty Sheet in the Tools group.

6. In the Quer y Proper ties dialog box, set the value of the Output All Fields query property to No .

NOTE
In Access 2007, click the Stored Procedure tab in the Proper ty dialog box. Make sure that the Output all
columns option is not selected.

7. On the Quer y menu, click Run .

NOTE
In Access 2007, click the Design tab, and then click Run in the Tools group.

More Information
You can use the Output all fields option to automatically include all the fields from the underlying tables in the
results of the final query. You can also use the Output all fields option to automatically include all the fields from
the queries in the results of the final query. When you do this, you do not have to add all the fields from the
underlying tables or all the fields from the queries to the design grid.
To do this in Access 2003 and in earlier versions of Access, follow these steps:
1. Start Access.
2. In the Database window, click Options on the Tools menu.
3. In the Options dialog box, click to select the Output all fields check box on the Tables/Queries tab.
4. Click Apply , and then click OK .
In Access 2007, follow these steps:
1. Start Access.
2. Click Microsoft Office Button , and then click Access Options .
3. Click Object Designers .
4. Click to select the Output all fields check box under Quer y design , and then click OK .

NOTE
When you change the Output all fields option, this only affects the property setting for new queries that you create. When
you change the Output all fields option, this does not affect existing queries.

Steps to reproduce the problem in Access 2003


1. Start Access.
2. Open the Northwind.mdb sample database.
3. Run the Order Subtotals query in the Northwind.mdb sample database to make sure that the Order
Subtotals query runs successfully. To do this, follow these steps:
a. In the Database window, click Queries under the Objects section.
b. In the right pane, right-click the Order Subtotals query, and then click Open .
c. On the File menu, click Close .
Notice that the Order Subtotals query uses theSum() aggregate function.
4. Open the Order Subtotals query in Design view. To do this, follow these steps:
a. In the Database window, click Queries under the Objects section.
b. In the right pane, right-click the Order Subtotals query, and then click Design View .
5. Click anywhere in the Query window outside the query grid and outside the field lists.
6. On the View menu, click Proper ties .
7. In the Quer y Proper ties dialog box, set the value of the Output All Fields query property to Yes .
8. Close the Quer y Proper ties dialog box.
9. On the Quer y menu, click Run .
When you run the query, you may receive the error message that is mentioned in the "Symptoms" section.
You cannot import attribute-centric XML in Access
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Symptoms
When you import an XML document, at least one blank table is imported or not all of the data is imported.
Depending on the structure of the XML document, more than one table may actually be imported.

Cause
If a blank table is imported, it typically indicates that the data of the source XML document is attribute-centric.
Microsoft Access supports only element-centric XML. XML that is persisted from ADO recordsets is created in
attribute-centric XML.

Resolution
This article shows you how to import XML data that is created by persisting an ADO Recordset to its XML format.
The transform that is supplied in this article applies to the ADO XML persisted format.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. In order to import attribute-centric XML into Access, you
must first create and apply an XML Transformation (XSLT) to the source document. This process creates a new XML
document that is element-centric and can be imported into Access.
Create an XML Document from ADO
1. Create a new blank database and name it ImportADOXML.mdb.
2. On the Inser t menu, click Module .
Note In Access 2007, click Macro in the Other group on the Create tab, and then click Module .
3. In the Visual Basic Editor, type or paste the following code into the new module:
Sub CreateADOXML()
'Persists an ADO recordset to XML
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset

'Open an ADO Connection object


'If the path to Northwind differs on your machine, you will need to
'adjust the Data Source property accordingly.
Set cn = New ADODB.Connection
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = "Data Source=C:\Program Files\Microsoft " & _
"Office\Office10\Samples\Northwind.mdb"
.Open
End With

'Open an ADO Recordset


Set rs = New ADODB.Recordset
With rs
Set .ActiveConnection = cn
.Source = "SELECT * FROM Customers WHERE Country='UK'"
.CursorLocation = adUseServer
.CursorType = adOpenForwardOnly
.LockType = adLockReadOnly
.Open
'persist the recordset to XML
.Save "C:\ado_customersUK.xml", adPersistXML
.Close
End With

'Cleanup
cn.Close
Set rs = Nothing
Set cn = Nothing
End Sub

4. Save the module as basCreateADOXML.


5. In the Visual Basic Editor, click Immediate Window on the View menu to open the Immediate window.
6. Type the following code in the Immediate window, and then press ENTER:

CreateADOXML

Create the XSL Transform


Because the namespaces that are defined by ADO are not recognized by Access, the following transform defines
these namespaces, but excludes them from the resulting output.
1. Start Notepad, and then type the following XSLT code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rs="urn:schemas-microsoft-com:rowset"
exclude-result-prefixes="rs">

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>


<xsl:template match="/">
<!-- root element for the XML output -->
<rootElement xmlns:z="#RowsetSchema" xsl:exclude-result-prefixes="z">

<!-- for each z:row element in the ADO output -->


<xsl:for-each select="/xml/rs:data/z:row">

<!--
This will be used for the table name imported into Access.
Change this name to suit your needs.
-->
<TableName>
<!--
for each attribute of the z:row element in the ADO XML document
-->
<xsl:for-each select="@*">

<!--
dynamically create elements and fill with attribute
value using the XPath name() function
-->
<xsl:element name="{name()}">
<xsl:value-of select="."/>
</xsl:element>

</xsl:for-each>
</TableName>

</xsl:for-each>
</rootElement>
</xsl:template>
</xsl:stylesheet>

2. Save the document as ADOXMLToAccess.xsl in the same folder to which you save the ImportADOXML.mdb
database.
Apply the Transform and Import
To apply the XSL transform, you must use an XSLT processor such as the Microsoft MSXML3 processor, which is
installed with Microsoft Office XP. The following steps use the XML Document Object Model to apply the transform
that you created earlier to an ADO XML document and to import it into Access.

NOTE
The sample code in this article uses the XML Document Object Model. For this code to run properly, you must reference the
Microsoft XML 3.0 library. To do so, click References on the Tools menu in the Visual Basic Editor, and ensure that the
Microsoft XML, v3.0 check box is selected.

1. Start Microsoft Access and open the ImportADOXML.mdb database that you created earlier.
2. In the Database window, click Modules under Objects , and then click New .
Note In Access 2007, click Macro in the Other group on the Create tab, and then click Module .
3. In the Visual Basic Editor, type or paste the following code in the module:
Sub ImportXMLFromADO()

'Uses the XML DOM to transform XML from ADO


'to element-centric XML and imports into Access
Dim domIn As DOMDocument30
Dim domOut As DOMDocument30
Dim domStylesheet As DOMDocument30

Set domIn = New DOMDocument30

domIn.async = False

'Open the ADO xml document


If domIn.Load("C:\ado_customersUK.xml") Then

'Load the stylesheet


'In this example you will need to change <PathToStylesheet> to
'the actual path where you stored the ADOXMLToAccess.xsl file.
Set domStylesheet = New DOMDocument30
domStylesheet.Load "<PathToStylesheet>\ADOXMLToAccess.xsl"

'Apply the transform


If Not domStylesheet Is Nothing Then
Set domOut = New DOMDocument30
domIn.transformNodeToObject domStylesheet, domOut

'Save the output


domOut.Save "c:\customersUK.xml"

'Import the saved document into Access


Application.ImportXML "c:\customersUK.xml"
End If
End If

'Cleanup
Set domIn = Nothing
Set domOut = Nothing
Set domStylesheet = Nothing

MsgBox "done!", , "ImportXMLFromADO"


End Sub

4. In the Visual Basic Editor, click Immediate Window on the View menu to open the Immediate Window.
5. Type the following code in the Immediate Window, and then press ENTER:

ImportXMLFromADO

Note that a table containing customers from the UK with the name that you specified for is imported into
Access. You may optionally delete the element-centric XML document that is created during the transformation.

Status
This behavior is by design.

References
For additional information about persisting an ADO Recordset to XML, see Persisting Records in XML Format.
"Cannot Open a database created with a previous
version of your application" in Access 2013 and Access
2016
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

This issue occurs when you try to use Access 2013 or later version of Microsoft Access to open an Access 97
database. To work around this issue, use a pre-Access 2013 version of Access to save the Access 97 database as an
.accdb file:
1. Open the Access 97 database in Access 2003.
2. On the Tools menu, click Database Utilities, click Convert Database, and then click to Access 2002-2003 file
format.
3. Enter a name for the database, and then click Save.
4. Exit Access 2003.
5. Open the database in Access 2013 or later version of Access.
6. On the File tab, click Save As, select Access Database (*.accdb), and then click Save As.
7. In the Save Asdialog box, click Save.

Cause
This issue occurs because recent versions of Access cannot convert Access 97 files.

More Information
When you open an Access 97 database in Access 2010 or Access 2007, the Database Enhancement Wizard helps
you convert the database to an .accdb file. For more information, see Convert a database to the .accdb file format.
By design, recent versions of Access cannot convert Access 97 files.
Find more tips, tricks, and learning opportunities for small business.
"This feature isn't installed, or has been disabled"
when you open a wizard in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You enable the Disable all macros except digitally signed macros option in the Macro Settings pane of the
Trust Center Settings and the Disable all Trusted Locations option in the Trusted Locations pane in
Microsoft Access. When you try to open any wizard, you receive the following error message:

This feature isn't installed, or has been disabled.

To install this feature, rerun the Microsoft Office Access or Microsoft Office Setup program or, if you're
using a third-party add-in, reinstall the add-in. To reenable this wizard, click About Microsoft Office Access
on the Help menu, and then click the Disabled Items button to view a list of addins which you can enable.

Note The Help menu no longer exists in Access 2007 or a later version.

Cause
This problem occurs because the Trust Center security settings disable the wizards in Access.

Workaround
To work around this problem, do not use the Disable all Trusted Locations option together with the Disable all
macros except digitally signed macros option in the Trust Center Settings . To do this, follow these steps:
1. Click the File icon, and then click Access Options .
2. Click Trust Center in the left pane, and then click Trust Center Settings .
3. Click Trusted Locations in the left pane, click to clear the Disable all Trusted Locations, only files signed
by Trusted Publishers will be trusted check box, and then click OK two times.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Steps to reproduce the problem
1. Create a new database in Access.
2. Click the File icon, and then click Access Options .
3. Click Trust Center in the left pane, and then click Trust Center Settings .
4. Click Macro Settings in the left pane, and then enable the Disable all macros except digitally signed
macros option.
5. Click Trusted Locations in the left pane, click to select the Disable all Trusted Locations, only files signed
by Trusted Publishers will be trusted check box, and then click OK two times.
6. On the Create tab, click Repor t Wizard .
"The database cannot be opened because the VBA
project contained in it cannot be read" when you run
a compiled Microsoft Access MDE, ACCDE, or ADE
file in Access 2010
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Access databases that are created by using the 64-bit version of Microsoft Access 2010 and that are
compiled as MDE, ACCDE, and ADE files have to be recompiled in Microsoft Access 2010 Service Pack 1 (SP1) to
work correctly with Access 2010 SP1.
Access 2010 MDE, ACCDE, and ADE databases that were built by using the initial release, or RTM, version of 64-bit
Access 2010 are incompatible with SP1, Also, Access 2010 MDE, ACCDE, and ADE databases that were compiled in
Access 2010 SP1 will not work with the RTM version. Compiled MDE, ACCDE, and ADE databases have to be re-
created from their source ACCDB, MDB, or ADP databases.
Access databases that are created by using the 32-bit version of Access 2010 and that are compiled as MDE,
ACCDE, and ADE files will work correctly with Microsoft Access 2010 SP1. However, Access MDE, ACCDE, and ADE
databases that are created by using the 32-bit version of Microsoft Access 2010 SP1 will not work correctly with
the RTM version.

Symptoms
Consider the following scenarios:
Scenario 1: You create a compiled Access 2010 MDE, ACCDE, or ADE file on a computer on which Access 2010
SP1 (64-bit) is installed. Then, you try to use the file on a computer on which the release version of Access 2010
(64-bit) is installed.
Scenario 2: You create a compiled Access 2010 MDE, ACCDE, or ADE file on a computer on which the release
version of Access 2010 (64-bit) is installed, and then you try to use the file on a computer on which Access SP1
2010 (64-bit) is installed.
Scenario 3: You create a compiled Access 2010 MDE, ACCDE, or ADE file on a computer on which Access 2010
SP1 (32-bit) is installed, and then you try to use the file on a computer on which the release version of Access
2010 (32-bit) is installed.
In these scenarios, the first time that you try to run VBA code, you receive the following error message:
The database cannot be opened because the VBA project contained in it cannot be read. The database can be
opened only if the VBA project is first deleted. Deleting the VBA project removes all code from modules, forms
and reports. You should back up your database before attempting to open the database and delete the VBA
project.

To create a backup copy, click Cancel and then make a backup copy of your database. To open the database and
delete the VBA project without creating a backup copy, click OK.

Cause
This issue occurs because Access 2010 SP1 uses a newer version of the VBE7.dll file (version 7.00.1619).

Resolution
To resolve this issue, compile your Access 2010 MDE, ACCDE, or ADE application by using the version of Access
2010 in which you intend to deploy the MDE, ACCDE, or ADE file.

More Information
The following tables provide a summary of which compiled databases will work with which version of Access 2010.
The tables assume that you are opening a 32-bit MDE, ACCDE, or ADE file in the 32-bit version of Microsoft Access
or that you are opening a 64-bit MDE, ACCDE, or ADE file in the 64-bit version of Access. You cannot open a 32-bit
MDE, ACCDE, or ADE file in 64-bit Access, and you cannot open a 64-bit MDE, ACCDE, or ADE file in 32-bit Access.
An MDE, ACCDE, or ADE file that was created in Access 2010 RTM

K IN D O F F IL E A C C ESS 2010 RT M A C C ESS 2010 SP 1

32-bit MDE, ACCDE, or ADE Works Works

64-bit MDE, ACCDE, or ADE Works Error occurs

An MDE, ACCDE, or ADE file that was created in Access 2010 SP1

K IN D O F F IL E A C C ESS 2010 RT M A C C ESS 2010 SP 1

32-bit MDE, ACCDE, or ADE Error occurs Works

64-bit MDE, ACCDE, or ADE Error occurs Works


"Cannot find the input table or query" or "record
source doesn't exist" error when using Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 287696

NOTE
Requires basic macro, coding, and interoperability skills. This article applies only to a Microsoft Access database (.accdb and
.mdb).

Symptoms
When you open or make a reference to a linked table in Microsoft Access, you may receive one of the following
error messages:
Error message 1

The Microsoft Jet database engine cannot find the input table or query '<name >'. Make sure it exists and that
its name is spelled correctly.

Error message 2

The record source '<name >' specified on this form or report does not exist.

Error message 3
In Microsoft Access 2002

Microsoft Access can't find the object '<name >.'

Run-time error '7874': Microsoft Access can't find the object '<name >.'

In Microsoft Office Access 2003, Microsoft Office Access 2007, and Microsoft Office Access 2010

Microsoft Office Access can't find the object '<name >.'

Run-time error '7874': Microsoft Office Access can't find the object '<name >.'

Cause
You may receive this error message if Access cannot find the table or the query in the database, if a link points to an
external file that does not exist, or if the external file has been moved to a new location. This error can also occur if a
deleted or renamed table or query is referenced on the Lookup tab of another table.

Resolution
To troubleshoot this behavior, do the following:
Check to ensure that the table or query exists. If it does not exist, you can remove all references to it, or if it is a
missing table, reimport or relink the table. If it is a missing query, reimport or re-create the query. Often the
RecordSource property of a form or a report contains a reference to a table or a query whose name has
changed or which has been deleted.
If the table or query exists, it is likely that there is a syntax error or a spelling error in the reference to it. If so,
correct the syntax error or spelling error in the reference.
When you try to open a linked table, the source table may not be in the path that you specified when it was first
linked. If you have moved the file, you can use the Linked Table Manager to update the link information.
"There isn't enough disk space or memory" error
when you perform an operation on an Access table
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies only to a Microsoft Access database (.mdb).

Symptoms
When you perform an operation on a table, you may receive the following error message if the operation creates a
large number of page locks: There isn't enough disk space or memory.
If you run an action query on a large table, you may receive the following error message: There isn't enough disk
space or memory to undo the data changes this action query is about to make.

Cause
The page locks required for the transaction exceed the MaxLocksPerFile value, which defaults to 9500 locks. The
MaxLocksPerFilesetting is stored in the Windows registry.

Resolution
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows

There are several ways to work around this problem:


You can use Regedit.exe to edit the registry and change the MaxLocksPerFilevalue permanently.
You can use the SetOptionmethod of the DBEngine object to change the MaxLocksPerFilevalue temporarily in
code.
If the error occurs when you run an action query, you can modify the query and set its UseTransactionproperty
to No.
Method 1: Changing MaxLocksPerFile in the registry
Use Registry Editor to increase the MaxLocksPerFile value under the following key:
For Microsoft Access 2000, in Microsoft Access 2002, and in Microsoft Office Access 2003 that are running on a 32-
bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0
For Microsoft Access 2000, in Microsoft Access 2002, and in Microsoft Office Access 2003 that are running on a 64-
bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Jet 4.0
For Microsoft Office Access 2007 that is running on a 32-bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Access Connectivity Engine\Engines\ACE
For Microsoft Office Access 2007 that is running on a 64-bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Access Connectivity
Engine\Engines\ACE
For Microsoft Access 2010 that is running on a 32-bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Access Connectivity Engine\Engines\ACE
For Microsoft Office Access 2010 that is running on a 64-bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Access Connectivity
Engine\Engines\ACE
For Microsoft Access 2013 that is running on a 32-bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Access Connectivity Engine\Engines\ACE
For Microsoft Office Access 2013 that is running on a 64-bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Access Connectivity
Engine\Engines\ACE
For Microsoft Access 2016 that is running on a 32-bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Access Connectivity Engine\Engines\ACE
For Microsoft Office Access 2016 that is running on a 64-bit Windows operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Access Connectivity
Engine\Engines\ACE
Note that this method changes the registry setting for all applications that use Microsoft Jet database engine
version 4.0.
Method 2: Using SetOption to change MaxLocksPerFile Temporarily

NOTE
The sample code in this article uses Microsoft Data Access Objects. For this code to run properly, you must reference the
Microsoft DAO 3.6 Object Library. To do so, click References on the Tools menu in the Visual Basic Editor, and make sure that
the Microsoft DAO 3.6 Object Library check box is selected.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. The SetOptionmethod temporarily overrides values for
the Microsoft Jet database engine keys in the registry. The new value remains in effect until you change it again, or
until the DBEngine object is closed.

NOTE
Changes made to the MaxLocksPerFilesetting by using the SetOption method will only be available through the current
session of Data Access Objects (DAO). Queries that are run through the Microsoft Access user interface will still use the
settings in the registry.

The following code sample sets MaxLocksPerFile to 200,000 before executing an update operation inside a
transaction:

Sub LargeUpdate()
On Error GoTo LargeUpdate_Error
Dim db As DAO.Database, ws As DAO.Workspace

' Set MaxLocksPerFile.


DBEngine.SetOption dbMaxLocksPerFile, 200000

Set db = CurrentDb
Set ws = Workspaces(0)

' Perform the update.


ws.BeginTrans
db.Execute "UPDATE BigTable SET Field1 = 'Updated Field'", _
dbFailOnError

ws.CommitTrans

db.Close
MsgBox "Done!"
Exit Sub

LargeUpdate_Error:
MsgBox Err & " " & Error
ws.Rollback
MsgBox "Operation Failed - Update Canceled"
End Sub

Method 3: Setting the UseTransaction property in an action query


If a stored action query causes the error, you can set its UseTransaction property to No. Note that if you do this, you
cannot roll back your changes if there is a problem or an error while the query is running:
1. Open the query in Design view.
2. On the View menu, click Properties.
3. Click an empty space in the upper half of the query window to display the Query Properties dialog box.
4. Set the UseTransactionproperty to No.
5. Save the query and close it.

More information
The MaxLocksPerFilesetting in the registry prevents transactions in the Microsoft Jet database engine from
exceeding a specified value. If a transaction tries to create locks in excess of the MaxLocksPerFile value, the
transaction is split into two or more parts and partially committed.
Steps to reproduce the problem
The following example uses a Visual Basic procedure to create a table with 10,000 records in it, and then modifies
the table in order to cause the error message:
1. Open the sample database Northwind.mdb.
2. Create a module, and then type the following procedure:

Sub CreateBigTable()
Dim db As Database, rs As Recordset
Dim iCounter As Integer, strChar As String
Set db = CurrentDb
db.Execute "CREATE TABLE BigTable (ID LONG, Field1 TEXT(255), " & _
"Field2 TEXT(255), Field3 TEXT(255), Field4 TEXT(255))", _
dbFailOnError
Set rs = db.OpenRecordset("BigTable", dbOpenDynaset)
iCounter = 0
strChar = String(255, " ")
While iCounter <= 10000
rs.AddNew
rs!ID = iCounter
rs!Field1 = strChar
rs!Field2 = strChar
rs!Field3 = strChar
rs!Field4 = strChar
rs.Update
iCounter = iCounter + 1
Wend
MsgBox "Done!"
End Sub

3. To run the procedure, type the following line in the Immediate window, and then press ENTER:

CreateBigTable

The procedure creates a table called BigTable with 10,000 records in it.
4. Save the module as Module1, and then close it.
5. Open the BigTable table in Design view.
6. Change the FieldSizeproperty of Field4 to 253.
7. Save the table. Click Yes when you are prompted that some data may be lost.
Note that, after a while, you receive the following error messages:

Microsoft Access can't change the data type.


There isn't enough disk space or memory.

Errors were encountered during the save operation. Data types were not changed. Properties were not
updated.
"File sharing lock count exceeded…" error during
large transaction processing
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When one or more users process many transactions in a multi-user environment, the transactions may fail with the
following error message:
File sharing lock count exceeded. Increase MaxLocksPerFile registr y entr y.

Cause
The error occurs if the number of locks required to perform a transaction exceeds the maximum number of locks
per file.

Workaround
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious
problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a
problem occurs. For more information about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To work around this problem, increase the maximum number of locks per file. To do this, use one of the following
methods.
Method 1: Set the registry key to MaxLocksPerFile to increase the maximum number of locks per file
1. Click Star t , and then click Run .
2. Type regedit, and then click OK .
3. Use the appropriate method:
In Microsoft Access 2000, in Microsoft Access 2002, and in Microsoft Office Access 2003 that are
running on a 32-bit Windows operating system, use Registry Editor to locate the following registry
key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0
In Microsoft Access 2000, in Microsoft Access 2002, and in Microsoft Office Access 2003 that are
running on a 64-bit Windows operating system, use Registry Editor to locate the following registry
key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Jet 4.0
In Microsoft Office Access 2007 that is running on a 32-bit Windows operating system, use Registry
Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Access Connectivity
Engine\Engines\ACE
In Microsoft Office Access 2007 that is running on a 64-bit Windows operating system, use Registry
Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Access
Connectivity Engine\Engines\ACE
In Microsoft Access 2010 that is running on a 32-bit Windows operating system, use Registry Editor
to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Access Connectivity
Engine\Engines\ACE
In Microsoft Office Access 2010 that is running on a 64-bit Windows operating system, use Registry
Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Access
Connectivity Engine\Engines\ACE
In Microsoft Access 2013 that is running on a 32-bit Windows operating system, use Registry Editor
to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Access Connectivity
Engine\Engines\ACE
In Microsoft Office Access 2013 that is running on a 64-bit Windows operating system, use Registry
Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Access
Connectivity Engine\Engines\ACE
In Microsoft Access 2016 that is running on a 32-bit Windows operating system, use Registry Editor
to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Access Connectivity
Engine\Engines\ACE
In Microsoft Office Access 2016 that is running on a 64-bit Windows operating system, use Registry
Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Access
Connectivity Engine\Engines\ACE
4. In the right pane of Registry Editor, double click MaxLocksPerFile .
5. On the Edit DWORD Value dialog box, click Decimal .
6. Modify the value of the Value data box as required, and then click OK .
Note that this method changes the registry setting for all applications that use Microsoft Jet database engine
version 4.0.
Method 2: Use the SetOption method to temporarily change MaxLocksPerFile
NOTE
The sample code in this article uses Microsoft Data Access Objects. For this code to run correctly, you must reference the
Microsoft DAO 3.6 Object Library. To do so, click References on the Tools menu in the Visual Basic Editor, and make sure
that the Microsoft DAO 3.6 Object Librar y check box is selected.

The SetOption method temporarily overrides the default number of locks per file. You set the default number of
locks per file when you set the MaxLocksPerFile registry key. You set the new value by using the SetOption method.
The new value is valid until you close the DBEngine object. To use Method 2, follow these steps:
1. Open Microsoft Access.
2. Open a database, and then press Alt+F11 to launch the Visual Basic editor.
3. On the Microsoft Visual Basic -<Database Name>-[<Module Name> (Code)] window, click Immediate
Window in the View menu.
4. In Immediate Window , enter the following code.
DAO.DBEngine.SetOption dbmaxlocksperfile,15000 5. Press the ENTER key to run the line of code.
Note This temporarily sets the MaxLocksPerFile value to 15,000.
To process large transactions, set the MaxLocksPerFile value to meet your requirement, and then run the
transactions in the session.
Changes you make to the MaxLocksPerFile setting by using the SetOption method are available only for the current
session.

More information
The MaxLocksPerFile setting determines the maximum number of locks Microsoft Jet places against a file. The
default MaxLocksPerFile value is 9,500. However, do not change this value if you are working on a Novell NetWare
server, because the maximum server record locks per connection is 10,000.
Access errors publishing or exporting to SharePoint
when attachment file name is invalid
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 2711562

Symptoms
You receive one of the following errors when you attempt to export a Microsoft Access table to a SharePoint list:

There was an error copying data to a SharePoint list. The Microsoft Access database engine encountered an
error while communicating with SharePoint. More detailed information:

-OR-

There was an error copying data to a SharePoint list. Network I/O error.

You receive the following error when you attempt to publish a Microsoft Access 2010 database to a SharePoint
Server:

Publish Failed. Your application has encountered errors while attempting to publish. The publish operation has
failed and the target site has not been created.

When you click to view the details for the message, the first error entry is:

"There was an error uploading the data in the tables being created on the server. The Microsoft Access database
engine encountered an error while communicating with SharePoint. More detailed information: "

Cause
A table in the database has an Attachment field that contains a file or files which have names that are invalid in
SharePoint. For instance:
The file name has two periods (..) in front of the file extension, such as, "James Wittrell, Ph.D..jpg"
The file name contains any of the following characters: \ / : * ? " < > | # { } % ~ &

Resolution
1. Open the table in datasheet view in Microsoft Access.
2. Double-click on the Attachment field to open the Attachments window.
3. Select the file that contains the invalid character or characters.
4. Click Save As... and save to your desktop.
5. Click Remove to remove the file from the Attachments list.
6. Click Ok and Save the table.
7. Rename the file you just exported to your desktop so that it no longer contains invalid characters.
8. Add the file back to the record as an Attachment.

More Information
If you attempt to import a file that contains invalid characters directly to a SharePoint list you receive one of the
following errors:

The file name is invalid or the file is empty. A file name cannot contain any of the following characters:
\/:*?"<>|#{}%~&

-OR-

The file name contains one or more invalid characters. Make sure the name of the file does not include the
following characters:
\/:*?"<>|#{}%~&
"Too Many Fields Defined" error when you save a
table in Access
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies only to a Microsoft Access database (.mdb).

Symptoms
When you save a table after you add a new field or change the properties of an existing field, you receive the
following error message:
Too many fields defined.
This message is followed by:
Errors were encountered during save. Data types were not changed.
You receive these messages even though you have 255 or fewer fields defined in the table.
NOTE You also receive this message if you add or modify fields in a report that is based on a table that has too
many fields.

Cause
The internal column count that Microsoft Access uses to track the number of fields in the table has reached 255,
even though you may have fewer than 255 fields in the table. This can happen because Access does not change the
internal column count when you delete a field. Access also creates a new field (increasing the internal column count
by 1) for every field whose properties you modify.

Resolution
To free the internal column count for deleted fields or for fields whose properties you modify, do one of the
following:
Compact the database. To do so, point to Database Utilities on the Tools menu, and then click Compact and
Repair Database.
Create a new copy of the table. To do so, follow these steps:
1. Make note of any relationships with the table.
2. Select the table.
3. On the File menu, click Save As.
4. In the Save Table 'table name ' To box, type a new name, and then click OK.
5. Select the same table that you selected in step 2, and then press DELETE.
6. Rename the table that you saved in step 3 to the original table name.
7. Re-establish any relationships with the new table.

More information
In Access, you can define up to 255 fields in a table. If you create 255 fields and then delete 10, Access does not
release the fields from the internal column count. Also, for every field whose properties you modify, Access creates
a new field and does not release the original field from the internal column count.
Steps to Reproduce the Behavior

NOTE
The sample code in this article uses Microsoft Data Access Objects. For this code to run properly, you must reference the
Microsoft DAO 3.6 Object Library. To do so, click References on the Tools menu in the Visual Basic Editor, and make sure that
the Microsoft DAO 3.6 Object Library check box is selected.

1. Create the following Visual Basic for Applications code to create a new table with 255 fields:

' ****************************************************************
' Declarations section of the module
' ****************************************************************

Option Compare Database


Option Explicit

' ****************************************************************
' The Fill_Table() function creates a table in the current database
' named Field Test with 255 fields, each of which has a Text data
' type and a size of one character.
' ****************************************************************

Function Fill_Table()

Dim mydb As DAO.Database


Dim tbl As DAO.TableDef
Dim fld As DAO.Field
Dim i As Integer

Set mydb = CurrentDb()


Set tbl = mydb.CreateTableDef("Field Test")
For i = 0 To 254
Set fld = tbl.CreateField("Field" & CStr(i + 1))
fld.Type = dbText
fld.Size = 1
tbl.Fields.Append fld
Next i
mydb.TableDefs.Append tbl

End Function

2. Type the following line in the Immediate window to run the function and to create the table:

Fill_Table

3. View the Field Test table in Design view, and then delete the last field so that there are only 254 fields defined
in the table.
4. Add the field again, and try to save the table. Note that you receive the following error messages:
Too many fields defined.

Errors were encountered during the save operation. Fields were not added. Properties were not updated.

References
For more information about database specifications, click Microsoft Access Help on the Help menu, type Access
specifications in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.
"Updating or deleting data in a linked table is not
supported by this ISAM" error in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 824159

NOTE
This article applies to either a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file, and to a
Microsoft Access project (.adp) file. Requires basic macro, coding, and interoperability skills.

Symptoms
If you try to update a Microsoft Access table by using an update query that reads data from a linked-text file, the
update may fail and you may receive the following error message:

Updating data in a linked table is not supported by this ISAM.

Note for Microsoft Office Access 2007 users


To determine the unique number that is associated with the message that you receive, press CTRL+SHIFT+I. The
following number appears in the lower-right corner of this message:

503616

If you try to update an Access table by using a delete query that reads data from a linked-text file, the deletion may
fail and you may receive the following error message:

Deleting data in a linked table is not supported by this ISAM.

Note for Microsoft Office Access 2007 users


To determine the unique number that is associated with the message that you receive, press CTRL+SHIFT+I. The
following number appears in the lower-right corner of this message:

503617

Workaround
To work around this problem, import the text file to the Access database and then run the update query or run the
delete query.
References
For more information about how to import a text file in Microsoft Office Access 2003, click Microsoft Office
Access Help on the Help menu, type Import or link data and objects in the Search for box in the Assistance pane,
and then click Star t searching to view the topic.
For more information about how to import a text file in Microsoft Access 2002, click Microsoft Access Help on
the Help menu, type Import or link data and objects in the Office Assistant or the Answer Wizard, and then click
Search to view the topics returned.
"The expression you entered has a function
containing the wrong number of arguments" when
you use CDec() function in an Access query
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies only to a Microsoft Access database (.mdb).

Symptoms
When you use the CDec() function in a Microsoft Access query, you may receive the following error message:
"The expression you entered has a function containing the wrong number of arguments."

Cause
The CDec() function is supported in Visual Basic for Applications code, but not in Access queries.

Resolution
Create a custom function that uses the CDec() function. Call this custom function from your Access query. For
example:
1. Create a new module and type the following code:

Function NewCDec(MyVal)
NewCDec = CDec(MyVal)
End Function

2. Save and close the module.


3. Type MyID: NewCDec([CategoryID]) in the Field row of a query. Note that when you run this function, it returns
a valid value for the MyID field.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this
article.

More information
Steps to Reproduce Behavior
Office Access 2002 and Office Access 2003
1. Open the sample database Northwind.mdb.
2. In the Database window, click Queries under Objects, and then click New.
3. In the New Query box, click Design View, and then click OK.
4. In the Show Table box, click the Categories table. Click Add, and then click Close.
5. Drag the CategoryName field from the Field List box to the Field row of the first column of the query design
grid.
6. Type MyID: CDec(CategoryID) in the Field row of the second column.
7. Try to move to the next column in the query design grid. Note that you receive the error message mentioned in
the "Symptoms" section.
Office Access 2007 and Office Access 2010
1. Create a new database.
2. Create a new table with the following fields:

NAME DATA T Y P E F IEL D SIZ E

ID AutoNumber Long Integer

MyNum Number Double

3. Save the table as Table1.


4. Open the table to add data and enter 10.55 in the MyNum column.
5. Close Table1.
6. Create a new query in Query Design.
7. Select Table1 in the Show Table window and click Add .
8. Click Close to close the Show Table window.
9. Drag the myNum field from the Field List box at the top of the design screen to the Field row of the first
column of the query design grid.
10. In the Field row in the second column type:
MyNewNum: CDec(myNum)
11. Try to move to the next column in the query design grid. Note that you receive the error message mentioned
in the "Symptoms" section.
Can't use the Access ODBC driver or OLEDB provider
outside Office Click-to-Run applications
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to create an ODBC DSN for drivers that are provided by Microsoft Access in the Data Sources ODBC
Administrator, the attempt fails. This problem occurs if you're using a Click-to-Run (C2R) installation of Office.
Depending on the version of Office, you may encounter any of the following issues when you try this operation:
The ODBC drivers provided by ACEODBC.DLL are not listed in the Select a driver dialog box.
You receive a "The operating system is not presently configured to run this application" error message.
You receive an "Unable to load odbcji32.dll" error message.
You receive a "The driver of this User DSN does not exist. It can only be removed" error message together
with the platform showing N/A .

Affected drivers:
Microsoft Access Driver (*.mdb, *.accdb)
Microsoft Access Text Driver (*.txt, *.csv)
Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)
Microsoft Access
Microsoft Excel
Additionally, if you try to define an OLEDB connection from an external application (one that's running outside of
Office) by using the Microsoft.ACE.OLEDB.12.0 OLEDB provider, you encounter a "Provider cannot be found" error
when you try to connect to the provider.

Cause
Click-to-Run installations of Office run in an isolated virtual environment on the local operating system. Some
applications outside Office may not be aware of where to look for the installation in the isolated environment.
Overview of Click-to-Run for Office 365 setup architecture

Resolution
ODBC connections to be used in Office applications
You can work around the issue by creating a DSN from within an Office application, such as Access, instead of using
the ODBC Administrator. To create a new DSN in Access, follow these steps:
1. On the ribbon, select External Data > ODBC Database .
2. Select Impor t or Link , and then click OK .
3. Select the tab for the kind of DSN that you want to create (File Data Source or Machine Data Source ), and
then click New .
4. Select the appropriate driver along with any required information to complete the entry.
5. After the DSN is created, click Cancel to exit the remaining Import/Link steps.
6. The DSN should now appear in the ODBC Administrator, and you can use it in any Office application.
ODBC or Microsoft.ACE.OLEDB.12.0 OLEDB provider connections that will be used outside of Office
You must install an MSI installation of the Microsoft Access Database Engine from one of the following sources so
that the calling application can locate the driver and provider.
Microsoft Access Database Engine 2016 Redistributable
Note If Office 365 is already installed, side-by-side detection will prevent the installation from proceeding. To install
the package, perform a quiet installation by running a command such as the following:

<File location>:\<File name> /quiet


For example: C:\AccessDatabaseEngine.exe /quiet

Microsoft Access 2013 Runtime


Microsoft Access Database Engine 2010 Redistributable
How to make a change to dates by using functions
and operators in Access
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

This article applies to either a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file,
and to a Microsoft Access project (.adp) file.
Moderate: Requires basic macro, coding, and interoperability skills.

Summary
This article describes the functions and the operators that are available in Microsoft Office Access 2007, in
Microsoft Office Access 2003, and in Microsoft Access 2002. You can use the functions and the operators to make a
change to the Date/Time data type by using example queries. The example queries that you can use to make a
change to the date values use the tables in the Northwind.mdb sample database.

NOTE
The Northwind sample database for Access 2007 does not use the same fields as the earlier versions of the Northwind
sample database. There are no HireDate and BirthDate fields in the Employees table that is included with the Northwind
sample database for Access 2007. The EmployeeID field has been renamed ID and the FirstName field has been renamed First
Name.

More Information
Access provides operators and functions to validate or to make a change to the fields with the Date/Time data type.
The following example queries use the date manipulations, the calculation functions, and the comparison operators
that are available in Access.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure. However, they will not modify these examples to provide added functionality
or construct procedures to meet your specific requirements.
Date () function, Now() function, and Format() function
SELECT Date(), Now();
The Date() function returns the current date in the short-date format. The Now() function returns the current date
with the time.
SELECT Format(Now(), "dd mmmm yyyy");
You can use the Format() function with date values to specify the date format that you want to use for the date. This
example query returns the current date in the long date format (01 December 2003).
Day() function, WeekDay() function, Month() function, and Year() function

SELECT HireDate, Day(HireDate) AS Day,


Weekday(HireDate) AS WeekDay,
Month(HireDate) AS Month, Year(HireDate) AS Year
FROM Employees;

From the Employees table, this query returns the date of hire, the day of hire, the day of the week of hire, the month
of hire, and the year of hire for each employee. Notice that the WeekDay() function returns a numeric value that
indicates the day of the week.
DatePart() function

SELECT * FROM Employees


WHERE DatePart("yyyy", BirthDate) < 1960;

From the Employees table, this query returns all the employees who were born before the year 1960. The
DatePart() function can be used to extract the part of the specified date, such as the day, the month, or the year.
DateDiff() function

SELECT EmployeeID, FirstName, BirthDate,


DateDiff("yyyy", BirthDate, Date()) AS Age
FROM Employees;

From the Employees table, this query returns the employee ID, the first name, the date of birth, and the age of each
employee. The DateDiff() function returns the difference or the time lag between the two specified date values (in
terms of the day, the month, the year, or the time units, such as hours, minutes, and seconds).
DateAdd() function

SELECT EmployeeID, FirstName, HireDate,


DateAdd("yyyy", 10, HireDate)
FROM Employees;

From the Employees table, this query returns the employee ID, the first name, the hire date, and the date that the
employee finishes 10 years of service with the company. The DateAdd() function increments a date by a specified
number of time units, such as a day, a month, or a year and then returns the resultant value.
You can add a numeric value to a date value directly. Do this to increment the date value by a day, as in the
following example:
SELECT Date() + 1 ;
This query increments the current date by one day and then returns the resultant date value.
DateValue () function
SELECT DateValue("20 Nov 2003") AS ValidDate;
The DateValue() function verifies whether the input string is a valid date. If the input string is recognized as a valid
date, the date is returned in short-date format. If the input string is not recognized as a valid date, the statement
"Data type mismatch in criteria expression" is returned. The DateValue() function recognizes a variety of date
formats, such as mm dd yyyy, dd mm yyyy, dd mmm yyyy, and dd mmm yyyy hh:mm:ss long date format.
DateSerial() function
SELECT DateSerial( 2003, 03, 1-1);
The DateSerial() function returns the date value for the specified input parameters of year, month, and day. The
input parameters can be expressions that involve arithmetical operations. The DateSerial() function evaluates the
expressions in the input parameters before it returns the resultant date value.
This example query returns the last day in the month of February for the year 2003. The last input parameter for
the day with the value of 1 is decremented by 1. The result is that the month parameter is evaluated to 2.
Use comparison operators with date values
You can use the following comparison operators to compare date values in expressions and in queries:
< (less than)
> (greater than)
<= (less than or equal to)
>= (greater than or equal to)
<> (not equal)

SELECT * FROM Employees


WHERE HireDate >= DateValue(" 10/01/1993")
AND HireDate <= DateValue("12/31/1993");

This query uses the >= comparison operator and the <= comparison operator to verify whether the hire date of
the employee falls in the range of the two specified dates. This query fetches the records of all employees who were
hired in the last quarter of the calendar year 1993.

SELECT * FROM Employees


WHERE HireDate <> Date();

This query uses the inequality comparison operator to fetch the records of all employees who have a hire date that
is not equal to the current date.
WeekdayName () function
SELECT WeekdayName(1, False, 1) AS FirstWeekDayName;
The WeekdayName() function returns a string that indicates the day of the week, as specified in the first parameter.
The day of the week string that is returned depends on the third parameter. This parameter sets the first day of the
week. The second parameter is set to False to specify that the weekday name must not be abbreviated.
This example query returns the value Sunday as the first day of the week.
MonthName () function
SELECT MonthName(1);
The MonthName() function returns a string that indicates the month name for the specified month number from 1
through 12. The input parameter can also be an expression, as in the following query:
SELECT MonthName( DatePar t("m", Date()) );
This query returns the name of the current month.

References
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
290178 How to create a query that has parameters to evaluate complex criteria in Microsoft Access
290190 How to create two functions to calculate age in months and in years in Microsoft Access
How to programmatically change the connection of
an Access project
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies only to a Microsoft Access project (.adp).

Summary
This article shows you how to programmatically change the connection of a Microsoft Access project (ADP) file.

More information
The easiest way to change the connection of an ADP is to do it manually. You can access the current project's
connection properties as follows in Access 2002 or in Access 2003: on the File menu, click Connection. The dialog
box that appears gives you options to change the server name and security modes, among other properties.
Note In Access 2007, follow these steps to open the Connection tab of the Data Link Proper ties dialog box:
1. Click the Microsoft Office Button , and then click Access Options .
2. On the Customize tab, click All Commands in the Choose commands from list.
3. Click Connection in the left pane, click Add , and then click OK .
4. Click Connection in the Quick Access Toolbar .
However, sometimes, you might want to automate the process. You may want users to connect to a different SQL
server for a specific section of your application, or you may want to control the connection process upon startup so
that you can look for errors and handle them accordingly, perhaps by routing to another server.
The following steps use a function that demonstrates how to change the existing connection of an ADP by using the
Access object model. The function returns True if it succeeds and False if it does not succeed.
1. Start Access, and then open the sample Access project NorthwindCS.adp.
2. In Access 2002 or in Access 2003, click Modules under Objects in the Database window, and then click
New to open a new module.
In Access 2007, click the down arrow below Macro in the Other group on the Create tab, and then click
Module .
3. Add the following code to the new module, and then save the module:
Function ChangeADPConnection(strServerName As String, strDBName As _
String, Optional strUN As String, Optional strPW As String) As Boolean
Dim strConnect As String
On Error GoTo EH:
Application.CurrentProject.CloseConnection
'The Provider, Data Source, and Initial Catalog arguments are required.
strConnect = "Provider=SQLOLEDB.1" & _
";Data Source=" & strServerName & _
";Initial Catalog=" & strDBName
If strUN <> "" Then
strConnect = strConnect & ";user id=" & strUN
If strPW <> "" Then
strConnect = strConnect & ";password=" & strPW
End If
Else 'Try to use integrated security if no username is supplied.
strConnect = strConnect & ";integrated security=SSPI"
End If
Application.CurrentProject.OpenConnection strConnect
ChangeADPConnection = True
Exit Function
EH:
MsgBox Err.Number & ": " & Err.Description, vbCritical, "Connection Error"
ChangeADPConnection = False
End Function

4. In Access 2002 or in Access 2003 click Forms under Objects in the Database window, click New , and then
click OK to open a new form in Design view.
In Access 2007, click Form on the Create tab.
5. Add a command button to the form.
6. Set the OnClick property of the command button to the following event procedure:

Dim bCheckConnection As Boolean


'You must specify the correct parameters for your following server.
'username and password parameters are optional.
bCheckConnection=ChangeADPConnection("ServerName","DBName","UserName","PW")
MsgBox bCheckConnection

7. Close the Visual Basic environment to return to the form.


8. Save the form, and then switch the form to Form view.
9. Click the command button to run the underlying code.
You will receive a message box that says True if you supplied correct parameters for a connection in step 6.
-OR-
If you did not supply the correct parameters, you receive the error message. When you click OK to the error
message, you get the message box that displays False.
Connection error when using
CurrentProject.Connection or CurrentDB.Connection
in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 2459087

Symptoms
When you open your database in Access, you receive the following error message:

Method 'Connection' of object '_Current Project' failed.

This failure occurs when the VBA Application.CurrentProject.Connection or Application.CurrentDB.Connection is


called.

Cause
The Access Database Engine/Access Connectivity Engine (ACE) is included with a number of products other
than Microsoft Access such as Microsoft Visio and Microsoft Project. If you install a version of ACE that's different
than that of Access, the ACEOLEDB.DLL path in the registry may not point to the corresponding ACE version.

Resolution
You should be able to resolve this issue by running a repair of the Office or Access installation.
Alternatively, you can modify the registry key changing the dll path to match that of your Access version.

NOTE
Access 2007 - OFFICE12, Access 2010 - OFFICE14, Access 2013 - OFFICE15 and Access 2016 - OFFICE16.

MSI installations
(OS: 64-bit and Office: 64-bit) or (OS: 32-bit and Office: 32-bit)
Key: HKCR\CLSID\{3BE786A0-0366-4F5C-9434-25CF162E475E}\InprocServer32\

Value Name: (Default)


Value Data: C:\Program Files\Common Files\Microsoft Shared\OFFICE15\ACEOLEDB.DLL

(OS: 64-bit and Office: 32-bit)


Key: HKCR\Wow6432Node\CLSID\{3BE786A0-0366-4F5C-9434-25CF162E475E}\InprocServer32\
Value Name: (Default)
Value Data: C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\ACEOLEDB.DLL

Click-2-Run installations
(OS: 64-bit and Office: 64-bit) or (OS: 32-bit and Office: 32-bit)
Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\CLSID\{3BE786A0-0366-
4F5C-9434-25CF162E475E}\InprocServer32

Value Name: (Default)


Value Data: C:\Program Files\Common Files\Microsoft Shared\OFFICE15\ACEOLEDB.DLL

(OS: 64-bit and Office: 32-bit)


Key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\Wow6432Node\CLSID\
{3BE786A0-0366-4F5C-9434-25CF162E475E}\InprocServer32

Value Name: (Default)


Value Data: C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\ACEOLEDB.DLL
How to convert data values of the Text data type to
the proper case format in Microsoft Access
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Summary
This article describes how to convert data values of the Text data type to the proper case format.

More information
The data values of Text data type can be converted to the proper case format by using one of the following
methods:
Method 1: Use the Built-In String Conversion Function
Method 2: Use a User-Defined Function
Note Before you use either of these methods, create a sample table that is named MyTestTextList. To do this, follow
these steps:
1. Create a new blank database in Access.
2. Create a new table with the following fields:

Field Name: testText


Data Type: Text

3. Save the table as MyTestTextList.


4. Add the following sample testText to the table:

the cOw jumped Over the MOON

THE QUICK BROWN FOX jUmped over THE lazy DOG

5. Save the database as MyTestDatabase.


Method 1: Use the built-in string conversion function
1. Open the MyTestDatabase database in Access.
2. On the Inser t menu, click Quer y .
Note In Microsoft Office Access 2007 or a later version, click Quer y Design in the Other group on the
Create tab.
3. In the New Quer y dialog box, click Design view .
Note In Access 2007 or a later version, skip this step.
4. In the Show Table dialog box, click Close .
5. On the View menu, click SQL View .
Note In Access 2007 or a later version, click SQL in the Results group on the Design tab.
6. Type the following code in the SQL view:

SELECT testText, STRCONV(testText,3) as TestText_in_Proper_Case FROM MyTestTextList

7. On the Quer y menu, click Run .


Note In Access 2007 or a later version, click Run in the Results group on the Design tab.
The output of the query follows:

TestTextTestText_in_Proper_Case
the cOw jumped Over the MOONThe Cow Jumped Over The Moon
THE QUICK BROWN FOX jUmped overTHE lazy DOG The Quick Brown Fox Jumped Over The Lazy Dog

Note The StrConv(,3) method converts the first letter of every word in the text to uppercase. This behavior occurs
only when the words are separated by a space or a tab. StrConv does not treat the special characters, such as - or $,
as a word separator.
Method 2: Use a user-defined function
1. Open the MyTestDatabase database in Access.
2. On the Inser t menu, click Module .
Note In Access 2007 or a later version, click the drop-down arrow under Macro in the Other group on the
Create tab.
3. Type the following code in the current module and save your changes.
Function Proper(X)
Capitalize first letter of every word in a field.

Dim Temp$, C$, OldC$, i As Integer

If IsNull(X) Then

Exit Function

Else

Temp$ = CStr(LCase(X))

' Initialize OldC$ to a single space because first


' letter must be capitalized but has no preceding letter.

OldC$ = " "

For i = 1 To Len(Temp$)
C$ = Mid$(Temp$, i, 1)
If C$ >= "a" And C$ <= "z" And (OldC$ < "a" Or OldC$ > "z") Then
Mid$(Temp$, i, 1) = UCase$(C$)
End If
OldC$ = C$
Next i

Proper = Temp$

End If

End Function

Note You must specify Option Compare Database in the "Declarations" section of this module for the function to
work correctly.
4. On the File menu, click Close and Return to Microsoft Access .
Note On the File menu, click Close for Access 97.
5. On the Inser t menu, click Quer y .
Note In Access 2007 or a later version, click Quer y Design in the Other group on the Create tab.
6. In the New Quer y dialog box, click Design view .
Note In Access 2007 or a later version, skip this step.
7. In the Show Table dialog box, click Close .
8. On the View menu, click SQL View .
Note In Access 2007 or a later version, click SQL in the Results group on the Design tab.
9. Type the following code in the SQL view:

SELECT testText, proper(testText) as testText_in_Proper_Case FROM MyTestTextList

Notice that this query is similar to the query in Method 1. This is except for the function call.
10. On the Quer y menu, click Run .
Note In Access 2007 or a later version, click Run in the Results group on the Design tab.
The output of the query follows:

TestTextTestText_in_Proper_Case
the cOw jumped Over the MOONThe Cow Jumped Over The Moon
THE QUICK BROWN FOX jUmped overTHE lazy DOG The Quick Brown Fox Jumped Over The Lazy Dog

While the output of both methods is similar, Method 2 gives you the flexibility to select any case format. This
includes a chosen word separator such as - or _. You can define the required case format, or you can define a word
separator. You can do this if you modify the Proper function that is mentioned in step 3.
"Could not deploy package" or "Script execution
error" when you deploy DACPAC files from Access
web app package
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
As part of the retirement process for Access web apps, apps are packaged into an Access app package as they are
retired. These packages are stored in a newly created document library that is given the same name as the app.
To retrieve data from a packaged app, extract the *.DACPAC file, and then deploy the data-tier application to SQL
Server. To do this, follow the step in the "Open an Access app package to work with its contents" section of
the Access Services in SharePoint Roadmap article.
This article describes an alternative method to recover the data in the tables of an Access web app when you
experience the following scenarios:
The Access web app contains validation errors.
You receive error messages that resemble the following:
Error SQL72014: Could not deploy package.
Error SQL72045: Script execution error.
You can't deploy the DACPAC.

More Information
To recover the data by using the alternative method, follow these steps.
Unpack the DACPAC
1. Download and install Microsoft SQL Server Data-Tier Application Framework (17.8 GA DacFx).
2. Double-click the appdb.dacpac from your Access app package, select a destination location, and then click
Unpack .
See the "Open an Access app package to work with its contents" section of the Access Services in SharePoint
Roadmap article for more information about how to extract the DACPAC from an app package.
Create SQL Server database
Create a database in SQL Server.
Create tables from a DACPAC model.sql script
1. Create a query, and make sure that the database context in SQL Server Management Studio (SSMS) is
pointing to the newly created database.

2. Add the following CREATE SCHEMA syntax to the new query.

3. Open model.sql from the unpacked DACPAC in SSMS.


4. Locate the CREATE TABLE syntax for the tables that you want to restore.
5. Copy and paste the desired CREATE TABLE syntax into the new query under the CREATE SCHEMA entries.
6. After you locate the desired tables and create your own script in the new query, run the query.
The following sample script creates the Person and PersonAddress tables:
Populate tables with data by using a bulk copy program (BCP)
1. Sign in to SQL Server.
2. A bcp utility should already be installed. If it is necessary, install it as part of the Microsoft Command Line
Utilities 14.0 for SQL Server.
3. Open a Command Prompt window.
4. Create and run the bcp command for your environment or tables.
SQL Signin

bcp <NewDatabaseName>.<Schema>.<Table> in "<BCPFilePath>" -N -S <ServerName> -U <UserName> -P <Password>

Example:

bcp SampleDatabase.Access.Person in "c:\temp\appdb\Data\Access.Person\TableData-000-00000.BCP" -N -S


Server1 -U User1 -P PWD

Integrated Security/Trusted Connection

bcp <NewDatabaseName>.<Schema>.<Table> in "<BCPFilePath>" -N -T

Example:

bcp SampleDatabase.Access.Person in "c:\temp\appdb\Data\Access.Person\TableData-000-00000.BCP" -N -S


Server1 -T

5. Repeat the command for each table that you want to populate with data.
For more information about the bcp utility, see bcp Utility.
Description of the expressions to count yes, no, and
other responses in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Summary
This article lists sample expressions that you can use to count the occurrences of Yes, No, or Null in a field with a
Yes/No data type.

More information
You can use the following expressions in a report footer to count the occurrences of Yes, No, or Null in a field
named YesNoField with a data type of Yes/No:

EXP RESSIO N SUM S W H AT

=Sum(IIF([YesNoField],1,0)) Yes

=Sum(IIF([YesNoField],0,1)) No

=Sum(IIF(Not[YesNoField],1,0)) No

=Sum(IIF(IsNull[YesNoField],1,0)) Null

You can also create a related expression to count a specific value in a field. For example, the following sample
expression counts all occurrences of the value 3 in a field called MyField.
=Sum(IIF([MyField]=3,1,0))
Example Using Sample Database Northwind
1. Open the sample database Northwind in Access.
2. Use the Repor t Wizard to create a report based on the Products table.
3. Select Categor yID and UnitPrice as the fields for the report.
4. Group on Categor yID .
5. In the design view of the report, click Sor ting and Grouping on the View menu, and make sure that the
GroupFooter property for Categor yID is set to Yes .
Note In Access 2007, in the design view of the report, on the Design tab, click Group & Sor t in the
Grouping & Totals group, and make sure that the with a footer section property for Categor yID is
selected.
6. Add an unbound text box in the Categor yID footer section with the ControlSource property for the text
box set to the following expression:
=Sum(IIF([Discontinued],1,0))
7. Add a second unbound text box with the ControlSource property for the text box set to the following
expression:
=Sum(IIF([Discontinued],0,1))
8. On the File menu, click Print Preview .
In Access 2007, click Microsoft Office Button , point to Print , and then click Print Preview .
Notice that the first expression will count the number of products within each category that have the
Discontinued field set to Yes. The second expression will count the number of products within each category
that have the Discontinued field set to No.
Error messages or Access crashes after you install
security update MS16-004
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you apply security update 2881067, 2881029, 3039794, or 2920727 that are described in security bulletin
MS16-004, you have problems that affect your Access database if you use certain Windows common controls.
Specifically, these problems occur if you use the controls that are associated with the MSCOMCTL.OCX file that's
updated in the security update. These problems may include the following:
The program crashes when you try to open an object that includes one of the controls.
You receive error messages that indicate that events were canceled. Example error messages include (but
aren't limited to) the following:

Error 459: Object or class does not support the set of events.

2501: <EventName> action cancelled.

The expression <EventName> you entered as the event property setting produced the following error:
Object of class does not support the set of events.

Cause
This problem occurs because security update MS16-004 may prevent certain ActiveX controls from loading
correctly within pre-existing Access databases or in Design view.

Resolution
To fix this problem, reregister the MSCOMCTL.OCX file. If Method 1 does not fix the problem, you may have to use
Method 2 to first manually delete a registry key that's associated with MSCOMCTL.OCX.
Method 1: Reregister MSCOMCTL.OCX from an elevated command prompt
To reregister MSCOMCTL.OCX, follow these steps:
1. Open an administrative command prompt.
2. On a 64-bit system, run the following commands:

Regsvr32 /u "C:\Windows\SysWOW64\MSCOMCTL.OCX" Regsvr32 "C:\Windows\SysWOW64\MSCOMCTL.OCX"

3. On a 32-bit system, run the following commands:


Regsvr32 /u "C:\Windows\System32\MSCOMCTL.OCX" Regsvr32 "C:\Windows\System32\MSCOMCTL.OCX"

Method 2: Manually update the registry

NOTE
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

1. Exit all Office programs.


2. Click Star t , type regedit in the Star t search box, and then click OK .
3. In Registry Editor, locate and delete the following 2.0 subkey:
HKEY_CL ASSES_ROOT\TypeLib{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0
4. Run steps 1-3 in Method.
Method 3 (for administrators): Run a batch file to update systems automatically

NOTE
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

After you successfully determine the fix for this problem in your environment by using Methods 1 and 2, you can
automate the process. To do this, follow these steps:
1. Create a text file, and then paste the following text in it:

reg delete hkcr\typelib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0 /f

if exist %systemroot%\SysWOW64\cscript.exe goto 64


%systemroot%\system32\regsvr32 /u mscomctl.ocx
%systemroot%\system32\regsvr32 mscomctl.ocx
exit

:64
%systemroot%\sysWOW64\regsvr32 /u mscomctl.ocx
%systemroot%\sysWOW64\regsvr32 mscomctl.ocx
Exit

2. Save the file.


3. Change the file name extension from .txt to .bat.
4. Run the .bat file. To do this, right-click it, and then click Run as Administrator . (In Windows XP, double-click
the file.)

NOTE
If you have determined in Method 1 that you don't have to delete the registry key that's mentioned in Method 2 in order to
make your application work, you can remove the "reg delete" line from the batch file.

More Information
The controls that are associated with MSCOMCTL.OCX are listed in the Inser t ActiveX Control dialog box as
follows:
Microsoft ImageComboBox Control 6.0 (SP6)
Microsoft ImageList Control 6.0 (SP6)
Microsoft ListView Control 6.0 (SP6)
Microsoft ProgressBar Control 6.0 (SP6)
Microsoft Slider Control 6.0 (SP6)
Microsoft StatusBar Control 6.0 (SP6)
Microsoft TabStrip Control 6.0 (SP6)
Microsoft Toolbar Control 6.0 (SP6)
Microsoft TreeView Control 6.0 (SP6)

NOTE
The version number and service pack level may be something other than "6.0 (SP6)".

Problems are also reported to have occurred in other Office products after this update is installed, although the
symptoms may vary from those that occur in Access. In other programs, you may not have to make any changes in
the registry.

References
For more information about this security update, see the following Microsoft Knowledge Base articles:
Microsoft Security Bulletin MS16-004 - Critical
MS16-004: Description of the security update for the 2007 Microsoft Office Suite: January 12, 2016
MS16-004: Description of the security update for Office 2010: January 12, 2016
MS16-004: Description of the security update for Office 2013: January 12, 2016
MS16-004: Description of the security update for Office 2016: January 12, 2016
Access crashes when you update a linked SharePoint
list
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 3200416

Symptoms
When you update a linked SharePoint list in Microsoft Access, and then you try to commit the record change,
Access crashes.

Cause
This problem occurs because of an infinite loop condition that occurs when Access tries to validate a lookup
column's bound value, and the physical order of the bound value is not also in logical order. This problem occurs if
the Use the cache format that is compatible with Microsoft Access 2010 and later check box is not
selected.

Workaround
To work around this problem, select the Use the cache format that is compatible with Microsoft Access
2010 and later check box. To do this, follow these steps:
1. In Access, select File > Options .
2. Select Current Database .
3. Scroll down to the Caching Web Ser vice area, and then locate the Microsoft SharePoint tables.
4. Make sure the Use the cache format that is compatible with Microsoft Access 2010 and later check
box is selected.

More Information
For more information about known issues that occur when you use SharePoint lists in Access, see Access cache
formats for SharePoint lists and document libraries.
How to create a DSN-less connection to SQL Server
for linked tables in Access
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies only to a Microsoft Access database (.accdb and .mdb).

Introduction
This article describes how to create a connection to Microsoft SQL Server for linked tables in Microsoft Access that
does not use a data source name (DSN). This is also known as a DSN-less connection.

More information
You can use a DSN to create linked SQL Server tables in Microsoft Access. But when you move the database to
another computer, you must re-create the DSN on that computer. This procedure may be problematic when you
have to perform it on more than one computer. When this procedure is not performed correctly, the linked tables
may not be able to locate the DSN. Therefore, the linked tables may not be able to connect to SQL Server.
When you want to create a link to a SQL Server table but do not want to hard-code a DSN in the Data Sources
dialog box, use one of the following methods to create a DSN-less connection to SQL Server.
Method 1: Use the CreateTableDef method
The CreateTableDef method lets you create a linked table. To use this method, create a new module, and then add
the following AttachDSNLessTable function to the new module.
'//Name : AttachDSNLessTable
'//Purpose : Create a linked table to SQL Server without using a DSN
'//Parameters
'// stLocalTableName: Name of the table that you are creating in the current database
'// stRemoteTableName: Name of the table that you are linking to on the SQL Server database
'// stServer: Name of the SQL Server that you are linking to
'// stDatabase: Name of the SQL Server database that you are linking to
'// stUsername: Name of the SQL Server user who can connect to SQL Server, leave blank to use a Trusted
Connection
'// stPassword: SQL Server user password
Function AttachDSNLessTable(stLocalTableName As String, stRemoteTableName As String, stServer As String,
stDatabase As String, Optional stUsername As String, Optional stPassword As String)
On Error GoTo AttachDSNLessTable_Err
Dim td As TableDef
Dim stConnect As String

For Each td In CurrentDb.TableDefs


If td.Name = stLocalTableName Then
CurrentDb.TableDefs.Delete stLocalTableName
End If
Next

If Len(stUsername) = 0 Then
'//Use trusted authentication if stUsername is not supplied.
stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase &
";Trusted_Connection=Yes"
Else
'//WARNING: This will save the username and the password with the linked table information.
stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";UID=" &
stUsername & ";PWD=" & stPassword
End If
Set td = CurrentDb.CreateTableDef(stLocalTableName, dbAttachSavePWD, stRemoteTableName, stConnect)
CurrentDb.TableDefs.Append td
AttachDSNLessTable = True
Exit Function

AttachDSNLessTable_Err:

AttachDSNLessTable = False
MsgBox "AttachDSNLessTable encountered an unexpected error: " & Err.Description

End Function

To call the AttachDSNLessTable function, add code that is similar to one of the following code examples in the
AutoExec macro or in the startup form Form_Open event:
When you use the AutoExec macro, call the AttachDSNLessTable function, and then pass parameters that are
similar to the following from the RunCode action.

AttachDSNLessTable ("authors", "authors", "(local)", "pubs", "", "")

When you use the startup form, add code that is similar to the following to the Form_Open event.

Private Sub Form_Open(Cancel As Integer)


If AttachDSNLessTable("authors", "authors", "(local)", "pubs", "", "") Then
'// All is okay.
Else
'// Not okay.
End If
End Sub
Note You must adjust your programming logic when you add more than one linked table to the Access database.
Method 2: Use the DAO.RegisterDatabase method
The DAO.RegisterDatabase method lets you create a DSN connection in the AutoExec macro or in the startup form.
Although this method does not remove the requirement for a DSN connection, it does help you resolve the issue by
creating the DSN connection in code. To use this method, create a new module, and then add the following
CreateDSNConnection function to the new module.

'//Name : CreateDSNConnection
'//Purpose : Create a DSN to link tables to SQL Server
'//Parameters
'// stServer: Name of SQL Server that you are linking to
'// stDatabase: Name of the SQL Server database that you are linking to
'// stUsername: Name of the SQL Server user who can connect to SQL Server, leave blank to use a Trusted
Connection
'// stPassword: SQL Server user password
Function CreateDSNConnection(stServer As String, stDatabase As String, Optional stUsername As String, Optional
stPassword As String) As Boolean
On Error GoTo CreateDSNConnection_Err

Dim stConnect As String

If Len(stUsername) = 0 Then
'//Use trusted authentication if stUsername is not supplied.
stConnect = "Description=myDSN" & vbCr & "SERVER=" & stServer & vbCr & "DATABASE=" & stDatabase & vbCr
& "Trusted_Connection=Yes"
Else
stConnect = "Description=myDSN" & vbCr & "SERVER=" & stServer & vbCr & "DATABASE=" & stDatabase & vbCr
End If

DBEngine.RegisterDatabase "myDSN", "SQL Server", True, stConnect

'// Add error checking.


CreateDSNConnection = True
Exit Function
CreateDSNConnection_Err:

CreateDSNConnection = False
MsgBox "CreateDSNConnection encountered an unexpected error: " & Err.Description

End Function

Note If the RegisterDatabase method is called again, the DSN is updated.


To call the CreateDSNConnection function, add code that is similar to one of the following code examples in the
AutoExec macro or in the startup form Form_Open event:
When you use the AutoExec macro, call the CreateDSNConnection function, and then pass parameters that
are similar to the following from the RunCode action.

CreateDSNConnection ("(local)", "pubs", "", "")

When you use the startup form, add code that is similar to the following to the Form_Open event.
Private Sub Form_Open(Cancel As Integer)
If CreateDSNConnection("(local)", "pubs", "", "") Then
'// All is okay.
Else
'// Not okay.
End If
End Sub

Note This method assumes that you have already created the SQL Server linked tables in the Access database by
using "myDSN" as the DSN name.
How to programmatically create a new column in an
Access report
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 812719

Summary
This article describes how to programmatically create a column in an Access report. You can dynamically add the
column to the report by using either Method 1 or Method 2 that are described in the "More Information" section.

NOTE
The sample code in this article uses Microsoft Data Access Objects. For this code to run properly, you must reference the
Microsoft DAO 3.6 Object Library. To do so, click References on the Tools menu in the Visual Basic Editor, and make sure
that the Microsoft DAO 3.6 Object Librar y check box is selected.

Method 1: Add Columns to the Report Programmatically


The example that follows shows you how to programmatically create an Access report. The code generates a report
that is based on record source query. The generated report displays the Firstname column and the Lastname
column of the Employees table of the Northwind.mdb sample database.
1. Start Access.
2. On the Help menu, click Sample Databases , and then click Nor thwind Sample Database .Close the
Main Switchboard form when it appears.

NOTE
In Access 2007, click Sample in the Template Categories pane, click Nor thwind 2007 ,and then click Download .

3. In the left pane, click Repor ts .

NOTE
In Access 2007, skip this step.

4. In the right pane, double-click Create repor t in Design View .


NOTE
In Access 2007, click Repor t Design in the Repor ts group on the Create tab.

5. On the File menu, click Save .

NOTE
In Access 2007, click Microsoft Office Button , and then click Save .

6. In the Save As dialog box, type AccessColumnBuilder and then click OK .


7. Close the report.
8. In the left pane, select Forms .

NOTE
In Access 2007, skip this step.

9. In the right pane, double-click Create form in Design View .

NOTE
In Access 2007, click Form Design in the Forms group on the Create tab.

10. Add a command button to the form.

NOTE
In Access 2007, click Button to add a button to the form in the Controls group on the Design tab.

11. Right-click the command button, click Build Event , click Code Builder in the Choose Builder dialog box,
and then click OK .
12. Add the code that follows to the OnClick event of the command button:
Dim txtNew As Access.TextBox
Dim labNew As Access.Label
Dim lngTop As Long
Dim lngLeft As Long
Dim lblCol As Long
Dim rpt As Report
Dim reportQuery As String
Dim rs As DAO.Recordset
Dim i As Integer
Dim prevColwidth As long

lngLeft = 0
lngTop = 0

' Open the report to design.


' To make changes in the number of columns that appear at run time.

DoCmd.OpenReport "AccessColumnBuilder", acViewDesign

Set rpt = Reports![AccessColumnBuilder]

' Change the number of columns required as per your requirement.


reportQuery = "SELECT FirstName, LastName FROM Employees"

' Open the recordset.


Set rs = CodeDb().OpenRecordset(reportQuery)
' Assign the query as a record source to report control.
rpt.RecordSource = reportQuery

' Set the value to zero so that the left margin is initialized.
prevColwidth = 0
lblCol = 0
' Print the page header for the report.
For i = 0 To rs.Fields.Count - 1
Set labNew = CreateReportControl(rpt.Name, acLabel, acPageHeader, _
, rs.Fields(i).Name, lblcol, , , lngTop)
labNew.SizeToFit
lblCol = lblCol + 600 + labNew.Width
Next

' Create the column depending on the number of fields selected in reportQuery.
' Assign the column value to new created column.
For i = 0 To rs.Fields.Count - 1
' Create new text box control and size to fit data.
Set txtNew = CreateReportControl(rpt.Name, acTextBox, _
acDetail, , , lngLeft + 15 + prevColwidth, lngTop)
txtNew.SizeToFit
txtNew.ControlSource = rs(i).Name
' Modify the left margin depending on the number of columns
' and the size of each column.
prevColwidth = prevColwidth + txtNew.width
Next
'To save the modification to the report, uncomment the following line of code:
'DoCmd.Save
' View the generated report.
DoCmd.OpenReport "AccessColumnBuilder", acViewPreview

' This opens the report in preview.

13. Save and then run the form.


14. To preview the report, click the command button that you added in step 10.
The records that follow appear on the first page:
First NameLast Name

NancyDavolio

MargaretPeacock

...............

The report contains the Firstname column and the Lastname column of the Employees table. You can
either save the report or make the required changes to the query and then run the report.

Method 2: Add columns to the report at run time by setting the visible
property of the existing column
This example shows you how to display a new column in a report by manipulating the Visible property of the
control.
The report contains four columns. The Visible property of the first three columns is set to yes . The Visible
property of the fourth column is set to no . On a page break, the Visible property of the fourth column is set to
yes when the column appears.
1. Start Access.
2. On the Help menu, click Sample Databases , and then click Nor thwind Sample Database . Close the
Main Switchboard form when it appears.

NOTE
In Access 2007, click Sample in the Template Categories pane, click Nor thwind 2007 , and then click Download .

3. To create a report that is named Repor t1 and is based on the Products table, follow these steps:
a. In the Database window, click Repor ts and then click New .

NOTE
In Access 2007, click Repor t Wizard in the Repor ts group on the Create tab.

b. In the New Repor t dialog box, click Design View , select Products , and then click OK .
c. Add the following text boxes to the Detail section of the report. Align the text boxes.
d. Put the corresponding labels in the Page Header section of the report. Align the labels.
Report: Report1
--------------------------
Caption: TestReport
ControlSource: Products

Label:
Name: ProductName_label

Text Box:
Name: ProductName
ControlSource: ProductName

Label:
Name: UnitPrice_label

Text Box:
Name: UnitPrice
ControlSource: UnitPrice

Label:
Name: UnitsInStock_label

Text Box:
Name: UnitsInStock
ControlSource: UnitsInStock

Label:
Name: TotalPrice_label
Visible: No

Text Box:
Name: TotalPrice
ControlSource: =[UnitPrice] * [UnitsInStock]
Visible: No

4. Add a text box control with the following properties to the Detail section. Put the text box directly above the
ProductName control.
This control acts as a counter for the number of records in the report.

Text Box:
-----------------------
Name: Counter
ControlSource: =1
Visible: No
RunningSum: Over All

5. On the Toolbox , click Page Break .

NOTE
In Access 2007, click Add or Remove Page Break in the Controls group on the Design tab.

6. Add a page break control to the lower-left corner of the Detail section. Put the page break control directly
below the ProductName control. Set the Name property to PageBreak .
7. In the Detail section, set the OnFormat property to the following event procedure:

If Me![Counter] Mod 2 = 0 Then Me![PageBreak].Visible = True _


Else Me![PageBreak].Visible = False
8. To reduce the blank space in the report, put your pointer between the bottom of the Detail section and the
Page Footer and then drag up.
9. In the Page Footer section, set the OnPrint property to the event procedure that follows:

If Me![PageBreak].Visible = True Then


Me![TotalPrice].Visible = True
Me![TotalPrice_label].Visible = True
Else
Me![TotalPrice].Visible = False
Me![TotalPrice_label].Visible = False
End If

When PageBreak occurs, the TotalPrice column appears.


10. Preview the report. The records that follow appear on the first page:

Product NameUnit PriceUnit in Stock

Cahi$18.0039

Chang$19.0017

NOTE
The first page of the report contains three columns.

The records that follow appear on the second page:

Product NameUnit PriceUnit in StockTotal Amount

Aniseed Syrup $10.0013 130

Chef A... $22.00 53 1166

NOTE
The page break occurs after the first page. Therefore, the second page of the report contains four columns.

References
For more information about how to programmatically create an Access report, visit the following article:
Creating Access Reports
How to create a query that has parameters to
evaluate complex criteria in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 290178

NOTE
This article applies only to a Microsoft Access database (.mdb or .accdb). Requires basic macro, coding, and interoperability
skills.

Summary
In Microsoft Access, you can use variable parameters in queries. This article discusses how to construct a query that
requires more than one prompt. You can use each parameter both as criteria and as a field to allow complicated
evaluation of the value that is entered in each parameter.

More Information
Cau t i on

If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up
the Northwind.mdb file and follow these steps on a copy of the database.
The following parameter query is based on the Orders table in the sample database Northwind.mdb. It selects
orders written between two dates provided by the user.
If the user does not enter either the Start Date or the End Date, the query returns all dates greater than or equal to
the Start Date, or less than or equal to the End Date. If the user enters not a Start Date or an End Date, the query
returns all orders.
1. Open the sample database Northwind.mdb.
2. Create a new query that is based on the Orders table.
3. Enter the following query:
Query: FindOrdersByDate
------------------------------------------------
Type: Select Query

Field: OrderID
Show: Yes

Field: OrderDate
Sort: Ascending
Show: Yes
First Criteria Line: Between [Start Date] and [End Date]
Second Criteria Line: <=[End Date]
Third Criteria Line: >=[Start Date]

Field: [Start Date]


Show: No
First Criteria Line: Is Not Null
Second Criteria Line: Is Null
Third Criteria Line: Is Not Null
Fourth Criteria Line: Is Null

Field: [End Date]


Show: No
First Criteria Line: Is Not Null
Second Criteria Line: Is Not Null
Third Criteria Line: Is Null
Fourth Criteria Line: Is Null

4. In Microsoft Office Access 2003 or Microsoft Access 2002, on the Quer y menu, click Parameters . In
Microsoft Office Access 2007, click the Design tab, and then click Parameters in the Show/Hide group. In
the Quer y Parameters dialog box, add two entries, one for each parameter in the query, as follows:

Query Parameters
-----------------------
Parameter: Start Date
Data Type: Date/Time

Parameter: End Date


Data Type: Date/Time

5. In Access 2003 or in Access 2002, click Datasheet on the View menu to run the query. In Access 2007, click
the Design tab, and then click Datasheet View in the View list in the Results group to run the query.

NOTE
Access prompts you for the value of the parameters. Then, Access substitutes the proper values in the query.
How to use ADOX to create an SQL pass-through
query in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies only to a Microsoft Access database (.accdb and .mdb).

Summary
This article shows you how to create an SQL pass-through query in Microsoft Visual Basic for Applications (VBA)
with Microsoft ActiveX Data Objects (ADO).

More information
You can write a function in Visual Basic for applications that creates an SQL pass-through query. An SQL pass-
through query is made up of an SQL statement and a connection string. When you run the query, it sends
commands directly to the database server for processing. This removes the overhead of the Microsoft Jet database
engine.
With the Data Access Object (DAO) model, you could use SQL pass-through queries to improve performance when
you accessed external data. With ADO, you can use the Microsoft OLE DB Provider for SQL Server to directly access
a SQL Server without the overhead of Microsoft Jet or ODBC. You can also use the Microsoft OLE DB Provider for
ODBC to access data in any ODBC data source.
Although you no longer have to create SQL pass-through queries in your Microsoft Jet database to improve
performance, you can still do so by using ADOX and the Jet Provider. The following code shows you how to create
an SQL pass-through query.
NOTE: The sample code in this article uses both ADO and ActiveX Data Objects Extensions for Data Definition
Language and Security (ADOX). For this code to run properly, you must click References on the Tools menu in the
Visual Basic Editor and make sure that the following two references are selected:
Microsoft ActiveX Data Objects 2.1 Library
Microsoft ADO Ext. 2.6 for DDL and Security
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. To create an SQL pass-through query in code, follow
these steps:
1. Open the sample Northwind database.
2. Create a new module, and then type or paste the following code:

Function CreateSPT(SPTQueryName As String, strSQL As String)

Dim cat As ADOX.Catalog


Dim cmd As ADODB.Command

Set cat = New ADOX.Catalog


Set cmd = New ADODB.Command

cat.ActiveConnection = CurrentProject.Connection

Set cmd.ActiveConnection = cat.ActiveConnection

cmd.CommandText = strSQL
cmd.Properties("Jet OLEDB:ODBC Pass-Through Statement") = True

'Modify the following connection string to reference an existing DSN for


'the sample SQL Server PUBS database.

cmd.Properties _
("Jet OLEDB:Pass Through Query Connect String") = _
"ODBC;DSN=myDSN;database=pubs;UID=sa;PWD=;"
cat.Procedures.Append SPTQueryName, cmd

Set cat = Nothing


Set cmd = Nothing

End Function

3. To test this function, type the following line in the Immediate window, and then press ENTER:
?CreateSPT("MySptQuer y", "Select * from Authors")
Access Error: Data on the Clipboard is damaged, so
Microsoft Access can't paste it
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 2221635

Symptoms
When performing a copy/paste operation from Microsoft Excel into Microsoft Access, you receive the following
error message:

The data on the Clipboard is damaged, so Microsoft Access can't paste it. There may be an error in the
Clipboard, or there may not be enough free memory. Try the operation again.

Cause
This issue occurs when the following two conditions are true:
One of the values in the first row of data contains a decimal point
You copy more than one row of data
Microsoft is aware of this problem in recent versions of Microsoft Access.

Resolution
Use one of the following workarounds:
Method 1
In Microsoft Access, click the dropdown arrow on the Paste icon, and then choose Paste Special. Select either Text or
CSV.
Method 2
Ensure there are no decimal points in the first row of the Excel data you copy.
Method 3
Copy and Paste a single row at a time.

More information
The problem does not occur in Microsoft Access 2003.
Steps to Reproduce
1. In Access, create a new blank database.
2. Create a new table in table Design View.
3. Add the following field:
Name: Field1
Data Type: Number
Field Size: Double
4. Save the table as Table1.
5. Open Table1 in Datasheet View.
6. In Microsoft Excel, create a new spreadsheet.
7. Add these values to the following cells:
A1: 83.9
A2: 3020
8. In Excel, select A1 and A2, and then click the Copy icon.
9. In Access, select Field1, and then click the Paste icon.
Result
You receive the one of these versions of the error:
The data on the Clipboard is damaged, so Microsoft Office Access can't paste it. There may be an error in the
Clipboard, or there may not be enough free memory. Try the operation again.
The data on the Clipboard is damaged, so Microsoft Access can't paste it. There may be an error in the Clipboard,
or there may not be enough free memory. Try the operation again.

NOTE
This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained
here is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may
include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
How to prevent database bloat after you use Data
Access Objects (DAO)
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies only to a Microsoft Access database (.mdb).

Symptoms
A Microsoft Access database has begun to bloat (or grow rapidly in size) after you implement Data Access Objects
(DAO) to open a recordset.

Cause
If you do not release a recordset's memory each time that you loop through the recordset code, DAO may
recompile, using more memory and increasing the size of the database.

Resolution
To avoid consuming unnecessary resources and increasing database size, use the Close method of the Recordset
object to explicitly close the recordset's memory when you no longer need the recordset.
If the database has increased in size because you did not use the Close method of the Recordset object, you can
reduce the size of the database by running the Compact and Repair utility (on the Tools menu).

More information
When you create a Recordset (or a QueryDef) object in code, explicitly close the object when you are finished.
Microsoft Access automatically closes Recordset and QueryDef objects under most circumstances. However, if you
explicitly close the object in your code, you can avoid occasional instances when the object remains open. The
following steps show you how to use DAO to close a Recordset or QueryDef object.
1. Start Microsoft Access.
2. Open the sample database Northwind.mdb.
NOTE The sample code in this article uses Microsoft Data Access Objects. For this code to run properly, you
must reference the Microsoft DAO 3.6 Object Library. To do so, click References on the Tools menu in the
Visual Basic Editor, and make sure that the Microsoft DAO 3.6 Object Library check box is selected.
3. Copy the following code to a new module. The following sample code opens and closes a Recordset and a
QueryDef object, and displays both Recordset and QueryDef information within message boxes.
Option Compare Database
Option Explicit

Sub subCloseObjects()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim qd As DAO.QueryDef

Set db = CurrentDb
Set rs = db.OpenRecordset("Employees", dbOpenTable)
Set qd = db.QueryDefs("Invoices")

rs.MoveLast 'Move to the last record in the Recordset.

MsgBox "The Employees Recordset is open." & vbCrLf & _


"The last Employee ID is " & rs![EmployeeID] & "."
MsgBox "The Invoices query definition is open." & vbCrLf & _
"The first field in the query is " & qd.Fields(0).Name

'Explicitly close the Recordset and QueryDef objects.


rs.Close
qd.Close
End Sub

4. Run the subCloseObjects routine.


"The database is in an unexpected state" error when
you open a database in Access
3/30/2020 • 10 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 888634

NOTE
This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file. Requires basic
macro, coding, and interoperability skills.

Symptoms
When you try to open a database in Microsoft Access 2000 or a later version, you receive the following error
message:

The database is in an unexpected state

Cause
This problem may occur when you use the Data Access Object (DAO) library to convert a database that you created
in Microsoft Access 97 or an earlier version by using the CompactDatabase method. The CompactDatabase method
may leave the new database in a partially converted state.

Resolution
To resolve this problem, use one of the following methods.
Method 1: Use the Convert Database command when you have the original database
If you still have a copy of the original database in its original format, use the Convert Database command. To do
this, follow these steps:
Access 2000, Access 2002, or Access 2003
1. Make a backup copy of the original database.
2. Start Access 2000 or a later version.
3. On the Tools menu, click Database Utilities , click Conver t Database , and then click To Access 2000
File Format .
NOTE
If you are using Access 2000, only To Current Access Database Version appears on the Conver t Database
menu.

4. In the Database to Conver t From dialog box, click the database file name that you want to convert, and
then click Conver t .
5. In the Conver t Database Into dialog box, type the new name of the database file, and then click Save .
Access 2007
1. Make a backup copy of the original database.
2. Try to open that database.
3. When you open an Access 97 or Access 95 file format .mdb database, Access displays the Database
Enhancement dialog box. You are prompted to upgrade the database.
4. Click Yes to upgrade the database to whichever file format you have selected as the default file format in Access
2007. After you convert the database, you can make design changes to the file in Access 2007. However, you can
no longer open the database by using a version of Access earlier than the version to which you converted the
database.
Method 2: Recover the database data and the database queries when you do not have the original nonsecured
database
If you do not have a copy of the original nonsecured database in its original format and you have tried standard
corruption troubleshooting techniques, try to recover the database data and the database queries. To do this, follow
these steps:
1. Make a backup copy of the original database.
2. Start Access 2000 or a later version.
3. Access 2000, Access 2002, or Access 2003
Click Blank Access database , type the new database name in the File name box, and then click
Create .
Access 2007
Click Office button, click New , click Blank Database , and then click Create to create a new blank
database.
4. Access 2000, Access 2002, or Access 2003
On the Inser t menu, click Module . The Microsoft Visual Basic Editor starts, and a new module is created.
Access 2007
On the Create tab, click the down arrow below Macro , and then click Module . The Microsoft Visual
Basic Editor starts, and a new module is created.
5. On the Tools menu, click References .
6. In the Available References list, locate Microsoft DAO 3.6 Object Librar y , and then click to select the
Microsoft DAO 3.6 Object Librar y check box.

NOTE
DAO 3.6 is also available on Windows XP Home Edition.

7. To close the References dialog box, click OK .


8. Paste the following code into the new module that you created.

Sub RecoverCorruptDB()
Dim dbCorrupt As DAO.Database
Dim dbCurrent As DAO.Database
Dim td As DAO.TableDef
Dim tdNew As DAO.TableDef
Dim fld As DAO.Field
Dim fldNew As DAO.Field
Dim ind As DAO.Index
Dim indNew As DAO.Index
Dim qd As DAO.QueryDef
Dim qdNew As DAO.QueryDef
Dim strDBPath As String
Dim strQry As String

' Replace the following path with the path of the


' corrupted database.
strDBPath = "C:\My Documents\yourDatabase.mdb"

On Error Resume Next


Set dbCurrent = CurrentDb
Set dbCorrupt = OpenDatabase(strDBPath)

For Each td In dbCorrupt.TableDefs


If Left(td.Name, 4) <> "MSys" Then
strQry = "SELECT * INTO [" & td.Name & "] FROM [" & td.Name & "] IN '" & dbCorrupt.Name & "'"
dbCurrent.Execute strQry, dbFailOnError
dbCurrent.TableDefs.Refresh
Set tdNew = dbCurrent.TableDefs(td.Name)

' Re-create the indexes on the table.


For Each ind In td.Indexes
Set indNew = tdNew.CreateIndex(ind.Name)
For Each fld In ind.Fields
Set fldNew = indNew.CreateField(fld.Name)
indNew.Fields.Append fldNew
Next
indNew.Primary = ind.Primary
indNew.Unique = ind.Unique
indNew.IgnoreNulls = ind.IgnoreNulls
tdNew.Indexes.Append indNew
tdNew.Indexes.Refresh
Next
End If
Next

' Re-create the queries.


For Each qd In dbCorrupt.QueryDefs
If Left(qd.Name, 4) <> "~sq_" Then
Set qdNew = dbCurrent.CreateQueryDef(qd.Name, qd.SQL)
End If
Next

dbCorrupt.Close
Application.RefreshDatabaseWindow
MsgBox "Procedure Complete."
End Sub

NOTE
The code will try to import all tables and all queries from the corrupted database into the current database. Replace
C:\My Documents\yourDatabase.mdb with the correct path and file name of your database.
9. To run the code, click Run Sub/UserForm on the Run menu.
Method 3: Recover the database data when you do not have the original secured database
If you do not have a copy of the original secured database in its original format and you have tried standard
corruption troubleshooting techniques, try to recover the database data. To do this, follow these steps:
1. Make a backup copy of the original database.
2. Start Access 2000 or a later version.
3. Access 2000, Access 2002, or Access 2003
Click Blank Access database , type the new database name in the File name box, and then click
Create .
Access 2007
Click the Microsoft Office Button , click New , click Blank Database , and then click Create to create a
new blank database.
4. Access 2000, Access 2002, or Access 2003
On the Inser t menu, click Module . The Microsoft Visual Basic Editor starts, and a new module is created.
Access 2007
On the Create tab, click the down arrow below Macro , and then click Module . The Microsoft Visual
Basic Editor starts, and a new module is created.
5. On the Tools menu, click References .
6. In the Available References list, locate Microsoft DAO 3.6 Object Librar y , and then click to select the
Microsoft DAO 3.6 Object Librar y check box.
7. To close the References dialog box, click OK .
8. Paste the following code into the new module that you created.

Option Compare Database

Function BackupSecureDatabase()

On Error GoTo Err_BackupSecureDatabase


Dim wrkDefault As DAO.Workspace
Dim dbsNew As DAO.Database
Dim dbeSecure As DAO.PrivDBEngine
Dim wrkSecure As DAO.Workspace
Dim dbsSecure As DAO.Database
Dim tdfSecure As DAO.TableDef
Dim strSecureUser As String
Dim strSecurePwd As String
Dim strSecurePathToDatabase As String
Dim strSecurePathToWorkgroupFile As String
Dim strTableName As String
Dim strSQL As String
Dim dbsTemp As DAO.Database
Dim strTempPathToDatabase As String
Dim strBackupPathToDatabase As String
Dim strLogPath As String
Dim SourceRec As DAO.Recordset
Dim DestRec As DAO.Recordset

' Set the variables (change for environment).


strSecurePathToDatabase = "C:\MyDatabases\Northwind.mdb"
strSecurePathToWorkgroupFile = "C:\MyDatabases\Secured.mdw"
strSecureUser = "Administrator"
strSecurePwd = "password"
strTempPathToDatabase = "C:\MyDatabases\Temp.mdb"
strBackupPathToDatabase = "C:\MyDatabases\Backup.mdb"
strLogPath = "C:\MyDatabases\Backup.log"

' Open the log file.


Open strLogPath For Output As #1
Print #1, Time, "Log file opened"
Print #1, Time, "Variables set"

' Delete old files.


If Dir(strTempPathToDatabase) <> "" Then Kill strTempPathToDatabase
If Dir(strBackupPathToDatabase) <> "" Then Kill strBackupPathToDatabase
Print #1, Time, "Old backup files deleted"

' Create the new temp database.


Set wrkDefault = DBEngine.Workspaces(0)
Set dbsNew = wrkDefault.CreateDatabase(strTempPathToDatabase, dbLangGeneral)
Set dbsNew = Nothing
Print #1, Time, "Temp database created"

' Open the secured database.


Set dbeSecure = New PrivDBEngine
dbeSecure.SystemDB = strSecurePathToWorkgroupFile
dbeSecure.DefaultUser = strSecureUser
dbeSecure.DefaultPassword = strSecurePwd

Set wrkSecure = dbeSecure.Workspaces(0)


Set dbsSecure = wrkSecure.OpenDatabase(strSecurePathToDatabase)
Print #1, Time, "Secured database opened from " & strSecurePathToDatabase

' Open the temp database.


DBEngine(0).CreateUser
Set dbsTemp = DBEngine(0).OpenDatabase(strTempPathToDatabase)

Print #1, Time, "Temp database opened from " & strTempPathToDatabase

' Loop through the tables in the secured database.


For Each tdfSecure In dbsSecure.TableDefs
strTableName = tdfSecure.Name
If Left(strTableName, 4) <> "MSys" Then
Print #1, Time, "Export of " & strTableName
' Copy the table definition to the temp database.
If CopyTableDef(tdfSecure, dbsTemp, strTableName) Then
' Then append all the data into the table.
Set SourceRec = tdfSecure.OpenRecordset(dbOpenTable, dbReadOnly)
Set DestRec = dbsTemp.OpenRecordset(strTableName)
AppendRecordsFromOneRecordSetToAnother SourceRec, DestRec
SourceRec.Close
DestRec.Close

End If
End If
Next tdfSecure

' Close open objects.


dbsSecure.Close
Print #1, Time, "Secured database closed"
dbsTemp.Close
Print #1, Time, "Temp database closed"

' Compact the database into the backup database.


DBEngine.CompactDatabase strTempPathToDatabase, strBackupPathToDatabase, dbLangGeneral
Print #1, Time, "New backup database created at " & strBackupPathToDatabase

' Delete the temp database.


If Dir(strTempPathToDatabase) <> "" Then Kill strTempPathToDatabase
Print #1, Time, "Temp database deleted"
Print #1, Time, "Log file closed"
Close #1
Close #1

Exit_BackupSecureDatabase:

Set wrkDefault = Nothing


Set dbsNew = Nothing
Set dbeSecure = Nothing
Set wrkSecure = Nothing
Set dbsSecure = Nothing
Set tdfSecure = Nothing
Set dbsTemp = Nothing
Exit Function

Err_BackupSecureDatabase:
Print #1, Time, " ***ERROR: " & Err.Number, Err.Description, strTableName
Resume Next

End Function

Function CopyTableDef(SourceTableDef As TableDef, TargetDB As Database, TargetName As String) As Integer


Dim SI As DAO.Index, SF As DAO.Field, SP As DAO.Property
Dim T As DAO.TableDef, I As DAO.Index, F As DAO.Field, P As DAO.Property
Dim I1 As Integer, f1 As Integer, P1 As Integer

If SourceTableDef.Attributes And dbAttachedODBC Or SourceTableDef.Attributes And dbAttachedTable Then


CopyTableDef = False
Exit Function
End If
Set T = TargetDB.CreateTableDef(TargetName)

' Copy Jet Properties.


On Error Resume Next
For P1 = 0 To T.Properties.Count - 1
If T.Properties(P1).Name <> "Name" Then
T.Properties(P1).Value = SourceTableDef.Properties(P1).Value
End If
Next P1
On Error GoTo 0

' Copy Fields.


For f1 = 0 To SourceTableDef.Fields.Count - 1
Set SF = SourceTableDef.Fields(f1)

' DAO 3.0 and later versions. ****


If (SF.Attributes And dbSystemField) = 0 Then
Set F = T.CreateField()
' Copy Jet Properties.
On Error Resume Next
For P1 = 0 To F.Properties.Count - 1
F.Properties(P1).Value = SF.Properties(P1).Value
Next P1
On Error GoTo 0
T.Fields.Append F
End If ' Corresponding End If ****
Next f1

' Copy Indexes.


For I1 = 0 To SourceTableDef.Indexes.Count - 1
Set SI = SourceTableDef.Indexes(I1)

' Foreign indexes are added by relationships.


If Not SI.Foreign Then
Set I = T.CreateIndex()
' Copy Jet Properties.
On Error Resume Next
For P1 = 0 To I.Properties.Count - 1
I.Properties(P1).Value = SI.Properties(P1).Value
Next P1
On Error GoTo 0
' Copy Fields.
' Copy Fields.
For f1 = 0 To SI.Fields.Count - 1
Set F = T.CreateField(SI.Fields(f1).Name, T.Fields(SI.Fields(f1).Name).Type)
I.Fields.Append F
Next f1
T.Indexes.Append I
End If
Next I1

' Append TableDef.


TargetDB.TableDefs.Append T

' Copy Access/User Table Properties.


For P1 = T.Properties.Count To SourceTableDef.Properties.Count - 1
Set SP = SourceTableDef.Properties(P1)
Set P = T.CreateProperty(SP.Name, SP.Type)
P.Value = SP.Value
T.Properties.Append P
Next P1

' Copy Access/User Field Properties.


For f1 = 0 To T.Fields.Count - 1
Set SF = SourceTableDef.Fields(f1)
Set F = T.Fields(f1)
For P1 = F.Properties.Count To SF.Properties.Count - 1
Set SP = SF.Properties(P1)
Set P = F.CreateProperty(SP.Name, SP.Type)
P.Value = SP.Value
F.Properties.Append P
Next P1
Next f1

' Copy Access/User Index Properties.


For I1 = 0 To T.Indexes.Count - 1
Set SI = SourceTableDef.Indexes(T.Indexes(I1).Name)

' Do not copy foreign indexes. They are created by relationships.


If Not SI.Foreign Then
Set I = T.Indexes(I1)
For P1 = I.Properties.Count To SI.Properties.Count - 1
Set SP = SI.Properties(P1)
Set P = I.CreateProperty(SP.Name, SP.Type)
P.Value = SP.Value
I.Properties.Append P
Next P1
End If
Next I1
CopyTableDef = True
End Function

Function AppendRecordsFromOneRecordSetToAnother(SR As DAO.Recordset, DR As DAO.Recordset)


Dim x As Integer

Do While Not SR.EOF


DR.AddNew
For x = 0 To SR.Fields.Count - 1
DR(x).Value = SR(x).Value
Next x
DR.Update
SR.MoveNext
Loop
End Function
NOTE
The code will try to import all tables from the corrupted database into a backup database. Replace the variables in the
table after step 10 with your database file locations and your user settings.

9. In the list of functions, select BackupSecureDatabase .


10. To run the code, click Run Sub/UserForm on the Run menu.

VA RIA B L E DESC RIP T IO N

strSecurePathToDatabase Location of secured database file

strSecurePathToWorkgroupFile Location of workgroup file

strSecureUser Secured user logon name

strSecurePwd Secured user logon password

strTempPathToDatabase Location of temporary database file

strBackupPathToDatabase Location of backup database file

strLogPath Location of log file

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information
For more information about how to troubleshoot corruption in a Microsoft Access database, see the following
article:
Compact and repair a database
Description of the database normalization basics
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 283878


This article explains database normalization terminology for beginners. A basic understanding of this terminology
is helpful when discussing the design of a relational database.

Description of normalization
Normalization is the process of organizing data in a database. This includes creating tables and establishing
relationships between those tables according to rules designed both to protect the data and to make the database
more flexible by eliminating redundancy and inconsistent dependency.
Redundant data wastes disk space and creates maintenance problems. If data that exists in more than one place
must be changed, the data must be changed in exactly the same way in all locations. A customer address change is
much easier to implement if that data is stored only in the Customers table and nowhere else in the database.
What is an "inconsistent dependency"? While it is intuitive for a user to look in the Customers table for the address
of a particular customer, it may not make sense to look there for the salary of the employee who calls on that
customer. The employee's salary is related to, or dependent on, the employee and thus should be moved to the
Employees table. Inconsistent dependencies can make data difficult to access because the path to find the data may
be missing or broken.
There are a few rules for database normalization. Each rule is called a "normal form." If the first rule is observed, the
database is said to be in "first normal form." If the first three rules are observed, the database is considered to be in
"third normal form." Although other levels of normalization are possible, third normal form is considered the
highest level necessary for most applications.
As with many formal rules and specifications, real world scenarios do not always allow for perfect compliance. In
general, normalization requires additional tables and some customers find this cumbersome. If you decide to
violate one of the first three rules of normalization, make sure that your application anticipates any problems that
could occur, such as redundant data and inconsistent dependencies.
The following descriptions include examples.

First normal form


Eliminate repeating groups in individual tables.
Create a separate table for each set of related data.
Identify each set of related data with a primary key.
Do not use multiple fields in a single table to store similar data. For example, to track an inventory item that may
come from two possible sources, an inventory record may contain fields for Vendor Code 1 and Vendor Code 2.
What happens when you add a third vendor? Adding a field is not the answer; it requires program and table
modifications and does not smoothly accommodate a dynamic number of vendors. Instead, place all vendor
information in a separate table called Vendors, then link inventory to vendors with an item number key, or vendors
to inventory with a vendor code key.

Second normal form


Create separate tables for sets of values that apply to multiple records.
Relate these tables with a foreign key.
Records should not depend on anything other than a table's primary key (a compound key, if necessary). For
example, consider a customer's address in an accounting system. The address is needed by the Customers table,
but also by the Orders, Shipping, Invoices, Accounts Receivable, and Collections tables. Instead of storing the
customer's address as a separate entry in each of these tables, store it in one place, either in the Customers table or
in a separate Addresses table.

Third normal form


Eliminate fields that do not depend on the key.
Values in a record that are not part of that record's key do not belong in the table. In general, anytime the contents
of a group of fields may apply to more than a single record in the table, consider placing those fields in a separate
table.
For example, in an Employee Recruitment table, a candidate's university name and address may be included. But
you need a complete list of universities for group mailings. If university information is stored in the Candidates
table, there is no way to list universities with no current candidates. Create a separate Universities table and link it
to the Candidates table with a university code key.
EXCEPTION: Adhering to the third normal form, while theoretically desirable, is not always practical. If you have a
Customers table and you want to eliminate all possible interfield dependencies, you must create separate tables for
cities, ZIP codes, sales representatives, customer classes, and any other factor that may be duplicated in multiple
records. In theory, normalization is worth pursing. However, many small tables may degrade performance or
exceed open file and memory capacities.
It may be more feasible to apply third normal form only to data that changes frequently. If some dependent fields
remain, design your application to require the user to verify all related fields when any one is changed.

Other normalization forms


Fourth normal form, also called Boyce Codd Normal Form (BCNF), and fifth normal form do exist, but are rarely
considered in practical design. Disregarding these rules may result in less than perfect database design, but should
not affect functionality.

Normalizing an example table


These steps demonstrate the process of normalizing a fictitious student table.
1. Unnormalized table:

ST UDEN T # A DVISO R A DV- RO O M C L A SS1 C L A SS2 C L A SS3

1022 Jones 412 101-07 143-01 159-02

4123 Smith 216 201-01 211-02 214-01


2. First normal form: No repeating groups
Tables should have only two dimensions. Since one student has several classes, these classes should be listed
in a separate table. Fields Class1, Class2, and Class3 in the above records are indications of design trouble.
Spreadsheets often use the third dimension, but tables should not. Another way to look at this problem is
with a one-to-many relationship, do not put the one side and the many side in the same table. Instead, create
another table in first normal form by eliminating the repeating group (Class#), as shown below:

ST UDEN T # A DVISO R A DV- RO O M C L A SS#

1022 Jones 412 101-07

1022 Jones 412 143-01

1022 Jones 412 159-02

4123 Smith 216 201-01

4123 Smith 216 211-02

4123 Smith 216 214-01

3. Second normal form: Eliminate redundant data


Note the multiple Class# values for each Student# value in the above table. Class# is not functionally
dependent on Student# (primary key), so this relationship is not in second normal form.
The following two tables demonstrate second normal form:
Students:

ST UDEN T # A DVISO R A DV- RO O M

1022 Jones 412

4123 Smith 216

Registration:

ST UDEN T # C L A SS#

1022 101-07

1022 143-01

1022 159-02

4123 201-01

4123 211-02

4123 214-01

4. Third normal form: Eliminate data not dependent on key


In the last example, Adv-Room (the advisor's office number) is functionally dependent on the Advisor
attribute. The solution is to move that attribute from the Students table to the Faculty table, as shown below:
Students:

ST UDEN T # A DVISO R

1022 Jones

4123 Smith

Faculty:

NAME RO O M DEP T

Jones 412 42

Smith 216 42
"Database you are trying to open requires a newer
version of Microsoft Access" error in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a Microsoft Access database, you receive the following error message:
"The database you are trying to open requires a newer version of Microsoft Access" when opening an Access
database."

Cause
This issue occurs if you try to open a database that contains a table that uses the BigInt data type. BigInt support
was added to Access 2016. BigInt appears within the table's data type as Large Number .

Resolution
To resolve this issue, determine whether the use of BigInt is required. If so, update users to Access 2016 version
16.0.7xxx.xxxx or later. Alternatively, change the data type from Large Number to just Number .

NOTE
Create a backup of your database before you change the data type. If there is Large Number data in a column when you
change the data type to Number , you receive a "Microsoft Access encountered errors while converting the data" dialog box.
If you click Yes to proceed, the records that contain large numbers are deleted.

More Information
The use of a Large Number data type sets the file format to version 16.7. You can determine a database's file
format version by pressing Ctrl-G to open the Immediate window. Type ?Application.CurrentDB.Version in the
window, and then press Enter.
Expression Builder doesn't display database's user-
defined functions in the Functions node
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 981241

Symptoms
Consider the following scenario:
You open a Microsoft Access 2010 database in Disabled mode.
You open the Expression Builder in a context that enables user-defined functions.
In the Expression Builder's Expression Elements tree view, you expand the Functions node.
In this scenario, the database's Microsoft Visual Basic for Applications (VBA) project is not listed under the
Functions node.

Cause
This is by design. This issue occurs because, when the database is opened in Disabled mode, VBA cannot enumerate
any of the arguments that are defined for user-defined functions. To enumerate these arguments, VBA must be able
to compile the type libraries of the modules that contain the user-defined functions. When the database is in
Disabled mode, VBA cannot compile these modules. Therefore, the Expression Builder cannot display the user-
defined functions for the database.

Workaround
To work around this issue, you must open the database in Enabled mode.
A decimal value in a column is rounded up or down
to an integer value in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you enter a decimal value in a column in Microsoft Access, the decimal value is rounded up or down to an
integer value.
This problem occurs when all the following conditions are true.
The table is created in DataSheet view.
The first value that you enter in the first row of the column is an integer value.

Cause
When the first value that you enter in the first row of the column is an integer value, Access automatically sets the
data type of the column to Number. Additionally, the Field Size property of the column is set to Long Integer.
Therefore, the decimal value that you enter in the column is rounded up or down to the integer value.

Workaround
To work around this problem, manually set the Field Size property of the column to Double or to Decimal.
1. Click the DataSheet tab. In the Views group, click the arrow under View , and then click Design View .
Note If the table has not already been saved, you will be prompted to save the table with a table name that
you provide.
2. Locate the column that you want to change, and then set the Field Size property of the column to Double or
to Decimal .
Note If you set the Field Size property of the column to Decimal, you must also set the Scale property of the
column. When you set the Scale property, you specify the maximum number of digits that can be stored to
the right of the decimal separator.
3. Save the table.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information
If the first value that you enter in the first row of the column is a decimal value, Access automatically sets the Field
Size property of this column to Double. Therefore, you do not encounter the problem that this article describes.
How to define relationships between tables in an
Access database
3/30/2020 • 12 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 304466

NOTE
Novice: Requires knowledge of the user interface on single-user computers. This article applies only to a Microsoft Access
database (.mdb or .accdb).

Summary
This article describes how to define relationships in a Microsoft Access database. The article includes the following
topics:
What are table relationships?
Kinds of table relationships
One-to-many relationships
Many-to-many relationships
One-to-one relationships
How to define relationships between tables
How to define a one-to-many or one-to-one relationship
How to define a many-to-many relationship
Referential integrity
Cascading updates and deletes
Join types

What are table relationships?


In a relational database, relationships enable you to prevent redundant data. For example, if you are designing a
database that will track information about books, you might have a table named "Titles" that stores information
about each book, such as the book's title, date of publication, and publisher. There is also information that you
might want to store about the publisher, such as the publisher's telephone number, address, and ZIP Code/Postal
Code. If you were to store all this information in the "Titles" table, the publisher's telephone number would be
duplicated for each title that the publisher prints.
A better solution is to store the publisher's information only one time, in a separate table that we will call
"Publishers." You would then put a pointer in the "Titles" table that references an entry in the "Publishers" table.
To make sure that you data stays synchronized, you can enforce referential integrity between tables. Referential
integrity relationships help make sure that information in one table matches information in another. For example,
each title in the "Titles" table must be associated with a specific publisher in the "Publishers" table. A title cannot be
added to the database for a publisher that does not exist in the database.
Logical relationships in a database enable you to efficiently query data and create reports.

Kinds of table relationships


A relationship works by matching data in key columns, usually columns (or fields) that have the same name in both
tables. In most cases, the relationship connects the primary key, or the unique identifier column for each row, from
one table to a field in another table. The column in the other table is known as the "foreign key." For example, if you
want to track sales of each book title, you create a relationship between the primary key column (let's call
it title_ID ) in the "Titles" table and a column in the "Sales" table that is named title_ID . The title_ID column in the
"Sales" table is the foreign key.
There are three kinds of relationships between tables. The kind of relationship that is created depends on how the
related columns are defined.
One -to -many relationships
A one-to-many relationship is the most common kind of relationship. In this kind of relationship, a row in table A
can have many matching rows in table B. But a row in table B can have only one matching row in table A. For
example, the "Publishers" and "Titles" tables have a one-to-many relationship. That is, each publisher produces
many titles. But each title comes from only one publisher.
A one-to-many relationship is created if only one of the related columns is a primary key or has a unique
constraint.
In the relationship window in Access, the primary key side of a one-to-many relationship is denoted by a number 1.
The foreign key side of a relationship is denoted by an infinity symbol.

Many-to-many relationships
In a many-to-many relationship, a row in table A can have many matching rows in table B, and vice versa. You
create such a relationship by defining a third table that is called a junction table. The primary key of the junction
table consists of the foreign keys from both table A and table B. For example, the "Authors" table and the "Titles"
table have a many-to-many relationship that is defined by a one-to-many relationship from each of these tables to
the "TitleAuthors" table. The primary key of the "TitleAuthors" table is the combination of the au_ID column (the
"Authors" table's primary key) and the title_ID column (the "Titles" table's primary key).

One-to-one relationships
In a one-to-one relationship, a row in table A can have no more than one matching row in table B, and vice versa. A
one-to-one relationship is created if both of the related columns are primary keys or have unique constraints.
This kind of relationship is not common, because most information that is related in this manner would be in one
table. You might use a one-to-one relationship to take the following actions:
Divide a table with many columns.
Isolate part of a table for security reasons.
Store data that is short-lived and could be easily deleted by deleting the table.
Store information that applies only to a subset of the main table.
In Access, the primary key side of a one-to-one relationship is denoted by a key symbol. The foreign key side is also
denoted by a key symbol.

How to define relationships between tables


When you create a relationship between tables, the related fields do not have to have the same names. However,
related fields must have the same data type unless the primary key field is an AutoNumber field. You can match an
AutoNumber field with a Number field only if theFieldSizeproperty of both of the matching fields is the same. For
example, you can match an AutoNumber field and a Number field if theFieldSizeproperty of both fields isLong
Integer. Even when both matching fields are Number fields, they must have the sameFieldSizeproperty setting.
How to define a one -to -many or one -to -one relationship
To create a one-to-many or a one-to-one relationship, follow these steps:
1. Close all tables. You cannot create or change relationships between open tables.
2. In Access 2002 or Access 2003, follow these steps:
a. Press F11 to switch to the Database window.
b. On the Tools menu, click Relationships .
In Access 2007, Access 2010, or Access 2013, click Relationships in the Show/Hide group on the
Database Tools tab.
3. If you have not yet defined any relationships in your database, the Show Table dialog box is automatically
displayed. If you want to add the tables that you want to relate but the Show Table dialog box does not
appear, click Show Table on the Relationships menu.
4. Double-click the names of the tables that you want to relate, and then close the Show Table dialog box. To
create a relationship between a table and itself, add that table two times.
5. Drag the field that you want to relate from one table to the related field in the other table. To drag multiple
fields, press Ctrl, click each field, and then drag them.
In most cases, you drag the primary key field (this field is displayed in bold text) from one table to a similar
field (this field frequently has the same name) that is called the foreign key in the other table.
6. The Edit Relationships dialog box appears. Make sure that the field names that are displayed in the two
columns are correct. You can change the names if it is necessary.
Set the relationship options if it is necessary. If you have to have information about a specific item in the Edit
Relationships dialog box, click the question mark button, and then click the item. (These options will be
explained in detail later in this article.)
7. Click Create to create the relationship.
8. Repeat steps 4 through 7 for each pair of tables that you want to relate.
When you close the Edit Relationships dialog box, Access asks whether you want to save the layout.
Whether you save the layout or do not save the layout, the relationships that you create are saved in the
database.

NOTE
You can create relationships not only in tables but also in queries. However, referential integrity is not enforced with
queries.

How to define a many-to-many relationship


To create a many-to-many relationship, follow these steps:
1. Create the two tables that will have a many-to-many relationship.
2. Create a third table. This is the junction table. In the junction table, add new fields that have the same
definitions as the primary key fields from each table that you created in step 1. In the junction table, the
primary key fields function as foreign keys. You can add other fields to the junction table, just as you can to
any other table.
3. In the junction table, set the primary key to include the primary key fields from the other two tables. For
example, in a "TitleAuthors" junction table, the primary key would be made up of the OrderID and
ProductID fields.

NOTE
To create a primary key, follow these steps:

a. Open a table in Design view.


b. Select the field or fields that you want to define as the primary key. To select one field, click the row
selector for the desired field. To select multiple fields, hold down the Ctrl key, and then click the row
selector for each field.
c. In Access 2002 or in Access 2003, click Primar y Key on the toolbar.
In Access 2007, click Primar y Key in the Tools group on the Design tab.

NOTE
If you want the order of the fields in a multiple-field primary key to differ from the order of those fields in the
table, click Indexes on the toolbar to display the Indexes dialog box, and then reorder the field names for the
index named PrimaryKey.

4. Define a one-to-many relationship between each primary table and the junction table.

Referential integrity
Referential integrity is a system of rules that Access uses to make sure that relationships between records in related
tables are valid, and that you do not accidentally delete or change related data. You can set referential integrity
when all the following conditions are true:
The matching field from the primary table is a primary key or has a unique index.
The related fields have the same data type. There are two exceptions. An AutoNumber field can be related to a
Number field that has a FieldSize property setting of Long Integer, and an AutoNumber field that has a
FieldSize property setting of Replication ID can be related to a Number field that has a FieldSize property
setting of Replication ID.
Both tables belong to the same Access database. If the tables are linked tables, they must be tables in Access
format, and you must open the database in which they are stored to set referential integrity. Referential integrity
cannot be enforced for linked tables from databases in other formats.
The following rules apply when you use referential integrity:
You cannot enter a value in the foreign key field of the related table that does not exist in the primary key of the
primary table. However, you can enter a Null value in the foreign key. This specifies that the records are
unrelated. For example, you cannot have an order that is assigned to a customer who does not exist.
However, you can have an order that is assigned to no one by entering a Null value in the CustomerID field.
You cannot delete a record from a primary table if matching records exist in a related table. For example, you
cannot delete an employee record from the "Employees" table if there are orders assigned to the employee in
the "Orders" table.
You cannot change a primary key value in the primary table if that record has related records. For example, you
cannot change an employee's ID in the "Employees" table if there are orders assigned to that employee in the
"Orders" table.

Cascading updates and deletes


For relationships in which referential integrity is enforced, you can specify whether you want Access to
automatically cascade update or cascade delete related records. If you set these options, delete and update
operations that would usually be prevented by referential integrity rules are enabled. When you delete records or
change primary key values in a primary table, Access makes the necessary changes to related tables to preserve
referential integrity.
If you click to select the Cascade Update Related Fields check box when you define a relationship, any time that
you change the primary key of a record in the primary table, Microsoft Access automatically updates the primary
key to the new value in all related records. For example, if you change a customer's ID in the "Customers" table, the
CustomerID field in the "Orders" table is automatically updated for every one of that customer's orders so that the
relationship is not broken. Access cascades updates without displaying any message.

NOTE
If the primary key in the primary table is an AutoNumber field, selecting the Cascade Update Related Fields check box
has no effect because you cannot change the value in an AutoNumber field.

If you select the Cascade Delete Related Records check box when you define a relationship, any time that you
delete records in the primary table, Access automatically deletes related records in the related table. For example, if
you delete a customer record from the "Customers" table, all the customer's orders are automatically deleted from
the "Orders" table. (This includes records in the "Order Details" table that are related to the "Orders" records). When
you delete records from a form or datasheet when the Cascade Delete Related Records check box selected,
Access warns you that related records may also be deleted. However, when you delete records by using a delete
query, Access automatically deletes the records in related tables without displaying a warning.

Join types
There are three join types. You can see them in the following screen shot:
Option 1 defines an inner join. An inner join is a join in which records from two tables are combined in a query's
results only if values in the joined fields meet a specified condition. In a query, the default join is an inner join that
selects records only if values in the joined fields match.
Option 2 defines a left outer join. A left outer join is a join in which all the records from the left side of the LEFT
JOIN operation in the query's SQL statement are added to the query's results, even if there are no matching values
in the joined field from the table on the right side.
Option 3 defines a right outer join. A right outer join is a join in which all the records from the right side of the
RIGHT JOIN operation in the query's SQL statement are added to the query's results, even if there are no matching
values in the joined field from the table on the left side.
How to determine who is logged on to a database by
using Microsoft Jet UserRoster in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Summary
This article shows you how to use Microsoft Visual Basic for Applications to output a list of users who are logged
onto a database.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure. However, they will not modify these examples to provide added functionality
or construct procedures to meet your specific requirements.
When you use the following sample code, the following information is returned:
Computer name.
Logon name.
Whether or not the user is currently connected to the database. (A user's ID remains in the lock database until
the last user disconnects or until the slot is reclaimed for a new user connection.)
Whether or not the user connection was terminated under normal circumstances.
This information can also be used to isolate problems with database corruption that is associated with the activities
of a specific user.
Procedure
Cau t i on

If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up
the Northwind.mdb file and follow these steps on a copy of the database.
To determine who is logged onto a database, follow these steps:
1. Open the sample database, Northwind.mdb.
Note In Access 2007, open the Northwind2007 sample database, close the Northwind2007 sample
database, and then reopen the Northwind2007 sample database.
2. On the View menu, point to Database Objects, and then click Modules.
Note In Access 2007, click Visual Basic in the Macro group on the Database Tools tab.
3. Click New.
Note In Access 2007, click Module on the Inser t menu in the Visual Basic Editor.
4. Type or paste the following code:
Note The sample code in this article uses Microsoft ActiveX Data Objects. For this code to run properly, you
must reference the Microsoft ActiveX Data Objects 2.1 or later version Library. To do so, click References on
the Tools menu in the Visual Basic Editor, and make sure that the Microsoft ActiveX Data Objects 2.1
Librar y check box is selected.

Sub ShowUserRosterMultipleUsers()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim i, j As Long

Set cn = CurrentProject.Connection

' The user roster is exposed as a provider-specific schema rowset


' in the Jet 4.0 OLE DB provider. You have to use a GUID to
' reference the schema, as provider-specific schemas are not
' listed in ADO's type library for schema rowsets

Set rs = cn.OpenSchema(adSchemaProviderSpecific, _
, "{947bb102-5d43-11d1-bdbf-00c04fb92675}")

'Output the list of all users in the current database.

Debug.Print rs.Fields(0).Name, "", rs.Fields(1).Name, _


"", rs.Fields(2).Name, rs.Fields(3).Name

While Not rs.EOF


Debug.Print rs.Fields(0), rs.Fields(1), _
rs.Fields(2), rs.Fields(3)
rs.MoveNext
Wend

End Sub

5. Save the module as ShowUsers.


6. Press CTRL+G to open the Immediate Window.
7. Type the following line in the Immediate window, and then press ENTER:

ShowUserRosterMultipleUsers

Note that the Immediate window returns a list of users who are logged onto the database.
Determine who opened an Office Access database in
the exclusive mode
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 824274

NOTE
This article applies only to a Microsoft Access database (.mdb/.accdb). Requires basic macro, coding, and interoperability skills.

Summary
In a Microsoft Office Access environment, you may not be able to determine who opened an Access database in the
exclusive mode. However, you can use the operating system utilities to determine who is using shared resources on
your computer.

More Information
When you open an Access database, Access typically creates a lock file with the same name as the database file.
This lock file has a .ldb/.laccdb extension, depending on what type of file is being opened (.mdb/.accdb). The
.ldb/.laccdb file contains the information about who opened the Access database and about the computer that was
used to open the Access database. However, when a user opens an Access database in the exclusive mode, Access
does not create a lock file with a .ldb/.laccdb extension. Therefore, Access cannot use the .ldb/.laccdb file to
determine who opened the database in the exclusive mode. If you try to open an Access database and another user
has already opened the database in the exclusive mode, you receive one of the following error messages:

Could not use '<path>\<database.mdb>'; file already in use.

Could not use '<path>\<database.accdb>'; file already in use.

You do not receive any information about who opened the Microsoft Office Access database in the exclusive mode
or about the computer that was used to open the Microsoft Office Access database in the exclusive mode.
You can use utility software, such as the Computer Management utility or the Server Manager utility, to determine
who has an Access database open in the exclusive mode and to determine what computer has an Access database
open in the exclusive mode.
For more information about how to view shared resources by using the Computer Management utility, follow these
steps.
NOTE
Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are,
see your product documentation to complete these steps.

1. Click Star t .
2. Click Help and Suppor t .
3. In the Search box, type Computer Management.
4. Click Star t Searching to view the topics.
5. Search the Computer Management utility Help Index for "Viewing Information About Shared Resources."
If your computer runs the Microsoft Windows 2000 operating system, the Server Manager utility may be available
as an executable file (Srvmgr.exe) in the Installation Drive : \WINNT\SYSTEM32 folder on your computer. If the
Server Manager utility is not available, install the Server Manager utility and then monitor the concurrent users of
the computer resources.

References
For more information about using the Server Manager utility to monitor the concurrent users of the computer
resources, see the "Viewing: User Sessions" topic in the Server Manager Help Index.
For additional information about .ldb files, see the following article
Introduction to lock files (.laccdb and .ldb) in Access
How to display images from a folder in a form, a
report, or a data access page
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 285820

NOTE
Requires expert coding, interoperability, and multiuser skills. This article applies to a Microsoft Access database (.mdb/.accdb)
and to a Microsoft Access project (.adp).

Summary
Sometimes, it's not practical to store images in a Microsoft Access table. If you have many images, or if each of your
image files is large, the size of the Microsoft Access database file can quickly increase.
This article demonstrates a custom function that you can use to:
Store file paths and names of images in a table.
Display images by using an image control.
Hide the image control if no image is available.
Provide feedback on the display status of the image.
This article also contains sample Visual Basic script that you can use to display the images in a data access page.

NOTE
Although this example use bitmap images (.bmp), you can also use other image types, such as .jpg, .pcx, and .gif.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.

Creating the table to store file and path data


1. Open the sample database, Northwind.mdb, or the sample project, NorthwindCS.adp.
2. Create the following table either in Northwind.mdb or in NorthwindCS.adp.
In Northwind.mdb:
Table: tblImage
----------------------------
Field Name: ImageID
Data Type: AutoNumber
Indexed: Yes (No Duplicates)

Field Name: txtImageName


Data Type: Text

Table Properties: tblImage


--------------------------
PrimaryKey: ImageID

In NorthwindCS.adp:

Table: tblImage
-----------------------
Column Name: ImageID
Datatype: Int
Allow Nulls: Unchecked
Identity: Yes

Column Name: txtImageName


Datatype: varchar

Table Properties: ImageTable


-------------------------------
Primary Key Constraint: ImageID

3. Open the tblImage table in Datasheet view, and then add the path and name of a bitmap file to each record.
The following table of examples shows how the records might look:

TYPE EXA M P L E

Absolute (Local) C:\Windows\Zapotec.bmp

Absolute (UNC Path) \\Servername\sharename\Zapotec.bmp

Relative Zapotec.bmp

Creating the custom function


1. Create a new module, and then paste or type the following code:
Option Compare Database
Option Explicit

Public Function DisplayImage(ctlImageControl As Control, strImagePath As Variant) As String


On Error GoTo Err_DisplayImage

Dim strResult As String


Dim strDatabasePath As String
Dim intSlashLocation As Integer

With ctlImageControl
If IsNull(strImagePath) Then
.Visible = False
strResult = "No image name specified."
Else
If InStr(1, strImagePath, "\") = 0 Then
' Path is relative
strDatabasePath = CurrentProject.FullName
intSlashLocation = InStrRev(strDatabasePath, "\", Len(strDatabasePath))
strDatabasePath = Left(strDatabasePath, intSlashLocation)
strImagePath = strDatabasePath & strImagePath
End If
.Visible = True
.Picture = strImagePath
strResult = "Image found and displayed."
End If
End With

Exit_DisplayImage:
DisplayImage = strResult
Exit Function

Err_DisplayImage:
Select Case Err.Number
Case 2220 ' Can't find the picture.
ctlImageControl.Visible = False
strResult = "Can't find image in the specified name."
Resume Exit_DisplayImage:
Case Else ' Some other error.
MsgBox Err.Number & " " & Err.Description
strResult = "An error occurred displaying image."
Resume Exit_DisplayImage:
End Select
End Function

2. Save the module as Module1.

Using the custom function in a form


1. Create the following new form that is based on the tblImage table.
Form: frmImage
----------------------
Caption: Image Form
RecordSource: tblImage

Image Control
---------------------------------
Name: ImageFrame
Picture: "C:\Windows\Zapotec.bmp"

Text box
----------------------
Name: txtImageID
ControlSource: ImageID

Text box
---------------------------
Name: txtImageName
ControlSource: txtImageName

Text box
---------------------------
Name: txtImageNote
ControlSource: <Blank>

NOTE
If you do not want the path to appear in the form, you can set the Visible property of the txtImageName control
to False .

2. On the View menu, click Code , and then paste or type the following code:

Option Compare Database


Option Explicit

Private Sub Form_AfterUpdate()


CallDisplayImage
End Sub

Private Sub Form_Current()


CallDisplayImage
End Sub

Private Sub txtImageName_AfterUpdate()


CallDisplayImage
End Sub

Private Sub CallDisplayImage()


Me!txtImageNote = DisplayImage(Me!ImageFrame, Me!txtImageName)
End Sub

3. Open the frmImage form in Form view. Note that the form displays the corresponding bitmap for each
record. If the txtImageName field is blank or if the image cannot be found, you receive appropriate messages
instead of the image frame.

Using the custom function in a report


1. Create the following new report that is based on the ImageTable table.
Report: rptImage
----------------------
Caption: Image Report
RecordSource: tblImage

Image Control
---------------------------------
Name: ImageFrame
Picture: "C:\Windows\Zapotec.bmp"

Text box
----------------------
Name: txtImageID
ControlSource: ImageID

Text box
---------------------------
Name: txtImageName
ControlSource: txtImageName

Text box
---------------------------
Name: txtImageNote
ControlSource: <Blank>

NOTE
If you do not want the path to appear in the report, you can set the Visible property of the txtImageName
control to False .

2. On the View menu, click Code , and then paste or type the following code:

Option Compare Database


Option Explicit

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)


Me!txtImageNote = DisplayImage(Me!ImageFrame, Me!txtImageName)
End Sub

3. Open the rptImage report in print preview. Note that the report displays the corresponding bitmap for each
record. If the txtImageName field is blank or if the image cannot be found, you receive appropriate messages
instead of the image frame.

Duplicating the custom function in a data access page


1. Create the following new data access page that is based on the tblImage table.
Data Access Page: dapImage
-----------------------------
Title: Image Data Access Page

Image Control
---------------------------------
ID: ImageFrame

Text box
----------------------
ID: txtImageID
ControlSource: ImageID

Text box
---------------------------
ID: txtImageName
ControlSource: txtImageName

NOTE
If you do not want the path to appear in the page, you can set the Visibility property of the txtImageName
control to Hidden .

2. On the Tools menu, point to Macros , and then click Microsoft Script Editor .
3. Add the following script to the Current event of the MSODSC in the HEAD tag portion of the HTML
document.

NOTE
You must pass in a parameter in order for the event to be triggered.

<SCRIPT language=vbscript event=Current(oEventInfo) for=MSODSC>


<!--
ImageFrame.src=txtImageName.value
-->
</SCRIPT>

4. Open the dapImage page in Page view. Note that the page displays the corresponding bitmap for each
record. If the txtImageName field is blank, a control icon is displayed. If the image cannot be found, an X icon
appears in the image control.
Use an http:// path in a form
To use an http:// path in a form, use the Web browser control (shdocvw.dll) as follows:
1. Add a Microsoft Web Browser control to the form and name it WebBrowser.
2. Add the following code to a module:
Public Function DisplayImageWeb(ctlBrowserControl As Control, _
strImagePath As Variant)

On Error GoTo Err_DisplayImage

Dim strDatabasePath As String


Dim intSlashLocation As Integer

With ctlBrowserControl
If IsNull(strImagePath) Then
ElseIf Left(strImagePath, 4) = "http" Then
.Navigate (strImagePath)
Else
If InStr(1, strImagePath, "\") = 0 Then
' Path is relative
strDatabasePath = CurrentProject.FullName
intSlashLocation = InStrRev(strDatabasePath, "\", Len(strDatabasePath))
strDatabasePath = Left(strDatabasePath, intSlashLocation)
strImagePath = strDatabasePath & strImagePath
End If
.Navigate (strImagePath)
End If
End With

Exit_DisplayImage:
Exit Function

Err_DisplayImage:
Select Case Err.Number
Case Else
MsgBox Err.Number & " " & Err.Description
Resume Exit_DisplayImage:
End Select
End Function

3. Add the following code behind the form:

Option Compare Database


Option Explicit

Private Sub Form_AfterUpdate()


CallDisplayImage
End Sub

Private Sub Form_Current()


CallDisplayImage
End Sub

Private Sub txtImageName_AfterUpdate()


CallDisplayImage
End Sub

Private Sub CallDisplayImage()


DisplayImageWeb Me.WebBrowser9, Me.txtImageName
End Sub
How to enforce or disable the startup options in an
Access database
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

This article applies only to a Microsoft Access project (.adp).


Moderate: Requires basic macro, coding, and interoperability skills.

Summary
This article describes how to disable the functionality of the SHIFT key that permits you to bypass the startup
options. This article also describes how to enforce the startup options in a Microsoft Access database project.

More information
The startup options that are defined for an Access file determine how the file looks and how the file behaves when
you open the file. You can set the startup options by using the startup user interface or by using the AutoExec
macro.
To bypass the startup options that are set for the Access database project, hold down the SHIFT key while you open
the Access database project.
Alternatively, to enforce the startup options that are set for the Access database project, disable the functionality of
the SHIFT key that permits you to bypass the startup options. To do this, set the AllowBypassKey property to False.
To set the AllowBypassKey property to False, follow these steps.
Steps for an Access project (.adp)
1. Start Access.
2. Open an Access database project.
3. Press ALT + F11 to open the Visual Basic editor.
4. In the Visual Basic editor, click Immediate Window on the View menu.
5. Type the following code or paste the following code in the Immediate window, and then press ENTER.

CurrentProject.Properties.Add "AllowBypassKey", False

6. Close the Visual Basic Editor, and then close the Access database project.
7. Open the Access database project. Try to bypass the startup options that are set for the Access database
project by holding down the SHIFT key while you open the Access database project.
The functionality of the SHIFT key that permits you to bypass the startup option is disabled. Although you
hold down the SHIFT key to bypass the startup options, the startup options are executed. You cannot bypass
the startup options.
Steps for an Access database (.mdb or .accdb)
1. Start Access.
2. Create a new module, and then add the following two functions:
Function ap_DisableShift()
'This function disable the shift at startup. This action causes
'the Autoexec macro and Startup properties to always be executed.

On Error GoTo errDisableShift

Dim db As DAO.Database
Dim prop as DAO.Property
Const conPropNotFound = 3270

Set db = CurrentDb()

'This next line disables the shift key on startup.


db.Properties("AllowByPassKey") = False

'The function is successful.


Exit Function

errDisableShift:
'The first part of this error routine creates the "AllowByPassKey
'property if it does not exist.
If Err = conPropNotFound Then
Set prop = db.CreateProperty("AllowByPassKey", _
dbBoolean, False)
db.Properties.Append prop
Resume Next
Else
MsgBox "Function 'ap_DisableShift' did not complete successfully."
Exit Function
End If

End Function

Function ap_EnableShift()
'This function enables the SHIFT key at startup. This action causes
'the Autoexec macro and the Startup properties to be bypassed
'if the user holds down the SHIFT key when the user opens the database.

On Error GoTo errEnableShift

Dim db as DAO.Database
Dim prop as DAO.Property
Const conPropNotFound = 3270

Set db = CurrentDb()

'This next line of code disables the SHIFT key on startup.


db.Properties("AllowByPassKey") = True

'function successful
Exit Function

errEnableShift:
'The first part of this error routine creates the "AllowByPassKey
'property if it does not exist.
If Err = conPropNotFound Then
Set prop = db.CreateProperty("AllowByPassKey", _
dbBoolean, True)
db.Properties.Append prop
Resume Next
Else
MsgBox "Function 'ap_DisableShift' did not complete successfully."
Exit Function
End If

End Function
3. In the Visual Basic editor, click Immediate Window on the View menu.
4. If you want to disable the SHIFT key, type ap_DisableShift in the Immediate window, and then press ENTER.
If you want to enable the shift key, type ap_EnableShift in the Immediate window, and then press ENTER.
"Action Failed Error Number: 2950" error when
running a macro that calls a VBA function in an
Access 2007 database
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 931407

NOTE
If you are a Small Business customer, find additional troubleshooting and learning resources at the Support for Small Business
site.

Symptoms
When you run a macro that calls a Microsoft Visual Basic for Applications (VBA) function in a Microsoft Office
Access 2007 database, you receive the following error message:

Action Failed
Macro Name: MacroName
Condition: Condition
Macro Name: RunCode
Arguments: Arguments
Error Number: 2950

Cause
This issue occurs if the database is not trusted by Access 2007. By default, Access 2007 opens databases that are
not trusted in Disabled mode. In Disabled mode, executable content is disabled.

Resolution
If you trust the author of the Access 2007 database, and if you want to enable the database, use one of the
following methods.
Method 1: Enable the database for the current session
When you use this method, Access 2007 enables the database until you close the database. To enable the database
for the current session, follow these steps:
1. On the Message Bar, click Options .
2. In the Microsoft Office Security Options dialog box, click Enable this content , and then click OK .
NOTE
You must repeat these steps every time that you open the database.

Method 2: Move the database to a trusted location


To do this, follow these steps:
1. Determine trusted locations to which you can move the database. To do this, follow these steps:
a. Click the Microsoft Office Button , and then click Access Options .
b. Click Trust Center , and then click Trust Center Settings under Microsoft Office Access Trust
Center .
c. Click Trusted Locations , and then use one of the following procedures:
Note the paths of the trusted locations that are listed.
Add a new trusted location. To do this, click Add new location , and then specify the path of the
location that you want to add.
2. Move the Access 2007 database to the trusted location that you want.

More Information
You can use an AutoExec macro to test whether a database is trusted when you open the database. Additionally, the
macro can open a form that displays a customized message to users if the database is not trusted. This message
lets users know that the database must be enabled or trusted for the code to run successfully.
To create the AutoExec macro and the form, follow these steps:
1. Create a new form in Design view.
2. Add a text box or a label to the form, and then type the information that you want to display to the user.
3. Save and then close the form.
4. Create a macro, and then name the macro AutoExec.
5. Show the Conditions column.
6. Type the following line in the Conditions column:
CurrentProject.IsTrusted = False

7. In the Actions column, click OpenForm .


8. In the Form Name box under Action Arguments , click the form that you created in step 1.
9. Save and then close the macro.
When the database opens, the AutoExec macro starts and then tests the IsTrusted condition. If the database is not
trusted by Access 2007, the macro opens the form that you specified in the "OpenForm" action of the macro.

References
For more information, see the Help files in Access 2007. To do this, click Microsoft Office Access Help , type how
database objects behave when trusted and untrusted in the Type words to search for box, and then click Search .
"Error in loading DLL" error when you run a Microsoft
Access wizard
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 833220

NOTE
This article applies only to a Microsoft Access database (.mdb). Requires basic macro, coding, and interoperability skills.

Symptoms
When you try to use a Microsoft Access wizard, such as the Import Text wizard or the Import Spreadsheet wizard, in
Microsoft Access 2002, you may receive the following error message. When you try to open a form that is created
by the Switchboard manager, you may receive the following error message:

Error in loading DLL

Cause
This problem may occur if you have missing Microsoft Data Access Components (MDAC) files, corrupted MDAC
files, or outdated MDAC files on your computer.

Resolution
To resolve this problem, use either of the following methods:
Method 1: Register the required Dao360.dll file and the Msado15.dll file
You may have to register the Dao360.dll file and the Msado15.dll file by using the Regsvr32.exe program. To do this,
follow these steps:
1. Click Star t , and then click Run .
2. In the Run dialog box, type the following commands in the Open box, and then click OK :
Regsvr32.exe "<<Dao360.dll_Path>>"

Regsvr32.exe "<<Msado15.dll_Path>>"

The Dao360.dll_Path placeholder is the absolute path of the Dao360.dll file.


The Msado15.dll_Path placeholder is the absolute path of the Msado15.dll file.
The following examples show how you may specify an absolute path:
Regsvr32.exe "C:\Program Files\Common Files\Microsoft Shared\DAO\Dao360.dll"

Regsvr32.exe "C:\Program Files\Common Files\system\ado\Msado15.dll"

If the Dao360.dll file is successfully registered, you receive a message that is similar to the following
message:

DllRegisterServer in C:\Program Files\Common Files\Microsoft Shared\DAO\Dao360.dll succeeded.

If the Msado15.dll file is successfully registered, you receive a message that is similar to the following
message:

DllRegisterServer in C:\Program Files\Common Files\system\ado\Msado15.dll succeeded.

3. Click OK .
Method 2: Install the latest version of MDAC
For additional information about how to download the latest version of MDAC, visit the following Microsoft
Developer Network (MSDN) Web site:
MDAC
"The field is too small to accept the amount of data
you attempted to add" error when running a query
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 896950

Symptoms
In Microsoft Office Access, you may create a query that has the UniqueValues query property set to Yes , and the
query may include a Memo field. When you run the query, you may receive the following error message:

The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

Additionally, the query may run without an error message. However, the data that is returned in the memo field is
truncated to 255 characters.

Cause
This problem occurs because when you set the UniqueValues query property to Yes , a DISTINCT keyword is added
to the resulting SQL statement. The DISTINCT keyword directs Access to perform a comparison between records.
When Access performs a comparison between two Memo fields, Access treats the fields as Text fields that have a
255-character limit. Sometimes Memo field data that is larger than 255 characters will generate the error message
that is mentioned in the "Symptoms" section. Sometimes only 255 characters are returned from the Memo field.

Workaround
To work around this problem, modify the original query by removing the Memo field. Then, create a second query
that is based on both the table and the original query. This new query uses all the fields from the original query,
and this new query uses the Memo field from the table. When you run the second query, the first query runs. Then,
this data is used to run the second query. This behavior returns the Memo field data based on the returned data of
the first query. To do this, follow these steps.
Access 2007
1. Copy the original query, and then name this copyBackup Copy OriginalName .
2. Right-click the original query, and then click Design View .
3. Click the column that contains the Memo field, and then click Delete Columns in the Quer y Setup group
on the Design tab.
4. Save the query.
5. On the Create tab, click Quer y Design in the Other group.
6. Click the Both tab.
7. Click the original query, and then click Add .
8. Click the table on which the original query is based, and then click Add .
9. Click Close .
10. Add the fields from the original query, and then add the memo field from the table.
11. Create a link between the table and the query by using the appropriate field.
For more information about how to use joins in Microsoft Query, click the following article number to view
the article in the Microsoft Knowledge Base:
136699 Description of the usage of joins in Microsoft Query
12. Save the query.
13. On the Design tab, click Run in the Results group.
The query should run as expected, and the Memo field is not truncated.
Access 2003, Access 2002, and Access 2000
1. Copy the original query, and then name this copyBackup Copy OriginalName .
2. Click the original query, and then click Design on the Database toolbar.
3. Click the column that contains the Memo field, and then click Delete on the Edit menu.
4. Save the query.
5. Double-click Create quer y in design view .
6. Click the Both tab.
7. Click the original query, and then click Add .
8. Click the table that the original query is based on, and then click Add .
9. Click Close .
10. Add the fields from the original query, and then add the memo field from the table.
11. Create a link between the table and the query.
For more information about how to create a link, click the following article number to view the article in the
Microsoft Knowledge Base:
136699 Description of the usage of joins in Microsoft Query
12. Save the query.
13. On the Quer y menu, click Run .
The query should run as expected, and the Memo field is not truncated.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Microsoft Office Access: 'Error in loading dll'
4/21/2020 • 2 minutes to read • Edit Online

Symptoms
When trying to run wizards in Microsoft Office Access, such as the Import Wizards, the Query Wizard, the Report
Wizard, and Control Wizards, you receive one of the following errors:

"Error in loading dll"

"Object library not registered"

Cause
One of the following registry keys may not exist.
ACEDAO.DLL
MSI installations
(64-bit Windows, 32-bit Office):
Key : HKEY_CLASSES_ROOT\ TypeLib\{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win32

String : (Default)
Value : C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\ACEDAO.DLL
(64-bit Windows, 64-bit Office):
Key : HKEY_CLASSES_ROOT\ TypeLib\{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win64

String : (Default)
Value : C:\Program Files\Common Files\Microsoft Shared\OFFICE14\ACEDAO.DLL
(32-bit Windows, 32-bit Office):
Key : HKEY_CLASSES_ROOT\ TypeLib\{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win32

String : (Default)
Value : C:\Program Files\Common Files\Microsoft Shared\OFFICE14\ACEDAO.DLL

NOTE
OFFICE14 is used in the above registry key path. This should represent the current version of Access installed.
OFFICE12 - Access 2007
OFFICE14 - Access 2010
OFFICE15 - Access 2013
OFFICE16 - Access 2016

Click-to-Run installations
(64-bit Windows, 32-bit Office):
Key :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\ClickToRun\REGISTRY\MACHINE\SOFTWARE\Classes\TypeLib\
{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win32

String : (Default)
Value : C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE16\ACEDAO.DLL
(64-bit Windows, 64-bit Office):
Key :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\ClickToRun\REGISTRY\MACHINE\SOFTWARE\Classes\TypeLib\
{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win64

String : (Default)
Value : C:\Program Files\Common Files\Microsoft Shared\OFFICE16\ACEDAO.DLL
(32-bit Windows, 32-bit Office):
Key :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\ClickToRun\REGISTRY\MACHINE\SOFTWARE\Classes\TypeLib\
{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win32

String : (Default)
Value : C:\Program Files\Common Files\Microsoft Shared\OFFICE16\ACEDAO.DLL
DAO360.DLL
(64-bit Windows, 32-bit Office)
Key : HKEY_CLASSES_ROOT\TYPELIB\{00025E01-0000-0000-C000-000000000046}\5.0\0\win32

String : (Default)
Value : %CommonProgramFiles(x86)%\Microsoft Shared\DAO\dao360.dll
(64-bit Windows, 64-bit Office) or (32-bit Windows, 32-bit Office)
Key : HKEY_CLASSES_ROOT\TYPELIB\{00025E01-0000-0000-C000-000000000046}\5.0\0\win32

String : (Default)
Value : %CommonProgramFiles%\Microsoft Shared\DAO\dao360.dll

Resolution
To resolve the issue for MSI installations by setting the correct values for these dlls in the registry , go to the Let me
fix it myself section. To resolve the issue for Click-to-Run installations of Office, perform an online repair to the
Office installation. For more information about how to repair, see Repair an Office application.
Let me fix it myself
The steps below resolve the issue by setting the correct values for these dlls in the registry.

WARNING
Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method.
These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can
be solved. Modify the registry at your own risk.

Steps to recreate the keys for MSI Installations:


1. Open Notepad.
2. Copy and paste the following lines of text for your environment, starting with 'Windows Registry Editor
Version 5.00', into the Notepad document:
(64-bit Windows, 32-bit Office):

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\TypeLib\{00025E01-0000-0000-C000-000000000046}\5.0\0\win32]
@=hex(2):25,00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,50,00,72,00,6f,00,67,00,72,\
00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,28,00,78,00,38,00,36,00,29,00,\
25,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,53,\
00,68,00,61,00,72,00,65,00,64,00,5c,00,44,00,41,00,4f,00,5c,00,64,00,61,00,\
6f,00,33,00,36,00,30,00,2e,00,64,00,6c,00,6c,00,00,00
[HKEY_CLASSES_ROOT\TypeLib\{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win32]
@="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\OFFICE14\\ACEDAO.DLL"

(64-bit Windows, 64-bit Office):

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\TypeLib\{00025E01-0000-0000-C000-000000000046}\5.0\0\win32]
@=hex(2):25,00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,50,00,72,00,6f,00,67,00,72,\
00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,4d,00,69,00,63,00,\
72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,53,00,68,00,61,00,72,00,65,00,64,\
00,5c,00,44,00,41,00,4f,00,5c,00,64,00,61,00,6f,00,33,00,36,00,30,00,2e,00,\
64,00,6c,00,6c,00,00,00
[HKEY_CLASSES_ROOT\TypeLib\{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win64]
@="C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE14\\ACEDAO.DLL"

(32-bit Windows, 32-bit Office):

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\TypeLib\{00025E01-0000-0000-C000-000000000046}\5.0\0\win32]
@=hex(2):25,00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,50,00,72,00,6f,00,67,00,72,\
00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,4d,00,69,00,63,00,\
72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,53,00,68,00,61,00,72,00,65,00,64,\
00,5c,00,44,00,41,00,4f,00,5c,00,64,00,61,00,6f,00,33,00,36,00,30,00,2e,00,\
64,00,6c,00,6c,00,00,00
[HKEY_CLASSES_ROOT\TypeLib\{4AC9E1DA-5BAD-4AC7-86E3-24F4CDCECA28}\c.0\0\win32]
@="C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE14\\ACEDAO.DLL"

3. Ensure the office version (OFFICE14) specified in the path matches the appropriate value from the list at the
beginning of this article.
4. Save the Notepad file as Win32Keys.reg.
5. Do one of the following:
Using Windows Explorer, double-click on the Win32Keys.reg file to run it.
In the registry editor, go to File > Impor t to browse to where you saved the Win32Keys.reg file, and then
click Open .

More Information
Registry cleaners are not known to remove the
HKEY_CLASSES_ROOT\TYPELIB\{00025E01-0000-0000-C000-000000000046}\5.0\0\win32 key on 32-bit versions of Windows.
However, if you experience the 'Error loading dll' error, you may have installed a program that misregistered either
dao360.dll or msado15.dll .
Error message when you use special characters in
Access databases
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 826763

NOTE
This article applies to either a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file, and to a
Microsoft Access project (.adp) file.

Symptoms
When you use special characters in Access, you experience one of the following problems.
Problem 1
You use one of the following special characters in the name of a table field:
Accent grave (`)
Exclamation mark (!)
Period (.)
bracket([])
Leading space
Non-printable characters
In this case, you receive the following error message:

The field name is not valid.


Make sure that the name doesn't contain a period(.), exclamation point(!), bracket([]), leading space, or non-
printable character such as a carriage return. If you have pasted the name from another application, try
pressing ESC and typing the name again.

If you use these special characters in a table name, you receive the following error message:

The object name 'TableName ' you entered doesn't follow Microsoft Office Access object-naming rules.

Problem 2
You create a query expression. The query expression includes fields that contains special characters. Depending on
the specific special characters, you receive one of the following error messages:
If the field name contains a space character, a question mark (?), or an at sign (@), you receive the following
error message:
The Expression you entered contains invalid syntax.
You may have entered an operand without an operator

If the field name contains a quotation mark(") or an apostrophe('), you receive the following error message:

The Expression you entered has an invalid string.


A string can be up to 2048 characters long, including opening and closing quotation marks.

If the field name contains a number sign (#), you receive the following error message:

The expression you entered has an invalid date value.

If the field name contains a percent sign (%), a tilde (~), a semicolon (;), or a bracket ([]), you receive the
following error message:

The Expression you entered contains invalid syntax.


You omitted an operand or operator, you entered an invalid character or comma, or you entered text
without surrounding it in quotation marks.

If the field name contains a brace ({}), you receive the following error message:

Malformed GUID in query expression 'ObjectName '

If the field name contains a bracket ([]) or parenthesis (()), you receive the following error message:

The expression you entered is missing a closing parenthesis, bracket (]), or vertical bar(|).

Problem 3
You have a query that contains query expressions. The query expressions include fields that contain special
characters. When you run the query, you are promoted to enter a parameter value. Typically, this problem occurs
when you use the following special characters:
Greater than sign (>)
Less than sign (<)
Period (.)
Asterisk (*)
Colon (:)
Caret (^)
Plus sign (+)
Backslash (\)
Equal sign (=)
Ampersand (&)
Slash mark (/)

Workaround
To work around this problem, do not use special characters. If you must use special characters in query expressions,
enclose the special characters in brackets ([]). For example, if you want to use the greater than sign (>), use [>].

More Information
Microsoft Access does not restrict the use of special characters such as a number sign (#), a period (.), or a
quotation mark (") in the database object names or in the database field names. However, if you do use the special
characters, you may experience unexpected errors. Therefore, Microsoft recommends that you do not use the
special characters in the database object names in the Access database or in the database project. This article
discusses the special characters that you must avoid because of known issues with these special characters.
When you work with Access or with some other application such as a Microsoft Visual Basic application or an
Active Server Pages (ASP) application, you must avoid the following special characters:

Space

Apostrophe '

Quotation mark "

Apostrophe '

At sign @

Grave accent `

Number sign #

Percent %

Greater than sign >

Less than sign <

Exclamation mark !

Period .

Brackets []

Asterisk *

Dollar sign $

Semicolon ;

Colon :

Question mark ?

Caret ^

Braces {}

Plus sign +
Hyphen -

Equal sign =

Tilde ~

Backslash |

Access naming conventions


Microsoft recommends that you do not use a period (.), an exclamation mark (!), a grave accent (`), a bracket ([ ]), a
space ( ), or a quotation mark (") inside the names of functions, the names of variables, the names of fields, or the
names of database objects such as tables and forms.
There are known problems that occur if you use the following special characters in Access. The following scenarios
describe when you must not use the special characters:
When you export the database objects to other file formats such as a Microsoft Excel file format, an HTML file
format, or a text file format, do not use a number sign (#) or a period (.) in the database object names or in the
field names.
When you use hyperlinks in Access, the hyperlinks are stored as modified Memo fields with a number sign (#)
as a delimiter. Therefore, the number sign is regarded as a reserved word in Access. Do not use the number sign
when you create hyperlinks.
When you import a text file into Access and that text file contains tabs or other special characters, the special
characters are converted, and then the special characters appear as boxes. Therefore, when you try to use the
imported table, you receive unexpected errors. You must not use the special characters in the source table when
you import into Access.
When you use ASP forms to add or to modify data in an Access database, you must not use a percent sign (%), a
plus sign (+), or a caret (^) in the form. These special characters may not translate correctly in the Access
database.
When you use Full-width languages, do not use Full-width characters in the name of database objects or in the
name of controls. For example, you must not use Full-width parentheses when you use Full-width languages
This may cause compile errors if there is code in an event procedure for the object or for the control.
"Cannot update. Database or object is read-only"
error in linked SharePoint list in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you work in a Microsoft Access table that is linked to a Microsoft SharePoint list that contains a hidden
metadata column, you receive the following error message:

Cannot update. Database or object is read-only

Cause
This error is caused by a known issue in Microsoft Access that occurs when a table is linked to a SharePoint list that
has hidden metadata.

Workaround
To work around this problem, re-create the list without the metadata columns.

More Information
The problem is not resolved even after you remove the managed metadata column from the existing list.
The presence of the "TaxonomyHiddenList" linked table within the database indicates that one or more of the tables
that are linked to a SharePoint list reference (or used to reference) a hidden metadata column. For example, the list
references or used to reference an Enterprise Keywords column.
In Design view, you can check whether the table contains a Taxonomy Catch All field. This field indicates that the
SharePoint list currently has or at some time in the past had a reference to a hidden metadata column that is
associated with this field.
For more information about known issues that occur when you use SharePoint lists in Access, see Access cache
formats for SharePoint lists/document libraries.
Access: Errors during import/export to Excel xls
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Access encounters import/export errors when working with Excel *.xls files that have cells which contain more than
8224 bytes of data.

Import Error: The wizard is unable to access information in the file '<filename>'. Please check that the file
exists and is in the correct format.
Export Error: External table is not in the expected format.

Cause
Changes that were released beginning with Access 2010 Service Pack 1 prevent Access from opening an existing
Excel *.xls file if the contents of a cell are greater than 8224 bytes.

Resolution
You may use one of the following methods to prevent the issue.
1. Use the *.xlsx format instead
2. Restrict any memo/long text fields to a length less than 8224 bytes
3. When exporting, delete the existing .xls file before performing the export using the same file name
4. Open the .xls file in Excel before performing the import/export from Access
Exclusive lock is required for saving design changes to
Access objects
3/30/2020 • 8 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 283228

NOTE
Advanced: Requires expert coding, interoperability, and multiuser skills. This article applies only to a Microsoft Access
database (.mdb and .accdb).

Symptoms
When you try to customize toolbars or open a Microsoft Access form, report, macro, or module in Design view, you
receive the following message:

You do not have exclusive access to the database at this time. If you proceed to make changes, you may not be
able to save them later.

When you try to save design changes that you made to an Access form, report, macro, or module, you receive the
following message:

You do not have exclusive access to the database at this time. Your design changes will not be saved.

When you try to save a new data access page, you receive the following message:

A link to this data access page could not be created because the database cannot be exclusively locked.

Cause
You are trying to open a form, report, macro, module, or commandbar in Design view.
You are trying to save design changes to one of these object types or a new page link while other users have the
same database open.
To save design changes to these object types, Access must be able to obtain an exclusive lock on the database.

Resolution
In situations where multiple developers are designing an Access application simultaneously, you must implement
source code control by using the Microsoft Visual SourceSafe Add-in for Microsoft Access. Or you must distribute
local working copies of the database to each developer. A discussion of each of these options follows.
Implementing source code control
The Microsoft Access Visual SourceSafe Add-In permits you to put your Access application under source code
control while it is under development. If you put your application under source code control, this permits you to
track and to store changes that are made to your application over time. By using Microsoft Visual SourceSafe, you
can review the history of an object and then revert to earlier versions of an object. You may check out objects in the
Microsoft Access application, modify them or create new objects in their local copy, and then check them back into
the main database under source code control. The Microsoft Access Visual SourceSafe Add-In is available with
Microsoft Office XP Developer. To use the Microsoft Access Visual SourceSafe Add-In, you must also install
Microsoft Visual SourceSafe, which is also available with Microsoft Office XP Developer, separately.
Using individual working databases
Another option you can implement is to keep a master copy of the database application in a centralized location,
and then use individual working copies of the database on each developer's computer. Each developer would
develop his or her portion of the application in the local working copy of the database. When the developer wants
to make a change to an object in the database application, he or she would import the object from the master
database into the local working database. Then the developer would make the required changes to the object in the
local working database, and save the object. When the developer is ready to commit the changes to the master
database, he or she would export the object to the master database, overwriting the original object.
One disadvantage of using this approach is that there is no way to determine if multiple developers are
concurrently working on the same object locally. When the developer exports the object to the master database, the
developer can unknowingly overwrite changes that another developer committed to the master database.

More Information
To save design changes to Access-specific objects, such as forms, reports, new page links, macros, modules, and
commandbars, Access 2002 must be able to lock the database exclusively during the Save operation. Tables,
queries, and relationships do not fall under this restriction because they are Microsoft Jet-specific objects. Microsoft
uses this requirement with Access 2002 for several reasons:
It provides consistency with other Visual Basic Environment client applications.
It stops dependency on the Jet database engine.
It improves stability of Access-specific objects.
Provides consistency with other Visual Basic environment client applications
Because Access 2002 hosts the Visual Basic environment, the save model used by Microsoft Access must be
consistent with other applications that host the Visual Basic environment. The Visual Basic environment only
permits exclusive editing and saving of Visual Basic projects that are not under source code control. This is true of
Visual Basic 6.0, and also all Office applications that host the Visual Basic environment.
Stops dependency on the Jet database engine
Access offers the ability to create Microsoft Access project (.adp) files and also Microsoft Access databases (.mdb).
By using an Access project, developers can use Microsoft SQL Server as another database engine to Microsoft Jet.
In the past, all Access specific objects (forms, reports, macros, modules, and commandbars) were dependent upon
the Jet database engine for storage. These objects were stored in Access-specific system tables in the Microsoft Jet
database. Because it is possible for Access to use Microsoft SQL Server as an alternative to Microsoft Jet, Microsoft
had to develop a storage mechanism for Access-specific objects that does not rely on the Jet database engine.
Improves stability of Access-specific objects
The project storage model improves the stability of Access-specific objects and the Visual Basic project. Visual Basic
for Applications has never allowed multi-user editing of Visual Basic projects without source code control.
Microsoft Access 95 and Microsoft Access 97 could circumvent this restriction by hiding project changes made in a
multi-user environment from Visual Basic for Applications, and then merging them into the project later. However,
this had the potential for affecting the stability of the Visual Basic project. Therefore, Microsoft Access requires an
exclusive lock when designing Access-specific objects to make sure that the project has only one editor.
Editing Access objects in a multi-user environment
Because users may open a database either for exclusive or shared use, the save behavior exhibited by Access
depends on how the user opened the database and on whether multiple users are currently accessing it.
If a developer opens the database for exclusive use, the developer can save the design of any Access-specific object,
provided the developer can open the database for read/write access and has the correct permissions to modify the
design of the object.
If a user opens the database for shared use, the user can save the design of any Access-specific object, provided the
user can open the database for read/write access, has the correct permissions to modify the design of the object,
and Access can obtain an exclusive lock on the database.
Lock promotion
To make sure use of the database is exclusive, Access uses the connection control feature of the Jet database engine
to promote the user's shared lock to exclusive. Access tries to promote a shared lock to an exclusive lock as soon as
the user opens a form, report, macro, or commandbar in Design view. Access tries lock promotion at this time in
order to prevent the scenario where a user has made multiple design changes only to later find that the user cannot
save them because Access cannot obtain an exclusive lock. By trying lock promotion as soon as the user opens an
object in Design view, Access can warn the user if it cannot obtain an exclusive lock before the user makes any
design changes. Access will not try lock promotion when opening a module in Design view; however, it will try lock
promotion as soon as the user edits any module in the database.
Access maintains the exclusive lock until the user saves or discards all dirty objects and no other objects are open in
Design view. Following this, Access demotes the lock back to shared if the database was originally opened for
shared use.
If Access cannot promote the lock to exclusive when the user opens an object in Design view, Access alerts the user
with the message:

You do not have exclusive access to the database at this time. If you proceed to make changes, you may not be
able to save them later.

Following this warning message, Access will open the object in Design view and allow the user to make design
changes. If the user tries to save the object, Access tries to promote the shared lock to exclusive. If lock promotion is
successful, Access saves the object and maintains the exclusive lock until the user saves or discards all other dirty
objects and no object remains open in Design view. If lock promotion fails, the user receives the following message:

You do not have exclusive access to the database at this time. Your design changes will not be saved.

If the user tries to close the dirty object and save changes, Access then prompts the user with the option of closing
the object and discarding design changes made to it, or with the option of leaving it open and unsaved.
Steps to reproduce the behavior
1. Start two instances of Microsoft Access on the same computer.
2. Open the sample database Northwind.mdb in both instances.
3. In the first instance of Microsoft Access, open the Customers form in Design view.
You receive the message:

You do not have exclusive access to the database at this time. If you proceed to make changes, you may
not be able to save them later.

4. Click OK to clear the message.


The form opens in Design view.
5. Add a text box control to the form.
6. On the File menu, click Save .
You receive the following message:

You do not have exclusive access to the database at this time. Your design changes will not be saved.

7. Click OK to clear the message.


8. Close the second instance of Access on your computer.
9. In the first instance of Access, try to save the form again.
The form is saved successfully.
ACCESS 2010: Extra report page prints when Group
Footer set to After Section
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptom
When printing a Microsoft Access 2010 report that has a Group Footer, you may see an extra page print at the end
of the report.

Cause
The issue occurs when the Force New Page property of a Group Footer on a report is set to "After Section".
Microsoft is aware of this problem in Microsoft Access 2010.

Resolution
To work around this problem, you can accomplish the same results by forcing a new page before the group header
instead of after the group footer.
In the report's Group Header set the Force New Page property to "Before Section" In the report's Group Footer set
the Force New Page property to "None"
To do so:
1. In report Design View, select the horizontal bar for the Group Header
2. Click the Property Sheet icon in the Ribbon
3. On the Format tab click in the section to the right of Force New Page, click the dropdown arrow and select
"Before Section"
4. Select the horizontal bar for the Group Footer
5. On the Property Sheet's Format tab click in the section to the right of Force New Page, click the dropdown arrow
and select "None"

More Information
This problem does not reproduce in previous versions of Microsoft Access.
Steps to Reproduce:
1. Open Microsoft Access 2010
2. On the File menu select Sample templates under Available Templates
3. Select the Northwind template and click Create
4. Click the double arrows above the Navigation Pane bar to expand
5. Select Reports
6. Right click the Employee Phone Book and select Design View
7. Select the File As Header bar
8. In the Group, Sort, And Total section at the bottom, click More
You may need to right click on the File as Header bar and select Sorting and Grouping to see the Group, Sort,
and Total section)
9. Click the dropdown to the right of "without a footer section"
10. Select "with a footer section"
11. Select the File As Footer bar and click the Propert Sheet icon on the Ribbon
12. On the Format tab, click on None in the Force New Page line
13. Click the dropdown and select "After Section"
14. Select Print Preview
15. Navigate to the last page. Notice that the last page has no data on it.
You cannot edit a database that was saved in Access
2010 if you open the database in Office Access 2007
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 982277

Symptoms
Consider the following scenario:
You create and then save a database in Microsoft Office Access 2007.
You open the database in Microsoft Access 2010, add a data macro to a table in the database, and then save the
changes to the database.
You open the database in Office Access 2007, and then try to edit the table.
In this scenario, you cannot edit the table. Additionally, you receive the following error message:
In Office Access 2007 together with the 2007 Microsoft Office system Service Pack 2 installed

This database uses some features which may be incompatible with the current version of Microsoft Office
Access.

In Office Access 2007 together with the 2007 Microsoft Office system Service Pack 1 installed or in the RTM release version of Office
Access 2007

Unrecognized database format 'path\file_name '.

Cause
This issue occurs because a new feature that is not supported in Office Access 2007 was added to the database in
Access 2010.

Workaround
To work around this issue, use one of the following methods.
Method 1
Install Access 2010, and then edit the database.
Method 2
To edit the database in Office Access 2007, follow these steps:
1. Open the database in Access 2010.
2. Delete the new feature, such as the data macro, from the database.
3. Create a new database in Access 2010, and then import all objects from the old database into the new database.
4. Save the new database in Access 2010, and then edit the new database in Office Access 2007.
File association errors opening databases by double-
clicking in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 2212418

Symptoms
When opening databases by double-clicking on them in Windows Explorer, one of the following error messages
appears. The same database can be opened by opening Access first and then opening the file from the File > Open
menu option.

"'<Database name>' is not a valid Win32 application"

-OR-

"This file does not have a program associated with if for performing this action. Create an association in the Set
Association control panel."

The file extensions used by Access have lost their association to the Access application. The most common
extensions are (.accdb, .accde, .mdb, .mde).

Resolution
This issue is corrected by changing the file association back to Access.
Method 1
1. Right-click on the problem (.accdb, .accde, .mdb, .mde) file.
2. Point to Open With , and then click on Choose Default Program .
3. Under Recommended Programs , look for Access and select it if found.
4. If Access wasn't listed in the Recommended Programs section, click the Browse button, browse to and
select msaccess.exe, and then click Open .
Common install paths:
(32-bit Windows / 32-bit Access) or (64-bit Windows / 64-bit Access):
Access 2007: C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE
Access 2010: C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE
Access 2013: C:\Program Files\Microsoft Office\Office15\MSACCESS.EXE (MSI)
Access 2013: C:\Program Files\Microsoft Office 15\root\Office15\MSACCESS.EXE (C2R)
Access 2016: C:\Program Files\Microsoft Office\Office16\MSACCESS.EXE (MSI)
Access 2016: C:\Program Files\Microsoft Office\root\Office16\MSACCESS.EXE (C2R)
(64-bit Windows / 32-bit Access):
Access 2007: C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.EXE
Access 2010: C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE
Access 2013: C:\Program Files (x86)\Microsoft Office\Office15\MSACCESS.EXE (MSI)
Access 2013: C:\Program Files\Microsoft Office 15\root\Office15\MSACCESS.EXE (C2R)
Access 2016: C:\Program Files (x86)\Microsoft Office\Office16\MSACCESS.EXE (MSI)
Access 2016: C:\Program Files(x86)\Microsoft Office\root\Office16\MSACCESS.EXE (C2R)
5. Make sure that the "Always use the selected program..." box is checked, and then click OK .
Method 2
If your operating system is Windows Vista or newer, you can delete the following registry keys to remove the
current user choice for the default application used with the file extension. The key is rebuilt with the default
association the next time Access is opened.

WARNING
Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method.
These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can
be solved. Modify the registry at your own risk.

1. Open the Registry Editor by clicking on Star t , typing Regedit in the search box, and then pressing enter.
2. Locate the following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts

3. Locate the file extension that you want to delete. such as .accdb. Before deleting it, create a backup of the key
by right-clicking on the file extension (.accdb), choosing Export, and then providing a filename.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.accdb

4. Right-click on the file extension (.accdb) key again and this time choose Delete .
5. Close the Registry Editor and double-click on your database file.

NOTE
This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained
herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may
include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
How to find a record using ADO and Jet OLE DB
provider
4/13/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Summary
This article demonstrates how to use ActiveX Data Objects (ADO) and OLE DB to find records in a Microsoft Jet
database.

More information
What follows are two example procedures. The first, CreateJetDB, creates a new Microsoft Jet database in the root
directory of drive C and populates it with data. The second, CursorLocationTimed, demonstrates how to use the
Find method with a server-side cursor and with a client-side cursor.
To create these procedures, follow these steps:
1. Create a new Microsoft Access database.
2. Create a new module.
3. On the Tools menu, click References, and make sure the following references are selected:
Microsoft ActiveX Data Objects 2.1 Library or later version
Microsoft ADO Ext. 2.1 for DDL and Security or later version
4. Type or paste the following procedures:

Sub CreateJetDB()

Dim cat As ADOX.Catalog


Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim numrecords As Long
Dim i As Long

Set cat = New ADOX.Catalog


Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset

' Number of sample records to create


numrecords = 250000

On Error Resume Next


'Delete the sample database if it already exists.
'Change "findseek.mdb" to "findseek.accdb" for Access 2007.
'Change the Provider to "Microsoft.ACE.OLEDB.12.0" for
'Access 2007 ACCDB databases.
Kill "c:\findseek.mdb"
On Error GoTo 0

' Create a new Jet 4.0 database name findseek.mdb


'Change "findseek.mdb" to "findseek.accdb" for Access 2007.
'Change the Provider to "Microsoft.ACE.OLEDB.12.0" for
'Access 2007 ACCDB databases.

cat.Create "Provider=Microsoft.Jet.OLEDB.4.0;" & _


"Data Source=c:\findseek.mdb"

' Set the provider, open the database,


'and create a new table called tblSequential.
'Change "findseek.mdb" to "findseek.accdb" for Access 2007.
'Change the Provider to "Microsoft.ACE.OLEDB.12.0" for
'Access 2007 ACCDB databases.

cn.Provider = "Microsoft.Jet.OLEDB.4.0"
cn.Open "Data Source=c:\findseek.mdb"
cn.Execute "CREATE TABLE tblSequential (col1 long, col2 text(75));"

'Open the new table.


rs.Open "tblSequential", cn, adOpenDynamic, _
adLockOptimistic, adCmdTableDirect

' Add sample records to the tblSequential table.


For i = 0 To numrecords
rs.AddNew
rs.Fields("col1").Value = i
rs.Fields("col2").Value = "value_" & i
rs.Update
Next i
rs.Close

'Create a multifield Index on col1 and col2.


cn.Execute "CREATE INDEX idxSeqInt on tblSequential (col1, col2);"

'Close the connection


cn.Close

End Sub

Sub CursorLocationTimed()

Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim i, j As Long
Dim time As Variant

Set cn = New ADODB.Connection


Set rs = New ADODB.Recordset

On Error GoTo ErrHandler

'Change "findseek.mdb" to "findseek.accdb" for Access 2007.


'Change the Provider to "Microsoft.ACE.OLEDB.12.0" for
'Access 2007 ACCDB databases.
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data Source=c:\findseek.mdb"

' Specify how ADO should open the recordset:


' adUseServer - use the native provider to perform cursor
' operations
' adUseClient - use the client cursor engine in ADO
' NOTE: adUseServer more closely resembles DAO
' Time opening a recordset and doing 1000 finds (Server cursor
' engine)
'
rs.CursorLocation = adUseServer
time = Timer

' Open the recordset and perform serveral Finds to locate records.
' Using the adCmdTableDirect opens a base table against Jet, which
' is generally the fastest, most functional way to access tables.

rs.Open "tblSequential", cn, adOpenDynamic, adLockOptimistic, _


adCmdTableDirect

For i = 0 To 1000
rs.Find "col1=" & i
Next i

Debug.Print "Sequential Find + Open (Server) = " & Timer - time


rs.Close

' Time opening a recordset and doing 1000 finds (Client cursor
' engine)

rs.CursorLocation = adUseClient
time = Timer

rs.Open "tblSequential", cn, adOpenDynamic, _


adLockOptimistic, adCmdTableDirect

For i = 0 To 1000
rs.Find "col1=" & i
Next i

Debug.Print "Sequential Find + Open (Client) = " & Timer - time


rs.Close

Exit Sub

ErrHandler:

For j = 0 To cn.Errors.Count - 1
Debug.Print "Conn Err Num : "; cn.Errors(j).Number
Debug.Print "Conn Err Desc: "; cn.Errors(j).Description
Next j

Resume Next

End Sub

5. To create the sample database, type the following line in the Immediate window, and then press ENTER:

CreateJetDB

6. To demonstrate the Find method, type the following line in the Immediate window, and then press ENTER:

CursorLocationTimed

You should see output similar to the following:


Sequential Find + Open (Server) = 0.28125
Sequential Find + Open (Client) = 5.28125
NOTE The resulting numbers may differ from computer to computer.

References
To learn more about ActiveX Data Objects, see Microsoft ActiveX Data Objects (ADO).
Precision and accuracy in floating-point calculations
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 125056

Summary
There are many situations in which precision, rounding, and accuracy in floating-point calculations can work to
generate results that are surprising to the programmer. They should follow the four general rules:
1. In a calculation involving both single and double precision, the result will not usually be any more accurate
than single precision. If double precision is required, be certain all terms in the calculation, including
constants, are specified in double precision.
2. Never assume that a simple numeric value is accurately represented in the computer. Most floating-point
values can't be precisely represented as a finite binary value. For example, .1 is .0001100110011... in
binary (it repeats forever), so it can't be represented with complete accuracy on a computer using binary
arithmetic, which includes all PCs.
3. Never assume that the result is accurate to the last decimal place. There are always small differences
between the "true" answer and what can be calculated with the finite precision of any floating point
processing unit.
4. Never compare two floating-point values to see if they are equal or not- equal. This is a corollary to rule 3.
There are almost always going to be small differences between numbers that "should" be equal. Instead,
always check to see if the numbers are nearly equal. In other words, check to see if the difference between
them is small or insignificant.

More Information
In general, the rules described above apply to all languages, including C, C++, and assembler. The samples below
demonstrate some of the rules using FORTRAN PowerStation. All of the samples were compiled using FORTRAN
PowerStation 32 without any options, except for the last one, which is written in C.
Sample 1
The first sample demonstrates two things:
That FORTRAN constants are single precision by default (C constants are double precision by default).
Calculations that contain any single precision terms are not much more accurate than calculations in which all
terms are single precision.
After being initialized with 1.1 (a single precision constant), y is as inaccurate as a single precision variable.

x = 1.100000000000000 y = 1.100000023841858

The result of multiplying a single precision value by an accurate double precision value is nearly as bad as
multiplying two single precision values. Both calculations have thousands of times as much error as multiplying
two double precision values.

true = 1.320000000000000 (multiplying 2 double precision values)


y = 1.320000052452087 (multiplying a double and a single)
z = 1.320000081062318 (multiplying 2 single precision values)

Sample code

C Compile options: none

real*8 x,y,z
x = 1.1D0
y = 1.1
print *, 'x =',x, 'y =', y
y = 1.2 * x
z = 1.2 * 1.1
print *, x, y, z
end

Sample 2
Sample 2 uses the quadratic equation. It demonstrates that even double precision calculations are not perfect, and
that the result of a calculation should be tested before it is depended on if small errors can have drastic results. The
input to the square root function in sample 2 is only slightly negative, but it is still invalid. If the double precision
calculations did not have slight errors, the result would be:

Root = -1.1500000000

Instead, it generates the following error:

run-time error M6201: MATH


sqrt: DOMAIN error

Sample code

C Compile options: none

real*8 a,b,c,x,y
a=1.0D0
b=2.3D0
c=1.322D0
x = b**2
y = 4*a*c
print *,x,y,x-y
print "(' Root =',F16.10)",(-b+dsqrt(x-y))/(2*a)
end

Sample 3
Sample 3 demonstrates that due to optimizations that occur even if optimization is not turned on, values may
temporarily retain a higher precision than expected, and that it is unwise to test two floating- point values for
equality.
In this example, two values are both equal and not equal. At the first IF, the value of Z is still on the coprocessor's
stack and has the same precision as Y. Therefore X does not equal Y and the first message is printed out. At the time
of the second IF, Z had to be loaded from memory and therefore had the same precision and value as X, and the
second message also is printed.
Sample code

C Compile options: none

real*8 y
y=27.1024D0
x=27.1024
z=y
if (x.ne.z) then
print *,'X does not equal Z'
end if
if (x.eq.z) then
print *,'X equals Z'
end if
end

Sample 4
The first part of sample code 4 calculates the smallest possible difference between two numbers close to 1.0. It does
this by adding a single bit to the binary representation of 1.0.

x = 1.00000000000000000 (one bit more than 1.0)


y = 1.00000000000000000 (exactly 1.0)
x-y = .00000000000000022 (smallest possible difference)

Some versions of FORTRAN round the numbers when displaying them so that the inherent numerical imprecision
is not so obvious. This is why x and y look the same when displayed.
The second part of sample code 4 calculates the smallest possible difference between two numbers close to 10.0.
Again, it does this by adding a single bit to the binary representation of 10.0. Notice that the difference between
numbers near 10 is larger than the difference near 1. This demonstrates the general principle that the larger the
absolute value of a number, the less precisely it can be stored in a given number of bits.

x = 10.00000000000000000 (one bit more than 10.0)


y = 10.00000000000000000 (exactly 10.0)
x-y = .00000000000000178

The binary representation of these numbers is also displayed to show that they do differ by only 1 bit.

x = 4024000000000001 Hex
y = 4024000000000000 Hex

The last part of sample code 4 shows that simple non-repeating decimal values often can be represented in binary
only by a repeating fraction. In this case x=1.05, which requires a repeating factor CCCCCCCC....(Hex) in the mantissa.
In FORTRAN, the last digit "C" is rounded up to "D" in order to maintain the highest possible accuracy:

x = 3FF0CCCCCCCCCCCD (Hex representation of 1.05D0)

Even after rounding, the result is not perfectly accurate. There is some error after the least significant digit, which
we can see by removing the first digit.

x-1 = .05000000000000004

Sample code
C Compile options: none

IMPLICIT real*8 (A-Z)


integer*4 i(2)
real*8 x,y
equivalence (i(1),x)

x=1.
y=x
i(1)=i(1)+1
print "(1x,'x =',F20.17,' y=',f20.17)", x,y
print "(1x,'x-y=',F20.17)", x-y
print *

x=10.
y=x
i(1)=i(1)+1
print "(1x,'x =',F20.17,' y=',f20.17)", x,y
print "(1x,'x-y=',F20.17)", x-y
print *
print "(1x,'x =',Z16,' Hex y=',Z16,' Hex')", x,y
print *

x=1.05D0
print "(1x,'x =',F20.17)", x
print "(1x,'x =',Z16,' Hex')", x
x=x-1
print "(1x,'x-1=',F20.17)", x
print *
end

Sample 5
In C, floating constants are doubles by default. Use an "f" to indicate a float value, as in "89.95f".

/* Compile options needed: none


*/

#include <stdio.h>

void main()
{
float floatvar;
double doublevar;

/* Print double constant. */


printf("89.95 = %f\n", 89.95); // 89.95 = 89.950000

/* Printf float constant */


printf("89.95 = %f\n", 89.95F); // 89.95 = 89.949997

/*** Use double constant. ***/


floatvar = 89.95;
doublevar = 89.95;

printf("89.95 = %f\n", floatvar); // 89.95 = 89.949997


printf("89.95 = %lf\n", doublevar); // 89.95 = 89.950000

/*** Use float constant. ***/


floatvar = 89.95f;
doublevar = 89.95f;

printf("89.95 = %f\n", floatvar); // 89.95 = 89.949997


printf("89.95 = %lf\n", doublevar); // 89.95 = 89.949997
}
How to force a new line in a MsgBox message in
Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies to either a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file,
and to a Microsoft Access project (.adp) file.

Summary
If you want to force a new line in a message box, you can include one of the following:
The Visual Basic for Applications constant for a carriage return and line feed, vbCrLf.
The character codes for a carriage return and line feed, Chr(13) & Chr(10).
For example, if you had the following message:
NOTICE: This is an Impor tant Message!
and you wanted the message to be displayed as

NOTICE:

This is an Important Message!

you would enter the message as a string expression as in either of the following examples:
Example Using the Visual Basic for Applications Constant:

MsgBox "NOTICE:" & vbCrLf & "This is an Important Message!"

Example Using the Character Codes:

MsgBox "NOTICE:" & Chr(13) & Chr(10) & "This is an Important Message!"

You can also use the vbCrLfconstant to create multiple lines in a text box on a form or on a data access page.

References
For more information about character codes, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help
menu, type Chr function in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Format or DatePart functions can return wrong week
number for last Monday in Year
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

WARNING
There is an issue with the use of this function. The last Monday in some calendar years can be returned as week 53 when it
should be week 1. For more information and a workaround, see Format or DatePart functions can return wrong week
number for last Monday in Year.

Symptoms
When you use either the Format or DatePart function to determine the week number for dates using the following
syntax:
Format(AnyDate, "ww", vbMonday, vbFirstFourDays)
DatePar t("ww", AnyDate, vbMonday, vbFirstFourDays)
the last Monday in some calendar years is returned as week 53 when it should be week 1.

Cause
When determining the week number of a date according to the ISO 8601 standard, the underlying function call to
the Oleaut32.dll file mistakenly returns week 53 instead of week 1 for the last Monday in certain years.

Resolution
Use a user-defined function to return the Week number based on the rules for the ISO 8601 standard. An example
is included in this article.

More Information
The ISO 8601 standard is used extensively in Europe and includes the following:

ISO 8601 "Data elements and interchange formats - Information interchange - Representation of dates and
times"
ISO 8601 : 1988 (E) paragraph 3.17:
"week, calendar: A seven day period within a calendar year, starting on a Monday and identified by its ordinal
number within the year; the first calendar week of the year is the one that includes the first Thursday of that
year. In the Gregorian calendar, this is equivalent to the week which includes 4 January."

This can be implemented by applying these rules for Calendar weeks:


A year is divided into either 52 or 53 calendar weeks.
A calendar week has 7 days. Monday is day 1, Sunday is day 7.
The first calendar week of a year is the one containing at least 4 days.
If a year is not concluded on a Sunday, either its 1-3 last days belong to next year's first calendar week or the
first 1-3 days of next year belong to the present year's last calendar week.
Only a year starting or concluding on a Thursday has 53 calendar weeks.
In Visual Basic and Visual Basic for Applications, all date functionality, except for the DateSerial function, comes
from calls to the Oleaut32.dll file. Because both the Format() and DatePart() functions can return the calendar week
number for a given date, both are affected by this bug. To avoid this problem, you must use the alternative code
that this article provides.
Steps to Reproduce Behavior
1. Open the Visual Basic project within an Office application (Alt + F11).
2. From the Project menu, add a new module.
3. Paste the following code into the module:
Option Explicit

Public Function Test1()


' This code tests a "problem" date and the days around it
Dim DateValue As Date
Dim i As Integer

Debug.Print " Format function:"


DateValue = #12/27/2003#
For i = 1 To 4 ' examine the last 4 days of the year
DateValue = DateAdd("d", 1, DateValue)
Debug.Print "Date: " & DateValue & " Day: " & _
Format(DateValue, "ddd") & " Week: " & _
Format(DateValue, "ww", vbMonday, vbFirstFourDays)
Next i
End Function

Public Function Test2()


' This code lists all "Problem" dates within a specified range
Dim MyDate As Date
Dim Years As Long
Dim days As Long
Dim woy1 As Long
Dim woy2 As Long
Dim ToPrint As String

For Years = 1850 To 2050


For days = 0 To 3
MyDate = DateSerial(Years, 12, 28 + days)
woy1 = Format(MyDate, "ww", vbMonday, vbFirstFourDays)
woy2 = Format(MyDate, "ww", vbMonday, vbFirstFourDays)
If woy2 > 52 Then
If Format(MyDate + 7, "ww", vbMonday, vbFirstFourDays) = 2 Then _
woy2 = 1
End If
If woy1 <> woy2 Then
ToPrint = MyDate & String(13 - Len(CStr(MyDate)), " ")
ToPrint = ToPrint & Format(MyDate, "dddd") & _
String(10 - Len(Format(MyDate, "dddd")), " ")
ToPrint = ToPrint & woy1 & String(5 - Len(CStr(woy1)), " ")
ToPrint = ToPrint & woy2
Debug.Print ToPrint
End If
Next days
Next Years
End Function

4. Use (Ctrl + G) to open the Immediate Window if it's not already open.
5. Type ?Test1 in the Immediate window and hit Enter, note the following results in the Immediate window:

Format function:
Date: 12/28/03 Day: Sun Week: 52
Date: 12/29/03 Day: Mon Week: 53
Date: 12/30/03 Day: Tue Week: 1
Date: 12/31/03 Day: Wed Week: 1

Note that with this format, all weeks start with Monday, so that 12/29/2003 should be considered the start
of Week 1 and not part of Week 53.
6. Type ?Test2 in the Immediate window and hit Enter to see a list of dates in the specified range that
experience this problem. The list includes the date, Week day (always Monday), the Week # returned by
Format (53), and the Week number it should return (1.) For example:
12/29/1851 Monday 53 1
12/31/1855 Monday 53 1
12/30/1867 Monday 53 1
12/29/1879 Monday 53 1
12/31/1883 Monday 53 1
12/30/1895 Monday 53 1
...

Workarounds
If you use the Format or DatePart functions, you need to check the return value. When it is 53, run another check
and force a return of 1, if necessary. This code sample demonstrates one way to do this:

Function WOY (MyDate As Date) As Integer ' Week Of Year


WOY = Format(MyDate, "ww", vbMonday, vbFirstFourDays)
If WOY > 52 Then
If Format(MyDate + 7, "ww", vbMonday, vbFirstFourDays) = 2 Then WOY = 1
End If
End Function

You can avoid using these functions to determine Week number by writing code that implements the ISO 8601
rules described above. The following example demonstrates a replacement function to return the Week number.
Step by Step Example
1. Open the Visual Basic project within an Office application (Alt + F11).
2. From the Project menu, add a new module.
3. Paste the following code into the module:
Option Explicit

Function WeekNumber(InDate As Date) As Integer


Dim DayNo As Integer
Dim StartDays As Integer
Dim StopDays As Integer
Dim StartDay As Integer
Dim StopDay As Integer
Dim VNumber As Integer
Dim ThurFlag As Boolean

DayNo = Days(InDate)
StartDay = Weekday(DateSerial(Year(InDate), 1, 1)) - 1
StopDay = Weekday(DateSerial(Year(InDate), 12, 31)) - 1
' Number of days belonging to first calendar week
StartDays = 7 - (StartDay - 1)
' Number of days belonging to last calendar week
StopDays = 7 - (StopDay - 1)
' Test to see if the year will have 53 weeks or not
If StartDay = 4 Or StopDay = 4 Then ThurFlag = True Else ThurFlag = False
VNumber = (DayNo - StartDays - 4) / 7
' If first week has 4 or more days, it will be calendar week 1
' If first week has less than 4 days, it will belong to last year's
' last calendar week
If StartDays >= 4 Then
WeekNumber = Fix(VNumber) + 2
Else
WeekNumber = Fix(VNumber) + 1
End If
' Handle years whose last days will belong to coming year's first
' calendar week
If WeekNumber > 52 And ThurFlag = False Then WeekNumber = 1
' Handle years whose first days will belong to the last year's
' last calendar week
If WeekNumber = 0 Then
WeekNumber = WeekNumber(DateSerial(Year(InDate) - 1, 12, 31))
End If
End Function

Function Days(DayNo As Date) As Integer


Days = DayNo - DateSerial(Year(DayNo), 1, 0)
End Function

Public Function Test3()


Dim DateValue As Date, i As Integer

Debug.Print " WeekNumber function:"


DateValue = #12/27/2003#
For i = 1 To 4 ' examine the last 4 days of the year
DateValue = DateAdd("d", 1, DateValue)
Debug.Print "Date: " & DateValue & " Day: " & _
Format(DateValue, "ddd") & " Week: " & WeekNumber(DateValue)
Next i
End Function

4. Use (Ctrl + G) to open the Immediate Window if it's not already open.
5. Type ?Test3 in the Immediate window and hit Enter, note the following results in the Immediate window:

WeekNumber function:
Date: 12/28/03 Day: Sun Week: 52
Date: 12/29/03 Day: Mon Week: 1
Date: 12/30/03 Day: Tue Week: 1
Date: 12/31/03 Day: Wed Week: 1
Note that Monday is considered to be Week 1 as it should be.
How to create two functions to calculate age in
months and in years in Access
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to a Microsoft Office Access database (.accdb and .mdb) and to Microsoft Access project (.apd).

Summary
This article shows you how to create two functions that you can use to calculate the age of a person or thing based
on a specified date.

NOTE
You can see a demonstration of the technique that is used in this article in the sample file Qrysmp00.exe.

More information
Creating the Functions
Type or paste the following code in a module:
'==========================================================
' General Declaration
'==========================================================
Option Explicit

'*************************************************************
' FUNCTION NAME: Age()
'
' PURPOSE:
' Calculates age in years from a specified date to today's date.
'
' INPUT PARAMETERS:
' StartDate: The beginning date (for example, a birth date).
'
' RETURN
' Age in years.
'
'*************************************************************
Function Age (varBirthDate As Variant) As Integer
Dim varAge As Variant

If IsNull(varBirthdate) then Age = 0: Exit Function

varAge = DateDiff("yyyy", varBirthDate, Now)


If Date < DateSerial(Year(Now), Month(varBirthDate), _
Day(varBirthDate)) Then
varAge = varAge - 1
End If
Age = CInt(varAge)
End Function

'*************************************************************
' FUNCTION NAME: AgeMonths()
'
' PURPOSE:
' Compliments the Age() function by calculating the number of months
' that have expired since the last month supplied by the specified date.
' If the specified date is a birthday, the function returns the number of
' months since the last birthday.
'
' INPUT PARAMETERS:
' StartDate: The beginning date (for example, a birthday).
'
' RETURN
' Months since the last birthday.
'*************************************************************
Function AgeMonths(ByVal StartDate As String) As Integer

Dim tAge As Double


tAge = (DateDiff("m", StartDate, Now))
If (DatePart("d", StartDate) > DatePart("d", Now)) Then
tAge = tAge - 1
End If
If tAge < 0 Then
tAge = tAge + 1
End If

AgeMonths = CInt(tAge Mod 12)

End Function

Testing the Age () and AgeMonths() Functions


To test the Age() and AgeMonths() functions, follow these steps.
IMPORTANT
The following steps ask you to change the date on your computer. Make sure that you complete step 6 to reset the date to
the current date.

1. By using the Date/Time tool in Control Panel, make a note of the current date, and then set the date to June
3, 2001.
2. Open a module or create a new one.
3. On the Viewmenu, click Immediate Window.
4. Assume your friend's birth date was November 15, 1967 and today is June 3, 2001. Type the following line
in the Immediate window, and then press ENTER:
?Age("11/15/67")
Note that Microsoft Access responds with the value 33 (years).
5. Type the following line, and then press ENTER:
?AgeMonths("11/15/67")
Note that Microsoft Access responds with the value 6, indicating that six months have passed since this
person's last birthday. Your friend is 33 years and six months old.
6. By using the Date/Time tool in Control Panel, reset the date to the current date that you noted in step 1.
Using the Age () and AgeMonths() Functions
The following procedure explains how to mark old orders by placing the age value in a new control.
1. In the sample database Northwind.mdb, type the Age() and AgeMonth() functions in a new module.
2. Open the Orders form in Design view and add an unbound text box control.
3. Type the following line in the ControlSourceproperty of the new text box control:
=Age([OrderDate]) & " yrs " & AgeMonths([OrderDate]) & " mos"
4. View the form in Form view. Note that the age of the order is displayed in the new text box control.

References
For more information about date differences, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help
menu, type datediff function in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
How to hide the combo box drop-down arrow on a
form in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 325233

NOTE
Requires knowledge of the user interface on single-user computers.This article applies to a Microsoft Access database (.mdb
and .accdb) and to a Microsoft Access project (.adp).

This article demonstrates a method that you can use to hide the drop-down arrow on a combo box until the combo
box is selected.

Steps to hide the drop-down arrow on a combo box


To hide the drop-down arrow on a combo box when the combo box is not selected, follow these steps:
1. Start Access.
2. On the Help menu, point to Sample Databases , and then click Nor thwind Sample Access Database .
3. Open the Orders form in Design view.
4. Add a rectangle control to the form. Size and move the rectangle control so that it completely covers the drop-
down arrow on the EmployeeID combo box.
5. Set the BackColor property of the rectangle to match the BackColor property of the section.
6. Set the BackStyle property to Normal .
7. Set the BorderStyle to Transparent .
8. View the form in Form view.
Notice that you can see the drop-down arrow on the EmployeeID combo box only when the combo box is selected.

References
For more information about BackColor, BackStyle, or BorderStyle properties, click Microsoft Access Help on the
Help menu, type BackColor, BackStyle, BorderStyle, or Windows color scheme in the Office Assistant or the Answer
Wizard, and then click Search to view the topic.
How the Table Analyzer Wizard works
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Novice: Requires knowledge of the user interface on single-user computers.


This article applies only to a Microsoft Access database (.mdb) or a Microsoft Office Access 2007 database (.accdb).

Summary
The Table Analyzer Wizard can help you create a relational database from a set of data. When you use the Table
Analyzer Wizard, you do not have to know relational database design principles. This article explains how the Table
Analyzer Wizard deciphers a single-table database and proposes a way of splitting the original table into a set of
related tables.

More information
The Table Analyzer Wizard can automatically analyze a nonrelational database and "normalize" it for you.
Normalization is the process of taking a single-table database and breaking it into a set of smaller, related tables,
with each table focused on a single topic or grouping of information.
A normalized relational database has a number of advantages over a nonrelational one. First, updating information
is faster and easier because fewer data changes are required. Second, only the minimum information is stored;
therefore, the database is smaller. Finally, a relational database keeps data consistent automatically because data is
stored once.
Although the Table Analyzer Wizard can help you create a relational database, if you have database experience, the
Table Analyzer Wizard enables you to modify any suggestions it makes. You can split up tables, rearrange fields in
tables, and create relationships between tables. You can modify Table Analyzer Wizard decisions during every step
of the database-creation process.
How to Run the Table Analyzer Wizard
To run the Table Analyzer Wizard, follow these steps:
1. In Microsoft Office Access 2003 or in Microsoft Access 2002, point to Analyze on the Tools menu, and then
click Table .
In Microsoft Office Access 2007 or a later version, click the Database Tools tab, and then click Analyze
Table in the Analyze group.
2. Follow the instructions in the Table Analyzer Wizard dialog boxes. Note that the first two dialog boxes explain
what normalization is and why it is useful. The third dialog box asks if you want to manually split a database
or if you want to let the wizard do it for you.
How the Table Analyzer Wizard Works
If you choose to let the Table Analyzer Wizard split a database, the Table Analyzer Wizard runs through the
following process:
1. The Table Analyzer Wizard starts with a single-table database, which can be any set of data created with, or
imported into, Microsoft Access. The wizard then breaks the table into a set of smaller tables. Each of these
smaller tables contains the minimum set of information that is grouped together.
2. The wizard looks for unique values that can identify a grouping of data. These unique values are labeled as
primary keys for each of the groupings. If no unique value is identified, the wizard creates a primary key using
an auto-incrementing long integer field. In addition, the wizard creates a foreign key in related tables.
3. The wizard creates relationships that control how the new tables work together. These relationships enforce
referential integrity (data consistency) with cascading updates. The wizard does not automatically add cascading
deletes to the relationships because of the risk that you may accidentally delete large portions of data.
4. The wizard creates an initial proposal and asks you to confirm or change it.
5. If you confirm the proposal, the wizard then searches the new tables for inconsistent data (for example the same
customer with two different phone numbers) and presents a list of records that you can change or accept.
6. Finally, you can choose to create a query that simulates the original, single-table database. The wizard first backs
up the original table and renames it by appending "_OLD" to its name. Then, the wizard creates a query using
the original table name. This assures that any existing forms or reports based on the original table will work
with the new table structure.
How to create a running totals query in Microsoft
Access
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Summary
This article demonstrates two methods that you can use to create a running totals query. A running totals query is a
query in which the total for each record is a summation of that record and any previous records. This type of query
is useful for displaying cumulative totals over a group of records (or over a period of time) in a graph or report.
Note You can see a demonstration of the technique that is used in this article in the sample file Qrysmp00.exe.

More Information
Method 1
The first method uses a DSum function and criteria in a query to create a running sum over time. The DSum
function sums the current record and any previous records. When the query moves to the next record, the DSum
function runs again and updates the cumulative total.
The following sample query uses the Orders table from the sample database Northwind to create a running sum
of the freight costs for each month in 1997. The sample data is limited to one year for performance reasons.
Because the DSum function runs once for every record in the query, it may take several seconds (depending on the
speed of your computer) for the query to finish processing. To create and run this query, follow these steps:
1. Open the sample database Northwind.
2. Create a new select query and add the Orders table.
3. On the View menu, click Totals .
Note In Access 2007, click Totals in the Show/Hide group on the Design tab.
4. In the first column of the query design grid, type the following expression in the Field box, and make the
following selections for the Total, Sort, and Show boxes:

Field: AYear: DatePart("yyyy",[OrderDate])


Total: Group By
Sort: Ascending
Show: Yes

The expression in the Field box displays and sorts the year portion of the OrderDate field.
5. In the second column of the query design grid, type the following expression in the Field box, and make the
following selections for the Total, Sort, and Show boxes:

Field: AMonth: DatePart("m",[OrderDate])


Total: Group By
Sort: Ascending
Show: Yes

The expression in the Field box sorts and displays the month portion of the Order Date field as an integer
value from 1 to 12.
6. In the third column of the query design grid, type the following expression in the Field box, and make the
following selections for the Total and Show boxes.
NOTE In the following example, an underscore (_) at the end of a line is used as a line-continuation character.
Remove the underscore from the end of the line when re-creating this example.

Field: RunTot: DSum("Freight","Orders","DatePart('m', _


[OrderDate])<=" & [AMonth] & " And DatePart('yyyy', _
[OrderDate])<=" & [AYear] & "")
Total: Expression
Show: Yes

The expression in the Field box uses the DSum() function to sum the Freight field when the values in both
the AMonth and the AYear fields are less than or equal to the current record that the query is processing.
7. In the fourth column of the query design grid, type the following expression in the Field box, and make the
following selections for the Total, Sort, and Show boxes:

Field: FDate: Format([OrderDate],"mmm")


Total: Group By
Sort: Ascending
Show: Yes

The expression in the Field box displays each month in a textual format, such a Jan, Feb, Mar, and so on.
8. In the fifth column of the query design grid, type the following expression in the Field box, and make the
following selections for the Total, Criteria, and Show boxes:

Field: DatePart("yyyy",[OrderDate])
Total: Where
Criteria: 1997
Show: No

The expression in the Field box filters the query's recordset to include data from 1997 only.
9. Run the query. Note that the RunTot field displays the following records with a running sum:
AYear AMonth RunTot FDate
--------------------------------------
1997 1 2238.98 Jan
1997 2 3840.43 Feb
1997 3 5729.24 Mar
1997 4 8668.34 Apr
1997 5 12129.74 May
1997 6 13982.39 Jun
1997 7 17729.29 Jul
1997 8 22204.73 Aug
1997 9 26565.26 Sep
1997 10 32031.38 Oct
1997 11 36192.09 Nov
1997 12 42748.64 Dec

Method 2
The second method uses a totals query with a DSum() function to create a running total over a group.
The following sample query uses the Orders table to sum freight costs per employee as well as to calculate a
running sum of the freight. To create and run the query, follow these steps:
1. Open the sample database Northwind.mdb.
2. Create a new select query and add the Orders table.
3. On the Viewmenu, click Totals.
Note In Access 2007, click Totals in the Show/Hide group on the Design tab.
4. In the first column of the query design grid, add the following field to the Field box, and make the following
selections for the Total and Show boxes:

Field: EmpAlias: EmployeeID


Total: Group By
Show: Yes

This field groups data by EmployeeID.


5. In the second column of the query design grid, add the following field to the Field box, and make the
following selections for the Total and Show boxes:

Field: Freight
Total: Sum
Show: Yes

This field sums the freight data.


6. In the third column of the query design grid, type the following expression in the Field box, and make the
following selections for the Total and Show boxes.
NOTE In the following example, an underscore (_) at the end of a line is used as a line-continuation character.
Remove the underscore from the end of the line when re-creating this example.

Field: RunTot: Format(DSum("Freight","Orders","[EmployeeID]<=" _& [EmpAlias] & ""),"$0,000.00")


Total: Expression
Show: Yes

The expression in the Field box uses a DSum() function to sum the Freight field when the EmployeeID is less
than or equal to the current EmpAlias, and then formats the field in dollars.
7. Run the query. Note that the RunTot field displays the following records with a running sum:

Employee SumOfFreight RunTot


-------------------------------------------------
Davolio, Nancy $8,836.64 $8,836.64
Fuller, Andrew $8,696.41 $17,533.05
Leverling,Janet $10,884.74 $28,417.79
Peacock, Margaret $11,346.14 $39,763.93
Buchanan, Steven $3,918.71 $43,682.64
Suyama, Michael $3,780.47 $47,463.11
King, Robert $6,665.44 $54,128.55
Callahan, Laura $7,487.88 $61,616.43
Dodsworth, Anne $3,326.26 $64,942.69
The ID field is increment by one every time that you
add a field to a new table in Datasheet view in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You create a new table in Datasheet view in Microsoft Office Access 2007 or a later version. Every time that you
press ENTER to add a new field to the table, the ID field value is incremented by one. For example, if you add five
fields to the first row of data before you save the table, the ID field value is incremented to 5.

Workaround
To work around this problem, perform one of the following actions:
Add a second row of data before you add a new field to the table.
Save the table before you add a new field to the table.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Steps to reproduce the problem
1. On the Create tab, click Table .
2. In Datasheet view, type SampleData in the Add New Field box, and then press ENTER.
3. Type SampleData2 in the Add New Field text box, and then press ENTER.
The ID value is incremented to 2.
Microsoft Calendar Control 10.0 and later versions use
an incorrect value for the FirstDay property
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 826761

NOTE
This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file. Requires basic
macro, coding, and interoperability skills.

Symptoms
In Microsoft Access, an incorrect day is displayed for the first day of the Calendar Control. This problem occurs
when you insert a Microsoft Calendar Control 10.0 or a later version into a form or into a report, and then you set
the FirstDay property of the Calendar Control by using Microsoft Visual Basic for Applications (VBA) intrinsic
constants.
For example, you set the FirstDay property of the Calendar Control to vbMonday or to vbTuesday . When you
set the FirstDay property of the Calendar Control to vbTuesday , the calendar uses Wednesday as the first day of
the week.

NOTE
When you use the earlier versions of Calendar Control, you can set the FirstDay property correctly.

Cause
This problem occurs because the intrinsic constants for the days that are defined in Microsoft Visual Basic, such as
vbSunday and vbMonday , are not associated with the correct day value.

Workaround
To work around this problem, follow these steps:
1. Determine the association between the days, the VBA intrinsic constants, and the numeric values that are
associated to the correct day values and VBA intrinsic constants. To do this, follow these steps:
a. Start Access.
b. Open the Northwind sample database.
c. In the Database window, click Forms under Objects .
NOTE
In Access 2007, click the Create tab, and then click Form Design in the Forms group.

d. In the right pane, double-click Create form in Design view .

NOTE
In Access 2007, skip this step.

e. On the Inser t menu, click ActiveX Control .

NOTE
In Access 2007, click the Design tab, and then click Inser t ActiveX Control in the Controls group.

f. In the Inser t ActiveX Control dialog box, click to select Calendar Control 10.0 or a later version
from the Select an ActiveX Control list box, and then click OK .
g. Add a command button to the form that has the properties set as follows:

P RO P ERT Y VA L UE

Name testFD

Caption Change First Day

h. On the File menu, click Save .

NOTE
In Access 2007, click the Microsoft Office Button , and then click Save .

i. In the Save As dialog box, type Form1 in the Form Name box, and then click OK to save the Form1
form.
j. On the View menu, click Code .

NOTE
In Access 2007, click the Design tab, and then click View Code in the Tools group.

k. In the Visual Basic Editor, type or paste the following code:

Option Compare Database

Private Sub testFD_Click()


Calendar0.FirstDay = vbTuesday
End Sub

l. Open Form1 in the Form view.


m. Click the Change First Day button.
NOTE
If the first column of the Calendar Control is not set to Tuesday, note the day in the first column.

n. In the Visual Basic Editor, click Immediate Window on the View menu.
o. In the Immediate window, type ?vbTuesday , and then press ENTER.
Notice the numeric value.
p. Repeat step j through step o by replacing vbTuesday with other VBA intrinsic constants, such as
vbMonday and vbWednesday .
Notice that you will have the following table to show the association between the days, the VBA
intrinsic constants, and the numeric values that are associated to the correct day values and VBA
intrinsic constants.

W EEK DAY VB A IN T RIN SIC C O N STA N T N UM ERIC VA L UE A SSO C IAT ED

Monday vbSunday 1

Tuesday vbMonday 2

Wednesday vbTuesday 3

Thursday vbWednesday 4

Friday vbThursday 5

Saturday vbFriday 6

Sunday vbSaturday 7

2. Create a global custom enumeration that is correctly mapped to the week days. To do this, follow these steps:
a. In the Database window, click Module under Objects .

NOTE
In Access 2007, click the Create tab, click the arrow under Macro in the Other group, and then click
Module .

b. On the Inser t menu, click Module .

NOTE
In Access 2007, skip this step.

c. Type or paste the following code in the Visual Basic Editor:


Option Explicit

Public Enum nwFirstDay


nwMonday = 1
nwTuesday = 2
nwWednesday = 3
nwThursday = 4
nwFriday = 5
nwSaturday = 6
nwSunday = 7
End Enum

NOTE
Create the enumeration as described in the "Week Day" column and in the corresponding "Numeric Value
Associated" column of the table that is in step 1r.

d. Name the Module Day_Association , and save it.


e. Close the Visual Basic Editor.
3. Replace the VBA intrinsic constants in your application with the constants that are in the custom
enumeration that is described in step 2.
For example, if your original code is

Calendar0.FirstDay = vbTuesday

modify your code to use custom enumeration as follows:

Calendar0.FirstDay = nwTuesday

4. Run the application.

More Information
The VBA intrinsic constants do not depend on the system local information. For example, on a computer that has
the localized operating system in the German language, the first day of the week is Monday. The numeric value
associated with Monday on the computer is always 0.
Because Calendar Control 10.0 or a later version is a worldwide Microsoft ActiveX control, you cannot control the
numeric values that are associated with the VBA intrinsic constants based on your computer specifications.
Therefore, the problem that is mentioned in the "Symptoms" section of this article occurs.
Steps to reproduce the problem
1. Start Access.
2. Open the Northwind sample database.
3. In the Database window, click Forms under Objects .

NOTE
In Access 2007, click the Create tab, and then click Form Design in the Forms group.
4. In the right pane, double-click Create form in Design view .

NOTE
In Access 2007, skip this step.

5. On the Inser t menu, click ActiveX Control .

NOTE
In Access 2007, click the Design tab, and then click Inser t ActiveX Control in the Controls group.

6. In the Inser t ActiveX Control dialog box, click to select Calendar Control 10.0 or a later version from
the Select an ActiveX Control list box, and then click OK .
7. Add a command button to the form that has the properties set as follows:

P RO P ERT Y VA L UE

Name testFD

Caption Change First Day

8. On the View menu, click Code .

NOTE
In Access 2007, click the Design tab, and then click View Code in the Tools group.

9. In the Visual Basic Editor, type or paste the following code:

Option Compare Database

Private Sub testFD_Click()


Calendar0.FirstDay = vbTuesday
End Sub

10. On the File menu, click Save .

NOTE
In Access 2007, click the Microsoft Office Button , and then click Save As .

11. In the Save As dialog box, type Form1in the Form Name box, and then click OK to save the Form1 form.
12. Open Form1 in the Form view.
13. Click the Change First Day button.
Although you set the FirstDay property of the Calendar Control to vbTuesday , the calendar selects
Wednesday to be the first day of the week.

References
For more information about Calendar Control and the Calendar Control properties, open Mscal.hlp and then search
for the appropriate topic. Mscal.hlp is located in the following folders:
Microsoft Access 2002
Installation Drive : \Program Files\Microsoft Office\Office10

Microsoft Office Access 2003


Installation Drive : \Program Files\Microsoft Office\Office11

NOTE
Installation Drive is a placeholder for the name of your installation drive.
Access: Incorrect Current Version registry key
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In some instances Access may not detect/repair the registry key which specifies the currently configured version of
Access. In this scenario, when double-clicking on the database file, you receive the following error:

Windows can't open this file:

File: <DatabaseName>.accdb

To open this file, Windows needs to know what program you want to use to open it.

Cause
The following registry key contains an invalid default value of accdb_auto_file:
HKEY_CL ASSES_ROOT\Access.Application\CurVer

Resolution
Modify the HKEY_CL ASSES_ROOT\Access.Application\CurVer registry key to specify the appropriate
default value for your version of Access.
Registry DISCLAIMER: Modifying REGISTRY settings incorrectly can cause serious problems that may prevent your
computer from booting properly. Microsoft cannot guarantee that any problems resulting from the configuring of
REGISTRY settings can be solved. Modifications of these settings are at your own risk.
1. Click Star t then Run , type regedit and then click OK .
2. Navigate to HKEY_CL ASSES_ROOT\Access.Application\CurVer .
3. In the right pane, double click on the default key.
4. Change the Value data from accdb_auto_file to the appropriate Access.Application item below based on your
version of Access:
Access 2007 - Access.Application.12
Access 2010 - Access.Application.14
Access 2013 - Access.Application.15
Introduction to lock files (.laccdb and .ldb) in Access
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
The .laccdb or .ldb file plays an important role in the multiuser scheme of the Microsoft Access database engine.
The .laccdb or .ldb file is used to determine which records are locked in a shared database and by whom. The
.laccdb file is used with .accdb databases and the .ldb file is used with .mdb databases. Both the .laccdb and .ldb files
are commonly referred as lock files.

Automatic lock file creation and deletion


For every database that's opened for shared use, a .laccdb or .ldb file is created to store computer and security
names and to place extended byte range locks. The lock file always has the same name as the opened database, and
it's located in the same folder as the opened database. For example, if you open (for shared use) the
Northwind.accdb sample database in the C:\users\<username>\documents\ , a file named Northwind.laccdb is
automatically created in the same documents folder.
Whenever the last user closes a shared database, the lock file is deleted. The only exceptions are when a user
doesn't have delete rights or when the database is marked as corrupted. Then, the lock file isn't deleted because it
contains information about who was using the database at the time the database was marked as corrupted.

Required folder privileges


If you plan to share a database, the database file should be located in a folder where users have read, write, create,
and delete privileges. Even if you want users to have different file privileges (for example, some read-only and
some read-write), all users sharing a database must have read, write, and create permissions to the folder. You can,
however, assign read-only permissions to the .accdb or .mdb file for individual users while still allowing full
permissions to the folder.

NOTE
If a user opens a database with exclusive access (by clicking the arrow to the right of the Open button, and then clicking
Open Exclusive ), record locking is not used. Therefore, Microsoft Access doesn't attempt to open or create a lock file. If the
database is always opened for exclusive use, a user needs to have only read and write privileges to the folder.

The lock file contents


For each person who opens a shared database, the Access database engine writes an entry in the .laccdb or .ldb file
of the database. The size of each entry is 64 bytes. The first 32 bytes contain the computer name (such as JohnDoe).
The second 32 bytes contain the security name (such as Admin). The maximum number of concurrent users that
the Access database engine supports is 255. Therefore, the lock file size is never larger than 16 kilobytes.
NOTE
Although a file-server solution can support up to 255 simultaneous users, if the users of your solution will be frequently
adding data and updating data, it is a good idea for an Access file-server solution to support no more than 25 to 50 users.
For more information, see Chapter 1: Understanding Microsoft Access 2000 Client/Server Development.

When a user closes a shared database, the user's entry is not removed from the lock file. However, the user's entry
may be overwritten when another user opens the database. This means that you cannot use the lock file alone to
determine who is currently using the database.

The lock file usage


The Access database engine uses the lock file information to prevent users from writing data to pages or records
that other users have locked and to determine who has other pages or records locked. If the Access database
engine detects a lock conflict with another user, it reads the lock file to get the computer and security name of the
user who has the file or record locked.
In most lock conflict situations, you receive a generic "Write conflict" message that allows you to save the record,
copy it to the Clipboard, or drop the changes that you made. In some circumstances, however, you receive the
following error message:

Couldn't lock table <table name>; currently in use by user <security name> on computer <computer name>.

NOTE
The state of the information in the lock file has no bearing on the state of the database. If a lock file becomes corrupted,
everything in the database should still work correctly. However, you may see scrambled text instead of user names in any lock
conflict messages.

With Microsoft Visual Basic for Applications, you can output a list of users who are logged into a specific database.
For more information about how to do this and sample code, see How to determine who is logged on to a database
by using Microsoft Jet UserRoster in Access.
"An error has occurred" message when you load an
Access web app in Internet Explorer
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to load a Microsoft Access web app in Internet Explorer, the app may not load completely, and then
you receive an "Error has occurred. Sorry, something went wrong. Please try again later" error message.

NOTE
The "TECHNICAL DETAILS" section of the error does not show a value for the Correlation ID.

Cause
Internet Explorer imposes a time-out limit for the server to return data through the ReceiveTimeout registry key.
The value that's specified for this time-out may have been changed to a value that's less than what's needed for the
server to respond to the Access app request.

Resolution
To resolve this issue, follow the steps in the "More Information" section of the following article to increase the time-
out setting to 5 minutes or to another value of your choice:
KB 181050: Internet Explorer "connection timed out" error when server does not respond
Issues when you retrieve SharePoint list data in Access
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you request data from Microsoft SharePoint lists in Microsoft Access, you may receive one of the following
error messages:
There were errors executing the bulk query or sending data to the server. Reconnect the tables to resolve the
conflicts or discard the pending changes.
All SharePoint tables are disconnected
Cannot update. Database or object is read-only.
The Microsoft Office Access database engine could not find the object ''. Make sure the object exists and that you
spell its name and the path name correctly.
Linked table '' is unavailable. Microsoft Access cannot contact the server. Check your network connection or
contact the server administrator.
You do not have the necessary permissions to use the '' object. Have your system administrator or the person
who created this object establish the appropriate permissions for you.
Or, you may experience one of the following issues:
Access exits unexpectedly or crashes when you try to open a linked table.
Access appears deadlocked when you try to open a linked table.

Cause
When Access requests list items from a SharePoint list, Access waits a finite period of time for that data to be
returned. Specifically, if Access doesn't receive the data for the given batch after 30 seconds, it aborts the request
and may resend the batch as a new request. If Access encounters failures when sending these batches, the program
may give up and return an error message.
Some conditions that may cause this issue are:
There's a problem with the health of the Microsoft SharePoint Server, for example, it runs slowly.
You have a low-bandwidth connection.
You have a large or complex SharePoint list or document library.
There's a long distance between you and the server.
There are more than 255 columns in the SharePoint list or document library.
You are throttled when you use SharePoint Online. For more information about throttling in SharePoint Online,
see Avoid getting throttled or blocked in SharePoint Online.

Resolution
To fix the issue, use one of the following methods:
Method 1: Reduce the response time by avoiding the conditions that may cause the issues.
Method 2: Reduce the amount of data requested from the server by using a view in SharePoint and then
linking Access to that view.
For detailed information on how to create a linked table which uses the SharePoint view, see
ImportSharePointList Macro Action.
Method 3: Increase the time-out in Access by adding the DataFetchTimeout registry entry

IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems
might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For
added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs.
For more information about how to back up and restore the registry, see How to back up and restore the registry in
Windows.

NOTE
The DataFetchTimeout registry entry originally only applied to read requests when Access synchronizes its cached
data with the SharePoint list. Starting in Access 2016 Click-to-Run builds 16.0.9215.5830, this registry entry also
applies to Insert, Update, and Delete operations.

Add the DataFetchTimeout registry entry in Access 2010


1. Apply the following hotfix package:
Description of the Access 2010 hotfix package (Stslist-x-none.msp): June 28, 2011
2. Open Registry Editor, and then locate and select the following registry subkey:
For 32-bit Access on 32-bit Windows or 64-bit Access on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Access Connectivity Engine\Engines
For 32-bit Access on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Access Connectivity
Engine\Engines
3. On the Edit menu, point to New , and then click DWORD Value .
4. Type DataFetchTimeout , and then press Enter .
5. Right-click DataFetchTimeout , and then click Modify .
6. Select Decimal in Base , type **90000 **in the **Value data **box, and then click OK .
Note If the value doesn't fix the issue, try a larger value. DataFetchTimeout is in milliseconds.
7. Exit Registry Editor.
Add the DataFetchTimeout registry entry in Access 2013
1. Open Registry Editor, and then locate and select the following registry subkey:
For 32-bit Access on 32-bit Windows or 64-bit Access on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Access Connectivity Engine\Engines
For 32-bit Access on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Access Connectivity
Engine\Engines
2. On the Edit menu, point to New , and then click DWORD Value . 3. Type DataFetchTimeout , and then
press Enter .
3. Right-click DataFetchTimeout , and then click Modify .
4. Select Decimal in Base , type **90000 **in the **Value data **box, and then click OK .
Note If the value doesn't fix the issue, try a larger value. DataFetchTimeout is in milliseconds.
5. Exit Registry Editor.
Add the DataFetchTimeout registry entry in Access 2016
1. Open Registry Editor, and then locate and select the following registry subkey:
For MSI installation of Access
For 32-bit Access on 32-bit Windows or 64-bit Access on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Access Connectivity Engine\Engines
For 32-bit Access on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Access Connectivity
Engine\Engines
For Click-to-Run installation of Access
For 32-bit Access on 32-bit Windows or 64-bit Access on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Mic
rosoft\Office\16.0\Access Connectivity Engine\Engines
For 32-bit Access on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Wo
w6432Node\Microsoft\Office\16.0\Access Connectivity Engine\Engines
2. On the Edit menu, point to New , and then click DWORD Value .
3. Type DataFetchTimeout , and then press Enter .
4. Right-click DataFetchTimeout , and then click Modify .
5. Select Decimal in Base , type 90000 in the Value data box, and then click OK .
Note If the value doesn't fix the issue, try a larger value. DataFetchTimeout is in milliseconds.
6. Exit Registry Editor.
Jet compact utility is available in download center
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies only to a Microsoft Access database (.mdb).

Summary
The Jet compact utility, JETCOMP.exe, is a stand-alone utility that compacts databases created with Microsoft Jet
database engine 3.x and 4.x. This utility may be run in conjunction with Microsoft Jet database engine 3.x and 4.x for
recovering corrupted databases. Although you can run the Microsoft Access Compact utility or the
CompactDatabase method with Microsoft Jet database engine 3.x and 4.x, Jetcomp.exe may be able to recover
some databases that these utilities cannot. The reason for this is that the Microsoft Access Compact utility and the
CompactDatabase method attempt to open and close a database before attempting to compact it. In certain cases
where these utilities may not be able to reopen the database, Compact will be unable to proceed, preventing
recovery of the database. JETCOMP.exe does not attempt to open and close the database before compacting, and
may therefore be able to recover some databases that the Microsoft Access compact utility and the
CompactDatabase method cannot.

NOTE
The user interface of JETCOMP.exe is in English only and is not supported by Microsoft Product Support Services. However,
JETCOMP.exe can compact databases in any language supported by the Microsoft Jet database engine. JETCOMP.exe is a
freely distributable utility, but requires that one of the following products is installed on the computer:

Note You must make sure that no users are accessing the database before you run JETCOMP.exe.
Microsoft Office XP
Microsoft Office 2000
Microsoft Office 97
Microsoft Access 2002
Microsoft Access 2000
Microsoft Access 97
Microsoft Visual Basic 6.0
Microsoft Visual Basic 5.0
A Microsoft Office XP Developer run-time application that includes the run-time version of Microsoft Access
2002
A Microsoft Office Developer 2000 run-time application that includes the run-time version of Microsoft Access
2000
A Microsoft Office Developer Edition 97 run-time application that includes the run-time version of Microsoft
Access 97
A Microsoft Visual Basic 6.0 run-time application that includes Microsoft Jet database engine 3.5 or 4.0
A Microsoft Visual Basic 5.0 run-time application that includes Microsoft Jet database engine 3.5
The following file is available for download from the Microsoft Download Center:
Download the JETCOMP.exe package now.
For additional information about how to download Microsoft Support files, click the following article number to
view the article in the Microsoft Knowledge Base:
119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available
on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any
unauthorized changes to the file.

More information
The JetCU40.exe download contains the following files:

JETCOMP.exe The Jet Compact Utility


JetComp.doc A word document containing information about
localization and support, instructions for use,
errors encountered in earlier versions of Jet,
MSysCompactError table, issues fixed by updated
compact utility, and sample code to view rows
containing modified column data
The data in a linked Excel spreadsheet column is
truncated to 255 characters in an Access database
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 839785

NOTE
This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file. Novice: Requires
knowledge of the user interface on single-user computers.

Symptoms
When you link to a Microsoft Office Excel spreadsheet from a Microsoft Office Access database, and the columns of
the Excel spreadsheet contain more than 255 characters, you may notice that the data in the linked table appears
truncated after the 255th character.

Cause
In Access, when you link to an Excel spreadsheet that contains more than 255 characters, the column of the Excel
spreadsheet is mapped to the formatted Memo data type. Because Access treats the formatted Memo field as a text
field that has a 255-character limit, you can view only 255 characters. However, the data is not physically truncated
in the linked table.

Workaround
To work around this problem, you must import the Excel spreadsheet to an Access table when the columns of the
Excel spreadsheet contain more than 255 characters.

Status
This behavior is by design.

More Information
In Access, you can set the Format property of the Text field and the Memo field to create custom formats. You can
use the following special characters to set the Format property of the Text field and the Memo field:

SP EC IA L C H A RA C T ER DESC RIP T IO N

@ Text character. Either a character or a space is required.


SP EC IA L C H A RA C T ER DESC RIP T IO N

& Text character is not required.

< Force all characters to lowercase.

> Force all characters to uppercase.

When you link an Excel spreadsheet to an Access database, and the columns of the Excel spreadsheet contain more
than 255 characters, the columns are mapped to Memo data types, and the Format property of the Memo field is
set to @. Therefore, Access treats the Memo field as a text field, and you can view only 255 characters of data.
However, when you import an Excel spreadsheet that has columns that contain more than 255 characters, the
columns are mapped to a Memo field with no specific format. Therefore, you can view the complete data in the
field.

References
For additional information about how to import or link data from a spreadsheet, visit the following Microsoft Web
site:
Import or link data from a spreadsheet
Access linked table to a SharePoint list returns
#Deleted
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptom
When you open a linked table in Access that's linked to a SharePoint list, the results are displayed as #Deleted.
This issue occurs if the following conditions are true:
The Access database uses the following caching options under Access > Options > Current Database :
Use the cache format that is compatible with Microsoft Access 2010 and later is selected.
Never Cache is cleared.
The linked table contains one or more Memo fields.

Workaround
To work around this issue, use one of the following methods:
Change the caching options to one of the following:
Clear the option Use the cache format that is compatible with Microsoft Access 2010 and later .
Select both the Use the cache format that is compatible with Microsoft Access 2010 and later
and Never Cache options.
Use the ImportSharePointList macro action to link to a SharePoint view of the list that doesn't contain the Memo
fields.
Access linked table to SQL Server database returns
#Deleted
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptom
You have a Microsoft Access linked table that's connected to a Microsoft SQL Server database. The compatibility
level of the database is 130 (the compatibility level for SQL Server 2016) or higher, and the table that's linked
contains one or more datetime or datetime2 columns.
In this scenario, the linked table returns #Deleted in the results. You may also experience a Write Conflict stating
"This record has been changed by another user since you started editing it" when attempting to commit record
changes to the linked table.

Cause
The issue occurs when the datetime or datetime2 columns contain specific fractional seconds values because the
way that fractional seconds are handled for datetime2 types changed starting with SQL Server 2016. For more
information about the changes, see the following articles:
datetime2 (Transact-SQL)
SQL Server and Azure SQL database improvements in handling some data types and uncommon operations

Workaround
Microsoft is aware of this issue. Until the issue is resolved, use one of the following methods to work around this
issue:
Change the compatibility level of the database to 120 (the compatibility level for SQL Server 2014) or lower.
Remove fractional seconds from the datetime columns.
Make sure that the datetime columns aren't part of the primary key. Add a timestamp column to the table, and
then use the Linked Table Manager in Access to refresh the linked table.
If editing data isn't requested, create a query and change the RecordsetType property to Snapshot .
List of reserved words in Access 2002 and in later
versions of Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 286335

NOTE
Novice: Requires knowledge of the user interface on single-user computers. This article applies to a Microsoft Access database
(.mdb) and to a Microsoft Access project (.adp).

Summary
This article lists words and symbols that you should not use in field, object, and variable names in Microsoft Access
2002 and later versions of Access because they are "reserved words." Reserved words have a specific meaning to
Access or to the Microsoft Jet database engine. If you use a reserved word or symbol, you may receive an error
such as the following:

The wizard was unable to preview your report, possibly because a table needed by your report is exclusively
locked.

If you use a reserved word, such as date, value, name, text, and year, in Access 2007, you may receive the following
message:

The Name you supplied is a reserved word. Reserved words have a specific meaning to Microsoft Office Access
or to the Microsoft Office Access database engine.

For existing objects with names that contain reserved words, you can avoid errors by surrounding the object name
with brackets ([ ]).

More Information
Because it is not practical to provide a list of all reserved words, such as built-in function names or Microsoft Access
user-defined names, please check your product documentation for additional reserved words. Note that if you set a
reference to a type library, an object library, or an ActiveX control, that library's reserved words are also reserved
words in your database. For example, if you add an ActiveX control to a form, a reference is set, and the names of
the objects, methods, and properties of that control become reserved words in your database.

-A
ADD
ALL
Alphanumeric
ALTER
AND
AND
ANY
Application
AS
ASC
Assistant
AUTOINCREMENT
Avg
-B
BETWEEN
BINARY
BIT
BOOLEAN
BY
BYTE
-C
CHAR, CHARACTER
COLUMN
CompactDatabase
CONSTRAINT
Container
Count
COUNTER
CREATE
CreateDatabase
CreateField
CreateGroup
CreateIndex
CreateObject
CreateProperty
CreateRelation
CreateTableDef
CreateUser
CreateWorkspace
CURRENCY
CurrentUser
-D
DATABASE
DATE
DATETIME
DELETE
DESC
Description
DISALLOW
DISTINCT
DISTINCTROW
Document
DOUBLE
DROP
-E
Echo
Else
End
Eqv
Error
EXISTS
Exit
-F
FALSE
Field, Fields
FillCache
FLOAT, FLOAT4, FLOAT8
FOREIGN
Form, Forms
FROM
Full
FUNCTION
-G
GENERAL
GetObject
GetObject
GetOption
GotoPage
GROUP
GROUP BY
GUID
-H
HAVING
-I
Idle
IEEEDOUBLE, IEEESINGLE
If
IGNORE
Imp
IN
INDEX
Index, Indexes
INNER
INSERT
InsertText
INT, INTEGER, INTEGER1, INTEGER2, INTEGER4
INTO
IS
-J
JOIN
-K
KEY
-L
LastModified
LEFT
Level
Like
LOGICAL, LOGICAL1
LONG, LONGBINARY, LONGTEXT
-M
Macro
Match
Max, Min, Mod
MEMO
Module
MONEY
Move
-N
NAME
NewPassword
NO
Not
Note
NULL
NUMBER, NUMERIC
-O
Object
OLEOBJECT
OFF
ON
OpenRecordset
OPTION
OR
ORDER
Orientation
Outer
OWNERACCESS
-P
Parameter
PARAMETERS
Partial
PERCENT
PIVOT
PRIMARY
PROCEDURE
Property
-Q
Queries
Query
Quit
-R
REAL
Recalc
Recordset
REFERENCES
Refresh
RefreshLink
RegisterDatabase
Relation
Repaint
RepairDatabase
Report
Reports
Requery
RIGHT
-S
SCREEN
SECTION
SELECT
SET
SetFocus
SetOption
SHORT
SINGLE
SMALLINT
SOME
SQL
StDev, StDevP
STRING
Sum
-T
TABLE
TableDef, TableDefs
TableID
TEXT
TIME, TIMESTAMP
TOP
TRANSFORM
TRUE
Type
-U
UNION
UNIQUE
UPDATE
USER
-V
VALUE
VALUES
Var, VarP
VARBINARY, VARCHAR
VERSION
-W
WHERE
WITH
Workspace
-X
Xor
-Y
Year
YES
YESNO
For more information about special characters to avoid using when you work with the database object names or
the field names in all versions of Access, click the following article number to view the article in the Microsoft
Knowledge Base:
826763 Special characters that you must avoid when you work with Access databases
Memory leak when Access continually connects to
database files
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptom
When Microsoft Access (MsAccess.exe) or a custom solution continually connects to Access database files (.mdb or
.accdb) through the Access ODBC driver and the OLE DB provider (Microsoft.ACE.OLEDB.12.0), the memory usage
of the Access database engine keeps increasing until the process is completed.

Cause
This issue occurs because the Access database engine continuously allocates memory to run insert, update, and
delete records in the Access database files. The Access database engine isn't intended for use with high-stress, high-
concurrency, 24-hour-a-day, or seven-day-a-week server applications.

Workaround
To work around this issue, regularly restart the applications or the computer.
Visual Basic for Applications (VBA) functions break in
a database with missing references
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 283806

NOTE
Requires basic macro, coding, and interoperability skills. This article applies to a Microsoft Access database (.mdb and .accdb)
and to a Microsoft Access project (.adp).

Symptoms
If you have a procedure that contains a Visual Basic for Applications function and your database contains a
reference to a missing object library or type library, you may receive one of the following error messages when you
compile your modules or run the procedure:
Error message 1
Your Microsoft Access database or project contains a missing or broken reference to the file <filename>.
* To ensure that your database or project works properly, you must fix this reference.
* To learn how to fix this reference, click Help.

Error message 2
Compile Error:
Can't find project or library

Cause
Your database contains a reference to a database, type library, or object library that is marked as MISSING:
<referencename> in the References dialog box.

Resolution
To remove the missing reference, follow these steps:
1. Open your database.
2. Press ALT+F11 to open the Visual Basic Editor.
3. On the Tools menu, click References .
4. Click to clear the check box for the type library or object library marked as MISSING: <referencename> .
An alternative to removing the reference is to restore the referenced file to the path that is specified in the
References dialog box. If the referenced file is in a new location, clear the MISSING: <referencename> reference,
and then create a new reference to the file in the new folder.

NOTE
In an Access run-time application, you cannot view references from a menu. However, the following article demonstrates how
to view references using code: 209849 How to loop through references to view their properties

Steps to reproduce the behavior


1. Open the sample database Northwind.mdb.
2. Create a new form that is not based on any table or query.
3. On the Inser t menu, click ActiveX Control .
4. In the Select an ActiveX control list, click Kodak Image Edit Control , and then click OK .
5. Save the form as frmReference, and then close it.
6. Close Northwind.mdb, and then quit Access.
7. Find and rename the ImgEdit.ocx file to ImgEdit.old.
8. Start Access, and then open Northwind.mdb.
9. Open the Startup module in Design view.
10. On the Debug menu, click Compile Nor thwind . Note that you receive both of the error messages that are
mentioned in the "Symptoms" section of this article.
11. Click OK . Note that the References dialog box appears; the following reference is highlighted in the
Available References dialog box:
MISSING: Kodak Image Edit Control

12. Click Cancel in the Available References dialog box.


13. Find and rename the ImgEdit.old file to ImgEdit.ocx.
14. Repeat step 10 and note that the error message no longer appears.
How to move to a specific record from a Combo Box
selection in Microsoft Access
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Summary
This article shows you four methods of moving to a specific record based on selection from a combo box. The
methods are as follows:
In the AfterUpdate event of a combo box, execute code that uses the FindFirst method.
In the AfterUpdate event of a combo box, call a macro that requeries the Filter property of a form.
Use a Form/Subform, with a combo box on the main form, and the data in the subform, bound by the
LinkMasterFields and LinkChildFields properties of the subform control.
Base the form on a query that joins two tables, and then use the AutoLookup technique to bind a combo box to
the field that controls the join.
These four methods are outlined in the "More Information" section of this article and are based on the Northwind
sample database.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.CAUTION: If you follow the steps in this example, you
modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these
steps on a copy of the database.
The following table compares the features (benefits and drawbacks) of the four methods:

M ET H O D 1 2 3 4

Requires no x x
code/macros

Saves on subforms x x x
M ET H O D 1 2 3 4

Can scroll to other x x x


records

Does not require a x x x


query

Can edit records x x x

Note These methods can also apply to text boxes.


Method 1
1. Use the AutoForm: Columnar Wizard to create a new form that is based on the Products table, and then save
the form as frmComboTest.
To do this in Microsoft Office Access 2003 and earlier versions of Access, follow these steps:
a. In the Database window, click Forms under Objects .
b. Click New on the Database window toolbar.
c. In the New Form dialog box, click AutoForm: Columnar , select Products in the drop-down list, and
then click OK .
d. Save the form as frmComboTest.
To do this in Microsoft Office Access 2007 or a later version, follow these steps:
a. On the Create tab, click More Forms in the Forms group, and then click Form Wizard .
b. In the New Form dialog box, click Form Wizard , select the Products in the drop-down list, and then
click OK .
c. In the Form Wizard dialog box, select the fields that you want to see in the new form, select the
Columnar option to set the layout of the form, and then click Finish .
d. Save the form as frmComboTest.
2. Use the Combo Box Wizard to add an unbound combo box. To do this, follow these steps:
a. Open the frmComboTest form in the Design view.
b. In the toolbar, make sure that Control Wizards is selected.
Note In Access 2007 or a later version, make sure that Control Wizards is selected in the Controls
group on the Design tab.
c. In the toolbar, click Combo Box , and then click on the frmComboTest form.
Note In Access 2007 or a later version, click Combo Box in the Controls group on the Design tab,
and then click the frmComboTest form. In the Choose Builder dialog box, click Combo Box
Wizard , and then click OK .
d. In the Combo Box Wizard dialog box, select the Find a record on my form based on the value
I selected in my combo box option, and then click Next .
e. Include the ProductID and ProductName fields, and then click Next .
f. Click Finish .
The Combo Box Wizard creates an event procedure similar to the following:
Private Sub Combo0_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object

Set rs = Me.Recordset.Clone
rs.FindFirst "[ProductID] = " & Str(Nz(Me![Combo20], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub

3. View the frmComboTest form in Form view.


Notice that when you choose a product name in the combo box, you are moved to the record for the product
that you selected.
Method 2
1. Use the AutoForm: Columnar Wizard to create a new form that is based on the Products table, and save the
form as frmComboTest2.
Note See the steps that are mentioned in the step 1 of Method 1.
2. In the property sheet for the frmComboTest2 form, set the Filter property on the Data tab as follows:
[ProductName] = Forms![frmComboTest2]![cboLookup]
3. Add an unbound combo box named cboLookup, and then set the properties of the control as follows:

Combo Box
-----------------------------------------------------
ControlName: cboLookup
ControlSource: <leave blank>
RowSourceType: Table/Query
RowSource: Select [ProductName] from Products;
BoundColumn: 1
ColumnWidths: 1"
AfterUpdate: mcrLocateProduct

4. Create the following macro named mcrLocateProduct:

Action
--------------------------------------
SetValue
Requery

mcrLocateProduct Actions
--------------------------------------
SetValue
Item: Forms![frmComboTest2].FilterOn
Expression: True

Notice that when you open the frmComboTest2 form and select a product name from the cboLookup
combo box, the filter is set to that value.
Method 3
1. Create a new form that is not based on any table or query and save it as frmMain. Then add a combo box
and set its properties as follows:
Combo Box
----------------------------
ControlName: cboLookup
ControlSource: <leave blank>
RowSourceType: Table/Query
RowSource: Products
ColumnCount: 4
ColumnWidths: 0";2"
BoundColumn: 1

2. Use the AutoForm: Tabular Wizard to create a second form that is based on the Products table, set the
DefaultView property of the form to Single Form , and then save the form as frmSub.
3. Use the frmSub form to create a subform control on the frmMain form.
4. Set the subform control properties as follows:

Subform
----------------------------
LinkChildFields: [ProductID]
LinkMasterFields: cboLookup

By changing the value in cboLookup control, Access ensures that the records in the subform match the
combo box.
The Orders form in the Northwind sample database illustrates this method. The Order Details subform is
related by the LinkMasterFields and LinkChildFields properties.
Method 4
1. Create a table named tblProductSelect that has a single field, ProductID . Set the Data Type property of the
field to Number and set the Field Size property to Long Integer.
Note A primary key is not necessary. Do not add records to this table.
2. Create the following query named qryProductSelect that is based on a join between the ProductID fields of
the tblProductSelect and Products tables. Include the following attributes in the query:

Query: qryProductSelect
-----------------------------------------------
Field: ProductID
Table Name: tblProductSelect

Field: <any other fields you are interested in>


TableName: Products

3. Use the AutoForm: Columnar Wizard to create a form that is based on the qryProductSelect query, and then
view the form in Form view.
4. Right-click the text box control for the ProductID field, point to Change To , click Combo Box , and then
make the following property assignments for this combo box:
Combo Box
--------------------------
ControlName: ProductID
ControlSource: ProductID
RowSourceType: Table/Query
RowSource: Products
ColumnCount: 1
ColumnWidths: 2"
BoundColumn: 1

5. Save the form as frmComboTest3, and then run the form.


"Access can't start because there is no license for it on
this machine" error when launching Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 2656028

Symptoms
You receive the following error when launching Access 2007 or Access 2010:

Microsoft Access can't start because there is no license for it on this machine.

Cause
There is a permissions issue in the registry that is preventing Access from opening correctly.

Resolution
Follow the steps below to assign the appropriate permissions:
1. Click the Star t button and then click Run .
2. Type Regedit, and then press Enter.
3. Navigate to the following registry key:
Access 2007
HKEY_CLASSES_ROOT\Licenses\73A4C9C1-D68D-11d0-98BF-00A0C90DC8D9\12.0\Retail

Access 2010
HKEY_CLASSES_ROOT\Licenses\73A4C9C1-D68D-11d0-98BF-00A0C90DC8D9\14.0\Retail

NOTE
You may run into the permissions issue anywhere from the GUID to the Retail key. If you run into the permissions
issue on the GUID, you will then also need to repeat steps 4 – 10 on the 12.0 or 14.0 key as well as the Retail key.

4. Right click the key and then choose Permissions .


5. Click Advanced .
6. Select the Owner tab.
7. Change the owner to Administrators .
8. Click Apply and then click OK .
9. Click Add , type Everyone, and then click Ok .
10. Ensure that Full Control is checked, and then click Ok .
"Not a valid Teradata SQL token" error when you run
outer join queries
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use the Teradata ODBC driver 15.10 or a later version to run outer join queries in Microsoft Access, you
receive the following error message:

('7B'X) is not a valid Teradata SQL token. (#-3704).

Cause
This issue occurs because Teradata created a new SQL parser that more closely aligns to the SQL-92 standard and
does not support extended SQL (escape clauses).
Access does not use the SQL-92 standard for queries that are created within the Query Editor. This causes queries
that use outer joins to fail because they use the {oj} escape clause.

Resolution
To fix the issue, use one of the following methods:
Method 1
When you use the Teradata ODBC driver (15.10 or a later version), you can use the EnableLegacyParser option to
continue using the previous SQL parser. For more information, see Teradata DSN Options.

NOTE
Teradata plans to remove the EnableLegacyParser option beginning in driver version 18.

Method 2
Prevent Access from using outer joins in queries, or run outer joins within pass-through queries. For more
information, see the following Knowledge Base and Office articles:
How to create an SQL pass-through query in Access
Process SQL on a database server by using a pass-through query
Third-par ty information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
ODBC Data Source Administrator crashes when you
add a system DSN
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You're using a physical computer that has Microsoft Access Database Engine 2016 installed.
Hardware acceleration is enabled.
The version of ACEODBC.dll is 16.0.4378.1000 (KB3114378) or a later version.
In the Microsoft Open Database Connectivity (ODBC) Data Source Administrator (Odbcad32.exe), you add a
system Data Source Name (DSN) that uses a Microsoft Access driver (*.mdb or *.accdb).
In this scenario, Odbcad32.exe crashes.

Workaround
To work around this problem, disable hardware acceleration by using the DisableHardwareAcceleration registry
key, as follows.

NOTE
This issue has been reported and is being investigated. We recommend that you use the registry key only to disable the
hardware acceleration during the DSN creation, and that you re-enable hardware acceleration at your earliest convenience.

IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restorationin case problems occur.

1. Exit all Microsoft Office applications.


2. Start Registry Editor:
Windows 10: Go to Star t , type regedit in the Search box, and then select regedit.exe in the search
results.
Windows 8 or Windows 8.1: Move your mouse to the upper-right corner, select Search , type regedit
in the search text box, and then select regedit.exe in the search results.
Windows 7: Select Star t , type regedit in the Star t Search box, and then select regedit.exe in the
search results.
3. Locate and then select the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Graphics\DisableHardwareAc
celeration
4. On the Edit menu, point to New , and then select DWORD Value .
5. Enter DisableHardwareAcceleration , and then press Enter.
6. In the Details pane, press and hold (or right-click) DisableHardwareAcceleration , and then select
Modify .
7. In the Value data box, enter 1 , and then select OK .
8. Exit Registry Editor.
Microsoft OLE DB Provider for Jet and Jet ODBC
driver are available in 32-bit versions only
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

INTRODUCTION
The Microsoft OLE DB Provider for Microsoft Jet and the Microsoft Access ODBC driver (Jet ODBC driver) provide
an interface to Microsoft Office Access databases. The Microsoft OLE DB Provider for Jet and the Jet ODBC driver
are available in 32-bit versions only.

More Information
We do not provide a 64-bit version of the Microsoft OLE DB Provider for Jet. Additionally, we do not provide a 64-
bit version of the Jet ODBC driver. If you use the Microsoft OLE DB Provider for Jet or the Jet ODBC driver to
connect to a data source in a 64-bit environment, you experience different problems.
For example, you have a 32-bit application that uses the Microsoft OLE DB Provider for Jet. If you migrate the
application to run in the 64-bit mode, the application cannot connect to the data source by using the Microsoft OLE
DB Provider for Jet. This issue occurs because the application requires a 64-bit version of the Microsoft OLE DB
Provider for Jet.
However, we still have the 32-bit version of the Microsoft OLE DB Provider for Jet and the 32-bit version of the Jet
ODBC driver. In a 64-bit Windows environment, you can run an application in the 32-bit mode. Therefore, the
application can use the 32-bit version of the Microsoft OLE DB Provider for Jet or the 32-bit version of the Jet
ODBC driver.
How to optimize Microsoft Access when using ODBC
data sources
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies only to a Microsoft Access database (.mdb or .accdb).

Summary
This article describes several tips for improving performance when you access data from an ODBC data source.

More information
Use the following tips to improve performance with ODBC data sources:
Restrict the amount of data that you request from the server. Do not ask for more data than you need. Use
queries to select only the fields and rows that you need.
Use only the functionality that you need. Snapshots are less powerful than dynasets, and they are not
updateable. However, snapshots may be faster, particularly for small recordsets without Memo or OLE Object
fields.
Create linked (attached) tables to access server data. Avoid "direct" server access (that is, do not open
remote databases and run queries against them). Instead, create attached tables or create pass-through
queries.
Design list boxes and combo boxes wisely. On a form, each list box, combo box, subform, and control that
contains a total requires a separate query. Against local data, performance may be adequate. Against remote
data, however, long delays may occur when you open a form because each query must be sent to the server
and a response must be returned before the form can be opened.
Avoid large combo boxes. Including a combo box with hundreds, or even thousands, of choices based on a
local table may yield an acceptable response time, especially if you define an appropriate index on the local
table. Against a remote table, however, such a combo box yields sluggish performance because it drains
server and network resources as it fetches data to fill the list. It is best to limit the number of rows returned
to the combo box when you are working with remote data. You can also break up the data into smaller
combo boxes (bearing in mind the tip above).
Use the Find command only on smaller recordsets. The Microsoft Jet database engine optimizes the Find
command to work well against local recordsets of almost any size and against remote recordsets of
reasonable size. However, when you have large remote recordsets (thousands of records or more), you
should instead create a filter or query and also be careful to use restrictions that your server can process.
Make sure queries are sent to the server for processing. The most important factor in query performance
against remote data is ensuring that your server runs as much of the query as possible. The Microsoft Jet
database engine attempts to send the entire query to your server, but evaluates locally any query clauses
and expressions that are not generally supported by servers or by your particular server. Functionality not
supported by servers in general includes the following:
Operations that cannot be expressed in a single SQL statement. This situation can occur when you use a
query as an input to another query, or when your query's FROM clause contains a Totals query or DISTINCT
query. Often, you can rearrange your queries to calculate totals after all other operations.
Operations that are Microsoft Jet database engine-specific extensions to SQL, such as crosstab queries,
TOP queries, and reports with multiple levels of grouping and totals. Note that simple crosstab queries
can be sent to servers.
Expressions that contain Microsoft Access-specific operators or functions. The Microsoft Access financial
functions and statistical aggregates have no server equivalents.
User-defined Visual Basic for Application functions that take remote columns as arguments. These
functions do not exist on the server, but must process remote column data. However, if a user-defined
function returns a single value and does not reference a remote column, the function is evaluated locally,
and its value is sent to the server for processing.
Mixing text and numeric data types in operators or UNION query outputs. Most servers lack the data-
type leniency of Microsoft Access. Because of this, use explicit conversion functions where appropriate.
Heterogeneous joins between local tables and remote tables, or between remote tables in different ODBC
data sources. Joins between small local tables and large remote tables, where the join column is indexed,
may result in a remote index join. In a remote index join, one query for each row in the local table is sent
to the server, and only the joining rows are returned.
Non-remoteable expressions, or expressions that cannot be sent remotely, because they cannot be
evaluated by your server. Non-remoteable output expressions (those in the SELECT clause) do not force
local evaluation of your query unless they occur in a Totals query, a DISTINCT query, or a UNION query.
Non-remoteable expressions in other clauses (WHERE, ORDER BY, GROUP BY, HAVING, and so on) force
at least part of your query to be evaluated locally.
Servers differ in some areas of supported functionality. When you attach a remote table, the Microsoft Jet
database engine queries the ODBC driver for its capabilities. If the required functionality is supported by the
driver and the server, the Microsoft Jet database engine sends the operation to the server for processing. If
not, the Microsoft Jet database engine performs the operation locally. Areas of differing support include (but
are not limited to) the following:
Outer joins. Note that the Microsoft Jet database engine does not send multiple outer joins to a server,
although many inner joins may accompany a single outer join.
Numeric, string, and date/time functions -- such as Log(), Mid$(), DatePart(), and so on.
Conversion functions -- such as CInt(), CStr(), CVDate(), and so on.
How to populate text boxes with multicolumn Combo
Box selections
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

Summary
This article explains how to populate several text boxes with the selections made in a multicolumn combo box, and
then save the contents of the text boxes as one record in a table.

More information
Cau t i on

If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up
the Northwind.mdb file and follow these steps on a copy of the database.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. To update text boxes with selections made in a multi-
column combo box, use the following steps:
1. Open the sample database Northwind.mdb.
2. Create a new table in Northwind.mdb that includes the following fields:

Table: Table1
----------------------
Field Name: ID
Data Type: Autonumber
Primary Key
---
Field Name: FirstName
Data Type: Text
---
Field Name: LastName
Data Type: Text
---
Field Name: Title
Data Type: Text

3. Create a new form in Northwind.mdb that contains the following controls:


Form: Form1
----------------------
RecordSource: Table1
---
Control Type: Text Box
Name: txtFirstName
ControlSource: FirstName
---
Control Type: Text Box
Name: txtLastName
ControlSource: LastName
---
Control Type: Text Box
Name: txtTitle
ControlSource: Title

4. Add a combo box to Form1. In the Combo Box wizard, follow these steps:
a. Click I want the combo box to look up the values in a table or quer y , and then click Next.
b. Click Table: Employees, and then click Next.
c. Move the LastName, FirstName, and Title fields from the Available Fields list to the Selected Fields list by
selecting each field, and then clicking the > button. Click Next.
d. Click Next, click Remember the value for later use , and then click Next.
e. In the What label would you like for your combo box box, type Make Selection, and then click
Finish.
5. Right-click the combo box that you created in step 4, and then click Proper ties .
6. Click the Other tab, and then type cboNames in the Name box.
7. Click the Event tab, click the After Update event box, and then click the Build (...) button.
8. Click Code Builder, and then click OK.
9. In the Visual Basic Editor, type the following code:

Private Sub cboNames_AfterUpdate()


Me.txtFirstName = Me![cboNames].column(1)
Me.txtLastName = Me![cboNames].column(2)
Me.txtTitle = Me![cboNames].column(3)
End Sub

10. Quit the Visual Basic Editor, and then open the Form1 form in Form view.
11. Click an item in the combo box, and then click Next Record. Repeat this step for each record that you want to
save.
12. Open Table1 in Table view to confirm that new records have been saved. Note that after you click an item in the
combo box, the AfterUpdate property runs the event procedure that populates the three text boxes on the form,
and a new record is added to Table1.
How to prompt user to save changes to record in a
form in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 197103

TIP
Requires basic macro, coding, and interoperability skills.

Summary
When you move to the next record on a form or close a form, Microsoft Access automatically saves any changes
that you have made to the current record. This article shows you how to use a BeforeUpdate event procedure to
prompt you to verify the save operation before Microsoft Access will continue.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.

More Information
Cau t i on

If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up
the Northwind.mdb file and follow these steps on a copy of the database.
This example uses the BeforeUpdate event procedure in the Customers form to prompt the user to confirm
changes before Microsoft Access will save the record:
1. Open the sample database Northwind.mdb, and open the Customers form in Design view.
2. Set the form's BeforeUpdate property to the following event procedure:
Private Sub Form_BeforeUpdate(Cancel As Integer)

' This procedure checks to see if the data on the form has
' changed. If the data has changed, the procedure prompts the
' user to continue with the save operation or to cancel it. Then
' the action that triggered the BeforeUpdate event is completed.

Dim ctl As Control

On Error GoTo Err_BeforeUpdate

' The Dirty property is True if the record has been changed.
If Me.Dirty Then
' Prompt to confirm the save operation.
If MsgBox("Do you want to save?", vbYesNo + vbQuestion, _
"Save Record") = vbNo Then
Me.Undo
End If
End If

Exit_BeforeUpdate:
Exit Sub

Err_BeforeUpdate:
MsgBox Err.Number & " " & Err.Description
Resume Exit_BeforeUpdate
End Sub

3. On the Debug menu, click Compile Nor thwind .


4. On the File menu, click Save Nor thwind .
5. On the File menu, click Close And Return to Microsoft Access .
Now, when you make a change to a record, and then you either move to a different record or close the form, you
are prompted to confirm that you want to save the current record. If you click No , the record is reset and the
operation continues as normal.
You're prompted for username and password though
you don't set up security in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 888734

Symptoms
When you run Microsoft Access 2000 or a later version, you are prompted for a username and for a password. This
behavior occurs even though you do not turn on security or set up security. You are prompted for a username and
for a password for every database. This includes even a brand new database.

Cause
This behavior occurs if you install "Typing Tutor Deluxe" by Global Software Publishing.

Resolution
To resolve this behavior, use the Workgroup Administrator tool to rejoin the original default workgroup information
file. To do this, you can use one of the following methods. The method that you use depends on your version of
Access.
Office Access 2007
To use the Workgroup Administrator tool in Microsoft Office Access 2007, use Microsoft Visual Basic code. To do
this, use one of the following methods.
Method 1: Run the Visual Basic code in the Immediate window
1. In Access 2007, open a trusted database, or enable macros in the existing database.
2. Press CTRL+G to open the Immediate window.
3. Type the following line of code, and then press ENTER.

DoCmd.RunCommand acCmdWorkgroupAdministrator

4. In the Workgroup Administrator dialog box, click Join , and then click Browse .
5. Locate and then click the following file, and then click Open :
C:\Program Files\Common Files\system\System.mdw

6. In the Workgroup Administrator dialog box, click OK , and then click Exit .
Method 2: Create a module that contains the Visual Basic code
1. In Access 2007, open a trusted database, or enable macros in the existing database.
2. On the Create tab, click Macro in the Other group, and then click Module .
3. Create a subroutine, and then paste the following Visual Basic code in the subroutine.

DoCmd.RunCommand acCmdWorkgroupAdministrator

4. Press F5 to run the code.


5. In the Workgroup Administrator dialog box, click Join , and then click Browse .
6. Locate and then click the following file, and then click Open :
C:\Program Files\Common Files\system\System.mdw

7. In the Workgroup Administrator dialog box, click OK , and then click Exit .
Office Access 2003
1. Start Office Access 2003.
2. Click Tools , point to Security , and then click Workgroup Administrator .
3. Click Join , click Browse , browse to
C:\Documents and Settings\<your user name>\Application Data\Microsoft\Access\System.mdw , and then click
OK .
4. In the Workgroup Administrator dialog box, click OK .
5. In the Workgroup Administrator dialog box, click OK .

NOTE
The Workgroup Administrator dialog box in step 5 is a different dialog box than the dialog box in step 4. Both
dialog boxes have the same name.

Access 2002
1. Start Access.
2. Click Tools , point to Security , and then click Workgroup Administrator .
3. In the Workgroup Administrator dialog box, click Join , click Browse , browse to
C:\Documents and Settings\<your user name>\Application Data\Microsoft\Access\System.mdw , and then click OK .
4. In the Workgroup Administrator dialog box, click OK , and then click Exit .
Access 2000
1. Click Star t , and then click Search .
2. In the Search Results dialog box, click All files and folders under What do you want to search for .
3. Type Wrkgadm.exe under All or par t of the file name , and then click Search .
4. In the Search Results dialog box, double-click WRKGADM .
5. In the Workgroup Administrator dialog box, click Join , click Browse , browse to
C:\Program Files\Common Files\system\System.mdw , and then click OK .
6. In the Workgroup Administrator dialog box, click OK , and then click Exit .

More Information
When you install "Typing Tutor Deluxe," your workgroup security for Access is reset to point to a workgroup
information file that is created for "Typing Tutor Deluxe."
Results don't appear when you run a query linked
SQL Server tables from different sources
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 824169

NOTE
This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file. Requires basic
macro, coding, and interoperability skills.

Symptoms
When you run a query in a Microsoft Access database that joins linked Microsoft SQL Server tables from different
sources or databases, the query may not return any data.
However, when you run a similar query that refers to the linked SQL Server tables from the same source or
database, this problem does not occur.

Workaround
To work around this problem, use one of the following methods:
Rewrite the query
You can rewrite the Microsoft Access query to use the join criteria with the LIKE keyword. You can use the LIKE
operator to compare one field to the other field in the linked tables from different databases instead of using ANSI
JOIN.
For example, if the original query is the following, where dbo_db1_table1 is linked from the SQL Server database
DB1 and dbo_db2_table1, dbo_db2_table2 are linked from the SQL Server database DB2:

SELECT
dbo_db1_table1.db1_table1_col1,
dbo_db2_table1.db2_table1_col1,
dbo_db2_table2.db2_table2_col1
FROM
(
dbo_db1_table1 INNER JOIN dbo_db2_table1
ON
dbo_db1_table1.db1_table1_col2 = dbo_db2_table1.db2_table1_col2
) INNER JOIN dbo_db2_table2
ON
dbo_db2_table1.db2_table1_col3 = dbo_db2_table2.db2_table2_col3;

rephrase the query as the following:


SELECT
dbo_db1_table1.db1_table1_col1,
dbo_db2_table1.db2_table1_col1,
dbo_db2_table2.db2_table2_col1
FROM
dbo_db1_table1,
dbo_db2_table1 INNER JOIN dbo_db2_table2
ON
dbo_db2_table1.db2_table1_col3 = dbo_db2_table2.db2_table2_col3;
WHERE
(((dbo_db1_table1.db1_table1_col2 LIKE dbo_db2_table1.db2_table1_col2));

NOTE
Here, both ANSI JOIN and NON ANSI JOIN syntax appear in the same query.

Use an Access database project


To avoid the problem that is mentioned in the "Symptoms" section of this article, use a Microsoft Access database
project instead of a Microsoft Access database. Link the appropriate SQL Server tables in the Microsoft Access
database project, and then create a stored procedure to include the following query (where dbo_db1_table1 is
linked from the SQL Server database DB1 and dbo_db2_table1, dbo_db2_table2 are linked from the SQL Server
database DB2):

SELECT
dbo_db1_table1.db1_table1_col1,
dbo_db2_table1.db2_table1_col1,
dbo_db2_table2.db2_table2_col1
FROM
(
dbo_db1_table1 INNER JOIN dbo_db2_table1
ON
dbo_db1_table1.db1_table1_col2 = dbo_db2_table1.db2_table1_col2
) INNER JOIN dbo_db2_table2
ON
dbo_db2_table1.db2_table1_col3 = dbo_db2_table2.db2_table2_col3;

The result set will appear when you run this stored procedure.
Import the SQL Server tables
To avoid the problem that is mentioned in the "Symptoms" section of this article, import the SQL Server tables to
the Microsoft Access database instead of linking the SQL Server tables to the Access database.

NOTE
If you import the SQL Server tables to the Access database, you cannot use the latest data in the imported table because the
imported table contains the snapshot of the data at the time you import the table.

More Information
You can filter the data in Microsoft Access by using the JOIN keyword in the queries. The JOIN keyword is classified
as ANSI JOIN and NON ANSI JOIN. ANSI JOIN uses JOIN and ON keywords in the query. NON ANSI JOIN uses a
WHERE clause in the query.
NON ANSI JOIN was used more frequently before the evolution of ANSI 92 SQL and was upsized to ANSI JOIN.
Microsoft recommends that you use ANSI JOIN in your queries to filter the data.
References
For more information about how to run the Upsizing Wizard, click Microsoft Office Access Help on the Help
menu, type Upsizing Wizard in the Search for box in the Assistance pane, and then click Star t searching to view
the topic.
You receive an error message when you run a query
in Microsoft Access because of a double-byte Arabic
number
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Access 2010, Microsoft Access 2007, or in Microsoft Office Access 2003, you experience one of the
following symptoms:
Symptom 1
You receive an error message when you run a query that has a field name that begins with a double-byte arabic
number. For example, if the field name contains two or more characters, such as "� PMonth", you receive the
following error message:

Syntax error in query expression ' Table Name .�PMonth': Missing operator.

If the field name only contains one character, such as "1", you receive the following error message:

Invalid use of '.', '!', or '()' in query expression ' Table Name. '. NoteIn Access 2003, this issue only
occurs when you run the query on a Windows Vista-based computer.

Symptom 2
You use a table that contains some fields whose names begin with double-byte arabic numbers. Then, you create a
query to select all the data for the field names that begin with double-byte arabic numbers. When you run this
query, you receive the following error message:

Syntax error (missing operator) in query expression 'TableName.FieldName'.

Note The TableName placeholder represents the name of the table that you are querying. The FieldName
placeholder represents the name of the field name that you are querying.
Note This issue may also occur for objects other than tables.

Resolution
To resolve the issue that is described in Symptom 1, see Resolution 1.
To resolve the issue that is described in Symptom 2, see Resolution 2.
Resolution 1
To resolve this problem, enclose the field name in single-byte square brackets ([ ]). For example, change the field
name from 1Month to [1 Month].
Resolution 2
To resolve this problem, use one of the following methods:
Method 1
1. Change any field names that begin with double-byte arabic numbers so that they do not use double-byte arabic
numbers.
2. Create and then save a new query.
Method 2
1. Create a new query that is based on the table. Name the new query Query1.
2. Create a field that is named TableName.* to the query.
Note Do not add any other fields except TableName.*.
3. Save the new query.
4. Use the new query to select the fields that you want.

More Information
Steps to reproduce the problem
1. In Access, create a table.
2. Define a field by using a name that begins with a double-byte Arabic number.
3. Create a query that refers to the field in the table.
4. Run the query.
"Query must have at least one destination field" when
you run an Access query
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you run an existing Microsoft Access query, you receive the following error message:

Query must have at least one destination field.

You do not see the expected query in Design View, and you see only "Select;" or "Select*;" in SQL View.

Cause
This problem occurs when you run the OutputTo method because of an issue that affects reading the structure of
queries that have been designed and saved only within SQL View.

Workaround
To work around this problem, use one of the following methods:
For each database that is affected by this problem, open the database in Access, click Options on the File menu,
select Current Database , and then clear the Track name AutoCorrect info check box.
Make sure that each query is opened and saved while in you are in Design View.

Status
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
How to use a query to filter unique data in Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 292634

NOTE
Requires knowledge of the user interface on single-user computers. This article applies only to a Microsoft Access database
(.mdb or .accdb).

Summary
When you filter a table to eliminate duplicate data in Microsoft Access 2002 or Microsoft Office Access 2003, use a
query that uses one of the aggregate (totals) functions, such as First(), Last(), Min(), or Max(), in the fields that do
not contain duplicate data. In the fields that do contain duplicate data, use the GroupBy() function.

More Information
For example, suppose you import an inventory table from an application and discover that the data has duplicates
in it. To get the data back down to a baseline, such as one record per product, so that you can then re-inventory and
have a correct and complete set of data, use a query to filter the data.
Suppose the table looks as follows:

P RO DID DESC RIP T IO N C O ST M A RK UP Q UA N T IT Y

1 A Product $1.50 0.5 10

2 B Product $2.50 0.7 100

3 C Product $1.59 0.9 25

2 D Product $4.59 0.8 30

5 E Product $1.99 0.7 40

6 F Product $2.69 0.4 60

9 G Product $4.95 0.8 20

8 H Product $6.79 0.9 32

9 I Product $6.89 0.7 0


P RO DID DESC RIP T IO N C O ST M A RK UP Q UA N T IT Y

1 J Product $2.99 0.5 11

If you want to filter the table so that it has a unique ProdID code and the first entry from each of the other fields, do
the following:
1. Create a new query that is based on the original table.
2. Add all the fields from the field list to the query design grid.
3. In Microsoft Office Access 2003 or in earlier versions of Access, click Totals on the View menu.
In Microsoft Office Access 2007, click Totals in the Show/Hide group on the Design tab.
4. Set theTotal row of the query design grid to First for every field except ProdID.Set ProdID toGroup By.
5. In Access 2003 or in earlier versions of Access, click Datasheet View on the View menu.
In Access 2007, click Datasheet View in the View list in the Results group on the Design tab.
The data that you see is a list of unique ProdID data with the first value that is encountered for that product in each
of the other fields. If you use this procedure on the sample table, your result is as follows:

P RO DID DESC RIP T IO N C O ST M A RK UP Q UA N T IT Y

1 A Product $1.50 0.5 10

2 B Product $2.50 0.7 100

3 C Product $1.59 0.9 25

5 E Product $1.99 0.7 40

6 F Product $2.69 0.4 60

8 H Product $6.79 0.9 32

9 G Product $4.95 0.8 20

To obtain different results, use the Max(), Min(), or Last() function instead of the First function().
To generate a unique table from this query, change the query type to a make-table query in Design view of the
query.

NOTE
This query returns unique data. To find duplicate records and to edit the records, or to choose which records to keep, use the
Find Duplicates Query Wizard.
How to register or unregister ActiveX controls in
Access 2007
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

This article applies to a Microsoft Access database (.mdb), a Microsoft Access project (.adp), and a Microsoft Access
2007 database (.accdb).
Moderate: Requires basic macro, coding, and interoperability skills.

Introduction
This article describes how to register or unregister an ActiveX control in Microsoft Office Access 2007.

More information
In earlier versions of Access than Access 2007, you could register or unregister an ActiveX control by clicking
ActiveX Controls on the Tools menu. In Access 2007, you cannot use this method. If you want to register or
unregister an ActiveX control, use one of the following methods.
Method 1: Use Visual Basic code
To use Visual Basic code to register or unregister an ActiveX control, run the code directly in the Immediate window,
or create a module that contains the code.
To run the Visual Basic code directly in the Immediate window, follow these steps:
1. In Access 2007, open a trusted database, or enable macros in the database.
2. Press CTRL+G to open the Immediate window.
3. Type the following code, and then press ENTER.

DoCmd.RunCommand acCmdRegisterActiveXControls

To create a module that contains the Visual Basic code, follow these steps:
1. In Access 2007, open a trusted database, or enable macros in the database.
2. On the Create tab, click Macro in the Other group, and then click Module .
3. Create a subroutine that includes the following Visual Basic code.

DoCmd.RunCommand acCmdRegisterActiveXControls

4. Press F5 to run the code.


Method 2: Use the RunCommand macro action
1. In Access 2007, open a trusted database, or enable macros in the database.
2. On the Create tab, click Macro in the Other group, and then click Macro .
3. On the Design tab, click Show All Actions in the Show/Hide group.
4. In the Action column, click RunCommand , and then click RegisterActiveXControls in the Command list.
5. Click Save .
6. In the Tools group, click Run .
How to reset an AutoNumber field value in Access
3/30/2020 • 8 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 812718

Summary
This step-by-step article describes how to reset an AutoNumber field value in Access. The AutoNumber field
value in Access does not automatically reset when you delete some rows or all rows in a table. To reset the
AutoNumber field value and to refresh the AutoNumber value in the referenced table, you must manually
perform some tasks.

NOTE
You must back up your database before you perform the steps that follow.

Reset an AutoNumber field in a single table


If your table has no relationships to other tables, use either Method 1 or Method 2 to reset an AutoNumber field
value.
Method 1: Move the data to a new table using a Make -Table query
You can reset an AutoNumber field value by using a Make-Table query to create a new table that has the same data
and then adding a new AutoNumber field.
Access 2003 and earlier versions
To do this in Access 2003 or in an earlier version, follow these steps:
1. Delete the AutoNumber field from the main table, and note the AutoNumber field name.
2. Click Queries on the left pane, and then double-click Create quer y in Design view on right pane.
3. In the Show Table dialog box, select the main table, click Add , and then click Close .
4. Double-click the required fields in the table view of the main table to select the fields.
5. Select the required Sor t order.
6. On the Quer y menu, click Make-Table Quer y , type the new table name in the Table Name text box, and then
click OK .
7. On the Quer y menu, click Run .
8. When you are prompted by the "You are about to paste # row(s) into a new table" message, click Yes to insert
the rows.
9. On the File menu, click Close , and then click No to close the Make-Table Quer y window.
10. Click Tables on the left pane, right-click the new table, and then click Design View .
11. In the Design view for the table, add an AutoNumber field that has the same field name that you deleted in
step 1, add this AutoNumber field to the new table, and then save the table.
12. Close the Design view window.
13. Rename the main table, and then rename the new table to match the main table name.
Access 2007 and later versions
To do this in Microsoft Office Access 2007 or in a later version, follow these steps:
1. Delete the AutoNumber field from the main table, and note the AutoNumber field name.
2. Click the Create tab, and then click Quer y Design in the Other group.
3. In the Show Table dialog box, select the main table. Click Add , and then click Close .
4. Double-click the required fields in the table view of the main table to select the fields.
5. Select the required Sor t order.
6. On the Design tab, click Make Table in the Quer y Type group.
7. Type the new table name in the Table Name box, and then click OK .
8. On the Design tab, click Run in the Results group.
9. When you are prompted by the "You are about to paste # row(s) into a new table" message, click Yes to insert
the rows.
10. Close the query.
11. Right-click the new table, and then click Design View .
12. In the Design view for the table, add an AutoNumber field that has the same field name that you deleted in
step 1. Add this AutoNumber field to the new table, and then save the table.
13. Close the Design view window.
14. Rename the main table, and then rename the new table to match the main table name.
Method 2: Create a new table and move the data to it using an append query
You can copy the structure of your existing table as a new table. You can then append the data into the new table
and add a new AutoNumber field.
Access 2003 and earlier versions
To do this in Microsoft Office Access 2003 and in earlier versions, follow these steps:
1. Delete the AutoNumber field from the main table.
Make note of the AutoNumber field name.
2. Copy the structure of the main table and then create a new table.
3. Click Queries on the left pane. Click Create quer y in Design view on right pane.
4. In the Show Table dialog box, select the main table. Click Add and then click Close .
5. To select the fields, double-click the required fields. Do this for all the fields except for the AutoNumber field
in the Table view of the main table.
6. On the Quer y menu, click Append Quer y .

NOTE
This changes the query type.

7. From the Table Name list, select the new table that you created in step 2. Click OK .
8. On the Quer y menu, click Run .
9. When you are prompted by the "You are about to paste # row(s) into a new table" message, click Yes to
insert the rows.
10. On the File menu, click Close . Click No to close the AppendQuer y window.
11. Click Tables on the left pane. Right-click the new table and then click Design View .
12. In the Design view for the table, add an AutoNumber field with the same field name that you deleted in
step 1. Add this AutoNumber field to the new table, and then save the table.
13. Close the Design view window.
14. Rename the main table, and then rename the new table to match the main table name.
Access 2007 and later versions
To do this in Microsoft Office Access 2007 or in a later version, follow these steps:
1. Delete the AutoNumber field from the main table.
Make note of the AutoNumber field name.
2. Copy the structure of the main table, and then create a new table.
3. Click the Create tab, and then click Quer y Design in the Other group.
4. In the Show Table dialog box, select the main table. Click Add , and then click Close .
5. To select the fields, double-click the required fields. Do this for all the fields except for the AutoNumber field
in the Table view of the main table.
6. On the Design tab, click Append in the Quer y Type group.

NOTE
This changes the query type.

7. I the Table Name list, select the new table that you created in step 2, and then click OK .
8. On the Design tab, click Run in the Results group.
9. When you are prompted by the "You are about to paste # row(s) into a new table" message, click Yes to
insert the rows.
10. Close the query.
11. Right-click the new table, and then click Design View .
12. In the Design view for the table, add an AutoNumber field that has the same field name that you deleted in
step 1. Add this AutoNumber field to the new table, and then save the table.
13. Close the Design view window.
14. Rename the main table, and then rename the new table to match the main table name.

Reset an AutoNumber field in a table with referenced tables


A table with referenced tables has a relationship with one or more tables. The steps that follow describe how to
reset the AutoNumber field for a table that has one referenced table. If you have more than one referenced table,
you must follow these steps for each referenced table.
1. Remove the relationship between the tables.
2. Set the AutoNumber field of the main table to a Number data type, and then remove the primary key.
3. Create a new field of AutoNumber data type in the main table, and then save the table.
4. Create a new field of Number data type in the referenced table, and then save the table.
5. To create an update query that updates the new field in the referenced table to the new AutoNumber field
of the main table, follow these steps.
Access 2003 and earlier versions
a. Click Queries in the left pane, and then click Create quer y in Design view in right pane.

NOTE
This creates your new query.

b. In the Show Table dialog box, select the main table and the referenced table, click Add to add the main
table and the referenced table, and then click Close .
c. Click the field in the main table that was previously linked to the referenced table, and then drag the field
to the previously linked field of the referenced table.

NOTE
This creates the join between the tables that is based on the original linking fields.

d. On the Quer y menu, click Update Quer y .


e. Double-click the new field from the referenced table to add it to the field list.
f. In the Update To field, type [Main TableName].[New AutoNumber field] to update the new field values in
the referenced table.
g. On the Quer y menu, click Run .
h. When you are prompted by the "You are about to paste # row(s) into a new table" message, click Yes to
insert the rows.
i. On the File menu, click Close , and then click No to close the Update Quer y window.
Access 2007 and later versions
a. Click the Create tab, and then click Quer y Design in the Other group. This creates the new query.
b. In the Show Table dialog box, select the main table and the referenced table. Click Add to add the main
table and the referenced table. Click Close .
c. Click the field in the main table that was previously linked to the referenced table, and then drag the field
to the previously linked field of the referenced table.

NOTE
This creates the join between the tables that is based on the original linking fields.

d. On the Design tab, click Update in the Quer y Type group.

NOTE
This changes the query type.

e. Double-click the new field from the referenced table to add it to the field list.
f. In the Update To field, type [Main TableName].[New AutoNumber field] to update the new field values in
the referenced table.
g. On the Design tab, click Run in the Results group.
h. When you are prompted by the "You are about to paste # row(s) into a new table" message, click Yes to
insert the rows.
i. Close the query.
6. Delete the original linking field from the main table and the referenced table.
7. Revert the name of the new AutoNumber field to the original name.
8. Re-create the primary key and the relationship between the tables.This procedure resets your AutoNumber
field and updates the referenced table by using the correct key values.
How to reset the page number on a group level in an
Access report
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies to a Microsoft Access database (.mdb or .accdb) and to a Microsoft Access project (.adp).

Summary
When you modify the section properties of a report, you can design a report that breaks the page for each new
entry in a group and then resets the page number of the report. For example, the Employee Sales by Country
report in the sample database Northwind.mdb is designed with this feature.

More information
NOTE
The method that is used to reset the page number for each new country depends on whether you want to display the page
number in the page header or in the page footer. If you use the wrong method, the page number is not reset correctly.

Method 1: The page number appears in the page footer


1. Start Access and then open the sample database Northwind.mdb or the sample project NorthwindCS.adp.
2. Open the Employee Sales by Country report in Design view.
3. Click the Countr y Header section, right-click the On Format property, and then click Build .
Examine the event procedure.
4. Click the Countr y Footer section, right-click the On Format property, and then set the ForceNewPage
property to After Section .
Method 2: The page number appears in the page header
1. Start Access and then open the sample database Northwind.mdb or the sample project NorthwindCS.adp.
2. Open the Employee Sales by Country report in Design view.
3. Click the Countr y Footer section, right-click the On Format property, and then click Build .
4. Click Code Builder , and then click OK .
5. In the Code window, type: Page = 0
6. Change the OnFormat event of the Country Header so that the Page property is not set in this event. To do
this type an apostrophe before the line with the starting page number.
The code will look similar to the following code:

Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)


' Set page number to 1 when a new group starts.
' Page = 1
End Sub

7. Click the Page Header section, set the Height property to 0.25, and then set the Back Color property to
8421504.
8. Move the control that is named Page Number to the Page Header.
The Page Number control displays the page number.
When you use either of these methods, each country begins on a new page, and the numbering of each new
section begins with the number 1.
How to resolve reference issues in an Access database
3/30/2020 • 10 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 310803

Summary
This article describes issues that concern the use of references in an Access database.
Understanding reference errors requires an understanding both of how libraries are referenced in an Access
database and of what is needed to install a database on a target computer without breaking these references. This
article is a summary of the following topics:
Viewing Access database references
Resolving Microsoft Visual Basic for Applications references in Access
Understanding reference error messages
Resolving reference issues on the development computer
Distributing database files
Updating the reference list
Distributing database files that have ActiveX controls
Re-registering a file

Viewing Access database references


To view the current database references:
1. Open the database.
2. Press ALT+F11 to start Visual Basic Editor.
3. On the Tools menu, click References .

Resolving Visual Basic references in Access


Access loads the pertinent file (for example, a type library, an object library, or a control library) for each reference,
according to the information that is displayed in the References box. If Access cannot find the file, Access runs the
following procedures to locate the file:
1. Access checks to see whether the referenced file is currently loaded in memory.
2. If the file is not loaded in memory, Access tries to verify that the RefLibPaths registry key exists. If the key exists,
Access looks for a named value that has the same name as the reference. If there is a match, Access loads the
reference from the path that the named value points to.
3. Access then searches for the referenced file in the following locations, in this order:
a. The Application folder (the location of the Msaccess.exe file).
b. The current folder that you see if you click Open on the File menu.
c. The Windows or Winnt folder where the operating system files are running.
d. The System folder under the Windows or Winnt folder.
e. The folders in the PATH environment variable that are directly accessible by the operating system.
4. If Access cannot find the file, a reference error occurs.

Understanding reference error messages


There are several error messages that relate to a missing file or to a file that has a different version from the
version that is used in the database. In most cases, you can search the Microsoft Knowledge Base for an article
about the specific error message, and you can then resolve the error by following the steps in the article. In some
cases, a dependency file is not correctly matched with the primary file.
The following list describes some of the reference error messages that you may receive. However, note that the list
does not include all of the possible reference error messages.
"Method MethodName of Object ObjectName Failed"
Typically, you may receive this error message if there is a problem with a programming type library, for
example, an invalid Data Access Object (DAO) dynamic-link library (DLL) file. You can search the Microsoft
Knowledge Base for articles that describe the various forms of this error message.
"Function is not available in Usage expression"
You may receive this error message if there is a problem with a programming type library, or if the code
does not specifically call out the correct library and the file is listed at a lower priority in the reference list
than a file that contains the same function name--for example, if DAO code is used with the ActiveX Data
Object (ADO) library listed at a higher priority than the DAO library. You may also receive this error message
if a form or a report contains an ActiveX control.
"Can't find project or library"
You may receive this error message if Access cannot locate a file in the reference list. Often the file is flagged
asMissingin theReferencesdialog box. Sometimes the file exists on the development computer but not on the
target computer.
"Variable not defined" or "User-defined type not defined"
You may receive one of these error messages if you use the User-Level Security Wizard to secure a database
that references libraries other than the libraries that are included by default. For example, references to
libraries that existed in the unsecured database are not automatically created in the new, secured database.
"Run-time error 5," "Invalid procedure call or argument," "The library which contains this symbol is not
referenced by the current project," or "The library which contains this symbol is not referenced by the
current project, so the symbol is undefined"
You may receive one of these error messages if there is a reference to a database, a type library, or an object
library that is flagged asMissing.
"ActiveX component can't create object"
This error message does not necessarily mean that an ActiveX control is involved. For example, one possible
cause is that DAO, which is an ActiveX component, cannot create an object because the DAO Automation
Server cannot start. Frequently, the cause is that DLLs that provide referenced functionality for the program
are not registered or are incorrectly registered.

Resolving reference issues on the development computer


Creating a new, blank database and then importing objects from another database file can create reference issues if
the code or ActiveX controls rely on references that are not included in a database by default. The default references
for an Access 2000 database are:
Visual Basic for Applications
Microsoft Access 9.0 object library
OLE Automation
Microsoft ActiveX Data Objects (ADO) 2.1 library
If the source is another Access 2000 database, verify that the references match. If the source is in an earlier version
of Access, DAO 3.5 or earlier is probably in use; however, Access 2000 does not provide DAO 3.5 by default. Try
removing the reference to the ADO 2.1 library (if it exists) and adding the reference to the DAO 3.6 object library.
If you converted the database from an earlier version of Access, and the database contains a reference to the
Utility.mda file, in most cases you can remove this reference because the functions that this reference calls are
included in the default references in Access 2000. If there are references to earlier versions of DAO, you can also
remove these references because DAO 3.6 can address these functions.
To add a reference to a library:
1. Open the database.
2. Press ALT+F11 to start Visual Basic Editor.
3. On the Tools menu, click References .
4. Under Available References , click to select the check box next to the name of the library, and then click OK .
To remove a reference to a library:
1. Open the database.
2. Press ALT+F11 to start Visual Basic Editor.
3. On the Tools menu, click References .
4. Under Available References , click to clear the check box next to the name of the library, and then click OK .

Distributing database files


There are two basic database file distribution methods. You can copy the file from the development computer to the
target computer, or you can use the Package and Deployment Wizard to create a setup package.
If you copy the file from the development computer to the target computer, only the database file is copied. You
must manually ensure that all files that are listed in the reference list are available, at the correct version level and
in the same relative location on the target computer as on the development computer.
When you develop run-time applications in Access, be aware that some operating system files must be distributed
with the run-time application. The packaging of these files is performed automatically by the Package and
Deployment Wizard component of Microsoft Office 2000 Developer. Sometimes the versions of the files that are
included depend on other applications that are installed on the development computer and that might have
modified the operating system files.
Following certain guidelines will usually ensure that the versions of the files that you use will not conflict with files
on the target computer when you install the run-time application. Here are the guidelines:
1. Develop the Access database on any computer.
2. Create a computer environment where the hard disk has been reformatted and where only the earliest version
of the applicable operating system, of Office, and of Office 2000 Developer is installed. Run the Package and
Deployment Wizard on this computer to create the run-time version of the application. This ensures that the
revision levels of the files will work on any of the target computers.
3. Create a computer environment where the hard disk has been reformatted and where only the operating
system is installed. Test the run-time application in this environment.
If the application does not run successfully, you know that there is something wrong with the application
itself. You need to identify and correct the problem before you distribute the application.
If the application works successfully on the test computer but does not work on the target computer, you
know that there is something wrong on the target computer rather than in the application. You need to
identify and correct the probable cause on the target computer, probably an incompatibility or a
corrupted file.

Refreshing the reference list


If the reference issue involves an ActiveX control, you can sometimes resolve the issue by refreshing the reference
list. To refresh the reference list:
1. In Visual Basic Editor, click References on the Tools menu.
2. In the References dialog box, click to select a reference that is not already selected, make note of which one you
select, and then click OK .
3. On the Tools menu, click References again.
4. Click to cancel the selection of the reference, and then click OK .

Distributing database files that have ActiveX Controls


There are two types of licenses for ActiveX controls: a design-time license and a run-time license.
A design-time license permits you to insert licensed ActiveX controls from Office 2000 Developer into forms
and reports in an Access database.
A run-time license permits you to use the ActiveX controls in an Access database on a computer that does not
have Office 2000 Developer installed, but a run-time license does not permit you to insert new licensed ActiveX
controls. To install a run-time license, distribute the ActiveX controls by using the Package and Deployment
Wizard, which writes the license for the controls in the target computer's registry.
A Missing flag, which you may see when you open a module in Design view and then click References on the
Tools menu, indicates that the reference to the Common Dialog control on the target computer does not match the
source in the database file from the development computer.
If you distribute a database file without installing the distributable Common Dialog control, the control's reference
may be flagged as Missing, or you may receive an error message that "You don't have the license required to use
this ActiveX control" if the non-distributable control is already installed on the target computer.
Even when the database file is part of a run-time application, you may receive the error message that "You don't
have the license required to use this ActiveX control" if the non-distributable control that's already installed on the
target computer is of a later version than the control that's provided by your run-time application. This issue can
occur because the Setup program does not overwrite later versions of a file with an earlier version of the same file.

Re-registering a file
It is possible for a file to be in the reference list without being correctly registered in the registry. If you suspect that
this might be the case, follow these steps to re-register the file:
1. In Microsoft Windows NT 4.0, clickStart, point toFind, and then click Files or Folders , or in Windows 2000,
clickStart, point toSearch, and then click For Files and Folders .
2. In the Named box, or in the Search for files and folders named box, type regsvr32.exe .
3. In the Look in box, click the root of the hard disk (usually C:).
4. Click to select the Include Subfolders check box if it is not already selected, and then click Find Now or
Search Now .
5. After you find the file, click Star t , click Run , and then delete anything that is in the Open box.
6. Drag the Regsvr32.exe file from the search results pane to the Open box.
7. Repeat steps 2 through 6, this time searching for FileName.dll, where FileName is the name of the file that you
want to re-register.
8. After the FileName.dll file is in the Open box with the Regsvr32.exe file, click OK .
9. In Access, test to see whether the problem still exists.
If you don't have the Regsvr32.exe file on your computer, check other computers for the file. If the file is not
available, you can obtain the file from the Microsoft Web site.

NOTE
Remember to compile all modules after you adjust references. To compile all modules, with the module still open, click
Compile database on the Debug menu. If the modules don't compile, there may be additional unresolved references.
How Access resolves Visual Basic for Applications
references
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 824255

NOTE
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp). Requires expert coding,
interoperability, and multiuser skills.

Summary
This article discusses the sequence of tasks that Microsoft Office Access 2007, Microsoft Office Access 2003,
Microsoft Access 2002, Access 2000, or Access 97 performs to resolve the references in Microsoft Visual Basic for
Applications (VBA).

More Information
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows

In Access, you can view the VBA references that are currently selected by using the Visual Basic Editor. To do this,
follow these steps:
1. Start Access.
2. Open an Access database.
3. Press ALT+F11 to open the Visual Basic Editor.
4. In the Visual Basic Editor window, click References on the Tools menu.
In the References dialog box, you can see the references that are selected.
NOTE
When you select a reference, you can also view the information that corresponds to the file that must be loaded to use the
reference.

The pertinent file may be a type library, an object library, or a control library. The pertinent file for each reference is
loaded according to the information that appears in the References dialog box. However, if the file is not found,
Access searches for the file in different locations on your computer.
For each VBA reference that is selected, Access performs the following tasks:
Access verifies whether the referenced file is already loaded.
Access verifies whether the RefLibPaths registry key exists if the referenced file is currently not loaded.
If the RefLibPaths registry key exists, Access searches for a named value that has the same name as the
reference. If there is a match, Access loads the reference from the path that is mentioned in the named value.

NOTE
You can manually add the RefLibPaths registry key to the registry and, then you can add the names and the
locations of any add-ins or of any libraries that are under the RefLibPaths registry key. To do this, follow these
steps:

1. ClickStar t , and then click Run .


2. In the Open box, type regedit, and then click OK .
3. In the Registry Editor window, locate the following registry key:
Access 2007: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\Access

Access 2003: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Access

Access 2002: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\10.0\Access

Access 2000: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\9.0\Access

Access 97: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\8.0\Access

4. Right-click the Access registry key, point to New , and then click Key .
5. Name the newly created key RefLibPaths .
6. Click RefLibPaths .
7. Right-click anywhere in the right pane, and then click String value .
8. Name the newly created String value by using the same name as the VBA reference.
9. Right-click the String value that you created in step 8, and then click Modify .
10. In the Edit String dialog box, type the location of the file that must be loaded to correspond to the
reference in VBA.
The registry value name must be the file name plus the extension. The location (value data) must be
the path plus the file name. For example, if you set a reference to the Northwind sample database,
you can add the following values:
Value Name: Northwind.mdb
Value Data: C:\Program Files\Microsoft Office\Office11\Samples\Northwind.mdb
11. Repeat step 7 through step 10 to add the names and to add the locations of the appropriate add-ins
or of the appropriate libraries as String values.
12. On the File menu, click Exit .
Access uses theSearchPathAPI to search for the referenced file if the RefLibPaths registry key does not exist
or does not contain a correct reference. The following searches are performed.

SEA RC H A REA DESC RIP T IO N

Application Directory Location of Msaccess.exe.

Current Directory Directory that you see if you click Open on the File menu.

System Directory The System folder and the System32 folder that are
located in the Windows folder or in the WINNT folder.

WinDir The folder where the operating system files run. This is
typically the Windows folder or the WINNT folder.

PATH Environment Variable This system variable contains a list of folders that are
directly accessible by the system. Microsoft Windows NT
4.0: In Control Panel, double-click System , and then click
the Environment tab. The PATH variable is in the System
Variables list. Microsoft Windows 2000, Microsoft
Windows XP, and Microsoft Windows Server 2003: In
Control Panel, double-click System , click the Advanced
tab, and then click Environment Variables . The PATH is
in the System Variables list. Microsoft Windows Vista: In
Control Panel, open the "System and Maintenance" item.
Click System , click Advanced system settings , click the
Advanced tab, and then click Environment Variables .
The PATH is in the System Variables list

File Directory The folder that contains the .mdb file, the .mde file, the
.adp file, or the .ade file, and any subfolders.

NOTE
Access does not require the RefLibPaths registry key if the file that you want to reference is located in any of the
directories that are mentioned in the table.

If Access cannot find the reference, you receive the following error message when you compile the project or when
you try to run a procedure:

Your Microsoft Office Access database or project contains a missing or broken reference to the file file name .
*To ensure that your database or project works properly, you must fix this reference.

NOTE
While the database is open, you receive the previous error message one time for each broken reference.

For example, if you open MyDatabase.mdb and MyDatabase.mdb is missing a reference to the Microsoft Calendar
Control and to the Microsoft DAO library, you receive two error messages, one for each missing reference. You do
not receive the error messages again unless you do not fix the references, you close the database, and then you
reopen the database. If you fix the references and then you save the database, you do not receive the error
messages the next time that you open the database.
The BrokenReference property
The Application object for Access has a BrokenReference property that tells you if any references are broken. To
check the BrokenReference property, follow these steps:
1. Start Access.
2. Open an Access database.
3. Press ALT+F11 to open the Visual Basic Editor.
4. Press CTRL+G to open the Immediate window.
5. In the Immediate window, type the following command, and then press ENTER:
?Application.BrokenReference

Notice that the BrokenReference property for the Application object returns True if there are missing
references. Otherwise, the BrokenReference property returns False .

References
For more information about references, click Microsoft Visual Basic Help on the Help menu, type References
Collection in the Search for box in the Assistance pane, and then click Star t searching to view the topic.
For more information about missing references, click the following article number to view the article in the
Microsoft Knowledge Base:
283806 Visual Basic for Applications (VBA) functions break in a database with missing references
"Runtime error 2147319779 (8002801d) library not
registered" when setting a company as default
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
"Runtime error -2147319779 (8002801d) automation error library not registered." This error occurs when trying
to set a company as default.

Cause
FRx is trying to access the specification set and system databases using an unregistered ADO Object dependency.
This is generally installed with the current version of MDAC (Microsoft Data Access Components) (MDAC Version
2.8 and later).

Resolution
Register the file msadox.dll located in the C:\Program Files\Common Files\System\ado folder. For information on
registering dlls, please see How to register a .dll file.
You cannot use the mouse wheel to scroll through
records in an Access 2007 or Access 2010 form
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Form View in Microsoft Office Access 2007 or in Microsoft Access 2010, when you try to use the mouse wheel to
move through records in a form, nothing happens. However, you can use the mouse wheel to move records up and
down when you switch the form to Datasheet View.

Cause
The mouse wheel behavior in Form View was intentionally changed in Access 2007 and in Access 2010 to reduce
user confusion. In earlier versions of Access, the mouse wheel would sometimes move the scroll bar, or the mouse
wheel would move records up or down. The mouse wheel behavior is now consistent and only moves the scroll bar.
There is no property to change this behavior.

Workaround
You can continue to use your mouse wheel in Form View in Access 2007 and in Access 2010. To do this, enable your
database, or move it to a trusted location. Then, follow these steps:
1. Open the form in Design View.
2. Use the Alt+F11 key combination, or click View Code in the Tools group on the Ribbon, to open the
Microsoft Visual Basic editor window.
3. Paste the following code into the code window.
Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long)

If Not Me.Dirty Then

If (Count < 0) And (Me.CurrentRecord > 1) Then

DoCmd.GoToRecord , , acPrevious

ElseIf (Count > 0) And (Me.CurrentRecord <= Me.Recordset.RecordCount) Then

DoCmd.GoToRecord , , acNext

End If

Else

MsgBox "The record has changed. Save the current record before moving to another record."

End If

End Sub

4. Save and then open your form in Form View.


This code forces the user to save a record in which changes were made before the user scrolls to another record.
One of the main reasons for the change in the scroll behavior was that users would use the mouse wheel to scroll
through records and automatically and unexpectedly save their changes to their record.

More Information
For more information about scroll records and the mouse wheel, visit the following website:
https://www.allenbrowne.com/ser-70.html
Security Update MS12-060 Impairs Functionality of
Access Database
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After applying security update MS12-060 you may experience problems with your Access database if you are using
any of the Windows Common Controls associated with the MSCOMCTL.OCX file updated in the patch. Problems
may include hanging on opening an object that includes one of the controls, or error messages indicating that
events have been cancelled. Example error messages may include (but aren't limited to) the following:

Error 459: Object or class does not support the set of events.

2501: <EventName> action cancelled.

The expression<EventName> you entered as the event property setting produced the following error: Object of
class does not support the set of events.

Cause
Security update MS12--060 may cause certain ActiveX controls to fail to load properly within pre-existing Access
databases and when inserting controls in design view.

Resolution
Method 1: Apply the fix from the appropriate link below:
Office 2010: https://support.microsoft.com/kb/2597986
Office 2007: https://support.microsoft.com/kb/2687441
Office 2003: https://support.microsoft.com/kb/2687323
Method 2: Re-register MSCOMCTL.OCX from an elevated command prompt
1. Open a Command Prompt with elevated privileges.
2. If working on a 64-bit system, execute the following two commands:
Regsvr32 /u "C:\Windows\SysWOW64\MSCOMCTL.OCX"
Regsvr32 "C:\Windows\SysWOW64\MSCOMCTL.OCX"
3. If working on a 32-bit system, execute these commands instead:
Regsvr32 /u "C:\Windows\System32\MSCOMCTL.OCX"
Regsvr32 "C:\Windows\System32\MSCOMCTL.OCX"
Method 3: Manually update the registry
In some cases, registering and unregistering MSCOMCTL.OCX with elevated permissions won't be enough to fix the
problem in a database. In those situations, manual deletion of a registry key associated with MSCOMCTL.OCX may
be necessary.

IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows。

1. Quit all Office programs.


2. Click Start, then Run.
3. In the Open box, type "regedit" (without quotes) and click OK.
4. Browse to and remove the following 2.0 key from the registry:
HKEY_CLASSES_ROOT\TypeLib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0
5. Run steps 1-3 from Method 1 above.
Method 4: Execute a batch file to update your system automatically
NOTE : Backing up the registry is recommended prior to executing these steps.
1. Create a new text file and copy and paste the following to it:
reg delete hkcr\typelib\{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0 /f
if exist %systemroot%\SysWOW64\cscript.exe goto 64
%systemroot%\system32\regsvr32 /u mscomctl.ocx
%systemroot%\system32\regsvr32 mscomctl.ocx
exit
:64
%systemroot%\sysWOW64\regsvr32 /u mscomctl.ocx
%systemroot%\sysWOW64\regsvr32 mscomctl.ocx
Exit
2. Save the file.
3. Change the file extension from .TXT to .BAT.
4. Run the .BAT file by right-clicking on it and choosing 'Run as Administrator' (XP users can simply double-
click to run the file).
NOTE : You can remove the reg delete line from the batch file if you have found that you don't need to remove the
registry key listed above to get your application to work.
More Information
Controls associated with MSCOMCTL.OCX are listed in the Insert ActiveX Control dialog box as:
Microsoft ImageComboBox Control 6.0 (SP6)
Microsoft ImageList Control 6.0 (SP6)
Microsoft ListView Control 6.0 (SP6)
Microsoft ProgressBar Control 6.0 (SP6)
Microsoft Slider Control 6.0 (SP6)
Microsoft StatusBar Control 6.0 (SP6)
Microsoft TabStrip Control 6.0 (SP6)
Microsoft Toolbar Control 6.0 (SP6)
Microsoft TreeView Control 6.0 (SP6)
Note : The version number and service pack level may be something other than "6.0 (SP6)".
Problems have also surfaced in other Office products after adding the patch, though symptoms may be different
than those seen in Access. Removal of the registry key as noted above may not be necessary to address issues in
those cases.
See these KB articles for more information on the security update:
MS12-060: Description of the security update for Office 2010: August 14, 2012
MS12-060: Description of the security update for 2007 Office system: August 14, 2012
MS12-060: Description of the security update for Office 2003 and Office 2003 Web Components: August 14,
2012
How to shut down a custom Access application
remotely
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies only to a Microsoft Access database (.mdb or .accdb).

Summary
Sometimes, you may have to perform maintenance tasks on a Microsoft Access database, such as compacting or
repairing, making backup copies, or making design modifications. Many of these operations require that all users
exit the database. However, there is no built in way to force users to quit Microsoft Access. And it is not a good idea
to just disconnect the user from Network solutions. That can cause the database to become corrupted.
This article shows you one approach that you can use to gracefully shut down a front-end Access database
application. You can also use many of these concepts to compact or repair the database, make backup copies, and
so on.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.

More information
How the Solution Works
The solution works as follow. On a server, there is a file in a folder. This file can be named anything. For this solution,
a file named chkfile.ozx is used. When this file is renamed or deleted, it notifies the front-end Access application that
it has to close.
A form is built that opens when users start the front-end database application. This form checks for the existence of
the file on the server at a set interval. It uses the TimerInterval property and the OnTimer event to do this.
If the file is found, nothing happens. If the file is not found, the form will display another form to warn the user that
the database will be automatically closed in a specified amount of time.

NOTE
This solution does not use the MsgBox function to warn the user. The MsgBox function will wait for user input before it runs
any code. This would defeat the purpose of the solution.
To gracefully close client sessions, this solution renames the file that is being checked. When everything that has to
be accomplished is finished, this solution renames the file back to the original name. This lets the users know that
they can start the front-end database again.
This process can also be automated to provide unattended operation by using a scheduled service on the server
that renames chkfile.ozx at specified times.
Steps to Create a Sample Scenario
To demonstrate how this solution works, you will have to have the following:
A folder on your hard disk with a path of C:\MyData.
An empty file. This solution will check for the presence of this file.
A split database design with the tables in a back-end database file and links to that table in the front-end
database. The front-end database will contain the code that checks for the existence of the file at a set interval,
and then warns the user.
Creating the folder for the sample application
Create a folder in the root directory of drive C, and name it MyData.
Creating the empty text file
1. Create a new text file in the MyData folder, and name it chkfile.txt.
2. Rename the text file so that it has an extension of ozx (chkfile.ozx). When you are prompted, confirm that you
want to change the file extension.
Creating the back-end database
1. Create a new database in the C:\MyData folder, and name it Northwind_Be.mdb.
2. Import the Customers table from the Northwind sample database into the Northwind_Be.mdb database. (By
default, Northwind is located in the C:\Program Files\Microsoft Office\Office10\Samples.)
3. Close the database.
Creating the front-end database
1. Create another new database, and name it Northwind_Fe.mdb.
2. Link the Customers table from the Northwind_Be.mdb database into the new Northwind_Fe.mdb
3. Create an AutoForm based on the linked Customers table and save it as frmCustomers. Close this form.
Creating the form with code that checks for the existence of the file
1. Create an unbound form, and save it with the name frmAppShutDown. In a production database, this form
would normally always be open but not visible. For this sample, it can be left open as usual.
2. Set the TimerInterval property of the form to 60000 milliseconds. This is equal to one minute. (For your own
solution, you can increase or decease this time interval.)
3. In Microsoft Office Access 2003 or in earlier versions of Access, in Design view of the frmAppShutDown form,
click Code on the View menu. In Microsoft Office Access 2007, in Design view of the frmAppShutDown form,
click the Design tab, and then click View Code in the Tools group. Type or paste the following code:
Option Explicit
Dim boolCountDown As Boolean
Dim intCountDownMinutes As Integer

Private Sub Form_Open(Cancel As Integer)


' Set Count Down variable to false
' on the initial opening of the form.
boolCountDown = False
End Sub

Private Sub Form_Timer()


On Error GoTo Err_Form_Timer
Dim strFileName As String
strFileName = Dir("c:\MyData\chkfile.ozx")
If boolCountDown = False Then
' Do nothing unless the check file is missing.
If strFileName <> "chkfile.ozx" Then
' The check file is not found so
' set the count down variable to true and
' number of minutes until this session
' of Access will be shut down.
boolCountDown = True
intCountDownMinutes = 2
End If
Else
' Count down variable is true so warn
' the user that the application will be shut down
' in X number of minutes. The number of minutes
' will be 1 less than the initial value of the
' intCountDownMinutes variable because the form timer
' event is set to fire every 60 seconds
intCountDownMinutes = intCountDownMinutes - 1
DoCmd.OpenForm "frmAppShutDownWarn"
Forms!frmAppShutDownWarn!txtWarning = "This application will be shut down in approximately " &
intCountDownMinutes & " minute(s). Please save all work."
If intCountDownMinutes < 1 Then
' Shut down Access if the countdown is zero,
' saving all work by default.
Application.Quit acQuitSaveAll
End If
End If

Exit_Form_Timer:
Exit Sub

Err_Form_Timer:
Resume Next
End Sub

4. Save and then close the form.


Creating the form that will serve to warn the user

NOTE
Do not use the MsgBox function to warn the user. The MsgBox function will wait for user input before it runs any code. This
would defeat the purpose of the solution.

1. Create an unbound form, and name it frmAppShutDownWarn. Add the following text box control:

Name: txtWarning
Type: Textbox
2. Save and close the form.
3. Create a macro that will open the frmCustomer form and the frmAppShutDown form at startup. Name the
macro autoexec.
4. Close and reopen the database.
5. Rename chkfile.ozx to chkfile.old.
Timing of Solution Events

NOTE
All of the following times are approximate, and they start after the renaming of chkfile.ozx.
One minute or less: Northwind_FE.mdb will notice that the file being checked is missing.
Two minutes: A form will be opened in Northwind_FE.mdb, notifying you that the database will close in one minute.
Three minutes: Northwind_FE.mdb will automatically close, and save all work.
How to manually split a Access database in Microsoft
Access
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.

Summary
For various reasons, you may decide to split the database into either a front-end application or a back-end
application. The back-end database contains the tables and is stored on a file server. The front-end database that
links to the back-end tables contains all the forms, the queries, the reports, the macros, and the modules. The front-
end database is distributed to the workstations of the users.
This article describes how to split the database manually instead of by using the Database Splitter utility.

More information
To split the database in Microsoft Office Access 2003 and in earlier versions of Access, follow these steps:
1. Create a new blank Access database.
2. On the File menu, point to Get External Data, and then click Import.
3. Locate and select the database that you want to split.
4. On the Tables tab, click Select All , and then click OK .
Notice that Access imports all of the tables into the new database, which is your back-end database.
5. Store the new back-end database on a network share and make sure that all the users have full permissions
to the share.
6. Create a second new blank Access database.
7. On the File menu, point to Get External Data, and then click Link Tables.
8. Select the back-end database that you just created.
9. On the Tables tab, click Select All and then click OK .
Notice that Access links the tables in the back-end database to the front-end database.
10. On the File menu, point to Get External Data, and then click Import.
11. Select the original database that you are splitting, and then click Import.
12. On the Forms tab, click Select All. Repeat this step on all tabs except the Tables tab. Because you have already
linked to the tables, you now only need to import the rest of the objects.
13. After you have selected all of the objects except for tables, click OK .
Notice that you now have all the tables linked and have imported the remaining objects.
To split the database in Microsoft Office Access 2007 or a later version, follow these steps:
1. Create a new blank Access database.
2. On the External Data tab, click Access in the Impor t group.
3. In the Get External Data dialog box, click Browse to locate and select the database that you want to split,
click to select the Impor t tables, queries, forms, repor ts, macros, and modules into the current
database. check box, and then click OK .
4. In the Impor t Objects dialog box, click Select All on the Tables tab, and then click OK .
Notice that Access imports all of the tables into the new database, which is your back-end database.
5. Store the new back-end database on a network share, and make sure that all the users have full permissions
to the share.
6. Create a second new blank Access database.
7. On the External Data , click Access in the Impor t group.
8. In the Get External Data dialog box, click Browse to select the back-end database that you created, click to
select the Link to the data source by creating a linked table. check box, and then click OK .
9. In the Impor t Objects dialog box, click Select All on the Tables tab, and then click OK .
Notice that Access links the tables in the back-end database to the front-end database.
10. On the External Data , click Access in the Impor t group.
11. In the Get External Data dialog box, click Browse to select the original database that you are splitting, click
to select the Impor t tables, queries, forms, repor ts, macros, and modules into the current
database. check box, and then click OK .
12. In the Impor t Objects dialog box, click Select All on the Forms tab, repeat this step on all other tabs
except the Tables tab because you have already linked to the tables. You now only need to import the rest of
the objects, and then click OK .
Notice that you now have all the tables linked and have imported the remaining objects.
Notes
This database is the front-end database. You can distribute this front-end database to the workstations so that each
user has his own copy of the front-end database.
You have now successfully split your database, which will improve performance. Now when a user opens a form,
the form opens locally on their computer, and is not sent across the network. The only data that comes across the
network is the data in the linked tables.
Reasons Why You May Want to Split Your Database
The following are typical reasons to split a database:
You are sharing your database with multiple users on a network.
You have several people developing in the database and you do not have Microsoft Visual Source Safe installed.
You do not want your users to be able to make design changes to tables.
The most common reason to split a database is that you are sharing the database with multiple users on a network.
If you simply store the database on a network share, when your users open a form, query, macro, module, or
report, these objects have to be sent across the network to each individual who uses the database. If you split the
database, each user has their own copy of the forms, queries, macros, modules, and reports. Therefore, the only
data that must be sent across the network is the data in the tables.
Note To split the database, you can also use the Database Splitter utility.
Download information about the SQL Server Native
Client drivers that are used by Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains download information about the Microsoft SQL Server Native Client Drivers package. Certain
Microsoft Access features do not work correctly when these drivers are not installed.

NOTE
The SQL Server 2012 Feature Pack is a collection of stand-alone packages that provide additional features to SQL Server
2012. The SQL Server Native Client Drivers package is a subset of the Feature Pack.

More Information
To download the SQL Server Native Client Drivers package, click the following link as appropriate for the operating
system that you are running.
For the 32-bit version of SQL Server 2012:
32-bit SQL Server Native Client Drivers package
For the 64-bit version of SQL Server 2012:
64-bit SQL Server Native Client Drivers package
How to retrieve the selected items in a multiple
selection List Box as a comma-delimited string in
Microsoft Access
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

This article applies to either a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file,
and to a Microsoft Access project (.adp) file.
Moderate: Requires basic macro, coding, and interoperability skills.

Summary
This article describes how to retrieve selected items from a multiple selection list box and then store the selected
items as a comma-delimited string in Microsoft Access.

More Information
In Microsoft Access, the value of the MultiSelect property of the list box in a form or in a report determines whether
the list box is a single selection list box or a multiple selection list box. In a multiple selection list box, you can select
multiple list items at one time.
You can use the Value property of the list box to retrieve the selected item from the list box. However, when you use
a multiple selection list box and you try to retrieve the selected items by using the Value property, the Value
property returns Null.
You can retrieve the selected items in a multiple selection list box and then store the selected items as a comma-
delimited string programmatically. To do this, follow these steps:
1. Start Microsoft Access.
2. Open the Northwind sample database.
3. In the Objects section of the Database window, click Forms .
Note In Access 2007, click Form Design in the Forms group on the Create tab.
4. In the right pane, double-click Create form in Design view .
Note In Access 2007, skip this step.
5. Add the following controls to the form, and then set the properties of controls as specified:
List Box
----------------------------------------------------
Name : NamesList
Row Source Type : Table/Query
Row Source : SELECT FirstName FROM Employees
Multi Select : Extended
Width : 3.5"
Height : 0.75"

Text Box
-----------------------
Name : mySelections
Width : 3.5"
Height : 0.25"

Command Button
----------------------------------
Name : testmultiselect
Caption : Display Selected Items
Width : 1.375"
Height : 0.3"

Command Button
----------------------
Name : ClrList
Caption : Clear List
Width : 1.375"
Height : 0.3"

6. On the View menu, click Code .


Note In Access 2007, click View Code in the Tools group on the Design tab.
7. Paste the following code in the Visual Basic Editor:

Option Compare Database


Option Explicit

Private Sub Form_Current()


Dim oItem As Variant
Dim bFound As Boolean
Dim sTemp As String
Dim sValue As String
Dim sChar As String
Dim iCount As Integer
Dim iListItemsCount As Integer

sTemp = Nz(Me!mySelections.Value, " ")


iListItemsCount = 0
bFound = False
iCount = 0

Call clearListBox

For iCount = 1 To Len(sTemp) + 1


sChar = Mid(sTemp, iCount, 1)
If StrComp(sChar, ",") = 0 Or iCount = Len(sTemp) + 1 Then
bFound = False
Do
If StrComp(Trim(Me!NamesList.ItemData(iListItemsCount)), Trim(sValue)) = 0 Then
Me!NamesList.Selected(iListItemsCount) = True
bFound = True
End If
iListItemsCount = iListItemsCount + 1
Loop Until bFound = True Or iListItemsCount = Me!NamesList.ListCount
sValue = ""
sValue = ""
Else
sValue = sValue & sChar
End If
Next iCount
End Sub

Private Sub clearListBox()


Dim iCount As Integer

For iCount = 0 To Me!NamesList.ListCount


Me!NamesList.Selected(iCount) = False
Next iCount
End Sub

Private Sub testmultiselect_Click()


Dim oItem As Variant
Dim sTemp As String
Dim iCount As Integer

iCount = 0

If Me!NamesList.ItemsSelected.Count <> 0 Then


For Each oItem In Me!NamesList.ItemsSelected
If iCount = 0 Then
sTemp = sTemp & Me!NamesList.ItemData(oItem)
iCount = iCount + 1
Else
sTemp = sTemp & "," & Me!NamesList.ItemData(oItem)
iCount = iCount + 1
End If
Next oItem
Else
MsgBox "Nothing was selected from the list", vbInformation
Exit Sub 'Nothing was selected
End If

Me!mySelections.Value = sTemp
End Sub

Private Sub clrList_Click()


Call clearListBox
Me!mySelections.Value = Null
End Sub

8. Close the Visual Basic Editor.


9. Save the form as Form1.
10. Close the form.
11. Open the Form1 form in Form view:
a. In the Objects section of the Database Window, click Forms .
Note In Access 2007, in the navigation pane, click the Forms group.
b. In the right pane, right-click Form1 , and then click Open .
Note In Access 2007, right-click Form1 , and then click Open .
12. Select multiple items in the list box. To do this, click an item in the list box, hold down the CTRL key, and then
click more items in the list box.
13. Click Display Selected Items .
The items that are selected from the multiple selection list box are displayed as a comma-delimited string in the text
box.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
How to store, calculate, and compare Date/Time data
in Microsoft Access
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how Microsoft Access stores the Date/Time data type. This article also describes why you may
receive unexpected results when you calculate dates and times or compare dates and times.
This article describes the following topics:
Store Date/Time data
Format a Date/Time field
Calculate time data
Compare date data
Compare time data

More Information
Store Date/Time data
Access stores the Date/Time data type as a double-precision, floating-point number up to 15 decimal places. The
integer part of the double-precision number represents the date. The decimal portion represents the time.
Valid date values range from -657,434 (January 1, 100 A.D.) to 2,958,465 (December 31, 9999 A.D.). A date value of
0 represents December 30, 1899. Access stores dates before December 30, 1899 as negative numbers.
Valid time values range from .0 (00:00:00) to .99999 (23:59:59). The numeric value represents a fraction of one day.
You can convert the numeric value to hours, to minutes, and to seconds by multiplying the numeric value by 24.
The following table shows how Access stores Date/Time values:

DO UB L E N UM B ER DAT E P O RT IO N A C T UA L DAT E T IM E P O RT IO N A C T UA L T IM E

1.0 1 December 31, 1899 .0 12:00:00 A.M.

2.5 2 January 1, 1900 .5 12:00:00 P.M.

27468.96875 27468 March 15, 1975 .96875 11:15:00 P.M.

36836.125 36836 November 6, 2000 .125 3:00:00 A.M.

To view how Access stores Date/Time values as numbers, type the following commands in the Immediate window,
press ENTER, and then notice the results:
?CDbl(#5/18/1999 14:00:00#)
Result equals: 36298.5833333333
?CDbl(#12/14/1849 17:32:00#)
Result equals: -18278.7305555556
To view the date and the time of numeric values, type the following commands in the Immediate window, press
ENTER, and then notice the results:
?CVDate(1.375)
Result equals: 12/31/1899 9:00:00 AM
?CVDate(-304398.575)
Result equals: 8/1/1066 1:48:00 PM
Format a Date/Time field
You can format a Date/Time value to display a date, a time, or both. When you use a date-only format, Access stores
a value of 0 for the time portion. When you use a time-only format, Access stores a value of 0 for the date portion.
The following table shows how Access stores Date/Time values. The following table also shows how you can
display those values by using different formats:
|Stored value (double number)| Default format (General Date)| Custom format (mm/dd/yyyy hh:nn:ss A.M./P.M.)| |---
----------------|---------------------|-----------------------------| |36295.0| 5/15/99| 05/15/1999 12:00:00 AM|
|0.546527777777778| 1:07 PM| 12/30/1899 01:07:00 PM| |36232.9375| 3/13/99| 10:30PM 03/13/1999 10:30:00
PM|
Note The default format for a Date/Time value is General Date. If a value is date-only, no time appears. If the value
is time-only, no date appears.
Calculate time data
Because a time value is stored as a fraction of a 24-hour day, you may receive incorrect formatting results when
you calculate time intervals greater than 24 hours. To work around this behavior, you can create a user-defined
function to make sure that time intervals are formatted correctly.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. To correctly calculate and to format time intervals, follow
these steps:
1. Create a module, and then type the following line in the Declarations section if the following line is not
already there:
Option Explicit
2. Type the following procedure:
'------------------------------------------------------------------
' This function calculates the elapsed time between two values and then
' formats the result in four different ways.
'
' The function accepts interval arguments such as the following:
'
' #5/12/95 6:00:00AM# - #5/11/95 10:00:00PM#
'
'
'
' [End Time]-[Start Time]
'------------------------------------------------------------------

Function ElapsedTime (Interval)


Dim x
x = Int(CSng(Interval * 24 * 3600)) & " Seconds"
Debug.Print x
x = Int(CSng(Interval * 24 * 60)) & ":" & Format(Interval, "ss") _
& " Minutes:Seconds"
Debug.Print x
x = Int(CSng(Interval * 24)) & ":" & Format(Interval, "nn:ss") _
& " Hours:Minutes:Seconds"
Debug.Print x
x = Int(CSng(Interval)) & " days " & Format(Interval, "hh") _
& " Hours " & Format(Interval, "nn") & " Minutes " & _
Format(Interval, "ss") & " Seconds"
Debug.Print x

End Function

3. Type the following line in the Immediate window, and then press ENTER:
? ElapsedTime(#6/1/1999 8:23:00PM#-#6/1/1999 8:12:12AM#)
Notice that the following values appear:

43848 Seconds
730:48 Minutes:Seconds
12:10:48 Hours:Minutes:Seconds
0 days 12 Hours 10 Minutes 48 Seconds

Compare date data


Because dates and times are stored together as double-precision numbers, you may receive unexpected results
when you compare Date/Time data. For example, if you type the following expression in the Immediate window,
you receive a False result even if today's date is 3/31/1999:
? Now()=DateValue("3/31/1999")
The Now() function returns a double-precision number that represents the current date and the current time.
However, the DateValue() function returns an integer number that represents the date but not a fractional time
value. Therefore, Now() equals DateValue() only when Now() returns a time of 00:00:00 (12:00:00 A.M.).
To receive accurate results when you compare date values, use one of the following functions. To test each function,
type the function in the Immediate window, substitute the current date for 3/31/1999, and then press ENTER:
To return an integer value, use the Date() function:
?Date()=DateValue("3/31/1999")
To remove the fractional part of the Now() function, use the Int() function:
?Int(Now())=DateValue("3/31/1999")
Compare time data
When you compare time values, you may receive inconsistent results because a time value is stored as the
fractional part of a double-precision, floating-point number. For example, if you type the following expression in the
Immediate window, you receive a false (0) result even though the two time values look the same:
var1 = #2:01:00 PM#
var2 = DateAdd("n", 10, var1)
? var2 = #2:11:00 PM#
When Access converts a time value to a fraction, the calculated result may not be identical to the time value. The
small difference caused by the calculation is sufficient to produce a false (0) result when you compare a stored
value to a constant value.
To receive accurate results when you compare time values, use one of the following methods. To test each method,
type each method in the Immediate window, and then press ENTER:
Add an associated date to the time comparison:
var1 = #1/1/99 2:01:00 PM#
var2 = DateAdd("n", 10, var1)
? var2 = #1/1/99 2:11:00 PM#
Convert the time values to string data types before you compare them:
var1 = #2:01:00 PM#
var2 = DateAdd("n", 10, var1)
? CStr(var2) = CStr(#2:11:00 PM#)
Use the DateDiff() function to compare precise units such as seconds:
var1 = #2:01:00 PM#
var2 = DateAdd("n", 10, var1)
? DateDiff("s", var2, #2:11:00 PM#) = 0

References
For more information about calculating date values and time values, see DateSerial Function
For more information about how to format Date/Time data types, click Microsoft Access Help on the Help menu,
type format property - date/time data type in the Office Assistant or the Answer Wizard, and then click Search to
view the topic.
[SDP 3][b4abb87b-898d-4e51-b723-4151ec94c452]
Microsoft Access Support Diagnostic
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 2678469

Summary
The Microsoft Office Access Support Diagnostics Platform (SDP) manifest file is designed to collect relevant log
files, registry keys, client networking configuration, application logs, and important file details to help troubleshoot
common support issues. Additionally, a series of configuration checks are tested to determine whether you are
encountering the condition that is specified by the check.
This article provides details about the data that is collected by the Microsoft Office Access Baseline diagnostic.
NoteThe diagnostic that is described in this article can be used on the following versions of Windows:
Windows XP
Windows Server 2003
Windows Vista
Windows Server 2008
Windows 7
Windows 8
When you run the diagnostic, you are prompted with a message advising you that the application must be running
in order to collect certain information, as in the following screen shot:
Click Skip only if you are experiencing startup issues (for example, crashes) with the selected application.

NOTE
All file names in the data collection are prefaced by the <Computer_name> on which the Microsoft Support Diagnostic
Tool is run.
Some file names in the data collection include <full_path>. This is the full path of the file on the computer's hard disk.

Data collected
Add-ins installed for Microsoft Access

DESC RIP T IO N F IL E N A M E

TXT file containing a list of third-party add-ins {Computername}_3rd_party_addins.txt

TXT file containing a list of Microsoft add-ins {Computername}_msft_addins.txt

Third-party modules running under the Microsoft Access

DESC RIP T IO N F IL E N A M E

TXT file containing a list of third-party modules running under {Computername}_3rd_party_Modules.txt


the selected process

Resultant Set of Policy (RSoP) generated by GPResult.exe

DESC RIP T IO N F IL E N A M E

Output from running GPResult.exe. File is in .htm format {Computername}_GPResult.htm

Output from running GPResult.exe. File is in .txt format {Computername}_GPResult.txt

Application log
This contains events from the last 15 days, including those that were recorded in additional formats (.csv and .txt).
DESC RIP T IO N F IL E N A M E

Export of the Application log in .csv format {Computername}_evt_Application.csv

Export of the Application log in .evtx format; use Event Viewer {Computername}_evt_Application.evtx
to read

Export of the Application log in .txt format {Computername}_evt_Application.txt

System log
This contains events from the last 15 days, including those that were recorded in additional formats (.csv and .txt).

DESC RIP T IO N F IL E N A M E

Export of the System log in .csv format {Computername}_evt_System.csv

Export of the Application log in .evtx format {Computername}_evt_System.evtx

Export of the Application log in .txt format {Computername}_evt_System.txt

Environment variables
This is a text file that contains environment variables and their values. The same set of environment variables is a
subset of those that are displayed by running the Setcommand at a command prompt.

DESC RIP T IO N F IL E

Text file containing environment variables and their values {Computername}_EnvironmentVariables.txt

Uploaded files
This is a .zip file that contains one or more files that you selected to upload to Microsoft.

DESC RIP T IO N F IL E

A .zip file containing the file(s) that you selected to upload to {Computername}_File.zip
Microsoft

List of updates installed on the computer

DESC RIP T IO N F IL E N A M E

List of updates installed on the client in .csv format {Computername}_Hotfixes.csv

List of updates installed on the client in .htm format {Computername}_Hotfixes.htm

List of updates installed on the client in .txt format {Computername}_Hotfixes.txt

List of processes running on the computer

DESC RIP T IO N F IL E N A M E

List of processes and related services running on the {Computername}_Processes.txt


computer

Windows registry keys


These are text files that contain exported keys from the Windows registry.
DESC RIP T IO N F IL E N A M E

HKEY_CURRENT_USER\Software\Microsoft\Office {Computername}_reg_HKCU_Office.txt

HKEY_CURRENT_USER\Software\Policies {Computername}_reg_HKCU_Policies.txt

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows {Computername}_reg_HKLM_IFEO.txt
NT\CurrentVersion\Image File Execution Options
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows
NT\CurrentVersion\Image File Execution Options

HKEY_LOCAL_MACHINE\Software\Microsoft\Office {Computername}_reg_HKLM_Office.txt
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office

Networking details

DESC RIP T IO N F IL E N A M E

Text file containing network-related parameters {Computername}_SMB-Info.txt

Text file containing TCP/IP related information from the {Computername}_TcpIp-Info.txt


computer

Robust Office Inventory Scan output

DESC RIP T IO N F IL E N A M E

Text file containing a list of all installed applications of the {Computername}_ROIScan.log


supported Office families

List of dlls running under the Msaccess.exe process

DESC RIP T IO N F IL E N A M E

List of DLL files currently running under the Msaccess.exe {Computername}_msaccess_Process.csv


process; file is in .csv format

List of DLL files currently running under the Msaccess.exe {Computername}_msaccess_Process.txt


process; file is in .txt format

List of installed products

DESC RIP T IO N F IL E N A M E

CSV file containing a list of all installed products on the client {Computername}_Installed_Products.csv

Application and Windows Settings Summary

DESC RIP T IO N F IL E N A M E

Text file containing a summary report of application and msaccess_Configuration_Summary.txt


Windows settings

Identity logging information


DESC RIP T IO N F IL E N A M E

Zip file containing two files; MSOCredProv.txt and IdentityLogging.zip


msoidLitTrace{guid}.txt. These files contain identity logging
information related to the user account connecting to services
shown in the Account section of the BackStage.

Information on Click-to-Run Office 2013 installation

DESC RIP T IO N F IL E N A M E

Details on the files in the \Program Files\Microsoft Office _Sym_C2R_ProgramFilesCommonx86.CSV


15\root\vfs\programfilescommonxx86 folder and its _Sym_C2R_ProgramFilesCommonx86.TXT
subfolders. Files only collected on Click-to-Run installations of
Office 2013.

Details on the files in the \Program Files\Microsoft Office _Sym_C2R_ProgramFilesCommonx64.CSV


15\root\vfs\programfilescommonx64 folder and its subfolders. _Sym_C2R_ProgramFilesCommonx64.TXT
Files only collected on Click-to-Run installations of Office 2013.

Details on the Click-To-Run configuration, update policies and _Click-To-Run_Details.txt


user configuration

Microsoft Office Alerts log files


Events over the last five (5) days from the Microsoft Office Alerts log files.

DESC RIP T IO N F IL E N A M E

Export of the MicrosoftOffice Alertsevent log file in .csv {Computername}_evt_OAlerts.csv


format.

Export of the MicrosoftOffice Alertsevent log file in .evtx {Computername}_evt_OAlerts.evtx


format.

Export of the MicrosoftOffice Alertsevent log file in .txt format. {Computername}_evt_OAlerts.txt

Registry data related to Microsoft Access

DESC RIP T IO N ( REGIST RY K EY ) F IL E N A M E( S)

HKEY_CURRENT_USER\Software\Microsoft\Windows {Computername}_reg_Access_Devices.reg
NT\CurrentVersion\Devices {Computername}_reg_Access_Devices.txt
HKEY_CURRENT_USER\Software\Microsoft\Windows
NT\CurrentVersion\Windows\Device

HKEY_CLASSES_ROOT\.accda {Computername}_reg_Access_HKCR.reg
HKEY_CLASSES_ROOT\.accdb {Computername}_reg_Access_HKCR.txt
HKEY_CLASSES_ROOT\.accdc
HKEY_CLASSES_ROOT\.accde
HKEY_CLASSES_ROOT\.accdr
HKEY_CLASSES_ROOT\.accdt
HKEY_CLASSES_ROOT\.accdu
HKEY_CLASSES_ROOT\.accdw
HKEY_CLASSES_ROOT\.accft
HKEY_CLASSES_ROOT\.ade
HKEY_CLASSES_ROOT\.adn
HKEY_CLASSES_ROOT\.adp
HKEY_CLASSES_ROOT\.mda
HKEY_CLASSES_ROOT\.mdb
HKEY_CLASSES_ROOT\.mdb
HKEY_CLASSES_ROOT\.mde
DESC RIP T IO N ( REGIST RY K EY ) F IL E N A M E( S)
HKEY_CLASSES_ROOT\.mdn
HKEY_CLASSES_ROOT\.mdt
HKEY_CLASSES_ROOT\.mdw
HKEY_CLASSES_ROOT\.mdz
HKEY_CLASSES_ROOT\Access.Application
HKEY_CLASSES_ROOT\Access.Application.11
HKEY_CLASSES_ROOT\Access.Application.12
HKEY_CLASSES_ROOT\Access.Application.14
HKEY_CLASSES_ROOT\Access.Project
HKEY_CLASSES_ROOT\Access.Project.11
HKEY_CLASSES_ROOT\Access.Project.12
HKEY_CLASSES_ROOT\Access.Project.14
HKEY_CLASSES_ROOT\AccessAddin.ADE
HKEY_CLASSES_ROOT\AccessAddin.DC
HKEY_CLASSES_ROOT\AccessPW.14
HKEY_CLASSES_ROOT\AccSccHKEY_CLASSES_ROOT\AccScc.12
HKEY_CLASSES_ROOT\ADOConnectObject.ADOConnectObject
HKEY_CLASSES_ROOT\ADOConnectObject.ADOConnectObject.7
HKEY_CLASSES_ROOT\ADODB.Command
HKEY_CLASSES_ROOT\ADODB.Command.6.0
HKEY_CLASSES_ROOT\ADODB.Connection
HKEY_CLASSES_ROOT\ADODB.Connection.6.0
HKEY_CLASSES_ROOT\ADODB.Error
HKEY_CLASSES_ROOT\ADODB.Error.6.0
HKEY_CLASSES_ROOT\ADODB.ErrorLookup
HKEY_CLASSES_ROOT\ADODB.ErrorLookup.6.0
HKEY_CLASSES_ROOT\ADODB.Parameter
HKEY_CLASSES_ROOT\ADODB.Parameter.6.0
HKEY_CLASSES_ROOT\ADODB.Record
HKEY_CLASSES_ROOT\ADODB.Record.6.0
HKEY_CLASSES_ROOT\ADODB.Recordset
HKEY_CLASSES_ROOT\ADODB.Recordset.6.0
HKEY_CLASSES_ROOT\ADODB.Stream
HKEY_CLASSES_ROOT\ADODB.Stream.6.0
HKEY_CLASSES_ROOT\ADOMD.Catalog
HKEY_CLASSES_ROOT\ADOMD.Catalog.6.0
HKEY_CLASSES_ROOT\ADOMD.Cellset
HKEY_CLASSES_ROOT\ADOMD.Cellset.6.0
HKEY_CLASSES_ROOT\ADOX.Catalog
HKEY_CLASSES_ROOT\ADOX.Catalog.6.0
HKEY_CLASSES_ROOT\ADOX.Column
HKEY_CLASSES_ROOT\ADOX.Column.6.0
HKEY_CLASSES_ROOT\ADOX.Group
HKEY_CLASSES_ROOT\ADOX.Group.6.0
HKEY_CLASSES_ROOT\ADOX.Index
HKEY_CLASSES_ROOT\ADOX.Index.6.0
HKEY_CLASSES_ROOT\ADOX.Key
HKEY_CLASSES_ROOT\ADOX.Key.6.0
HKEY_CLASSES_ROOT\ADOX.Table
HKEY_CLASSES_ROOT\ADOX.Table.6.0
HKEY_CLASSES_ROOT\ADOX.User
HKEY_CLASSES_ROOT\ADOX.User.6.0
HKEY_CLASSES_ROOT\CLSID\{00000507-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{0000050B-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000514-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{0000051A-0000-0010-8000-
00AA006D2EA4}
00AA006D2EA4}
DESC RIP T IO N ( REGIST RY K EY )
HKEY_CLASSES_ROOT\CLSID\{00000535-0000-0010-8000- F IL E N A M E( S)
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000541-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000542-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000560-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000566-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000602-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000609-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000615-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000618-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{0000061B-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{0000061E-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\CLSID\{00000621-0000-0010-8000-
00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000507-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{0000050B-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000514-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{0000051A-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000535-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000541-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000542-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000560-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000566-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000602-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000609-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000615-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000618-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{0000061B-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{0000061E-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{00000621-0000-
0010-8000-00AA006D2EA4}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{3BE786A0-0366-
4F5C-9434-25CF162E475E}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{3BE786A0-0366-
4F5C-9434-25CF162E475F}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{3B83A43E-3F73-
4A35-BC00-E5726F517DBF}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{039EA4C0-E696-
11d0-878A-00A0C91EC756}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{dee35070-506b-
11cf-b1aa-00aa00b8de95}
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{dee35071-506b-
11cf-b1aa-00aa00b8de95}
HKEY_CLASSES_ROOT\Wow6432Node\TypeLib\{4AC9E1DA-5BAD-
4AC7-86E3-24F4CDCECA28}\c.0\0\win32
HKEY_CLASSES_ROOT\Wow6432Node\TypeLib\{00025E01-0000-
DESC RIP T IO N ( REGIST RY K EY )
0000-C000-000000000046}\5.0\0\win32 F IL E N A M E( S)
HKEY_CLASSES_ROOT\CLSID\{3BE786A0-0366-4F5C-9434-
25CF162E475E}
HKEY_CLASSES_ROOT\CLSID\{3BE786A0-0366-4F5C-9434-
25CF162E475F}
HKEY_CLASSES_ROOT\CLSID\{3B83A43E-3F73-4A35-BC00-
E5726F517DBF}
HKEY_CLASSES_ROOT\CLSID\{039EA4C0-E696-11d0-878A-
00A0C91EC756}
HKEY_CLASSES_ROOT\CLSID\{dee35070-506b-11cf-b1aa-
00aa00b8de95}
HKEY_CLASSES_ROOT\CLSID\{dee35071-506b-11cf-b1aa-
00aa00b8de95}
HKEY_CLASSES_ROOT\TypeLib\{4AC9E1DA-5BAD-4AC7-86E3-
24F4CDCECA28}\c.0\0\win32
HKEY_CLASSES_ROOT\TypeLib\{00025E01-0000-0000-C000-
000000000046}\5.0\0\win32

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet {Computername}_reg_Access_Jet.reg
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet {Computername}_reg_Access_Jet.txt

HKEY_CURRENT_USER\Software\ODBC {Computername}_reg_Access_ODBC.reg
{Computername}_reg_Access_ODBC.txt

HKEY_CURRENT_USER\Software\Classes\Access.Application {Computername}_reg_Access_HKCU.reg
{Computername}_reg_Access_HKCU.txt

Folder contents collected with important files for Microsoft Access

F O L DER PAT H F IL E N A M E( S)

%CommonProgramFiles%\microsoft shared\Office11 {Computername}_sym_Office11.txt


%CommonProgramFiles(x86)%\microsoft shared\Office11 {Computername}_sym_Office11.csv
%CommonProgramFiles%\microsoft shared\Office12 {Computername}_sym_Office12.txt
%CommonProgramFiles(x86)%\microsoft shared\Office12 {Computername}_sym_Office12.csv
%CommonProgramFiles%\microsoft shared\Office14 {Computername}_sym_Office14.txt
%CommonProgramFiles(x86)%\microsoft shared\Office14 {Computername}_sym_Office15.csv
%CommonProgramFiles%\system\ado

Access Database Summary Report

DESC RIP T IO N F IL E N A M E( S)

Summary of current database in .txt format {Computername}_DB_Summary.txt

Link-local Multicast Name Resolution (LLMNR) Settings

DESC RIP T IO N F IL E N A M E( S)

Summary of LLMNR settings in .txt format {Computername}_LLMNR.txt

References
2598970 Information about the Microsoft Automated Troubleshooting Services and Support Diagnostic Platform
Switchboard Manager does not appear in the ribbon
4/21/2020 • 2 minutes to read • Edit Online

Symptoms
When trying to create a new switchboard form in an .accdb client database in recent versions of Microsoft Access,
you are unable to locate the Switchboard Manager option in the ribbon. In a .mdb database, the Switchboard
Manager option appears in the Administer group on the Database Tools tab; however, the Administer group
does not appear on the ribbon in an .accdb file.

Cause
The Switchboard Manager option is deprecated from the Database Tools tab for .accdb databases starting in Access
2010.

Resolution
You can launch the Switchboard Manager in an .accdb file in Access 2010 or later by using one of the following
methods:
Method 1: Run the Switchboard Manager by using VBA Code
1. Open the Visual Basic Editor by pressing Ctrl+G.
2. In the Immediate Window, type the following command:

DoCmd.RunCommand acCmdSwitchboardManager

3. In the Microsoft Access window, you will see the message "The Switchboard Manager was unable to find a
valid switchboard in this database. Would you like to create one?" Click Yes .
Method 2: Run the Switchboard Manager by creating a macro
1. On Microsoft Access ribbon, select the Create tab. In the Macros & Code group, click Macro .
2. Select the action RunMenuCommand .
3. Select the command SwitchboardManager .
4. Save the macro and run it.
5. You will see the message "The Switchboard Manager was unable to find a valid switchboard in this database.
Would you like to create one?" Click Yes .
Method 3: Customize the ribbon by creating a custom group and adding the "Switchboard Manager" command
1. Open your .accdb client database in Microsoft Access.
2. Select the File tab > Options > Customize Ribbon .
3. In the right column, highlight Database Tools .
4. Click New Group . Click Rename to name the group "Switchboard."
5. In the Choose commands from combo box at the top of the window, select All Commands
6. Scroll down and highlight Switchboard Manager .
7. Click Add to add the Switchboard Manager to the new group you created under the Database Tools tab.
8. Click Ok to close the Access Options
9. You should now see the Switchboard Manager under the Database Tools tab.
NOTE
If you use Method 3, you will see both the Switchboard group and the Administer group on the Database Tools tab in a
.mdb file in Microsoft Access.
How to synchronize two combo boxes on a form in
Microsoft Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 289670

NOTE
Requires basic macro, coding, and interoperability skills. This article applies to a Microsoft Access database (.mdb/.accdb) and
to a Microsoft Access project (.adp).

Summary
This article describes how to synchronize two combo boxes so that when you select an item in the first combo box,
the selection limits the choices in the second combo box.

NOTE
This article explains a technique that is demonstrated in the sample file, FrmSmp00.mdb.

More Information
The following example uses the sample database Northwind.mdb. The first combo box lists the available product
categories, and the second combo box lists the available products for the category selected in the first combo box:
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
1. Open the sample database Northwind.mdb.
2. Create a new form that is not based on any table or query with the following combo boxes, and then save
the form as Categories And Products.
Combo Box 1
-------------------------------
Name: Categories
RowSourceType: Table/Query
RowSource: Categories
ColumnCount: 2
ColumnWidths: 0";1"
BoundColumn: 1
AfterUpdate: [Event Procedure]

Combo Box 2
--------------------------
Name: Products
RowSourceType: Table/Query
ColumnWidths: 2"
Width: 2"

NOTE
If you are in an Access project, the RowSourceType will be Table/View/StoredProc.

3. Add the following code to the AfterUpdate event procedure of the Categories combo box:

Me.Products.RowSource = "SELECT ProductName FROM" & _


" Products WHERE CategoryID = " & Me.Categories & _
" ORDER BY ProductName"
Me.Products = Me.Products.ItemData(0)

4. View the Categories And Products form in Form view.

NOTE
When you select a category in the first combo box, the second combo box is updated to list only the available
products for the selected category.

Notes
In this example, the second combo box is filled with the results of an SQL statement. This SQL statement finds all
the products that have a CategoryID that matches the category that is selected in the first combo box.
Whenever a category is selected in the first combo box, the AfterUpdate property runs the event procedure, which
sets the second combo box's RowSource property. This refreshes the list of available products in the second combo
box. Without this procedure, the contents of the second combo box would not change.
Description of troubleshooting corruption in an Office
Access 2003 database
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 824271

NOTE
This article applies only to a Microsoft Access database (.mdb and .accdb).
Novice: Requires knowledge of the user interface on single-user computers.
For more information, see Compact and repair a database.

In a Microsoft Office Access 2003 database, corruption in your database may occur for a number of reasons. This
article contains a list of references that may help you to resolve corruption in your database.

Troubleshooting and preventing database corruption


The following Knowledge Base article contains the troubleshooting steps that Support Professionals follow when
they try to recover a corrupted database.
For additional information about troubleshooting and about repairing an Access database, see the following article:
How to troubleshoot and repair a damaged Access 2002 or later database

Data recovery
After you complete reading the troubleshooting articles that are listed earlier in this article, even if you still cannot
recover your database, your data may be recoverable. There are a number of third-party companies that specialize
in data recovery.
The following companies are known to specialize in data recovery. You may be able to find additional companies
that specialize in this area by searching the Internet.
For additional information, visit the Action Front Data Recovery Labs Web site:
http://www.actionfront.com/
For additional information, visit the PK Solutions Web site:
http://www.pksolutions.com/
For additional information, visit the OfficeRecovery.com Web site:
http://www.officerecovery.com/access/index.htm
Microsoft provides third-party contact information to help you find technical support. This contact information may
change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.

Technical support from Microsoft Support Professionals


Microsoft Support professionals can help you walk through the steps that are included in the referenced articles.
Although Support Professionals can help you troubleshoot your database, Microsoft cannot guarantee that an
Access database can be recovered or that data can be recovered during this process. Because a Support
Professional will be working with your database, support of this nature is considered Advisory Services level
support.

Contacting Advisory Services


Microsoft Advisory Services is an hourly fee-based, consultative support option that provides proactive support
beyond your break-fix product maintenance needs. This is a remote, phone-based support option that includes
working with the same technician for assistance with issues like product migration, code review, or new program
development. This service is typically used for shorter engagements, and is designed for developers and IT
professionals who do not require the traditional onsite consulting or sustained account management services that
are available from other Microsoft support options.
For information on Microsoft Advisory Services, refer to this Microsoft Web site: Support for business.
How to troubleshoot errors that may occur when you
update data in Access queries and forms
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 328828

NOTE
Requires basic macro, coding, and interoperability skills. This article applies to a Microsoft Access database (.mdb and .accdb)
and to a Microsoft Access project (.adp).

This article describes errors that may occur in Microsoft Access when you update data in queries and in forms. This
article also describes the causes of the errors and how to troubleshoot those errors.
When you try to update data in a query or in a form, you may receive one of the following error messages:

Operation must use an updatable query.

-or-

This Recordset is not updateable.

Troubleshooting information about problems that may occur when you


update data in a query
When the query is based on three or more tables and there is a many-to-one-to-many relationship, you
cannot update the data directly in the query. You can update the data in a form or in a data access page. You
can do this based on the query when the RecordsetType property of the form is set to Dynaset (Inconsistent
Updates).
When the query is a crosstab query, you cannot update the data in the query.
When the query is a Microsoft SQL pass-through query, you cannot update the data in the query.
When the query is calculating a sum, an average, a count, or other type of total on the values in a field, you
cannot update data in the query. Also, you cannot update a query that references a field in the Update To
row from a crosstab, a query, a select query, or a subquery that contains totals or aggregate functions. To
work around this problem, use the Domain Aggregate function in the Update To row of an update query.
You can reference fields from a crosstab query, a select query, or a subquery that contain totals or aggregate
functions.
When the query is a Union query, you cannot update data in the query.
When the Unique Values property of the query is set to Yes , you cannot update data in the query. To work
around this problem, set the Unique Values property of the query to No .
When the query includes a linked ODBC table with no unique index or a Paradox table without a primary
key, you cannot update data in the query. To work around this problem, add a primary key or a unique index
to the linked table.
When you do not have Update Data permissions for the query or the underlying table, you cannot update
data. To resolve this problem, assign permissions to update the data.
When the query includes more than one table or one query, and the tables or the queries are not joined by a
join line in Design view, you cannot update data in the query. To resolve this problem, you must join the
tables correctly so you can update them.
When the field that you want to update is a calculated field, you cannot update data in the query.
When the field that you try to update is read-only, the database is open as read-only, or the database is
located on a read-only drive, you cannot update data in the query. To avoid this problem, do not open the
database as read-only. If the database is located on a drive that is read-only, remove the read-only attribute
from the drive or move the database to a drive that is not read-only.
When the field in the record that you try to update is deleted or is locked by another user, you cannot update
data in the query. A locked record can be updated as soon as the record is unlocked.
When the query is based on tables with a one-to-many relationship, then the types of fields that you may
not be able to modify are as follows:
Join field from the "one" side.
The "many" side join field does not appear in the datasheet.
Join field from the "many" side after you update data on the "one" side.
A blank field from the table on the "one" side of a one-to-many relationship with an outer join exists.
The whole unique key of the ODBC table is not the output.
You can resolve any one of these problems if you take the correct action from the following list:
Enable cascading updates between the two tables.
Add the join field from the "many" side to your query so you can add new records.
Save the record. You can make changes to the "many" side join field.
Enter values in fields from the table on the "many" side. You can do this only when the joined field from
the "one" side contains a value for that record.
Select all primary key fields of the ODBC tables to allow inserts to them.

Troubleshooting information about problems that may occur when you


update data in a form
You cannot update data in a form if the form is based on a stored procedure with more than one table.
You cannot update data in a form when you try to update data on a data access page, and one of the
following conditions is true:
The data source of the page does not have a primary key, a unique constraint, or a unique index.
There is no primary key, no unique constraint, or no unique index in the schema of the page.
The page does not have a RECORD NAVIGATION control.
To resolve these problems, take the appropriate action from the following list:
Add a primary key, a unique constraint, or a unique index to the data source of the page.
Add a primary key, a unique constraint, or a unique index to the schema of the page.
To add one of these fields to the schema, add a primary key, a unique constraint, or a unique index
field to the design of the page. This automatically adds the field to the schema of the page. If you do
not want this field to appear on the page, delete it from the page. This permits the field to remain in
the schema.
Add a RECORD NAVIGATION control to the page.
You cannot update data in a form if the form is based on an ActiveX Data Objects (ADO) recordset. Access
forms permit you to edit data from an ADO recordset if the ADO recordset is created by using a combination
of the MSDataShape and the SQL Server OLEDB providers.
You cannot connect directly to FoxPro databases in
Access 2007 and in Access 2003
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 824264

NOTE
This article applies only to a Microsoft Access database (.mdb or .accdb). Requires basic macro, coding, and interoperability
skills.

Symptoms
In Microsoft Office Access 2007 and in Microsoft Office Access 2003, you may not be able to import, export, or link
to Microsoft FoxPro databases directly because the Impor t , Expor t , and Link dialog boxes do not include the
FoxPro database as an option in the Files of type list.

Cause
This problem occurs because the Microsoft FoxPro ISAM driver is not included in Access 2007 and in Access 2003.

Resolution
Import from a FoxPro database
To import data from a FoxPro database, use the Microsoft Visual FoxPro ODBC driver. To do so, follow these steps:
1. Click Star t , and then click Control Panel .
2. In Control Panel , double-click Administrative Tools .
3. In the Administrative Tools window, double-click Data Sources (ODBC) , and then add a new ODBC data
source for your FoxPro database or tables by selecting the appropriate Visual FoxPro driver.
4. Start Access, and then open your Access database.
5. On the File menu, point to Get External Data , and then click Impor t .

NOTE
If you use Access 2007, click More in the Impor t group on the External Data tab, and then select ODBC
Database .

6. In the Impor t dialog box, click ODBC Databases in the Files of type list.
NOTE
If you use Access 2007, click to select the Impor t the source data into a new table in the current database
option in the Select the source and destination of the data dialog box, and then click OK .

7. In the Select Data Source dialog box, click the Visual FoxPro data source that you created in step 3, and
then click OK .
8. In the Impor t Objects dialog box, click the tables that you want to link, and then click OK .
Link to a FoxPro database
To link to a FoxPro database, use the Microsoft Visual FoxPro ODBC driver. To do so, follow these steps:
1. Click Star t , and then click Control Panel .
2. In Control Panel , double-click Administrative Tools .
3. In the Administrative Tools window, double-click Data Sources (ODBC) , and then add a new ODBC data
source for your FoxPro database or tables by selecting the appropriate Visual FoxPro driver.
4. Start Microsoft Access, and then open your Access database.
5. On the File menu, point to Get External Data , and then click Link Tables .

NOTE
If you use Access 2007, click More in the Impor t group on the External Data tab, and then select ODBC
Database .

6. In the Link dialog box, click ODBC Databases in the Files of type list.

NOTE
If you use Access 2007, click to select the Link to the data source by creating a linked table option in the
Select the source and destination of the data dialog box, and then click OK .

7. In the Select Data Source dialog box, click the Visual FoxPro data source that you created in step 3, and
then click OK .
8. In the Link Tables dialog box, click the tables that you want to import, and then click OK .
Export to a FoxPro database
To export data to a FoxPro database, use the Microsoft Visual FoxPro ODBC driver. To do so, follow these steps:
1. Click Star t , and then click Control Panel .
2. In Control Panel , double-click Administrative Tools .
3. In the Administrative Tools window, double-click Data Sources (ODBC) , and then add a new ODBC data
source for your FoxPro database or tables by selecting the appropriate Visual FoxPro driver.
4. Start Microsoft Access, and then open your Access database.
5. On the File menu, click Expor t .
NOTE
If you use Access 2007, follow these steps:
1. Click the Microsoft Office button, and then click Access Options .
2. In the list in the left pane, click Customize .
3. In the Choose commands from list, select All commands .

6. In the Expor t Table 'tablename' To... dialog box, click ODBC Databases in the Save as type list.

NOTE
If you use Access 2007, follow these steps:
1. Click Expor t selected object to an ODBC database , click Add , and then click OK .
2. On the Quick Access toolbar, click Expor t selected object to an ODBC database .

7. In the Expor t dialog box, type the name of the new table, and then click OK .
8. In the Select Data Source dialog box, click the Visual FoxPro data source that you created in step 3, and
then click OK .

More Information
In earlier versions of Access and the Microsoft Jet database engine, you can move data between FoxPro databases
and Access databases. The Microsoft FoxPro ISAM driver connects Access to FoxPro databases. However, the
Microsoft FoxPro ISAM driver is not included in Access 2000 and later. As a result, you can no longer access FoxPro
data through the Microsoft Jet database engine. You can only access FoxPro data by using the Microsoft Visual
FoxPro ODBC driver.
Steps to reproduce the problem in Access 2003
1. Open an Access database.
2. On the File menu, point to Get External Data , and then click Impor t .
3. In the Impor t dialog box, click the Files of type list.

NOTE
The Microsoft FoxPro ISAM driver is not listed in the Files of type list.

References
For more information about how to set up ODBC data sources, click Microsoft Office Access Help on the Help
menu, typeset up or change ODBC data sourcesin the Search for box in the Assistance pane, and then click Star t
searching to view the topic.
"Unable to create an MDE, ACCDE, or ADE database"
error with a database that you can't compile
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 283788

NOTE
Requires basic macro, coding, and interoperability skills. This article applies to a Microsoft Access database (.mdb/.accdb) and
to a Microsoft Access project (.adp).

Symptoms
When you try to save a Microsoft Access database as an ACCDE or MDE file, you may receive the following error
message and the ACCDE file isn't created.

Microsoft Access was unable to create the .accde, .mde, or .ade file.

When you try to save a Microsoft Access database as a MDE file, you may receive the following error message and
the MDE file isn't created.

Microsoft Access was unable to create an MDE database.

When you try to save a Microsoft Access project as an ADE file, you may receive the following error message and
the ADE file isn't created.

Microsoft Access was unable to create an ADE database.

Cause
You may receive this error message if either of the following conditions is true:
There is an error in the Visual Basic for Applications code that prevents you from compiling the database or
project.
There is a reference to an Access database (.mdb/.accdb) or an Access project (.adp).

Resolution
1. Correct any problems in the code that prevent you from compiling the database or project.
2. Remove any references to .mdb, .accdb, and .adp files.
If you need to maintain a reference to a .mdb, .accdb, or .adp file, convert that file into an MDE, ACCDE or an ADE
file, and then create a reference to the new file. You should now be able to convert the database or project to an
MDE, ACCDE or an ADE file.

Steps to reproduce the behavior


1. Create a new database.
2. Press ALT+F11 to open the Visual Basic Editor.
3. On the Inser t menu, click Module .
4. Type the following code:

Sub Generate_Compile_Error()
MsgBoxx "This will cause an error"
End Sub

5. On the File menu, click Save projectname .


6. Press ALT+F11 to return to Microsoft Access.
7. On the Tools menu, point to Database Utilities , and then click Make MDE File .
You receive the error message that is mentioned in the "Symptoms" section of this article.
"This record has been changed by another user" error
when you save an edited record in Access
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 837937

NOTE
This article applies only to a Microsoft Access project (.adp). Requires basic macro, coding, and interoperability skills.

Symptoms
When you edit a record in a form that is based on a multi-table view, and you are working in a multi-user
environment, you may be unsuccessful when you try to save the changes to the record. You may also receive the
following error message in the Write Conflict dialog box:

This record has been changed by another user since you started editing it. If you save the record, you will
overwrite the changes the other user made.
Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your
changes back in if you decide to make the changes.

If you click either Copy to Clipboard or Drop Changes in the Write Conflict dialog box, you may notice that
the changes that you made to the record are undone, and that the changes to the record that were made by the
other user are now visible. However, if you edit the same record again, and you try to save the record, you may
receive the error message that is mentioned in the "Symptoms" section again.
You may also notice the error message that is mentioned in the "Symptoms" section intermittently when you click
Save Record .

NOTE
You may not see this behavior when you use Microsoft Access 2000.

Workaround
To work around this problem, use one of the following methods:
Update the form that is based on the multi-table view
On the first occurrence of the error message that is mentioned in the "Symptoms" section, you must click
either Copy to Clipboard or Drop Changes in the Write Conflict dialog box. To avoid the repeated
occurrence of the error message that is mentioned in the "Symptoms" section, you must update the
recordset in the form before you edit the same record again.
Notes
To update the form in Access 2003 or in Access 2002, click Refresh on the Records menu.
To update the form in Access 2007, click Refresh All in the Records group on the Home tab.
Use a main form with a linked subform
To avoid the repeated occurrence of the error message that is mentioned in the "Symptoms" section, you can
use a main form with a linked subform to enter data in the related tables. You can enter records in both
tables from one location without using a form that is based on the multi-table view.
To create a main form with a linked subform, follow these steps:
1. Create a new form that is based on the related (child) table that is used in the multi-table view. Include
the required fields on the form.
2. Save the form, and then close the form.
3. Create a new form that is based on the primary table that is used in the multi-table view. Include the
required fields on the form.
4. In the Database window, add the form that you saved in step 2 to the main form.
This creates a subform.
5. Set the Link Child Fields property and the Link Master Fields property of the subform to the
name of the field or fields that are used to link the tables.

Status
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

More Information
In a multi-user environment, Microsoft Access project (.adp) uses a technique that is named optimistic record
locking to handle record contention. Therefore, when more than one user is working with the same record at the
same time, one of the users may receive the error message that is mentioned in the "Symptoms" section. However,
the error message that is mentioned in the "Symptoms" section may also intermittently appear when all the
following conditions are true:
The form is based on a multi-table view.
The multi-table view is based on the tables that are involved in a parent-child relationship.
The record that is being edited has been changed and committed by another user since you began editing the
record.
You may notice that the same problem occurs when you use the multi-table view directly in a multi-user
environment.
Steps to reproduce the problem
1. Start Access.
2. Open the NorthwindCS.adp sample database project.
3. In the Database window, click Queries in the Objects section.

NOTE
In Access 2007, click Quer y Wizard in the Other group on the Create tab.
4. In the right pane, double-click Create view in designer .

NOTE
In Access 2007, in the New Quer y dialog box, click Design View , and then click OK .

5. In the Add Table dialog box, double-click both Orders and Order Details on the Tables tab, and then click
Close .
6. Type or paste the following query in the SQL pane:

SELECT
dbo.Orders.OrderID,
dbo.[Order Details].ProductID,
dbo.[Order Details].Quantity,
dbo.Orders.ShipName
FROM
dbo.Orders
INNER JOIN
dbo.[Order Details]
ON
dbo.Orders.OrderID = dbo.[Order Details].OrderID

Notes

NOTE
In Access 2003 or in Access 2002, if the SQL pane is not visible, point to Show Panes on the View menu, and
then click SQL .
In Access 2007, on the Design tab, click SQL in the Tools group to open the SQL pane.

7. Save the view asOrderView.


8. On the View menu, click Datasheet View .

NOTE
In Access 2007, on the Design tab, click the arrow under View , and then click Datasheet View .

9. Edit a record in the OrderView view.

NOTE
Make sure that the record has not been saved.

10. Open another instance of the NorthwindCS.adp sample database project.


11. Edit the same record that you edited in step 9.
12. On the Records menu, click Save Record .

NOTE
In Access 2007, click Microsoft Office Button , and then click Save .
You may receive the error message that is mentioned in the "Symptoms" section.
How to use the Attributes property for TableDef
objects in Access
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 210362

NOTE
Requires expert coding, interoperability, and multiuser skills. This article applies only to a Microsoft Access database
(.mdb/.accdb).

Summary
You can use the Attributes property of a TableDef object to determine specific table properties. For example, you
can use the Attributes property to find whether a table is a system table or a linked (attached) table.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.NOTE: The sample code in this article uses Microsoft Data
Access Objects. For this code to run properly, you must reference the Microsoft DAO 3.6 Object Library. To do so,
click References on the Tools menu in the Visual Basic Editor, and make sure that the Microsoft DAO 3.6 Object
Library check box is selected.

TableDef attributes
The Attributes property of a TableDef object specifies characteristics of the table represented by the TableDef
object. The Attributes property is stored as a single Long Integer and is the sum of the following Long constants:

C O N STA N T DESC RIP T IO N

dbAttachExclusive For databases that use the Microsoft Jet database engine,
indicates the table is a linked table opened for exclusive use.

dbAttachSavePWD For databases that use the Jet database engine, indicates the
user ID and password for the linked table should be saved
with the connection information.

dbSystemObject Indicates the table is a system table.

dbHiddenObject Indicates the table is a hidden table (for temporary use).


C O N STA N T DESC RIP T IO N

dbAttachedTable Indicates the table is a linked table from a non-Open Database


Connectivity (ODBC) database, such as Microsoft Access or
Paradox.

dbAttachedODBC Indicates the table is a linked table from an ODBC database,


such as Microsoft SQL Server or ORACLE Server.

For a TableDef object, use of the Attributes property depends on the status of TableDef , as the following table
shows:

TA B L EDEF USA GE

Object not appended to collection Read/write

Base table Read-only

Linked table Read-only

When checking the setting of this property, you can use the AND operator to test for a specific attribute. For
example, to determine whether a table object is a system table, perform a logical comparison of the TableDef
Attributes property and the dbSystemObject constant.

Sample code
NOTE
The sample code in this article uses Microsoft Data Access Objects. For this code to run properly, you must reference the
Microsoft DAO 3.6 Object Library. To do so, click References on the Tools menu in the Visual Basic Editor, and make sure
that the Microsoft DAO 3.6 Object Librar y check box is selected.

The following user-defined sample function loops through all the tables in a database and displays a message box
listing each table name and whether or not the table is a system table:
Option Compare Database 'Use database order for string comparisons.

Option Explicit

Function ShowTableAttribs()
Dim DB As DAO.Database
Dim T As DAO.TableDef
Dim TType As String
Dim TName As String
Dim Attrib As String
Dim I As Integer

Set DB = CurrentDB()

For I = 0 To DB.Tabledefs.Count - 1
Set T = DB.Tabledefs(I)
TName = T.Name
Attrib = (T.Attributes And dbSystemObject)
MsgBox TName & IIf(Attrib, ": System Table", ": Not System" & _
"Table")
Next I

End Function

References
For more information about the Attributes property, click Microsoft Visual Basic Help on the Help menu, type
object properties in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.
How to use the Common Dialog API in a database in
Access 2003 or Access 2007
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 888695

INTRODUCTION
This article describes how to use the Common Dialog API in Microsoft Office Access 2003 or in Microsoft Office
Access 2007 to replace the Common Dialog Box functionality. The functionality is included only in the Microsoft
Office 2000 Developer Edition or in the Microsoft Office XP Developer Edition.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.

Steps to replace the Common Dialog functionality


Microsoft Office Access 2003
1. In Access, open the sample database that is named Northwind.mdb.

NOTE
The Northwind.mdb database for Access 2003 is typically located in the
C:\Program Files\Microsoft Office\OFFICE11\Samples folder.

2. Under Objects in the Northwind Database window, click Forms .


3. In the Database window toolbar, click New .
4. In the New Form dialog box, click Design View , and then click OK .
5. Add a text box to Form1, right-click the text box, and then click Proper ties .
6. Click the All tab, click Name , typeText1, and then close the Proper ties dialog box.
7. Right-click the label control that is associated with the Text1 text box, click Proper ties , and then click the All
tab.
8. Click Caption , type Text1, and then close the Proper ties dialog box.
9. Add a command button to Form1 , right-click the command button, click Proper ties , click Name , type
Command1, click Caption , and then type Command1.
10. Click the Event tab, click [Event Procedure] in the On Click list, and then click the ellipsis button to start
the Microsoft Visual Basic Editor.
11. Modify the code in the Command1_Click procedure to the following:

Private Sub Command1_Click()


Me!Text1 = LaunchCD(Me)
End Sub

12. On the Inser t menu, click Module , and then insert the following code into Module1:

Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _


"GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long

Private Type OPENFILENAME


lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type

Function LaunchCD(strform As Form) As String


Dim OpenFile As OPENFILENAME
Dim lReturn As Long
Dim sFilter As String
OpenFile.lStructSize = Len(OpenFile)
OpenFile.hwndOwner = strform.hwnd
sFilter = "All Files (*.*)" & Chr(0) & "*.*" & Chr(0) & _
"JPEG Files (*.JPG)" & Chr(0) & "*.JPG" & Chr(0)
OpenFile.lpstrFilter = sFilter
OpenFile.nFilterIndex = 1
OpenFile.lpstrFile = String(257, 0)
OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1
OpenFile.lpstrFileTitle = OpenFile.lpstrFile
OpenFile.nMaxFileTitle = OpenFile.nMaxFile
OpenFile.lpstrInitialDir = "C:\"
OpenFile.lpstrTitle = "Select a file using the Common Dialog DLL"
OpenFile.flags = 0
lReturn = GetOpenFileName(OpenFile)
If lReturn = 0 Then
MsgBox "A file was not selected!", vbInformation, _
"Select a file using the Common Dialog DLL"
Else
LaunchCD = Trim(Left(OpenFile.lpstrFile, InStr(1, OpenFile.lpstrFile, vbNullChar) - 1))
End If
End Function

13. On the Debug menu, click Compile Nor thwind , and then close the Visual Basic Editor.
14. On the View menu, click Form View .
15. Click Command1 , and then click a file in the window that opens.
The path of the file appears in the Text1 text box.
Microsoft Office Access 2007
1. In Access 2007, open the sample database that is named Northwind.accdb.
2. On the Create tab, click Form in the Forms group.
3. On the Format tab, click the down arrow below View , and then click Design View .
4. Add a text box to Form1, right-click the text box, and then click Proper ties .
5. Click the All tab, click Name , and then type Text1.
6. Right-click the label control that is associated with the Text1 text box, click Proper ties , and then click the All
tab.
7. Click Caption , and then type Text1.
8. Add a command button to Form1 , right-click the command button, click Proper ties , click Name , type
Command1, click Caption , and then type Command1.
9. Click the Event tab, click [Event Procedure] in the On Click list, and then click the ellipsis button (...) to
start the Microsoft Visual Basic Editor.
10. Modify the code in the Command1_Click procedure to resemble the following code example.

Private Sub Command1_Click()


Me!Text1 = LaunchCD(Me)
End Sub

11. On the Inser t menu, click Module , and then insert code that resembles the following code example into
Module1.
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _
"GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long

Private Type OPENFILENAME


lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As String
lpstrCustomFilter As String
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As String
nMaxFile As Long
lpstrFileTitle As String
nMaxFileTitle As Long
lpstrInitialDir As String
lpstrTitle As String
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As String
lCustData As Long
lpfnHook As Long
lpTemplateName As String
End Type

Function LaunchCD(strform As Form) As String


Dim OpenFile As OPENFILENAME
Dim lReturn As Long
Dim sFilter As String
OpenFile.lStructSize = Len(OpenFile)
OpenFile.hwndOwner = strform.hwnd
sFilter = "All Files (*.*)" & Chr(0) & "*.*" & Chr(0) & _
"JPEG Files (*.JPG)" & Chr(0) & "*.JPG" & Chr(0)
OpenFile.lpstrFilter = sFilter
OpenFile.nFilterIndex = 1
OpenFile.lpstrFile = String(257, 0)
OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1
OpenFile.lpstrFileTitle = OpenFile.lpstrFile
OpenFile.nMaxFileTitle = OpenFile.nMaxFile
OpenFile.lpstrInitialDir = "C:\"
OpenFile.lpstrTitle = "Select a file using the Common Dialog DLL"
OpenFile.flags = 0
lReturn = GetOpenFileName(OpenFile)
If lReturn = 0 Then
MsgBox "A file was not selected!", vbInformation, _
"Select a file using the Common Dialog DLL"
Else
LaunchCD = Trim(Left(OpenFile.lpstrFile, InStr(1, OpenFile.lpstrFile, vbNullChar) - 1))
End If
End Function

12. On the Debug menu, click Compile Nor thwind , and then close the Visual Basic Editor.
13. On the Format tab, click the down arrow below View , and then click Form View .
14. Click Command1 , and then click a file in the window that opens.
The path of the file appears in the Text1 box.
You must use an exclusive lock to save design
changes to database objects in Access 2003
3/30/2020 • 9 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 824278

NOTE
Requires expert coding, interoperability, and multiuser skills. This article applies to a Microsoft Access database (.mdb or
.accdb). For a Microsoft Access 2002 version of this article, see 283228.

Symptoms
When you try to a customize a toolbar or when you try to open a Microsoft Office Access 2003-specific object such
as a form, a report, a macro, or a module in Design view, you may receive the following error message:

You do not have exclusive access to the database at this time. If you proceed to make changes, you may not be
able to save them later.

When you try to save, design changes that you make to an Access 2003 form, report, macro, or module, you may
receive the following error message:

Microsoft Office Access can't save design changes or save to a new database object because another user has
the file open. To save your design changes or to save to a new object, you must have exclusive access to the file.

When you try to save a new data access page, you may receive the following error message:

A link to this data access page could not be created because the database cannot be exclusively locked. To create
the link later, open the page by selecting 'Edit web page that already exists', and then save.

NOTE
You cannot create or modify data access pages in Microsoft Office Access 2007.

Cause
This problem may occur for any one of the following reasons:
You try to open a form, a report, a macro, a module, or a command bar in Design view.
You try to save design changes to an object type.
You try to save design changes to a new page link while other users have the same database open that you have
open.

Resolution
To save design changes to object types, Access 2003 must have an exclusive lock on the database. When multiple
users are designing the same Access 2003 application at the same time, you must implement source code control
by using the Microsoft Visual SourceSafe Add-In for Access 2003. Alternatively, you can distribute local working
copies of the database to each user.
Implement source code control
The Access Visual SourceSafe Add-in permits you to put your Access 2003 application under source code control
while your application is being developed. If you put your application under source code control, you may be able
to track changes and to store changes that are made to your application. By using Visual SourceSafe, you can
review the history of an object and then revert to earlier versions of that object. You may check out objects in the
Access 2003 application, modify the objects, or create new objects in the local copy of the object. Then, you can
check the objects back into the main database under source code control. The Access 2003 Source Code Control
Add-in is available as a free download. To use the Access 2003 Source Code Control Add-in, you must also install
Office 2003 SP1 and have access to a computer that is running Visual SourceSafe 6.0.
Use an individual working copy of the database
You can keep a master copy of the database application in a centralized location and then provide an individual
working copy of the database on the computer of each user. Each user develops their portion of the application in
their local copy of the database. When the user wants to make a change to an object in the database application, the
user imports the object from the master database to the local copy of the database. The user makes the required
changes to the object in the local working copy of the database and then saves the object. When the user is ready to
commit the changes to the master database, the user exports the object to the master database. This object with the
changes overwrites the original object.
If you use an individual working copy of the database, there is a disadvantage. You cannot determine if multiple
users are working on the same object locally and at the same time. When you export the object with changes to the
master database, you can unknowingly overwrite changes that another user committed to the master database.

More Information
To save design changes to Access-specific objects, such as forms, reports, new page links, macros, modules, and
command bars, Access 2003 must be able to lock the database exclusively during the save operation. Tables,
queries, and relationships do not have to lock the database exclusively during the save operation because tables,
queries, and relationships are Microsoft Jet-specific objects.
The database must be locked exclusively during the save operation for the following reasons:
provide consistency with other Microsoft Visual Basic Environment client applications
stop dependency on the Jet database engine
improve stability of Access-specific objectsProvide consistency with other Visual Basic Environment client
applications
Access 2003 hosts the Visual Basic Environment. Therefore, the save model that is used by Access 2003 must be
consistent with other applications that host the Visual Basic Environment. The Visual Basic Environment only
permits exclusive editing and exclusive saving of Microsoft Visual Basic projects that are not under source code
control. This is true for Microsoft Visual Basic 6.0 and for all Microsoft Office applications that host the Visual Basic
Environment.
Stop dependency on the Jet database engine
Access 2003 permits you to create Access 2003 project (.adp) files and to create Access 2003 database (.mdb) files.
In addition to the Jet database engine, you can use Microsoft SQL Server as another database engine for an Access
2003 project. Previously, all Access-specific objects such as forms, reports, macros, modules, and command bars
depended on the Jet database engine for storage. These objects were stored in Access-specific system tables in the
Jet database.
Improve stability of Access-specific objects
The project storage model improves the stability of Access-specific objects and the stability of Visual Basic projects.
Visual Basic for Applications has never permitted multi-user editing of Visual Basic projects without source code
control. Microsoft Access 95 and Microsoft Access 97 can circumvent this restriction by hiding project changes that
are made in a multi-user environment from Visual Basic for Applications. Later, Access 95 and Access 97 can merge
the project changes into the project. However, merging the project changes into the project later has the potential
for affecting the stability of the Visual Basic project. Therefore, Access 2003 requires an exclusive lock when you
design Access-specific objects. This requirement makes sure that the project has only one user.
Edit Access objects in a project storage model in a multi-user environment
You can open a database either for exclusive use or for shared use. The save behavior in Access 2003 depends on
how you open the database and on whether multiple users are currently accessing the database.
If you open the database for exclusive use, you can save the design of any Access-specific object. This is true
provided that you can open the database for read access, you can open the database for write access, and you have
the correct permissions to modify the design of the object.
If you open the database for shared use, you can save the design of any Access-specific object. This is true provided
that you can open the database for read access, you can open the database for write access, you have the correct
permissions to modify the design of the object, and Access 2003 can obtain an exclusive lock on the database.
Lock promotion
Access 2003 uses the connection control feature of the Jet database engine to promote your shared lock to an
exclusive lock. This makes sure that the database is opened exclusive to you. Access 2003 tries to promote a shared
lock to an exclusive lock as soon as you open a form, a report, a macro, or a command bar in Design view. Access
2003 tries lock promotion now so that your design changes will not be lost when you later try to save the design
changes and Access 2003 cannot obtain an exclusive lock. By trying lock promotion as soon as you open an object
in Design view, Access 2003 can warn you if an exclusive lock cannot be obtained before you make any design
changes. Access 2003 does not try lock promotion when you open a module in Design view. However, Access 2003
does try lock promotion as soon as you edit any module in the database.
Access 2003 maintains the exclusive lock until you save the objects or until you discard the dirty objects, and no
other objects are open in Design view. Then, Access 2003 changes the lock back to a shared lock if the database was
originally opened for shared use.
If Access 2003 cannot promote the lock to exclusive when you open an object in Design view, you may receive the
following error message:

You do not have exclusive access to the database at this time. If you proceed to make changes, you may not be
able to save them later.

After you receive this error message, Access 2003 opens the object in Design view, and you can make design
changes. If you try to save the object, Access 2003 tries to promote the shared lock to an exclusive lock. If lock
promotion is successful, Access 2003 saves the object and then maintains the exclusive lock until you save the
object or you discard the dirty object. The exclusive lock is maintained until no object remains open in Design view.
If lock promotion fails, you may receive the following error message:

Microsoft Office Access can't save design changes or save to a new database object because another user has
the file open. To save your design changes or to save to a new object, you must have exclusive access to the file.
If you try to save changes and to close the dirty object, Access 2003 then prompts you with the following options:
Close the object and then discard design changes that have been made to the object.
Leave the object open, and leave the object unsaved.
Steps to reproduce the behavior
1. Start two instances of Access 2003.

NOTE
You must start both instances of Access 2003 on the same computer.

2. Open the Northwind.mdb sample database in both instances of Access 2003.


3. In the first instance of Access 2003, open the Customers form in Design view. To do this, follow these steps:
a. In the Database window, click Forms under Objects .
b. In the right pane, right-click the form that you want, and then click Design View . You may receive the
following error message:You do not have exclusive access to the database at this time. If you proceed to
make changes, you may not be able to save them later.
4. Click OK to clear the message.
Notice that the form opens in Design view.
5. Add a text box control to the form.
6. On the File menu, click Save .
You may receive the following error message:Microsoft Office Access can't save design changes or save to a
new database object because another user has the file open. To save your design changes or to save to a new
object, you must have exclusive access to the file.
7. Click OK to clear the message.
8. Close the second instance of Access 2003.
9. In the first instance of Access 2003, save the form again.
Notice that the form is saved successfully.
How to use the query by form (QBF) technique in
Microsoft Access
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original KB number: 304428

NOTE
Requires basic macro, coding, and interoperability skills. This article applies only to a Microsoft Access database (.accdb and
.mdb).

Summary
This article shows you how to use a form to specify the criteria for a query. This technique is called query by form
(QBF).

More Information
In the QBF technique, you create a form in which you enter query criteria. This form contains blank text boxes. Each
text box represents a field in a table that you want to query. You make entries only in the text boxes for which you
want to specify search criteria.
The QBF form resembles a data entry form that has fields that match the fields in a table. A table that has fields for
Name, Address, City, State, and ZIP Code can have a QBF form that has corresponding fields. To select certain
records, you can enter any combination of search criteria in the form. You can specify a city only, or a city and a
state, or a ZIP code only, or any other combination. Fields that you leave blank are ignored. When you click a
command button on the form, Access runs a query that uses the search criteria from your form.
To use the QBF technique, follow these steps:
1. Open the sample database Northwind.mdb.
2. Create a new form that is not based on any table or query, and save it as QBF_Form.
3. On the new form, create two text boxes and one command button that has the following properties.Then,
save the form:
Text box 1
------------------
Name: WhatCustomer

Text box 2
------------------
Name: WhatEmployee

Command button 1:
------------------
Caption: Search
OnClick: QBF_Macro

4. Create the following new macro, and then save it as QBF_Macro:

Action: OpenQuery
Query Name: QBF_Query
View: Datasheet
Data Mode: Edit

5. Create the following new query that is based on the Orders table, and then save it as QBF_Query:

Field: CustomerID
Sort: Ascending
Criteria: Forms![QBF_Form]![WhatCustomer] Or Forms![QBF_Form]![WhatCustomer] Is Null

Field: EmployeeID
Sort: Ascending
Criteria: Forms![QBF_Form]![WhatEmployee] Or Forms![QBF_Form]![WhatEmployee] Is Null

NOTE: When you type the criteria, make sure that you type the entire criteria in a single Criteria
field; do not split the criteria by placing the 'Or' section on a separate row.

Field: OrderID
Field: OrderDate

6. Open QBF_Form in the Form view. Enter the following combinations of criteria. Click Search after each
combination:

Customer ID Employee ID Result


-------------------------------------------------------
<blank> <blank> All 830 orders

AROUT <blank> 13 orders

AROUT 4 4 AROUT orders for employee 4

<blank> 4 156 orders for employee 4

After you view the result set for each query, close the Datasheet window. Then, begin your next search. Each time
that you click the Search button, the parameters in the QBF query filter the data based on the search criteria that
you specified on the QBF query form.
Notes on the QBF parameter criteria
The sample QBF query in this article implements criteria in the query as
Forms!FormName !ControlName Or Forms!FormName !ControlName Is Null
to filter the data. These criteria return all matching records. If the criteria value is null, all the records are returned
for the specified field.
You can specify any of the following alternative criteria to return slightly different results.

NOTE
In the following sample criteria, an underscore (_) is used as a line-continuation character. Remove the underscore from the
end of the line when you re-create these criteria.

Like Forms!FormName !ControlName & "*" Or _ Forms!FormName !ControlName Is Null


This criteria statement is the same as the QBF sample above, except that you can query by using a wildcard.
For example, if you enter "Jo" in a field by using this criteria statement, the query returns every record in the
field that begins with "Jo." This includes Johnson, Jones, Johanna, and so on.
Between Forms!FormName !StartDate And Forms!FormName !EndDate Or _ Forms!FormName !StartDate
Is Null
You can use this criteria statement to query a date field by using Start Date and End Date text boxes on the
query form. Records whose start and end dates fall between the values that you specify on the query form
are returned. If you omit a Start Date value on the form, however, the query returns all records, regardless of
the End Date value.
Like Forms!FormName !ControlName & "*" Or Is Null
This criteria statement returns both records that match the criteria and records that are null. If the criteria are
null, all the records are returned. Note that the asterisk (*) is considered a parameter because it is part of a
larger Like expression. Because the asterisk is a hard-coded criteria value (for example, Like "*"), records with
null values are returned.
Like IIf(IsNull(Forms!FormName ![ControlName ]), _ "*",[Forms]![FormName ]![ControlName ])
This criteria statement returns all the records that match the criteria. If no criteria are specified in the query
form, all records that are not null are returned.
IIf(IsNull(Forms!FormName ![ControlName ]), _ [FieldName ],[Forms]![FormName ]![ControlName ])
This returns all the records that match the criteria. If no criteria are specified in the query form, all records
that are not null are returned (the same result as in the example above).
How to use SetOption to disable warning messages
in an Access Application
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Moderate: Requires basic macro, coding, and interoperability skills.


This article applies only to a Microsoft Access database (.mdb or .accdb).

Summary
This article shows you how to use the Application.SetOption method to disable warning messages in an Access
application.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.Action queries and other processes that append, delete, or
modify data typically present the user with a warning that the data is about to be modified. In a run-time
application, however, it is often desirable to disable the warnings because checks and precautions are usually
beyond the user's control.
You can accomplish this by using the SetWarnings method of the DoCmd object, but you may prefer to disable
warnings for the entire application. To do that, you can use the SetOption method of the Application object.
However, if you do so, you should also turn the warnings back on as the application quits.
To do this in a simple, one-form application, follow these steps:
1. Start Access, and then create a blank database named TestRun.
2. Import the Customers table from the Northwind.mdb sample database.
3. Create a new form in Design view, and then add an unbound combo box to the detail section.
4. Set the following properties for the combo box:

Name: cboCountry
Row Source: SELECT DISTINCT Customers.Country FROM Customers ORDER BY Customers.Country;

5. Add a command button to the detail section of the form and name it cmdDelete.
6. Set the OnClick property of the command button to the following event procedure:
DoCmd.OpenQuer y "qr yDeleteCustomers"
7. Close the Visual Basic Editor.
8. Save the form as DeleteCustomers, and then close it.
9. Create a new query in Design view, and then add the Customers table.
10. In Access 2002 or in Access 2003, click Delete Quer y on the Quer y menu.
In Access 2007, click Delete in the Quer y Type group on the Design tab.
11. Drag the asterisk (*) from the field list to the first column of the query design grid, and then drag the
Country field to the second column.
12. In the Criteria row of the Country column, type the following:
Forms![DeleteCustomers]![cboCountr y]
13. Save the query as qryDeleteCustomers, and then close it.
14. Open the DeleteCustomers form in Form view.
15. Select a country from the combo box, click the command button, and note the warning that appears. Click
No in the warning dialog box.
16. Open the form in Design view, and then on the toolbar, click the Code button.
17. In the Code window, type or paste the following procedures:

Private Sub Form_Load()

Application.SetOption "Confirm Action Queries", 0


Application.SetOption "Confirm Document Deletions", 0
Application.SetOption "Confirm Record Changes", 0

End Sub

Private Sub Form_Unload(Cancel As Integer)

Application.SetOption "Confirm Action Queries", 1


Application.SetOption "Confirm Document Deletions", 1
Application.SetOption "Confirm Record Changes", 1

End Sub

18. Close the Visual Basic Editor, and then save and close the form.
19. Open the DeleteCustomers form, select a country, and then click the command button.
Note that no warning dialog appears.
In this example, the application's confirm options are disabled when the DeleteCustomers form is loaded and re-
enabled when it is unloaded. In a more elaborate application, you might carry out the same actions in a startup
form or switchboard.
How to use SQLConfigDataSource to create an
Access system DSN
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Advanced: Requires expert coding, interoperability, and multiuser skills.


This article applies to a Microsoft Access database (.mdb or accdb) and to a Microsoft Access project (.adp).

Summary
You cannot create a system DSN by using the RegisterDatabase method. To create a system DSN, use the ODBC API
call for SQLConfigDataSource.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.

More information
The following example uses the API call for SQLConfigDataSource to create a system DSN. The example creates a
data source for the sample database Northwind.mdb when the database is located at C:\Northwind.mdb.
1. Copy the sample database Northwind.mdb to the root directory of drive C.
2. Create a new Access database.
3. Create a module and type the following lines in the Declarations section:

Option Explicit
Const ODBC_ADD_SYS_DSN = 4 'Add data source
Const ODBC_CONFIG_SYS_DSN = 5 'Configure (edit) data source
Const ODBC_REMOVE_SYS_DSN = 6 'Remove data source

Private Declare Function SQLConfigDataSource Lib "ODBCCP32.DLL" (ByVal _


hwndParent As Long, ByVal fRequest As Long, ByVal _
lpszDriver As String, ByVal lpszAttributes As String) As Long

4. Type the following procedure:


Function Build_SystemDSN(DSN_NAME As String, Db_Path As String)

Dim ret%, Driver$, Attributes$

Driver = "Microsoft Access Driver (*.MDB)" & Chr(0)


Attributes = "DSN=" & DSN_NAME & Chr(0)
Attributes = Attributes & "Uid=Admin" & Chr(0) & "pwd=" & Chr(0)
Attributes = Attributes & "DBQ=" & Db_Path & Chr(0)

ret = SQLConfigDataSource(0, ODBC_ADD_SYS_DSN, Driver, Attributes)

'ret is equal to 1 on success and 0 if there is an error


If ret <> 1 Then
MsgBox "DSN Creation Failed"
End If

End Function

5. In the Immediate window, type the following line, and then press ENTER:
? Build_SystemDSN("My SampleDSN","c:\Nor thwind.mdb")
6. Click Start, point to Settings, and then click Control Panel.
7. In Control Panel, click ODBC Data Sources, ODBC Data Sources (32-bit) , or 32bit ODBC .
8. Click the System DSNtab. Note that My SampleDSN has been added to the System Data Sources list.
How to use the Workgroup Administrator utility in
Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

This article applies to Microsoft Access .mdb files and .accdb files.

Introduction
This article describes how to use the Workgroup Administrator utility in Microsoft Access.
Note User-level security does not exist in an .accdb file, even though you can run the Workgroup Administrator
utility from an .accdb file in Access.

More information
To use the Workgroup Administrator in earlier versions of Access, you could click Workgroup Administrator in
Security on the Tools menu. To use the Workgroup Administrator utility in Access, use one of the following
methods.
Method 1: Use Visual Basic code
To use Visual Basic code, use one of the following methods.
Run the Visual Basic code in the Immediate window:
1. In Access 2007 or a later version, open a trusted database, or enable macros in the existing database.
2. Press CTRL + G to open the Immediate window.
3. Type the following line of code, and then press ENTER.DoCmd.RunCommand
acCmdWorkgroupAdministrator
Create a module that contains the Visual Basic code:
1. In Access 2007 and later, open a trusted database, or enable macros in the existing database.
2. On the Create tab, in the Other group, click Macro , and then click Module .
3. Create a subroutine, and then paste the following Visual Basic code example into the subroutine.
DoCmd.RunCommand acCmdWorkgroupAdministrator
4. Press F5 to run the code.
Method 2: Use the RunCommand macro action
1. In Access 2007 or a later version, open a trusted database, or enable macros in the existing database.
2. On the Create tab, in the Other group, click Macro , and then click Macro .
3. On the Design tab, click Show All Actions in the Show/Hide group.
4. On the Macro1 tab, click RunCommand in the Action column, and then click WorkgroupAdminstrator in
the Command list.
5. Click Save .
6. In the Tools group, click Run .
Cannot activate Office 2013 on a new computer
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
When you enter a product key and then click Activate to active Microsoft Office 2013 for the first time on a new
computer, you receive the following error message:

This product key is for Microsoft Office <Edition Name> 2013, which isn't currently installed

Cause
This issue may occur if you install KB2760624, KB2760621, or KB2752100 before you activate Office. If you do this,
the following folder may be removed:

<system drive>\ProgramData\Microsoft\OEMOffice15

Resolution
To resolve this issue, reinstall Office from the Office website or from another media. To download and reinstall
Office from the Office website, go to the following Microsoft website:
Get Office
Applies to
This article applies to:
Computers that have Office 2013 preinstalled, purchased and activated between January 29, 2013 and February
4, 2013.
Computers that have Office 2013 preinstalled, on which KB2760624, KB2760621, or KB2752100 is installed
before you try to activate Office.
"Microsoft Office cannot verify the license for this
product" error when you start an Office app
4/18/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
NOTE
If you use Azure Multi-Factor Authentication, contact your administrator for help.
For more information about two-factor authorization, see Sign in to your work or school account using your two-factor
verification method.
To reset your password, see Reset my Office 365 tenant admin password.

When you start a Microsoft Office 2016 or Office 2013 application, such as Outlook, Word, Excel, or PowerPoint,
you may receive the following error message:

Microsoft Office cannot verify the license for this product. You should repair the Office program by using Control
Panel.

Cause
The Office application is running in compatibility mode for a different operating system.

Resolution
To fix this issue, follow these steps to stop running the application in compatibility mode:
1. Exit the Office application that triggers this error.
2. Locate your Office application, depending on your installation type of Outlook and bitness of Windows and
Outlook:
MSI-Based installation type:
<disk drive>\Program Files\Microsoft Office\Office1x
<disk drive>\Program Files(x86)\Microsoft Office\Office1x
Click-to-Run installation type:
<disk drive>\Program Files\Microsoft Office\root\Office1x
<disk drive>\Program Files(x86)\Microsoft Office\root\Office1x

NOTE
The 1x placeholder represents your version of Office (16 = Office 2016, 15 = Office 2013)

3. Right-click the Office application that triggers the error, and then click Proper ties .
4. If the Compatibility tab is available, click it, and then follow these steps. If the Compatibility tab does not
exist, go to step 5.
a. On the Compatibility tab, clear the Run this program in compatibility mode for option.
b. Click Change settings for all users .
c. On the Compatibility for all users tab, clear the Run this program in compatibility mode for
option.
d. Click OK two times.
5. If the Compatibility tab does not exist, click Cancel on the application Properties page to close it, and then
follow these steps:
a. Right-click Outlook.exe, and then select Troubleshoot compatibility .
b. Select Troubleshoot Program .
c. Clear all options, and then click Next .
d. Select the No, I am done investigating the problem option, and then click Next .
e. Click Close .

More Information
For more information, see Outlook is unable to start in Windows 7 or 8 .
Information about the error codes and corresponding
descriptions of Microsoft Office activation process
issues that can be repaired by using the Office Repair
tool
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article describes the error codes and corresponding descriptions of Microsoft Office activation process issues
that can be repaired by using the Office Repair tool.

More Information
You can use the Office Repair tool to repair Office activation issues that contain the error codes that are listed in the
following table:

ERRO R C O DE DESC RIP T IO N

0xC004B008 The activation server determined that the computer could not
be activated.

0xC004B100 The activation server determined that the computer could not
be activated.

0xC004B001 The activation server determined that the license is invalid.

0xC004B002 The activation server determined that the license is invalid.

0xC004B003 The activation server determined that the license is invalid.

0xC004B004 The activation server determined that the license is invalid.

0xC004B005 The activation server determined that the license is invalid.


ERRO R C O DE DESC RIP T IO N

0xC004B006 The activation server determined that the license is invalid.

0xC004B009 The activation server determined that the license is invalid.

0xC004C005 The activation server determined the license is invalid.

0xC004C006 The activation server determined the license is invalid.

0xC004C009 The activation server determined the license is invalid.

0xC004C00A The activation server determined the license is invalid.

0xC004C00B The activation server determined the license is invalid.

0xC004C00D The activation server determined the license is invalid.

0xC004C011 The activation server determined the license is invalid.

0xC004F077 The Software Licensing Service determined incompatible


version of authentication data.

0xC004F032 The Software Licensing Service determined that the binding


data is invalid.

0xC004F01E The Software Licensing Service determined that the input data
type does not match the data type in the license.

0xC004F01F The Software Licensing Service determined that the license is


invalid.

0xC004F020 The Software Licensing Service determined that the license


package is invalid.

0xC004F016 The Software Licensing Service determined that the request is


not supported.
ERRO R C O DE DESC RIP T IO N

0xC004F019 The Software Licensing Service determined that the requested


event ID is invalid.

0xC004F01A The Software Licensing Service determined that the requested


event is not registered with the service.

0xC004F060 The Software Licensing Service determined that the version of


the license package is invalid.

0xC004F001 The Software Licensing Service reported an internal error.

0xC004F078 The Software Licensing Service reported that the key is


mismatched.

0xC004F022 The Software Licensing Service reported that the license


authorization failed.

0xC004F034 The Software Licensing Service reported that the license could
not be found or was invalid.

0xC004F007 The Software Licensing Service reported that the license could
not be found.

0xC004F008 The Software Licensing Service reported that the license could
not be found.

0xC004F018 The Software Licensing Service reported that the license does
not contain valid location data for the activation server.

0xC004F011 The Software Licensing Service reported that the license file is
not installed.

0xC004F023 The Software Licensing Service reported that the license is


invalid.

0xC004F015 The Software Licensing Service reported that the license is not
installed.
ERRO R C O DE DESC RIP T IO N

0xC004F017 The Software Licensing Service reported that the license is not
installed.

0xC004F01C The Software Licensing Service reported that the license is not
installed.

0xC004F027 The Software Licensing Service reported that the license is


tampered.

0xC004F075 The Software Licensing Service reported that the operation


cannot be completed because the service is stopping.

0xC004F071 The Software Licensing Service reported that the plug-in


manifest file is incorrect.

0xC004F028 The Software Licensing Service reported that the policy cache
is invalid.

0xC004F00B The Software Licensing Service reported that the product


identification data is not available.

0xC004F010 The Software Licensing Service reported that the product key
is invalid.

0xC004F076 The Software Licensing Service reported that the requested


plug-in cannot be found.

0xC004F003 The Software Licensing Service reported that the required


license could not be found.

0xC004F006 The Software Licensing Service reported that the signature file
for the license is not available.

0xC004F07A The Software Licensing Service reported that the verification


could not be done.
ERRO R C O DE DESC RIP T IO N

0xC004F01D The Software Licensing Service reported that the verification of


the license failed.

0xC004F062 The Software Licensing Service reported that a required license


could not be found.

0xC004F054 The Software Licensing Service reported that license


management information has duplicated data.

0xC004F04F The Software Licensing Service reported that license


management information was not found in the licenses.

0xC004F072 The Software Licensing Service reported that the license


policies for fast query could not be found.

0xC004F073 The Software Licensing Service reported that the license


policies for fast query have not been loaded.

0xC004F052 The Software Licensing Service reported that the licenses


contain duplicated properties.

Workaround
To work around the errors that are listed earlier in this document, follow these steps:
1. Click Star t , click Run , type appwiz.cpl, and then click OK .
2. Click to select the Office product that you installed, and then click Change .
3. Click the Repair option, and then follow the prompts to complete the repair process.

References
For more information about Microsoft product activation, see Activate Windows 7 or Windows 8.1.
"We are unable to connect right now" error when
users try to activate Microsoft 365 Apps for enterprise
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you set up your network to block Internet Explorer 6, users discover that they cannot activate Microsoft 365
Apps for enterprise. When users try to activate Microsoft 365 Apps for enterprise, they receive the following error
message:
We are unable to connect right now. Please check your network and tr y again later.

Cause
This issue occurs because the client computer cannot connect to *.microsoftonline-p.net.

Workaround
To work around this issue, add an explicit "allow" rule that contains "MSOIDCRL"in your firewall or proxy for
agents.
For example, set up the rules to first allow MSOIDCRL and to then deny Internet Explorer 6.
For more info about how to configure firewall rules, see your firewall documentation.

More information
For more information about Office 365 activation issues, see the following Microsoft Knowledge Base article:
Office 365: Use the Support and Recovery Assistant for Office 365
Still need assistance? Ask for help in the Microsoft Community.
"Sorry, we can't connect to your account. Please try
again later" error when you activate Office from
Office 365
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses how to troubleshoot the activation issues in Microsoft Office from Office 365. Activation fails
and you receive one the following error messages:
We are unable to connect right now. Please check your network and tr y again later.
Sorr y, we can't connect to your account. Please tr y again later.

More information
This issue might be caused by one of several circumstances. Follow these steps to help troubleshoot the issue. After
each step, check to see whether the issue is fixed. If not, proceed to the next step.
Step 1. Identify and fix activation issues by using the Support and Recovery Assistant for Office 365
The Support and Recovery Assistant app runs on Windows PCs and can help you identify and fix activation issues
with Office 365. Office 365: Use the Support and Recovery Assistant for Office 365
Step 2. Check whether you're behind a proxy server
Are you behind a proxy server? If you're not sure, ask your administrator. If so, you (or your administrator) might
have to change the proxy settings for Windows HTTP clients. To do this, follow these steps:
1. Open a Command Prompt window as an administrator. To do this, click Star t , type cmd.exe in the search box,
right-click cmd.exe in the list, and then click Run as administrator .
2. Type the following command, and then press Enter:

netsh winhttp set proxy < Address of proxy server >

Step 3. Check whether you're behind a firewall


Are you behind a firewall? If you're not sure, ask your administrator. If you're behind a firewall, it might have to be
configured to enable access to the following:
https://officecdn.microsoft.com
https://ols.officeapps.live.com/olsc
https://activation.sls.microsoft.com
https://odc.officeapps.live.com
https://crl.microsoft.com/pki/crl/products/MicrosoftProductSecureServer.crl
https://crl.microsoft.com/pki/crl/products/MicrosoftRootAuthority.crl
https://crl.microsoft.com/pki/crl/products/MicrosoftProductSecureCommunicationsPCA.crl
https://www.microsoft.com/pki/crl/products/MicrosoftProductSecureCommunicationsPCA.crl
go.microsoft.com
office15client.microsoft.com
sls.microsoft.com - This endpoint is required for successful ProPlus activation based on Office 365 URLs and IP
address ranges.
Each firewall will have a different method for enable access to these URIs. Check your software's documentation for
instructions or ask your administrator to do this for you.
For more information about Microsoft 365 Apps for enterprise URLs and IP addresses, see the following Microsoft
article: Office 365 URLs and IP address ranges
Step 4. Check whether you have the appropriate license
1. Sign in to the Office 365 portal.
2. Click Settings ( ), and then click Office 365 settings .
3. Locate the Assigned licenses area.
4. If you see The latest desktop version of Office , then you have an Office subscription assigned correctly.
5. If you don't see The latest desktop version of Office , contact your administrator or see the Office article
What Office 365 business product or license do I have?
Step 5. If you previously activated an Office 2013 program on the computer, try to remove the existing product
key
To manually remove existing product keys for an Office 2013 program, follow these steps:
1. Open a Command Prompt window, type one of the following commands, and then press Enter:
If you're running 64-bit Windows with 32-bit Office:

cscript.exe "ProgramFiles(x86)%\Microsoft Office\Office15\ospp.vbs" /dstatus

If you're running 32-bit Windows, or running 64-bit Office with 64-bit Windows:

cscript.exe "%ProgramFiles%\Microsoft Office\Office15\ospp.vbs" /dstatus

2. Examine the output. Look for and locate the last five characters of the installed product key.
3. Remove all product keys. To remove a product key, type the following command and then press Enter:

cscript ospp.vbs /unpkey: <Last five characters of product key>

Here's an example of the output of steps 5a through 5c:


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cd "C:\Program Files (x86)\Microsoft Office\Office15"
C:\Program Files (x86)\Microsoft Office\Office15>cscript ospp.vbs /dstatus
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
---Processing--------------------------
---------------------------------------
SKU ID: 82cef0d9-d31d-456e-a3fa-ae2637ea2984
LICENSE NAME: Office 15, OfficeProPlusSubR_Subscription edition
LICENSE DESCRIPTION: Office 15, TIMEBASED_SUB channel
EXPIRATION: 10/11/2013 4:59:59 PM
LICENSE STATUS: ---NOTIFICATIONS---
ERROR CODE: 0xC004F005
ERROR DESCRIPTION: The Software Licensing Service reported that the product key
does not match the product key for the license.
Last 5 characters of installed product key: RMYP4
---------------------------------------
---Exiting-----------------------------
C:\Program Files (x86)\Microsoft Office\Office15>cscript ospp.vbs /unpkey:RMYP4
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
---Processing--------------------------
---------------------------------------
Uninstalling product key for: Office 15, OfficeProPlusSubR_Subscription edition
<Product key uninstall successful>
---------------------------------------
---Exiting-----------------------------

For more information, see the following Microsoft Knowledge Base articles:
Troubleshoot installing Office
Unlicensed product and activation errors in Office
Still need help? Go to Microsoft Community.
Office 2010 product key change error step by step
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
The previously installed version of Office 2010 prompts the user to change the product key. The screen then
disappears, and shows no response when product key change is clicked.

Cause
This may be caused when the product keys of Office 2010 programs do not match.

How to fix
This issue can be resolved by removing the Office 2010 registry values.
The following describes how to modify the registry. Incorrect registry modification can cause serious problems,
so please proceed with extra caution. For additional protection, you are recommended to back up the registry
before modifying it. This allows you to restore the registry if a problem occurs. For more information about backing
up the registry, see Back up the registry.
1. Click Start and enter regedit in the search pane. At the top of the program list, click regedit.
If the user account control message appears, enter the administrator password, or click Yes.
2. In Registry Editor, go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Registration path.

TIP
If the operating system is Windows 7 64-bit, go to the
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Registration path.

3. There are several GUID (Globally Unique Identifiers), consisting of a combination of alphanumeric characters,
in the Registration subpath. Each GUID specifies the program that is installed on your computer. Click each
GUID to view the registry entries in the right pane, and find and select the GUID that contains the relevant
Office program version.
4. After selecting the GUID that contains the Office program version, find and right-click DigitalProductID and
click delete.

Click Yes when the confirm value delete message appears.


5. Find and right-click ProductID and click delete.

Click Yes when the confirm value delete message appears.


6. Close Registry Editor and restart the computer.
7. When you run any Office 2010 program, the Enter your product key screen will appear. Enter the correct
product key to complete product key change.

Issue resolved?
Determine if the issue has been resolved. If the issue has been resolved, the process described in this section is
finished. If the issue is not resolved, you can contact technical support.
Thank you for your comments. To submit feedback or any problems found in the approach to resolving this
issue, please leave comments on the "Fix it for me" blog or send an E-mail.

Reference materials
2186281: Overview of product code GUID numbering in Office 2010
895456: How to change the product key for Office XP, Office 2003 and 2007 Office Systems

Send us feedback
Microsoft Help and support site values your opinion. Please send us feedback below to give us your valuable
opinion.
"We can't sign you into your company portal" when
activating Office 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

PROBLEM
When a user tries to activate Office 2013, the user receives the following error message:
We can't sign you into your company por tal because something on the ser ver isn't configured
correctly.
The IDCRL log shows the following error:

<6056,5268,13:40:30:233>: ## SOAP Response: ........


<s:Subcode><s:Value xmlns:a="http://schemas.xmlsoap.org/ws/2005/02/trust">
a:FailedAuthentication</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en-US">MSIS7068: Access
denied.</s:Text>

Additionally, the TCO log shows the following errors:

<Date><Time>:411::[4228] SignIn: creating new identity ([email protected])


<Date><Time>:411::[4228] Identity () Sign In requested for ([email protected])
<Date><Time>:475::[4228] IDCRLLibrary: GetAuthStateEx results: authState (0x80048800), requestStatus
(0x800488ff)
<Date><Time>:475::[4228] InstrumentGetTicketFailure: IdP=2, error=0x800488ff
<Date><Time>:475::[4228] InstrumentGetTicketFailure for !error: wrong format for number!: dword3=0x!format
error: not enough arguments!
<Date><Time>:475::[4228] AuthStatusFromHresult: 0x800488ff->ADFS Non retryable ADFS config error. Notify admin
to check configuration in ADFS
<Date><Time>:475::[4228] InstrumentGetTicketFailure: IdP=2, error=0x800488ff
<Date><Time>:475::[4228] InstrumentGetTicketFailure for !error: wrong format for number!: dword3=0x!format
error: not enough arguments!
<Date><Time>:475::[4228] Identity () SignIn failed ([email protected]), error (ADFS Non retryable ADFS config
error. Notify admin to check configuration in ADFS

CAUSE
This issue occurs if modern authentication isn't enabled on the user's computer.

SOLUTION
Enable modern authentication. For more information, see Enable Modern Authentication for Office 2013 on
Windows devices.

MORE INFORMATION
Still need help? Go to Microsoft Community.
"The page cannot be found" or "Missing file" error
when you view or change an Office document
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you save a Microsoft Word document, a Microsoft Excel document, or a Microsoft PowerPoint presentation
as a Web page and then you upload the Web page to the document library of your Microsoft Windows SharePoint
Services Web site, you may experience one or more of the following symptoms:
When you try to view the Web page, you receive the following error message:
The page cannot be found
HTTP 404 - File not found
When you view the Web page, a box that contains a red "X" appears on the Web page instead of the graphic
that you expect.
When you try to edit the Web page (click the file name of the Web page in the document library, and then
click Edit in Microsoft Office ProgramName ), the Microsoft Office program starts as expected, however,
a Problems During Load dialog box appears on your screen. The dialog box contains an error message
that is similar to the following:

Problems came up in the following areas during load

Missing file: Path/FileName

Cause
This problem may occur if the following conditions are true:
You save a Word document, an Excel document, or a PowerPoint presentation as a Web page (.htm or .html file).
You do not use the Upload Multiple Files option after you click Upload Document on the Shared
Documents page of your Windows SharePoint Web site to upload the document.
When you save a Word document, an Excel document, or a PowerPoint presentation as a Web page that uses an
.htm or html extension, a main HTML file is created in addition to a folder that contains supporting files for the Web
page. The folder uses the same name as the HTML file of the Web page. If you do not use the Upload Multiple
Files option to upload the Web page, only the main HTML file of the Web page is uploaded to the document
library. The thicket, or folder that contains graphics files and other files that are associated with the Web page is not
uploaded to the document library. As a result, you may experience the symptoms that are described earlier in the
"Symptoms" section of this article when you try to edit or view the Web page in the document library.
Workaround
To work around this problem, use one of the following methods as appropriate to your situation.
Method 1: Save the Office Document As a Single -File Web Page (*.mht; *.mhtml)
Save the Office document as a single-file Web page (.mht or .mhtml file) and then upload the Web page to the
document library of your Windows SharePoint Services Web site. To save a Word document, an Excel document, or
a PowerPoint presentation as a single-file Web page, follow these steps:
1. Start the Office program and open the document that you want to save as a single-file Web page.
2. On the File menu, click Save as Web Page .
3. In the Save As dialog box, click Single File Web Page (.mht; .mhtml) (if it is not already selected).
4. Specify a file name and a location where you want to save the Web page, and then click Save .
Method 2: Use the Upload Multiple Files Option in Windows SharePoint Services
Use the Upload Multiple Files option to upload the Web page to the document library of a Windows SharePoint
Services Web site. By doing so, you make sure that the HTML file and all other files that are associated with the
Web page are uploaded to the document library. To use the Upload Multiple Files option to upload the Web
page to the document library of a Windows SharePoint Services Web site, follow these steps:
1. In the document library of the Windows SharePoint Services Web site, click Upload Document .
2. On the DocumentLibrar yName Document Library: Upload Document page, click Upload Multiple Files .
3. In the left pane, locate, and then click the folder that contains the main HTML file of the Office document that
you saved as a Web page.
4. In the right pane, click to select the check box that is next to the HTML file of the Web page.
5. In the left pane, locate, and then click the folder that contains the thicket.
6. In the right pane, click to select the check boxes next to all the files that are stored in the thicket.
7. Click Save and Close .
8. Click Yes when you are prompted to confirm the upload operation.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this
article.

More Information
For more information about Windows SharePoint Services, visit the following Microsoft Web site:
https://technet.microsoft.com/windowsserver/sharepoint/default.aspx
"This file can't be previewed" error in Word, Excel, or
PowerPoint
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to preview a document in the Preview pane, you receive an error message that resembles the
following:
"This file can't be previewed because of an error in Microsoft Word previewer."
To work around this issue, preview the document in Windows Explorer or in a different Microsoft Office program.
For example, preview a Microsoft Word document in Microsoft Excel or Microsoft PowerPoint.
For more information about this issue, consider the following scenario:
You start one of the programs that are listed in the "Applies To Products" section.
You click the Microsoft Office Button or the File tab, and then you then click Open.
In the Open dialog box, you click Show the preview pane.
You select a document to preview.
In this scenario, a preview of the document is not displayed. Additionally, you receive an error message in the
Preview pane that resembles the following:
"This file can't be previewed because of an error in the Microsoft Word previewer."
This issue occurs because you must open another instance of the program to preview the document.
PRB: Error Message: 0x80004005: General Error
Unable to Open Registry Key
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you access a page that connects to an Access database, you may receive the following error message in the
browser:

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)[Microsoft][ODBC Microsoft Access Driver]General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x614 Thread 0x6c0 DBC 0x21dd07c Jet'.
(FileName), (LineNumber)

Cause
The account that is being used to access the page does not have access to the
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC registry key.

Resolution
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows

1. Start Registry Editor (Regedt32.exe).


2. Select the following key in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
3. On the Security menu, click Permissions.
4. Type the required permissions for the account that is accessing the Web page.
5. Quit Registry Editor.

Status
This behavior is by design.
You receive a "0x80041015" error message when you
try to start an Office program
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to start a Microsoft Office 2013 or Microsoft Office 365 program, you receive the following error
message:

Sorry, we ran into a problem While trying to install the product key.

If this keeps happening, you should try repairing your office product.

System error: 0x80041015

Cause
This problem can occur when all the following conditions are true:
Office was installed before the May Public Update (KB 2964042, May 13, 2014) was installed.
An Office product was activated before the May Public Update was installed.
There was an attempt to add another Office product (such as Microsoft Visio, OneDrive for Business, or Office
365) or to reinstall an Office product on the same computer after the May Public Update was installed.

Resolution
Hotfix information
A supported hotfix is available from Microsoft Support. However, this hotfix is intended to correct only the problem
that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this
article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we
recommend that you wait for the next software update that contains this hotfix.
If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge
Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.
NOTE
The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your
language, it is because a hotfix is not available for that language.
Only an x86 version of this hotfix is listed as available. However, you can apply this version successfully to both x86 and
x64 operating system platforms and also to x86 and x64 versions of Office 2013.
If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The
usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a
complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, go
to the website: https://support.microsoft.com/contactus/?ws=support.

Installation information
To install this hotfix, follow these steps:
1. Close all open Office programs.
2. Save the compressed file to your computer, and then extract the OSPPFixIt.exe file to the folder of your
choice.
3. Open the folder to which the OSPPFixIt.exe file is saved, right-click the file, and then click Run as
Administrator .

NOTE
A Command Prompt window will open and then close.

4. Perform the action that you tried before you received the error message. For example, start Microsoft Word.
Note If you see an "Unlicensed product" message when the Office application starts, exit and then restart the
application. The application should now be activated.
Prerequisites
You must have Microsoft Office 2013 or Microsoft Office 365 installed to install this hotfix.
Restart requirement
You do not have to restart the computer after you install this hotfix.
Hotfix replacement information
This hotfix does not replace any previously released hotfix.
Click-to -Run information
An updated Office 2013 Click-to-Run image has been published that also resolves this problem. To obtain the
image and for more information, see the following Microsoft Office Sustained Engineering Team blog article:
C2R Update - May 2014
"Sorry, another account from your organization is
already signed in on this computer" in Office 2013
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to sign in to an Office 2013 app by using your Office 365 user ID and password, you receive the
following error message:
Sorr y, another account from your organization is already signed in on this computer.

Cause
This behavior is expected. It occurs if another account is already signed in to Office 2013 by using a different Office
365 user account within the same organization.

Resolution
Sign out of the first account that signed in, then restart that computer. If this solution does not resolve the issue, try
the workaround below.

Workaround
IMPORTANT
The method in this section contains steps that explain how to modify the registry. However, serious problems may occur if
the registry is modified incorrectly. Follow these steps carefully. For added protection, back up the registry before you begin
so that the registry can be restored it if a problem occurs. For more information about how to back up and restore the
registry, see the following Microsoft Knowledge Base article: 322756 How to back up and restore the registry in Windows.

NOTE
This workaround may cause some account settings to be lost.

To work around this behavior, remove the existing user account and all connected services from your Office 2013
profile, and then clear cached credentials that may be on the computer:
Step 1: Remove the user account from your Office 2013 profile
1. In the upper-right corner of an Office 2013 app (Word, Excel, PowerPoint), select your name, and then select
Switch Account .
2. On the Accounts screen, click Sign out .
3. Locate the account that you want to remove, and then click Sign out .
Step 2: Remove connected services from your Office 2013 profile
1. Go to File , and then click Account .
2. Under Connected Ser vices , remove all the services for the existing account.

Step 3: Clear cached credentials on the computer


1. Edit the registry to remove cached credentials:
a. Select Star t , click Run , type regedit , and then click OK .
b. In Registry Editor, locate the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity\Identities
c. Select the Office account that you want to delete, and then click Delete .
d. In the Identity subkey, locate Profiles , right-click the same Office account that you located in Step 1
of this procedure, and then click Delete .
e. Select File and then Exit Registry Editor.
2. Remove the cached credentials in Credentials Manager:
a. Select Star t , then Windows System , then open the Control Panel and select Credential
Manager .
NOTE
You may have to use the search field in the Control Panel to find the Credential Manager.

b. Under the Windows Credentials tab, locate the account that you want to remove and then click
Remove .

NOTE
In Windows 7, this is listed as Generic Credentials .

3. Log off, and then log back in to the computer.

More information
In Office 2013 apps, you can access Office 365 content in SharePoint Online by providing your Office 365 user ID
and password. If you have multiple Office 365 user IDs from different organizations, you can access content from
the SharePoint Online deployments of each organization.
However, Office 2013 only supports one Office 365 user sign-in from each tenant or organization per session.
Office 2013 makes a best effort to prevent a second user from signing in when another user from the same
organization is already signed in. However, there may be cases in which this scenario is not detected and the Office
2013 user interface may show that another user is successfully signed in. In this case, the second user cannot
access his or her own content. All Office 365 content that he or she tries to open will be performed by using the
first user's credentials.
Be aware that Office 2013 respects the permissions of all documents and SharePoint Online libraries. That is, if the
first user doesn't have access to a document that the second user has access to, and the second user (who believes
they are signed in) attempts to open that document, the document will not open because Office tries to open the
document as the first user.
To fix this scenario, the signed-in user should sign out of Office 2013, and then restart his or her computer. Doing
this makes sure that a clean state is present when the other user tries to sign in again.
If restarting the computer does not resolve the issue, then adjusting the registry is the recommended solution.
Still need help? Go to Microsoft Community.
Apps for Office don't start if you disable protected
mode for the Restricted Sites zone in Internet
Explorer
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use Microsoft Office 2013 or later, you experience the following issues.
Issue 1
Assume that you open an Office document that contains an app for Office or try to use a mail app in Microsoft
Outlook. However, the app does not start, and you receive the following error message:

APP ERROR
This app could not be started. Close this dialog to ignore the problem or click "Restart" to try again.

Issue 2
When you try to play a video in a Microsoft Word document, the video does not play, and you receive the following
error message:

VIDEO ERROR
This video could not be started. Close this dialog to ignore the problem or click "Restart" to try again.

Cause
These issues occur because protected mode is not enabled for the Restricted Sites zone in Internet Explorer.

Workaround
For Office 2013, first make sure that the update in the following Microsoft Knowledge Base article is installed:
2986156 May 12, 2015, update for Office 2013
Re-enable protected mode for Restricted Sites:
1. In Internet Explorer, click the Tools button, and then click Internet Options .
2. Click the Security tab, and then select the Restricted SitesZone.
3. Select the Enable Protected Mode check box, and then click OK .
4. Restart Internet Explorer.

More Information
Microsoft Office add-ins using the Apps for Office platform are designed to run in isolation, using a low rights
sandbox. Several features, such as the task pane view, use web views provided using Internet Explorer APIs. To
ensure these components execute HTML script in low rights mode, Office explicitly requires the browser object to
run in Protected Mode. Currently, IE does not support this from the API unless Protected Mode is enabled for
Restricted Sites zone in IE itself. This is typically not a problem since this is the default setting, and rarely will users
disable it. However, if disabled (by user action or by GPO), these Office add-in types may report an error when
starting and refuse to load. It is an expected failure under that condition, and is blocked for security reasons.
"Background task activation is spurious" when you use
an Office 2016 application to access Office 365
resources
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Problem
This article contains information that applies when you use the OneDrive for Business Next Generation Sync Client
(onedrive.exe) or the OneDrive for Business sync client (groove.exe) OneDrive for Business sync client.

NOTE
To determine which OneDrive sync client you're using, see Which OneDrive sync client am I using?.

In a Windows 10 environment, you use your Office 365 work or school account to access Office 365 resources such
as Exchange Online, SharePoint Online, or OneDrive for Business. However, when you start an Office 2016
application or OneDrive for Business, you receive the following error message:
Background task activation is spurious

Workaround
To work around this issue, click OK to dismiss the error message, and then access the Office 365 resource again.

Status
This is a known issue. We're working to address this issue and will post more information in this article when it
becomes available.
Still need help? Go to Microsoft Community.
"Invalid user name" when you try to create a user
name that contains a special character in Office 365
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Problem
When you create a user name that contains a special character in Microsoft Office 365, you receive one of the
following error messages:
Within the Office 365 portal

Invalid user name


Only letters and numbers are allowed. No spaces.

Within Microsoft Azure Active Directory Module for Windows PowerShell

New-MsolUser : Invalid value for parameter. Parameter Name: UserPrincipalName.


At line:1 char:13

Within Exchange Online Windows PowerShell

A Windows Live error occurred while provisioning for "[email protected]". The e-mail name
contains invalid characters.

Cause
This behavior occurs because certain special characters aren't permitted in user names that you create in the Office
365. These special characters include but aren't limited to the following:
Tilde (~)
Exclamation point (!)
At sign (@)
Number sign (#)
Dollar sign ($)
Percent (%)
Circumflex (^)
Ampersand (&)
Asterisk (*)
Parentheses (( ))
Hyphen (-)
Plus sign (+)
Equal sign (=)
Brackets ([ ])
Braces ({ })
Backslash (\)
Slash mark (/)
Pipe (|)
Semicolon (;)
Colon (:)
Quotation marks (")
Angle brackets (< >)
Question mark (?)
Comma (,)
However, the following exceptions apply:
A period (.) or a hyphen (-) is permitted anywhere in the user name, except at the beginning or end of the name.
An underscore (_) is permitted anywhere in the user name. This includes at the beginning or end of the name.
When creating a group, the number sign (#) can be used as part of the group's name. However, the email
address you create for a distribution group or shared mailbox cannot use the # sign.

Solution
When you create a new user in Office 365, make sure that you don't use any of the special characters that are listed
in the "Cause" section.
Still need help? Go to Microsoft Community.
"This 64-bit product may not be installed with
Microsoft Office Click-to-Run" when you install a 64-
bit version of Office
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You have Microsoft Office Click-to-Run installed on your computer.
You try to install a 64-bit version of Microsoft Office.
In this scenario, the 64-bit version does not install. Additionally, you receive the following error message:
"This 64-bit product may not be installed with Microsoft Office Click-to-Run. Remove Microsoft Office Click-to-Run
and try again."

Workaround
To work around this issue, uninstall Microsoft Office Click-to-Run and then install the 64-bit version of Microsoft
Office.
To determine whether you have Microsoft Office Click-to-Run installed on your computer, click the File tab and
then click Help . If you see a Click-to-Run Product Updates section, then Click-to-Run is installed on your
computer.
To uninstall Microsoft Office Click-to-Run from your computer, follow these steps:
1. Click Star t , and then click Control Panel .
2. Click the Add or Remove Programs item or click the Programs and Features item.
3. In the list of installed programs, click Microsoft Office Click-to-Run (2010 or 2013) and then click
Uninstall .
4. Click Yes when you are prompted to remove all applications that were installed by Office Click-to-Run.
Error message when selecting hyperlink in Office:
"Cannot locate the Internet server or proxy server"
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you create a hyperlink in an Office document and then select the link, you may receive one of these error
messages:
Unable to open <URL>. Cannot locate the Internet ser ver or proxy ser ver.
Unable to open <URL>. Cannot open the specified file.
<URL> = the hyperlink you inser ted.

NOTE
The hyperlink does work if you type it directly in the browser or in the Open box of the Run dialog box (select Start, and then
select Run).

Cause
This problem occurs when the following conditions are true:
You are using Microsoft Internet Explorer:
A proxy server -or-
A firewall that does not allow HTTP requests to be placed on your local network
Internet Explorer is not your default browser.
The ForceShellExecuteregistry key is not present in the following location or is not set to 1:
For 32 bit Office Versions installed on 64 bit OperatingSystems
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\9.0\Common\Internet
For 32 Bit Office Versions installed on 32 bit Operating Systems or 64 Bit Office Versionsinstalled on 64 bit
Operating Systems
HKEY_LOCAL_MACHINE \Software\Microsoft\Office\9.0\Common\Internet

Workaround
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, select the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows


To have us work around this problem for you, go to the "Here's an easy fix" section. If you prefer to fix this problem
manually, go to the "Let me fix it myself" section.
Here's an easy fix
To fix this problem automatically, select the Download button. In the File Download dialog box, select Run or
Open , and then follow the steps in the easy fix wizard.
This wizard may be in English only. However, the automatic fix also works for other language versions of
Windows.
If you're not on the computer that has the problem, save the easy fix solution to a flash drive or a CD, and then
run it on the computer that has the problem.
Let me fix it myself
To work around this issue, either add the ForceShellExecute subkey, if it is not present, and set the Value data, or if it
is present, set the Valuedata of the ForceShellExecute subkey.
Adding the Internet Subkey to the Registry and Setting the Value Data
1. Quit any programs that are running.
2. select Start, and then select Run. Type regedit in the Open box, and then select OK.
3. In Registry Editor, browse to one of the following subkey (create the keys when they do not exist):
For a 32 Bit version of Office on 64 bit version of Windows
HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\9.0\Common\Internet\
For a 32 Bit version of Office on 32 bit version of Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\Internet
For a 64 Bit version of Office on 64 bit version of Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\Internet
4. Make sure the Internet subkey is selected. On the Edit menu, point to New, and then select DWORD Value.
Add the following registry value:
Value Name: ForceShellExecute
5. Double-click ForceShellExecute, and then set the Value data to 1. Select OK.
6. On the Registry menu, select Exit.
Did this fix the problem?
Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is not
fixed, you can contact support.

More Information
A hyperlink may not go to a Microsoft Word document or a Microsoft Excel worksheet after you use this
workaround.
Office uses the Urlmon.dll file to handle all Internet transitions.
In this case, the Urlmon.dll file sends a request to get a file via http:// through the proxy server. The proxy server
sees that the request came from Internet Explorer, based upon the HTTP User Agent field of the http://request. It
then gives an error 403, basically saying "Access Denied."
The Urlmon.dll file gets this and simply returns the error message mentioned earlier. The error means that the
request failed, but it never states why it failed.
The workaround is to simply use a ShellExecute() on the URL. This allows the operating system to start the URL on
the default browser. If the default browser is not restricted by the proxy server, the proper page is displayed.
"File not found" error when you try to open an Office
file from a UNC share
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that you enable the Open From universal naming convention (UNC) feature in Microsoft Office Web Apps
Server or Office Online Server. When you try to open an Office file from a UNC share by using Office Online, you
receive the following error message:

File not found


The URL of the original file is not valid or the document is not publically assessable. Verify the URL is
correct, then contact the document owner

Resolution
To resolve this issue, follow these steps:
1. Make sure that the Office file does not exceed 10 MB. 10 MB is the size limit for files that you can open from the
UNC share.
2. Grant the computer account of the Office Online server read access to the Sharing permissions. Additionally,
grant the computer account read and execute access for the Security permissions. To do this, follow these steps:
3. Right-click the folder that contains the Office file and then click Proper ties .
4. On the Sharing tab, click Advanced Sharing , and then click Permission .
5. Click Add , click Object Type , click the Computers check box, and then click OK .
6. In the Enter the object name to select box, type the computer account of the Office Online server (for
example, type domain\OfficeServer). Then, click Check Names , and then click OK .
7. Grant the Read permission to the computer account of the Office Online server that you added, and then click
OK .
8. On the Security tab, click Add , click Object Type , select the Computers check box, and then click OK .
9. In the Enter the object name to select box, type the computer account of the Office Online server, click
Check Names , and then click OK .
10. Grant the Read & execute permission to the computer account of the Office Online server that you added, and
then click OK .
Error when opening the Click-to-Run version of an
Office program or suite on a terminal server
4/13/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that you install the Click-to-Run version of a Microsoft Office program or suite on a terminal server. When
you open the Office program or suite, you receive the following error message:
In Microsoft Office 2013:
"This copy of Microsoft Office 2013 cannot be used on a computer running Terminal Services. To use Office 2013
on a computer running Terminal Services, you must use a Volume License edition of Office."
In Microsoft Office 2016:
"This copy of Microsoft Office 2016 cannot be used on a computer running Terminal Services. To use Office 2016
on a computer running Terminal Services, you must use a Volume License edition of Office."

Cause
This issue occurs because Click-to-Run versions of Office programs or suites running on a server with Remote
Desktop Services (RDS), must have Shared Computer Activation enabled. Remote Desktop Services are formerly
known as Terminal Services. Shared Computer Activation is only available for Microsoft 365 Apps. Other releases
are not supported.

Workaround
To work around this issue, do one of the following;
For customers who have an Microsoft 365 Apps for enterprise license, install Office with shared computer
activation. For more information about installing Microsoft 365 Apps for enterprise with shared computer
activation, see Deploy Microsoft 365 Apps for enterprise by using Remote Desktop Services.
For all other versions of Office Click-to-Run, install an edition of the Office program or suite that uses a volume
license key.

Status
This behavior is by design.
A Microsoft Excel, Word or PowerPoint file does not
open because of incorrect file associations
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you double-click one of these file types:
Word document (.doc or .docx)
Excel (.xls or .xlsx)
PowerPoint (.ppt or .pptx)
You may experience any of these problems:
1. The file icon is blank or displays an incorrect image.
2. The file does not open.
3. You receive this error:
This file does not have a program associated with it for performing this action. Create an
association in the Folder Options control panel.
4. You receive this error:
<file name> not a valid Win32 Application

Cause
These problems occur when the association between the file and the corresponding application is missing.

Resolution
Before you continue with any of the methods in this section, we recommend that you check for multiple Office
installations on your computer. To do this, follow these steps:
1. Type appwiz.cpl in the Search box, and then press Enter.
2. Check the list of currently installed programs for multiple installations of the Microsoft Office suite.
If there are multiple installations of Microsoft Office installed on the computer we recommend that you follow the
steps that are listed in Method 2 of this section. If there is only one installation of Microsoft Office on the computer,
follow the steps that are listed in Method 1 of this section. Only follow the steps that are listed in Method 3 if you
still experience the problem after you have attempted the first two methods or you have installed Microsoft Office
Trial suite.
Method 1
If there is only one installation of Microsoft Office 2010 on the computer, follow these steps to repair Microsoft
Office:
1. Type appwiz.cpl in the Search box, and then press Enter.
2. Select the Microsoft Office 2010 suite you want to repair and then click Change .

3. Select Repair , and then click Continue . You may have to restart your computer after the repair is
completed.
Method 2
If you have more than one installation of a Microsoft Office 2010 suite on your computer we recommend that you
uninstall the Click-to-Run based suites to avoid file type association issues. You will have to uninstall the Microsoft
Office Starter, Microsoft Office Click-to-Run or Microsoft Office 2010 Trial suite and repair the traditional MSI
(Microsoft Installer package) based installation of Microsoft Office 2010:
1. Type appwiz.cpl in the Search box, and then press Enter.
2. In the Currently installed programs list, select Microsoft Office Click-to-Run 2010, and click Uninstall .
3. You will see a prompt requesting to uninstall your selection. Click Yes .
4. Follow the uninstall instructions, and then restart the computer.
5. Type appwiz.cpl in the Search box, and then press Enter.
6. Select the Office 2010 MSI-based suite that you want to repair and click Change .
7. Select Repair , and click Continue . You may have to restart your computer after the repair is completed.
Method 3

NOTE
This method may not be a permanent fix to the file type association problem that you are experiencing. We recommend that
you follow the previous methods first and only try these steps if you continue to experience the problem.

If you only have one of Microsoft Office Starter, Microsoft Office 2010 Trial or Microsoft Office Click-to-Run 2010
installed on the computer follow these steps to manually reassociate the file:
1. Right-click the Microsoft Office file that you want to open.
2. Select Open with , and then click Choose default program....
3. In the Recommended Programs list, select Microsoft Office Client Vir tualization Handler .
4. Click to select the Always use the selected program to open this kind of file check box, and then click
OK .
If you only have a Microsoft Office 2010 MSI (Microsoft installer package) based suite installed on the
computer follow these steps to manually reassociate the file:
5. Right-click the Microsoft Office file that you want to open.
6. Select Open with , and then click Choose default program....
7. In the Recommended Programs list, select the appropriate program to associate with the file.
8. Click to select the Always use the selected program to open this kind of file check box, and then click
OK .
Your file icon should now display the correct image and it should open in the correct Microsoft Office
program.

More Information
The Click-to-Run and traditional MSI (Microsoft installer package) versions of Microsoft Office 2010 are not
designed for use on the same computer. We recommend that you select one version to run on the computer to
avoid problems such as those stated in this article.
For more information about Microsoft Office Click-to-Run and file associations, click the following article number
to view the article in the Microsoft Knowledge Base:
982434 An overview of Microsoft Office Click-to-Run for Office 2010
If you have followed the steps in this article, and you are still receiving the same error messages listed in the
Symptoms section of this article, you may have permissions problems with your registry. Since it may not be
possible to know what caused or led to the permissions problems, we suggest you consider restoring Windows to a
previous state.
Restore system files and settings (Windows 7) https://windows.microsoft.com/en-US/windows7/Restore-system-
files-and-settings
How to repair the operating system and how to restore the operating system configuration to an earlier point in
time in Windows Vista
https://support.microsoft.com/kb/936212
How to restore Windows XP to a previous state
https://support.microsoft.com/kb/306084
If your Excel files are still not opening, but the error has stopped after following these steps, you may have an
additional problem to resolve.
We suggest you also check the content provided in this article:
https://support.microsoft.com/kb/211494
"We can't open this add-in from localhost" when
loading an Office add-in or using Fiddler
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you load an Office add-in from https://localhost or when you use Fiddler, you receive the following error:
We can't open this add-in from localhost.

Resolution
One cause of this error is that the Microsoft Edge Web Viewer does not have a loopback exemption. To resolve this
issue, use either of these options to add a local loopback exemption to Desktop App Web Viewer :
Option 1: Use command to add a local loopback exemption
1. Open a command prompt as administrator.
2. Run the following command:

CheckNetIsolation LoopbackExempt -a -n="microsoft.win32webviewhost_cw5n1h2txyewy"

Option 2: Use Fiddler to add a local loopback exemption


1. Select Tools > Win8 Loopback Exemptions .
2. Add an exemption to Desktop App Web Viewer .
Third-par ty disclaimer information
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
The information and the solution in this document represent the current view of Microsoft Corporation on these
issues as of the date of publication. This solution is available through Microsoft or through a third-party provider.
Microsoft does not specifically recommend any third-party provider or third-party solution that this article might
describe. There might also be other third-party providers or third-party solutions that this article does not describe.
Because Microsoft must respond to changing market conditions, this information should not be interpreted to be a
commitment by Microsoft. Microsoft cannot guarantee or endorse the accuracy of any information or of any
solution that is presented by Microsoft or by any mentioned third-party provider.
Microsoft makes no warranties and excludes all representations, warranties, and conditions whether express,
implied, or statutory. These include but are not limited to representations, warranties, or conditions of title, non-
infringement, satisfactory condition, merchantability, and fitness for a particular purpose, with regard to any
service, solution, product, or any other materials or information. In no event will Microsoft be liable for any third-
party solution that this article mentions.
"Cannot be opened" error when you start an Office
Starter 2010 program.
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Resolution
If Word Starter 2010 or Excel Starter 2010 cannot be opened, uninstall and reinstall Microsoft Office Starter 2010:
1. Click Start (or Start > Run in Windows XP).
2. Type appwiz.cpl, and then press Enter.
Warning Do not remove Microsoft Office 2010from the list of installed programs. You will need this to
reinstall Microsoft Office Starter 2010.
3. Click Microsoft Office Starter 2010, and then click Uninstall (or Remove in Windows XP).

4. Click Yes and follow the instructions to uninstall Office Starter 2010.
5. To reinstall Office Starter 2010, click Start > All Programs > Microsoft Office 2010.

6. Click Use.

7. And then click Open. This will re-install Office Starter 2010.
If the error continues to occur, you may have to do a full restore of the computer to reinstall Microsoft Office
Starter 2010. We recommend you contact the computer manufacturer to talk about your options before you
do this.
Get help from the Microsoft Community online community, search for more information on Microsoft Support or
Office Help and How To, or learn more about Assisted Support options.
Error messages when you try to uninstall Microsoft
Office 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You receive one of the following error messages when you try to uninstall Microsoft Office 2013 or Office 365
suite.

Couldn't uninstall Office


We're sorry, Office couldn't be uninstalled. Please try uninstalling Office again.

Office is busy.
Office can't do that right now because your product is busy with another task. Please wait for this task to
complete and try again.
Resolution
Restart Windows and try to uninstall Office again to fix the problem.
If restarting Windows doesn't help, use the automated troubleshooter or follow the manual uninstall steps in this
article: Uninstall Microsoft Office 2013 or Office 365 suites.

More Information
This error can occur when another program has control of certain files Microsoft Office needs to access and doesn't
release them. When programs take control of files and keeps them open, the most effective way of releasing these
files is to restart the computer. This shuts down all programs and closes all files. After a restart, Microsoft Office can
then access these files and uninstall successfully.
"Error 25090" error message when you start an Office
program
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to start a Microsoft Office 2007 or Microsoft Office 2003 program, you may receive the following
error message or an error message that is similar to the following:

Error 25090. Office Setup encountered a problem with the Office Source Engine, system error: -2147023836.
Please open SETUP.CHM and look for "Office Source Engine" for information on how to resolve this problem.

Cause
This behavior occurs when the following conditions are true:
Two people installed Office on the same computer.
Both installations were completed by using the AllUsers="" parameter to set the installation for the installing
user account only.
When both people were prompted to remove files that were copied locally at the end of Setup, both people did
not remove the files.
One of the two people removed Office.

Resolution
To resolve this behavior, start the Setup program for Office. To do this, follow these steps:
1. Insert the Microsoft Office 2003 CD in your CD drive or DVD drive.
2. If the Setup program does not start automatically, locate the Setup.exe file on the CD, and then double-click the
file to start Setup.
3. After the Setup window appears, cancel Setup, and then respond to the prompts to exit Setup.

NOTE
You do not have to complete the Setup program. Setup fixes the error condition when it is first invoked.
Error when editing an equation in Office
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to edit an equation that was inserted using Equation Editor 3.0 in an Office application (such as
Word), you see the following error:
Microsoft Equation is not available

Cause
Equation Editor 3.0 was a third-party component built by Design Science (https://www.dessci.com) that was
included in many versions of Office, but due to security issues with its implementation has been removed. Office
now includes a newer equation editor.
For more information about the security issue, see CVE-2017-11882 | Microsoft Office Memory Corruption
Vulnerability.

Resolution
While the new equation editor will not edit existing equations that were created by Equation Editor 3.0, it allows you
to insert new equations, common equations, or ink equations written by hand. The equation function can be found
in Word, Excel, or PowerPoint under the Inser t tab.
For more information about inserting and editing equations, including a short video tutorial, see Write an equation
or formula.
Alternatively, the third-party app MathType enables you to edit Equation Editor 3.0 equations without security
issues. MathType is now part of the Wiris Suite. You can download a free MathType 30-day trial at: Welcome
Microsoft Equation Editor 3.0 users

More information
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.
Microsoft provides third-party contact information to help you find technical support. This contact information may
change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
"Error 25004. The product key you entered cannot be
used on this machine" when you install Office 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to Install Microsoft Office 2013, you receive the following error message:

Microsoft Office encountered an error during setup.

Error 25004. The product key you entered cannot be used on this machine. This is most likely due to previous
Office 2013 trials being installed. (System error: -1073422308)

Cause
This issue occurs when you try to install a Windows Installer (MSI)-based version of Office 2013 on a
computer on which the computer manufacturer has already installed a version of Microsoft Office 2013.

Resolution
To resolve this issue, uninstall the existing version of Microsoft Office. To do this, follow the steps for the version of
Windows that you are running.
Windows 8
1. Swipe in from the right edge of the screen, and then tap Search . Or, if you are using a mouse, point to the
lower-right corner of the screen, and then click Search .
2. In the search box, type Control Panel.
3. Tap or click Control Panel , tap or click Programs , and then tap or click Programs and Features .
4. Select the Microsoft Office 2013, and then tap or click Uninstall .
Windows 7
1. Click Star t , click Control Panel , click Programs , and then click Programs and Features .
2. Select the Microsoft Office 2013, and then click Uninstall .
"Generic Trust Failure (0x800B010B)" error when you
install Visual Studio 2010 Tools for Office Runtime
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to install Visual Studio 2010 Tools for Office Runtime, you receive the following error message:

Generic Trust Failure (0x800B010B)

Additionally, an error message that resembles the following is logged in the MSI log:

c:\<temp folder>\vstor40\vstor40_x64.exe - Signature verification for file vstor40\vstor40_x64.exe (c:\<temp


folder>\vstor40\vstor40_x64.exe) failed with error 0x800b010a (A certificate chain could not be built to a
trusted root authority.) No FileHash provided. Cannot perform FileHash verification for vstor40\vstor40_x64.exe
File vstor40\vstor40_x64.exe (c:\<temp folder>\vstor40\vstor40_x64.exe), failed authentication. (Error = -
2146762486). It is recommended that you delete this file and retry setup again. ServiceControl operation
succeeded! Final Result: Installation failed with error code: (0x800B010B), "Generic trust failure."

Cause
This problem occurs because Visual Studio 2010 Tools for Office Runtime is being signed by using a set of new
certificates that require updating. Typically, the Windows root certificate program automatically downloads these
new root certificates. However, the Windows root certificate program may not function as expected if the computer
is disconnected from the Internet or if the root certificates update is disabled through Group Policy.

Resolution
To resolve this problem, make sure that the computer is connected to Internet and that the Windows root certificate
program can update root certificates.
To check the setting on your computer for the Group Policy that controls automatic certificate updates, follow these
steps:
1. Open the Local Group Policy Editor (Gpedit.msc).
2. Under Computer Configuration , expand Administrative Templates , expand Internet Communication
Management , and then click Internet Communication settings .
3. Check the status of the Turn off Automatic Root Cer tificates Update control.
Also, see Configure trusted roots and disallowed certificates.

Workaround
To work around this issue, use the executable file because the file is signed by using an older root certificate that
may exist on the computer. To do this, follow these steps:
1. Extract the installation file for Visual Studio 2010 Tools for Office Runtime. To do this, run the following
command:
vstor_redist.exe /x
2. Select a folder in which to extract the file.
3. Run the executable file to install Visual Studio 2010 Tools for Office Runtime.
Note The executable file resembles Vstor40_*.exe and is located in the Vstor40 subfolder. Select the
executable file that corresponds to the bit value of the Windows Operating System.
You receive an error message when you try to open a
presentation in PowerPoint
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a presentation in PowerPoint 2002, in PowerPoint 2003, or in PowerPoint 2007, you receive
the following error message:
PowerPoint 2002 and PowerPoint 2003
"PowerPoint can't read path\file_name.ppt."
PowerPoint 2007
Error message 1
"PowerPoint found unreadable content in Presentation.pptx. Do you want to recover the contects of this
presentation? If you trust the source of this presentation, click Yes."
To determine the unique number that is associated with the message that you receive, press CTRL+SHIFT+I. The
following number appears in the lower-right corner of this message:
"400645"
Error message 2
"There was an error accessing C:\documents and settings\username\Presentation.pptx"
To determine the unique number that is associated with the message that you receive, press CTRL+SHIFT+I. The
following number appears in the lower-right corner of this message:
"400066"

Cause
This problem occurs because the PowerPoint presentation is corrupted or has been damaged.

Resolution
To correct this problem, try to open the PowerPoint presentation in an earlier version of PowerPoint. For example,
open the presentation in PowerPoint 2000 or in an earlier version of PowerPoint. If you are successful in opening
the presentation, insert the slides from the damaged presentation in a new presentation. To do this, follow these
steps:
PowerPoint 2002 and PowerPoint 2003
1. Start the later version of PowerPoint that gave you the error message that is mentioned in the "Symptoms"
section.
2. Click Insert, and then click Slides from Files.
3. In Slide Finder on the Find Presentation tab, click Browse.
4. Locate and then click the PowerPoint presentation that gave you the error message, click Open, and then click
Insert All.
Note If the new file that you just created does not have the design of the damaged presentation, you can apply that
design by following the menu path: Format, Slide Design, and then selecting the appropriate design on the Slide
Design menu.
PowerPoint 2007 and PowerPoint 2010
1. On the Home tab, in the Slides group, click New Slide, and then click Reuse Slides.
2. In the Reuse Slides pane, click Open a PowerPoint File.
3. In the Browse dialog box, locate and then click the presentation file that contains the slide that you want, and
then click Open.

More Information
In earlier versions of PowerPoint such as PowerPoint 2000 and earlier versions, PowerPoint could not detect all the
types of invalid or damaged data in presentations that can be detected by PowerPoint 2007, by PowerPoint 2003
and by PowerPoint 2002. As a result, the earlier versions of PowerPoint open the presentation, and you may
experience unexpected behavior from the corruption or damage that is contained in the file.
"Excel cannot complete this task with available
resources" error occurs in Excel 2010
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You receive the following error message:

Excel cannot complete this task with available resources. Choose less data or close other applications.

The error occurs when you:


Open or save an Excel workbook
Open an Excel workbook that references a relative name from another workbook
Use a defined name in a formula in an Excel workbook
Define or delete a name in an Excel workbook

Resolution
Note: Before continuing on to the Resolution methods, ensure you have the latest Office updates installed: Keep
Windows up to date with the latest Updates.
After you have installed the available updates, check to see if you still have the issue. Continue to the Resolution
Methods if you're still having problems.
We recommend that you follow the provided methods in this article in order. However, if you had previously tried
one of the methods to fix this error and it did not help, you can jump to another method quickly from this list:
Method 1: Check whether you exceed limits
Method 2: Make sure only one instance of Excel is active
Method 3: Close all applications
Method 4: Test Excel in safe mode
Method 5: Turn off the preview pane in Windows Explorer (Windows 7 only)
Method 6: Save as an Excel workbook file if you use relative names
Method 7: Change defined names to reference cells directly
Method 1: Check whether you exceed limits
The error can occur if you exceed certain Excel 2010 limits, such as running too many calculations in the workbook.
Some of these limits are as follows:
The maximum worksheet size limit is 1,048,576 rows by 16,384 columns.
The total number of characters that a cell can contain is 32,767 characters.
The maximum selected range in a calculation is 2,048.
The maximum nested level of functions in a calculation is 64.
For a full list of Excel 2010 specifications and limitations, read the information in this Office website article:
Excel 2010 specifications and limits
If you have checked and the worksheet or workbook is not exceeding Excel limitations, go to the next method.
Method 2: Make sure only one instance of Excel is active
The error can occur if multiple instances of Excel are running. This usually happens if you have more than one Excel
workbook opened at a time. We recommend that you close out all instances of Excel and then reopen your Excel
workbook to test. If you are not sure if you have multiple instances of Excel running, follow these steps to check:
1. Open Task Manager. To do this, take any of the following actions:
Press CTRL + ALT + Delete, and then click Star t Task Manager .
Press CTRL + Shift + Esc.
Right-click an empty area of the taskbar, and then select Star t Task Manager .
2. As soon as you are in Task Manager, click the Applications tab.
3. Click the Task bar to sort the applications alphabetically.
If you see more than one line with Microsoft Excel, you are running multiple instances of it. We recommend that
you go back to Excel, save your workbook and close it. Repeat this process until Excel no longer appears in Task
Manager.
Once all instances of Excel are closed, open the Excel workbook and test. If the error continues to occur, go to the
next method.
Method 3: Close all applications
The error may occur if other applications are active and using computer memory while you are trying to use, open,
or save the Excel workbook. We recommend that you close and exit all applications except for the Excel workbook.
You can close applications manually or you can follow the "clean-boot" steps provided in one of the following
articles:
How to perform a clean boot in Windows 7 or Windows Vista
How to perform a clean boot in Windows XP
Once all applications are closed, open the Excel workbook and test. If the error continues to occur, go to the next
method.
Method 4: Test Excel in safe mode
The error can occur if you have too many Excel add-in programs running. To test whether an add-in is causing the
problem, start Excel in safe mode:
1. Click Star t .
2. In Windows 7, type excel /s in the Search programs and files box and press Enter . In Windows Vista, type
excel /s in the Star t Search box and press Enter .
3. Check the title. It should read Book1 - Microsoft Excel (Safe Mode).
4. Click File , and then select Open .
5. Locate the Excel workbook to test and open it.
Open the Excel workbook and test. If the error no longer occurs, you may have too many add-in programs or
a specific add-in may cause this error. We recommend that you follow the steps in this Microsoft online
article to unload add-in programs:
Load or unload add-in programs
If the error continues to occur, go to the next method.
Method 5: Turn off the preview pane in Windows Explorer (Windows 7 only)
The preview pane is used to see the contents of most files in Windows Explorer. For example, if you click a picture,
video, or text file, you can preview its contents without opening the file. By default, the preview pane is turned off in
Windows 7. However, if it is turned on, it may cause a conflict with the Excel workbook you try to open leading to
this error. We recommend that you turn off the preview pane and test opening your Excel workbook. To do this:
1. Click Star t , and then click Computer .
2. Click Organize .
3. Select Layout , and then click to clear Preview pane .
4. Open the Excel workbook and test.
If the error continues to occur, go to the next method.
Method 6: Save as an Excel workbook file if you use relative names
The error can occur when you create a workbook that contains a relative name and then fill a range of cells
referencing this relative name in a new workbook. For example, you create the workbook that contains a relative
name, then, in another workbook, you press Ctrl + Enter to fill a range of cells with a reference to the relative name.
You save the second workbook as an "Excel 97-2003 Workbook (*.xls)" file and then close both workbooks.
To work around this issue, follow one of these options:
Option 1
1. Open the Excel workbook that contains the relative name first.
2. Next, open the Excel workbook that contains the reference to the relative name.
Option 2
Save both workbooks as Excel (.xlsx) workbook files. To do this:
1. Click File , and then click Save As .
2. Select Excel Workbook (*.xlsx) in the Save as type box and save the file.
If the error continues to occur, go to the next method.
Method 7: Change defined names to reference cells directly
You may have used a defined name to represent a cell, range of cells, formula, or constant value. The error can
occur if you define names that indirectly refer to other nested names that are more than 20 levels deep and you do
one of the following:
You add or use a name that exceeds the level of indirection in the formula
You delete a name that is referenced by more than 20 levels of defined names
To resolve the problem, change the defined names so that they reference the given cells more directly.
If the error continues to occur, go to the "References" section of this article.

References
If the information in this knowledge base article did not help resolve the error in Excel 2010, select one of the
following options:
More Microsoft online articles: Perform a search to find more online articles about this specific error.
Help from the Microsoft Community online: Visit the Microsoft Community and post your question about
this error.
Contact Microsoft support: Find the phone number to contact Microsoft Support.
"Files necessary to run the Office Customization Tool
were not found" when you open the tool
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You use the Office Customization Tool to customize an installation of the 2007 Microsoft Office system. You try to
open the Office Customization Tool by typing the following command at a command prompt:
setup.exe /admin
When you do this, you may receive the following error message:

Files necessary to run the Office Customization Tool were not found. Run Setup from the installation point of a
qualifying product.

Cause
This issue may occur if you do not have a volume-license version of the 2007 Office system. The Office
Customization Tool is available only with volume-license versions of the 2007 Office system. This tool requires an
Admin folder in the 2007 Office system source image. If the Admin folder does not exist, you will receive this error
message.

More Information
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
931401 How to determine whether you have a retail edition or a volume license edition of a 2007 or a 2010
Microsoft Office suite
For more information about the Office Customization Tool, visit the following Microsoft Web site:
Office Customization Tool (OCT) reference for Office 2013
"Incorrect function" when saving a file from an Office
program to a CD-RW or a DVD/CD-RW drive
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to save a file in one of Office programs to a CD-RW or a DVD/CD-RW drive, the file is not saved.
Additionally, you receive the following error message:
Incorrect function.
When you click OK in the error message, you receive the following error message:

You do not have access to the folder 'drive:\'. See your administrator for access to this folder.

Cause
This behavior occurs because Microsoft Office programs do not use the CD-ROM writing function that is available
in some Microsoft Windows operating systems.

Workaround
To work around this behavior, install a third-party CD-ROM recording program. A third-party CD-ROM program
lets the CD-ROM writing function that is available in Windows XP work with your Office program.

NOTE
Not all third-party CD-ROM recording programs let you save a file from an Office program directly to a CD-RW or a
DVD/CD-RW drive. In this case, you must save the file to the hard disk drive, and then use the CD-ROM recording program
to burn the file to a CD-RW or a DVD/CD-RW drive.

For more information about how to do this with your third-party CD-ROM recording program, look at the
documentation for the program.

More Information
For more information about the CD-ROM writing function that is available in some Microsoft Windows operating
systems, click the following article number to view the article in the Microsoft Knowledge Base:
317525 Description of the CD-ROM recording feature in Windows Server 2003
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
The information and the solution in this document represent the current view of Microsoft Corporation on these
issues as of the date of publication. This solution is available through Microsoft or through a third-party provider.
Microsoft does not specifically recommend any third-party provider or third-party solution that this article might
describe. There might also be other third-party providers or third-party solutions that this article does not describe.
Because Microsoft must respond to changing market conditions, this information should not be interpreted to be a
commitment by Microsoft. Microsoft cannot guarantee or endorse the accuracy of any information or of any
solution that is presented by Microsoft or by any mentioned third-party provider.
"The Installation of This Package Failed" When you
install Office Pro Plus 2010 from Office 365
Subscription Portal
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You download Microsoft Office Professional Plus from the Office 365 Subscription Portal and when you double-
click the MicrosoftOffice.EXE file to install it, you receive the following error message: "The Installation of this
package failed."

Cause
The downloaded file is incomplete or corrupt

Resolution
Once the MicrosoftOffice.EXE file is downloaded, check the file size by right-clicking on the file and choosing
Properties. The file size should be:
For the 32-bit download: 772 MB For the 64-bit download: 864 MB
If the file is not the correct size, try downloading the file again.

More Information
Office 365 Subscription Sign-In Portal: https://portal.microsoftonline.com
"Invalid product key or license mismatch" error
message when you try to activate Office 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that you try to activate Microsoft Office 2013 by using the Volume Activation Tools wizard on a Windows
Server 2012-based computer. Additionally, assume that you use Active Directory-based or Key Management
Service-based activation. In this situation, you receive the following error message:

Invalid product key or license mismatch. Please confirm this product key is entered correctly and is valid for
this application or Windows edition.

Cause
This issue occurs because you add the Volume Activation Tools role to Windows Server 2012, but you do not install
Office 2013 Volume License Pack.

Resolution
To resolve this issue, install Office 2013 Volume License Pack. To download Office 2013 Volume License Pack, go to
the following Microsoft Download Center website:
Download Microsoft Office 2013 Volume License Pack now
This installation starts the Volume Activation Tools wizard and enables you to select the activation type, enter the
Office 2013 KMS host key, and activate Office 2013.

More Information
Windows Server 2012 does not have the files that are required to activate an Office 2013 KMS host key. Microsoft
Office Volume License Pack includes these files and enables you to successfully activate a KMS host key.
"Windows cannot access specified device, path, or
file" error launching Office
5/11/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to launch an Office in the Microsoft Store app, you receive the following error:

Windows cannot access the specified device, path, or file. You may not have the appropriate permission to
access the item.

NOTE
This issue occurs with Office in the Microsoft Store (or pre-installed) apps and does not occur with Click-To-Run or volume
license Products.

Cause
Office apps won't launch when Folder Redirection for AppData folder is enabled.

Resolution
This issue has been resolved in the following Microsoft Knowledge Base articles:
RS4: April 25, 2019—KB4493437 (OS Build 17134.753)
RS5: May 3, 2019—KB4495667 (OS Build 17763.475)
These KBs address an issue that prevents certain apps from launching when you set folder redirection for the
Roaming AppData folder to a network path.

Workaround
If the issue persists, try adding permission for all users to access the %appdata\Microsoft folder:
1. Select the Windows Start button (or CTRL + R) and type %appdata% .
2. In the Roaming folder, right-click the Microsoft folder.
3. Select Proper ties and then the Security tab.
4. Select the user or users required to access this folder.
5. Ensure that "List folder contents" is checked under Permission for Everyone.
6. Select OK .
More information
For more information, see the following Microsoft Knowledge Base articles:
FAQ: Office on Windows 10 in S mode
Install Office from the Microsoft Store app on a PC

NOTE
You can also get Office apps (Office in Microsoft) with a PC that bundles with Microsoft Office.

"Windows cannot access the specified device, path, or file" error when you try to install, update or start a
program or file
Determine your version of Office
To determine whether your Office is an "Office in the Microsoft Store" version or another, follow these steps:
Method 1
1. Open Settings from the Windows menu and select Apps .
2. Under "Apps & features", enter "Office" in the Search this list box.
If "Microsoft Office Desktop Apps" is listed, you are using "Office in the Microsoft Store".

Method 2
1. Start an Office application.
2. On the File menu, select Account .
If you are using "Office in the Microsoft Store", the Update Options button will not be displayed, and you will see
"Microsoft Store " in under About Word instead of a build version.
"This feature has been disabled by your
Administrator" when Office 365 activates Skype for
Business
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to install Microsoft Skype for Business as a stand-alone application from a Microsoft Microsoft 365
Apps for enterprise suite, you receive one of the following error messages:
Error message 1
This feature has been disabled by your Administrator.
Error message 2
We are unable to connect right now. Please check your network and try again later.

Resolution
NOTE
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

To work around this issue, check whether there is a value for the UseOnlineContent registry entry that is described
in Overview of identity, authentication, and authorization in Office 2013. If the entry exists, the value must be set
to 2 . To do this, follow these steps:
1. Click Star t , click Run .
2. Type regedit, and then press Enter.
3. Locate and then click the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Internet

NOTE
If the UseOnlineContent registry entry exists in this path, you can skip steps 4 and 5.

4. On the Edit menu, point to New , and then click DWORD Value .
5. Type UseOnlineContent, and then press Enter.
6. Right-click UseOnlineContent , and then click Modify .
7. In the Value data box, type 2, and then click OK .
8. Exit Registry Editor.
Error message when you open an Office file that has
a long folder name
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

For a Microsoft Office 2000 version of this article, see 325573.

Symptoms
When you open specific files in Microsoft Office Excel 2007, you receive the following error message if the files are
in folders that have long names:

'<filename>.<extension>' could not be found. Check the spelling of the file name, and verify that the file
location is correct. If you are trying to open the file from your list of most recently used files on the File
menu, make sure that the file has not been renamed, moved, or deleted.

When you open specific files that are in folders that have long folder names in Microsoft Word 2002, Microsoft
PowerPoint 2002, Microsoft Access 2002, Microsoft Excel 2002, and Microsoft Outlook 2002, you receive one of the
following error messages:
Filename is not valid.
The file could not be accessed.
The path you entered, is too long. Enter a shor ter path.
File Name could not be found. Check the spelling of the filename, and verify that the file location is
correct.

Cause
This behavior occurs because the 2007 Office suites, Microsoft Office 2003, and Microsoft Office XP have a
character limitation of 256 characters for folder names.

Workaround
To resolve this behavior, make sure that the path of the file contains less than 256 characters. To do this, use one of
the following methods:
Rename the file so that it has a shorter name.
Rename one or more folders that contain the file so that they have shorter names.
Move the file to a folder with a shorter path name.

More Information
You also receive the error messages that are described in the "Symptoms" section of this article when you save or
open a file that meets the following situations:
Word 2002:
The total length of both the path and the file name, including the file name extension, exceeds 255
characters.
PowerPoint 2002:
The total length of both the path and the file name, including file name extension, exceeds 256 characters.
Access 2002:
The total length of both the path and the file name, including file name extension, exceeds 249 characters.
Excel 2002:
The total length of both the path and the file name, including file name extension, exceeds 218 characters.
Outlook 2002:
The total length of both the path and the file name, including file name extension, exceeds 255 characters.

NOTE
This limitation includes three characters that represent the drive, the characters in the folder names, the backslash
character between folders, and the characters in the file name.
"Microsoft cannot be opened because of a problem"
error when you start an Office program
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to start any Office for Mac applications (Microsoft Word, Microsoft Excel, Microsoft PowerPoint,
Microsoft Entourage, or Microsoft Outlook for Mac) in Mac OS X 10.6.x (Snow Leopard), you receive the following
error message:

Microsoft <application_name> cannot be opened because of a problem.Check with the developer to make sure
Microsoft <application_name> works with this version of Mac OS X. You may need to reinstall the application. Be
sure to install any available updates for the application and Mac OS X.

Cause
This error occurs if the Office program was moved or duplicated.

Resolution
Step 1: Check the program path
When the error message is displayed, view the comments under "Problem Details and System Configuration.".
Note the "Path" that is listed in the error message, and then close the error message box. The path must be as
follows:
Macintosh HD\Applications\Microsoft Office 2008
Macintosh HD\Applications\Microsoft Office 2011
If the path in the error message differs, you must move the application folder to its correction location. To do this,
follow these steps:
1. Locate the Office 2008 folder.
2. Click to select the folder.
3. On the Finder menu, click Edit , and then select Copy Microsoft Office 2008 or Copy Microsoft Office 2011.
4. On the Finder menu, click Go , and then select Applications.
5. On the Finder menu, click Edit , and then select Paste the Item .
6. Start the Office program to see whether the problem is resolved.
If the problem continues to occur, there might be duplicate entries.
Step 2: Delete duplicate entries
To delete duplicate entries, follow these steps:
1. On the Finder menu, click File , and then click Find .
2. In the search box, type the program name, and then press Enter. For example, type Excel.

3. In the results, look for duplicate instances of the Excel icon. If there is only one icon, go to "step 3". If there are
several Excel icons, select a duplicate icon. On the Finder menu, click File , and then select Move to Trash .
4. Empty the Trash.
5. Start the Office program. If the problem continues to occur, remove and then reinstall the Office program.
Step 3: Remove and then reinstall Office
Office 2011
To remove Office 2011, follow these steps:
1. Quit all applications.
2. In the Finder, click Go select Computer.
3. Open your hard drive (Macintosh HD), then open the Application Folder.
4. Click to select Microsoft Office 2011 drag and then drop it to the Trash.
5. Reinstall Office for Mac 2011.
Office 2008
To remove Office 2008, follow these steps:
1. Quits all applications.
2. In the Finder, click Go , and then select Computer .
3. Open Macintosh HD , then open the Applications folder.
4. Open the Microsoft Office 2008 folder.
5. Open the Additional Tools folder.
6. Double-click the Remove Office file. The "Remove Office" window will open.
7. Click Continue .
8. Follow the directions that are provided.
9. Reinstall Office 2008 on your computer.
"The following connection failed to refresh" error in
an Excel 2013 workbook on a WAC server
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You create a pivot table that references external data in a workbook in Microsoft Excel 2013.
You upload the workbook to a Web Application Companions (WAC) server.
You update the data connection or change the PivotTable fields.
In this scenario, you receive the following error message:

A data connection is set to always use connection file and {0:ExcelWebApp} does not support external connection
files. The following connection failed to refresh:

Data connection

Cause
This issue occurs because the WAC server does not support the Office Data Connection (ODC) file that stores the
data connection information.

Workaround
To work around this issue, follow these steps:
1. Open the workbook in an Excel client application.
2. Select the data connection that is listed in the error message, and then click Proper ties under the Data tab.
3. Clear the Always use connection file check box under the Definition tab.
4. Republish the workbook to the WAC server.
Mobile viewing PDF files with Office Web Apps
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you open a PDF file on a mobile device by using Microsoft SharePoint and Office Web Apps or Office Online
Server, the mobile browser displays the following error message:
Viewing .PDF files has been disabled in Microsoft Word Mobile viewer.

Cause
This problem occurs because PDF viewing on mobile browsers is not supported in Office Web Apps or Office
Online Server.

More information
The "MobileView" action was removed from the available Web Application Open Platform Interface Protocol
(WOPI) actions for the WordPDF application. Also this feature is not available for Office Online Server.
"To install and use this product..." error when you
install Office 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to install Microsoft Office 2010, the installation does not finish, and you receive the following error
message:

To install and use this product, you must be running one of the following operating systems:

x86 Platform
Windows 7
Windows Vista sp1
Windows XP Sp3
Windows Server 2003 Sp2
x64 Platform
Windows 7
Windows Vista Sp1
Windows Server 2008
Note Office 2010 x64 does not support Windows XP and Windows Server 2003.

Cause
This issue occurs when one of the following conditions is true:
The operating system on which you are trying to install Office 2010 does not meet the system requirements for
the product. For example, you are trying to install Office 2010 on a Windows XP-based computer that does not
have Windows XP Service Pack 3 installed.
The Office 2010 Setup program (Setup.exe) is configured to run in compatibility mode. That is, the Setup
program is set to run under a particular operating system, such as Microsoft Windows 95.

Resolution
Follow the two methods provided to resolve your problem:
Method 1: Verify Office 2010 system requirements
All Microsoft Office 2010 editions have these operating system requirements:
O P ERAT IN G SY ST EM M IN IM UM REQ UIRED VERSIO N A RC H IT EC T URE

Windows XP Windows XP with Service Pack 3 32-bit

Windows Vista Windows Vista with Service Pack 1 32-bit or 64-bit

Windows Server 2003 Windows Server 2003 with Service Pack 32-bit or 64-bit
2

Windows Server 2008 Windows Server 2008 32-bit or 64-bit

Windows 7 Windows 7 32-bit or 64-bit

Check your computer and determine if you are running one of these minimal required versions of the operating
system.
If you are not sure how to check the version of Windows installed on your computer, follow the steps
1. Click Star t, type msinfo32 in the Star t Search or Search programs and files , then press ENTER.

2. Locate your operating system next to the OS Name line and your architecture type next to the System Type

line.
If the operating system on your computer does not meet the minimum system requirements you will need to
update it. The preferred method to update your computer is through automatic updates. However, you can also
obtain service pack updates by clicking on the following link:
Download Windows Vista Service Pack 1 (32-bit) now Download Windows Vista Service Pack 1 (64-bit) now
Download Windows 2003 Service Pack 2 (32-bit) now Download Windows 2003 Service Pack 2 (64-bit) now
If you meet the minimum system requirements, visit the following TechNet webpage to make sure you meet the
minimum hardware requirements:
System requirements for Office 2010
Method 2: Turn off compatibility mode
To resolve this issue, you must disable compatibility mode before you try to install Office 2010. To do this, follow
these steps:
1. Right-click the Office 2010 Setup.exe file. The screen shot for step 1 and 2 is under the step 2.
2. Click Proper ties .

3. Click the Compatibility tab. The screen shot for step 3 ,4 and 5 is under the step 5.
4. Click to clear the Run this program in compatibility mode for check box.
5. Click Apply , and then click OK .

6. Double-click Setup.exe to install Office 2010.

More Information
How to obtain the latest Windows Vista service pack
How to obtain the latest Windows XP service pack
How to obtain the latest service pack for Windows Server 2003
How to obtain the latest service pack for Windows Server 2008
"Office has detected a problem with this file" error in
Microsoft Office 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You perform one of the following actions in a Microsoft Office 2010 application:
Open an embedded object
Perform a mail merge
Open a file from a viewer
In this situation, you receive the following error message:

Office has detected a problem with this file. To help protect your computer this file cannot be opened.

Cause
This problem occurs because Office File Validation detects a problem with the file that may pose a security risk. You
receive the error message for a malicious file or for a damaged file.

Workaround
To work around this problem, move the file to a trusted location.
Note If you still experience this problem, contact your system administrator.

More Information
Office File Validation is a feature that performs security checks on files. If Office File Validation detects a problem
with a file, the file cannot be opened.
A trusted location is a folder on your computer or on a network. Any file that you put in a trusted location can be
opened without being checked by the Trust Center. Additionally, the file is not opened in Protected View.
Files from the Internet and from other potentially unsafe locations may contain viruses, worms, or other kinds of
malware. These agents may harm your computer. To help protect your computer, Office 2010 opens files from these
potentially unsafe locations in Protected View. By using Protected View, you can read a file and inspect its contents.
Additionally, you can reduce the risks that are associated with the actions that are mentioned in the "Symptoms"
section.
For more information about trusted locations, see Add, remove, or modify a trusted location for your files.
Office file previews in Windows Explorer may not
show after switching from 64-bit Office to 32-bit
Office
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
If a 64-bit version of Office 365 is installed, then uninstalled, and then a 32-bit version of Office 365 is subsequently
installed, Windows Explorer may not show document previews. Instead, an error may be shown:
Word : "Word could not create the work file. Check the temp environment variable."
PowerPoint : "Access denied. Contact your administrator."
Excel : "This file cannot be previewed."

Workaround
IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

To work around this issue, delete the following registry keys:


1. Press and hold or right-click the Star t button, then select Run .
2. Enter regedit in the **Open:**box and select OK .
3. Search for and delete the following registry keys:
Word Preview : HKCR\CLSID{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}
PowerPoint Preview : HKCR\CLSID{65235197-874B-4A07-BDC5-E65EA825B718}
Excel Preview : HKCR\CLSID{00020827-0000-0000-C000-000000000046}
4. Close Registry Editor and restart Windows.
Repair process for an Office Click-to-Run application
does not start
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that a Microsoft Office Click-to-Run application crashes multiple times when you try to start it, and then
you receive the following dialog box:

When you click Yes in the dialog box, the repair process does not start.

Cause
This is a known issue in Office Click-to-Run applications.

Workaround
To repair the Office Click-to-Run application, follow these steps as appropriate for the version of Windows that the
computer is running.
Windows 10, Windows 8.1 and Windows 8:
1. On the Windows Start screen, type Control Panel .
2. Click or tap Control Panel .
3. Under Programs , click or tap Uninstall a program .
4. Click or tap MicrosoftOffice 365 , and then click or tap Change .
5. Click or tap QuickRepair , and then click or tap Repair . You may have to restart your computer after the repair
process is complete.
Windows 7:
1. Click Star t , and then click Control Panel .
2. Double-click Programs and Features .
3. Click MicrosoftOffice 365 , and then click Change .
4. Select Quick Repair , and then click Repair . You may have to restart your computer after the repair process
is complete.
Note If the crash issue is not resolved after you use the Quick Repair option, use the Online Repair option as
displayed in the following dialog box:

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Run-Time Error 13: Type Mismatch
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
"Run-time Error 13: Type Mismatch" This error occurs when setting the FW company as default.

Cause
There are multiple FRx versions on a workstation or server. Either a .dll file is not registered correctly, or there may
be a .dll file conflict.

Resolution
ResolutionRun the FRxReg.exe located in the FRx directory. For additional information, see How to register a .dll file.
"You selected a single-byte font to replace a double-
byte font" when replacing a Japanese font
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. You open a Microsoft PowerPoint 2010 presentation that contains Japanese font
sets. On the Home tab, in the Editing group, under Replace , you click Replace Fonts . In the Replace drop-down
list, you select a Japanese font that you want to replace. You select a different Japanese font in the With drop-down
list. Then, you click Replace .
In this scenario, the font is not replaced. Additionally, you receive the following error message:
You selected a single-byte font to replace a double-byte font. Please select a double-byte font.

Cause
This issue occurs if the following conditions are true:
The Japanese font that you want to replace is not installed on your computer.
This Japanese font is a single-byte font.
When these conditions are true, you cannot replace the font, and you receive the error message.

Workaround
Method 1: Manually replace the font
To work around this issue, you can locate each text object that uses the font that you want to replace, and then
select the text. Then, on the Home tab, in the Font group, on the Font drop-down list, select the font that you want
to replace the old font with.
Method 2: Replace the font on a computer that has the font installed
To work around this issue, you can either install the font that you want to replace, or you can replace the font in the
presentation on a computer that has the font already installed.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
"The document caused a serious error the last time it
was opened" when you open a file
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a file that Microsoft Office Excel or Microsoft Office Word could not open previously, you
may receive the following error message:

The document 'Filename' caused a serious error the last time it was opened. Would you like to continue opening
it? You may receive this message every time you try to open the file.

Cause
This problem occurs because the file appears on the list of disabled files for the Microsoft Office program. The
program adds a file to this list if the file causes a serious error, such as causing the program to quit unexpectedly
(crash) during two or more tries to open it. This message allows you to avoid potential problems that may occur if
you open the file.

Resolution
To resolve this problem, remove the file from the list of disabled files. To do so, follow these steps:
Word 2003 or Excel 2003
1. In Word 2003 or Excel 2003, click About Microsoft Program on the Help menu to view the list of disabled
files.
2. Click Disabled Items .
3. To re-enable one of the listed items, click the item, and then click Enable .
Word 2007 or Excel 2007
1. In Word 2007 or Excel 2007, click the Microsoft Office Button , and then click Word Options to view the list
of disabled files.
2. In the left pane, click Add-Ins .
3. In the right pane, select Disabled Items in the Manage list, and then click Go .
4. To re-enable one of the listed items, click the item, and then click Enable .

NOTE
Although a file is enabled, the program may still be unable to open it. The file may still cause serious errors.
Error message: "The password you supplied is not
correct"
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When Microsoft Excel attempts to verify a password that you typed, you receive the following error message:
The password you supplied is not correct. Verify that the CAPS LOCK key is off and be sure to use the
correct capitalization.

Cause
You may receive this error message if the password that you typed has a different capitalization from the actual
password. For example, suppose that you created your password by using all lowercase letters, like this:
beach
If CAPS LOCK is on when you type your password, Excel reads your password in uppercase, like this:
BEACH
Conversely, suppose that you created your password by using all uppercase letters, like this:
BEACH
If CAPS LOCK is on and you hold down SHIFT when you type your password, Excel reads your password in
lowercase, like this:
beach

Workaround
Check to see if the CAPS LOCK key is on. If it is, press it to turn it off, and then retype your password by using the
correct capitalization.
How to view error signatures if an Office program
experiences a serious error and quits
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
If a Microsoft Office program experiences a serious error and quits, your computer records an error signature that
describes the error that occurred. This article explains how to view these error signatures.

More information
The error signature contains information, such as the program name, error name, and module name, that Microsoft
uses to further develop and improve Microsoft products.
If you have an Internet connection, you can send this information directly to Microsoft by using the Office
Application Error Reporting tool. If you choose to report this information, the tool checks to see if a solution to the
problem is available, and if so, sends that information to you.
If you choose not to use the Office Application Error Reporting tool, you can use the information in the error
signature to search the Microsoft Knowledge Base directly.
To find the error signature on your computer after a program stops responding, use the appropriate method for
your operating system.
In Microsoft Windows 2000, Microsoft Windows XP, and Microsoft Windows Server 2003
The Event Viewer contains the error signature. To use the Event Viewer, follow these steps:
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click Administrative Tools, and then double-click Event Viewer.
3. In the Event Viewer, click the Application Log icon on the Tree tab.
4. To view the log, double-click any entry in the right pane where the Source column contains Microsoft Office 10
for Microsoft Office XP or Microsoft Office 11 for Microsoft Office 2003.
5. For additional information about how to use Event Viewer, click Help on the Action menu.
In Microsoft Windows NT 4.0 (SP6)
1. Click Start, point to Programs, point to Administrative Tools (Common), and then click Event Viewer.
2. In Event Viewer, click Application on the Log menu to view events for applications.
3. For additional information about how to use Event Viewer, click Help on the Action menu.
In Microsoft Windows 98 or Microsoft Windows Millennium Edition (Me )
The error signature is listed on the affected program's Help menu.
1. On the Help menu, click About Microsoft Program name .
2. Click System Info, and then double-click Office 10 Applications in the folder tree.
3. Click the Office Event/Application Fault folder.
The error log appears in the right pane.
You can also read this information in the DW.log file.
The "Center Across Columns" button doesn't appear
on the toolbar or on the Ribbon in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Excel 2000, in Microsoft Excel 2002, and in Microsoft Office Excel 2003, the Center Across Columns
button does not appear on the Formatting toolbar. In Microsoft Office Excel 2007, a Center Across Columns button
does not appear on the Home tab.

Workaround
Although the Center Across Columns toolbar button is no longer available, you can still center text across columns
without merging cells. To do this, follow these steps:
1. Select the range of cells over which you want to center text.
2. Right-click the selected cells, and then click Format Cells .
3. Click the Alignment tab.
4. In the Horizontal list, click Center Across Selection.
5. Click OK.

More Information
The Merge and Center toolbar button in Excel provides a level of functionality that is very similar to the
functionality provided by the "Center Across Columns" toolbar button in versions of Microsoft Excel earlier than
Excel 97. The button allows you to center information contained in a single cell across a range of cells.
"Margins do not fit page size" error when you print
an Excel workbook
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In a Microsoft Office Excel workbook, you select the Fit to option in the Page Setup dialog box. However, when
you print this workbook or when you use the print preview feature to view the workbook, you receive the following
error message:
Margins do not fit page size.
Additionally, many pages that have a scale of 10 percent may be printed.

Cause
This issue may occur if the printer driver uses the XML Paper Specification (XPS) PageScaling feature. When the
driver uses this feature, Excel cannot determine the scale of the workbook.

Workaround
To work around this issue, use one of the following methods.
Method 1
Use a printer driver that does not use the XPS PageScaling feature.
Method 2
Manually set the scale instead of using the Fit to option. To do this, follow these steps:
1. Open the Excel workbook.
2. Click the Page Layout tab.
3. In the Page Setup group, click Page Setup to open the Page Setup dialog box.
4. In the Page Setup dialog box, click to select the Adjust to option, enter a number for the scale, and then click
OK .
"Total" row of a table isn't displayed in waterfall charts
in Excel 2016
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you create a waterfall chart for a table that contains a "total" row and also contains a column of positive and
negative numbers in Microsoft Excel 2016, the total isn't displayed in the waterfall chart.

Workaround
To work around this issue, use one of the following methods:
Copy the table, paste the values of the table to a new location, and then create a new waterfall chart by using the
copied data.
Convert the table back to a normal range by using the Convert to Range function, and then create a waterfall
from the range.

More Information
Waterfall charts are new in Excel 2016. They show the cumulative effect of sequentially introduced positive or
negative values. Waterfall charts are also known as a flying brick charts, bridge charts, or Mario charts because of
the apparent suspension of columns (bricks) in midair. Waterfall charts are mainly used in the financial industry but
also in other industries where it's important to report and visualize resource consumption.

Status
Microsoft has confirmed this to be a problem in Excel 2016. We are researching this problem and will post new
information in this Microsoft Knowledge Base article as soon as the information becomes available.
The .SpecialCells(xlCellTypeBlanks) VBA function does
not work as expected in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you create a Microsoft Visual Basic for Applications (VBA) macro that selects multiple non-contiguous ranges
in a Microsoft Excel workbook that uses a VBA expression that is similar to the following, actions that were only
supposed to occur with non-contiguous cells occur to every cell in the original selection on the worksheet:

expression.SpecialCells(XlCellType).expression XlCellType

can be any one of the following:


xlCellTypeAllFormatConditions
xlCellTypeAllValidation
xlCellTypeBlanks
xlCellTypeComments
xlCellTypeConstants
xlCellTypeFormulas
xlCellTypeSameFormatConditions
xlCellTypeSameValidation
xlCellTypeVisible

Cause
This behavior occurs if you select more than 8,192 non-contiguous cells with your macro. Excel only supports a
maximum of 8,192 non-contiguous cells through VBA macros.
Typically, if you try to manually select more than 8,192 non-contiguous cells, you receive the following error
message:
The selection is too large.
However, when you use a VBA macro to make the same or a similar selection, no error message is raised and no
error code is generated that can be captured through an error handler.

Workaround
To work around this behavior, you may want to create a looping structure in your VBA macro that handles less than
the maximum 8,192 cells.
Status
This behavior is by design.
Excel Online updates a file stored in the document
library without user interaction
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
When you use Excel Online to open an Excel file stored in the document library, the fields such as Modified,
Modified By, and Version are updated without user interaction in the following cases:
The file was created in Excel 2010, 2013, or 2016 MSI.
You open the file with Excel Online for the first time after uploading it to the document library.

More information
This is by design. Excel applications have an internal calculation engine for each version, and Excel files contain
information about which version of the calculation engine is used to create the file. The first time you open a file
created in an earlier version of Excel using Excel Online, the recalculation is processed automatically. Due to this
behavior, the file is updated without user interaction.
Steps to Reproduce Behavior
1. Create a new file in Excel 2010, 2013, or 2016 MSI.
2. Upload the file to the document library.
3. Open the file with Excel Online.
4. Close the file without any changes.
The result is an updated file.
"The document caused a serious error the last time it
was opened" when you open a file in Excel or Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a Microsoft Excel spreadsheet or a Microsoft Word document that you could not previously
open in that program, you receive the following error message:
The document 'Filename ' caused a serious error the last time it was opened. Would you like to continue opening
it? You receive this message every time that you try to open the file.

Cause
This problem occurs because the file is included in the list of disabled files for the Microsoft Office program. The
program adds a file to this list if the file causes a serious error, such as causing the program to close unexpectedly
(crash) during two or more attempts to open it.
This error message lets you avoid potential problems that may occur if you open the file.

Resolution
To resolve this problem, follow the appropriate steps for the version of Word or of Excel that you are running.
Microsoft Office Excel 2007 and Microsoft Office Word 2007 or later versions
Disable add-ins. To do this, follow these steps:
1. In Excel , click File , click Options, and then click Add-Ins .
2. In the Manage list, click COM Add-Ins , and then click Go .
3. In the COM Add-Ins dialog box, clear the check box for any one of the add-ins in the list that's selected, and
then click OK .
4. Restart the application (not in safe mode).
If the program starts successfully, the add-in for which you cleared the check box is the one that's causing the
problem. If the program doesn't start after you complete these steps, repeat these steps by clearing the check box
for a different add-in.
If the program doesn't start after you have tested all the listed add-ins, the problem isn't related to the add-ins. To
learn about other reasons why this may problem may occur, go to the "References" section.
If the problematic add-in is a third-party product, we recommend that you go to the company website to get a
newer version of the add-in. If there's no newer version available or if you don't have to use the add-in, you can
leave that check box cleared in the COM Add-Ins list.
NOTE
If these steps do not work, the file may be damaged and not repairable. For more information about corrupted files, see the
following articles:
Repair a corrupted workbook
How to troubleshoot damaged documents in Word

References
I get a "stopped working" error when I start Office applications on my PC
Access data connections are slow to refresh in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you open an Excel file from a file server and that Excel file contains data connections to an Access database
which are also stored on a file server, you experience a slow Access data refresh rate.

Cause
When the Office Document Cache is utilized for an Excel file, a specialized Access data connection is opened. If the
Excel process creates a second Access data connection, such as one that is part of a pivot table refresh, specific
properties used with the Office Document Cache connection are also used by the pivot table data connection. The
inclusion of these properties results in slower data refresh times for Access databases.

Status
Microsoft is researching this problem and will post more information in this article when the information becomes
available.

More information
The following workarounds might alleviate the refresh time:
Move the Excel file to a local hard drive so that the Office Document Cache is not utilized.
Open the Excel file using a Uniform Naming Convention (UNC) path to the server. For example:
\\Servername\foldername\filename.xlsx.
Description of the algorithm used by the XIRR()
function in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The following information describes the algorithm used by the XIRR() function in Microsoft Excel to compute the
internal rate of return on a schedule of cash flows that are not necessarily periodic. That is, payments may be made
at different time intervals.

More information
Excel includes a function that is called XIRR() . This function returns the internal rate of return for a schedule of cash
flows that are not necessarily periodic. This function is similar to the IRR() function that returns the internal rate of
return for a series of periodic cash flows.

NOTE
If the XIRR() function is not available, you must install the Analysis ToolPak add-in.

With IRR(), all cash flows are discounted using an integer number of compounding periods. For example, the first
payment is discounted one period, the second payment two periods, and so on.
The XIRR() function permits payments to occur at unequal time periods. With this function you associate a date with
each payment and thereby permit fractional periods (raising or discounting with a fractional power).
The next step is to calculate the correct discounting rate. Basically, the larger the rate, the more the values are
reduced.
The XIRR() function sets bounds on the discount rate above and below the correct rate by doubling guesses in each
direction. With known upper and lower bounds, the function uses Newton's method to find the appropriate guess
to the level of accuracy you want.
The discounting calculation is performed after each iteration.

NOTE
Newton's method is a way to approach the root of an equation (y=f(x)) by using the tangent line to the equation's curve at
successive x-values. The new x-value keeps getting closer and closer to the root of the equation until you reach some preset
precision.
An active Excel process continues to run after using a
VBA macro to programmatically quit Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you run a Microsoft Visual Basic for Applications (VBA) macro to programmatically exit Microsoft Excel, Excel
appears to close as expected. However, an active Excel process continues to run.
This behavior may occur even when your VBA macro performs the following functions:
Closes all open workbooks
Calls the Quit method to exit Excel
Sets the Excel object to "nothing"

Cause
This behavior may occur if the following conditions are true:
A COM add-in is installed in Excel.
The COM add-in assigns an Excel or an Excel member reference to a global object.
For example, this behavior is known to occur when the Google Desktop search tool is installed in Excel. For more
information about the Google Desktop search tool, visit the following Google Web site:
https://desktop.google.com

Workaround
To work around this behavior, remove the COM add-in in Excel. To do this, follow these steps, as appropriate for the
version of Excel that you are running.
Microsoft Office Excel 2007
1. Click the Microsoft Office Button , and then click Excel Options .
2. Click Add-Ins .
3. Click Excel Add-ins in the Manage box, and then click Go .
4. In the Add-Ins dialog box, click to clear the check box for the add-ins that are known to cause this behavior.
5. Click OK .
Microsoft Office Excel 2003
1. On the Tools menu, click Add-Ins .
2. In the Add-Ins dialog box, click to clear the check box for the add-ins that are known to cause this behavior.
3. Click OK .
More Information
Microsoft provides third-party contact information to help you find technical support. This contact information may
change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.
Apply different passwords or permissions to separate
ranges in workbooks in Excel
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel 2002 and in later versions of Excel, you can now use passwords to protect specific ranges in your
worksheets. This is a change from earlier versions of Excel, in which one password applies to the entire worksheet,
which might have several protected ranges. In addition, if you use Windows 2000, you can apply group-level
passwords and user-level passwords to different ranges.
The features in Microsoft Excel that are related to hiding data and protecting worksheets and workbooks with
passwords are not intended to be mechanisms for securing data or protecting confidential information in Excel. You
can use these features to present information more clearly by hiding data or formulas that might confuse some
users. These features also help prevent other users from making accidental changes to data.
Excel does not encrypt data that is hidden or locked in a workbook. With enough time, users can obtain and modify
all the data in a workbook, as long as they have access to it. To help prevent modification of data and to help protect
confidential information, limit access to any Excel files that contain such information by storing them in locations
available only to authorized users.

NOTE
This article describes how to enable specific collaboration scenarios to function correctly in collaboration environments that
do not include users who have malicious intent. You cannot enable strong encryption for a file by using password protection.
To protect your document or file from a user who has malicious intent, you can restrict permission by using Information
Rights Management (IRM).

More Information
How to apply different passwords
To apply different passwords to two ranges in a worksheet, follow these steps:
1. Start Excel, and then open a blank workbook.
2. On the Tools menu, point to Protection, and then click Allow Users to Edit Ranges .

NOTE
In Microsoft Office Excel 2007, click Allow Users to Edit Ranges in the Changes group on the Review tab.

3. In the Allow Users to Edit Ranges dialog box, click New .


4. In the New Range dialog box, click the Collapse Dialog button. Select the range B2:B6, and then click the
Collapse Dialog button again.
5. In the Range password box, type rangeone, click OK , then type it again in the Confirm Password dialog
box, and then click OK .
6. Repeat steps 3 through 5, selecting the range D2:D6 and typing rangetwoas the password for that range.
7. In the Allow Users to Edit Ranges dialog box, click Protect sheet . In the Password to unprotect sheet
box, type ranger, and then click OK . When prompted, retype the password, and then click OK .
8. Select cell B3, and then start to type Dataone.

NOTE
When you type D, the Unlock Range dialog box appears.

9. Type rangeone in the Enter the password to change this cell box, and then click OK .
You can now enter data in cell B3 and in any other cell in the range B2:B6, but you cannot enter data in any of
the cells D2:D6 without first providing the correct password for that range.
The range that you protect with a password does not have to be made of adjacent cells. If you want the ranges
B2:B6 and D2:D6 to share a password, you can select B2:B6 as described in step 4 earlier in this article, type a
comma in the New Range dialog box, and then select the range D2:D6 before you assign the password.
When you apply different passwords to separate ranges in this way, a range that has been unlocked remains
unlocked until the workbook is closed. When you unlock another range, you do not relock the first range. Likewise,
when you save a workbook, you do not relock a range.
You can use existing range names to identify cells that are to be protected with passwords, but if you do, Excel
converts any relative references in the existing name definitions to absolute references. Because this may not give
you the results you intended, it is better to use the Collapse Dialog button to select the cells, as described earlier
in this article.
How to apply group-level passwords and user-level passwords
If you use Windows 2000 (but not other versions of Windows), you can assign different permissions to various
individual users or groups of users. When you do this, permitted users can edit the protected ranges without
needing to type passwords, and other users can still edit the ranges as long as they can supply the correct
password.
To apply group-level protection to a worksheet, follow these steps:
1. Start Excel, and then open a blank worksheet.
2. On the Tools menu, point to Protection , and then click Allow Users to Edit Ranges .

NOTE
If you are running Excel 2007, click Allow Users to Edit Ranges in the Changes group on the Review menu.

3. In the Allow Users to Edit Ranges dialog box, click New .


4. In the New Range dialog box, click Collapse Dialog , select the range B2:B6, and then click Collapse
Dialog again.
5. In the Range password box, type rangeone, and then click OK twice. When prompted, retype the password.
6. Repeat steps 3 through 5, selecting the range D2:D6 and typing rangetwo as the password for that range.
7. In the Allow Users to Edit Ranges dialog box, click Permissions , and then click Add in the Permissions
for Range2 dialog box.
8. In the Select Users or Groups dialog box, type Ever yone , and then click OK .
9. Click OK in the Permissions for Range2 dialog box.
10. In theAllow Users to Edit Ranges dialog box, click Protect sheet, type ranger in the Password to
unprotect sheet box, and then click OK twice. When prompted, retype the password.
11. Select cell B3, and then start to type Dataone. A password is still required. Click Cancel in the Unlock
Range dialog box.
12. Select cell D3, and then type Datatwo.
No password is required.

NOTE
You must use Windows 2000 in order to assign permissions to groups or individuals as described earlier in this article, but
after you have done so, those permissions are recognized when the worksheets are edited on computers that use Microsoft
Windows NT. Windows NT does not enable you to assign or modify the permissions.

If you apply group permissions or user permissions, and then open the workbook in Excel 2002 on a Microsoft
Windows Millennium Edition-based computer or Microsoft Windows 98-based computer, the group permissions or
user permissions are ignored, but different passwords for different ranges are recognized.
How to change passwords
To change the password for a range, follow these steps:
1. Start Excel, and then open the workbook.
2. On the Tools menu, point to Protection , and then click Unprotect Sheet .

NOTE
In Excel 2007, click Unprotect Sheet in the Changes group on the Review tab.

3. If prompted type the worksheet password, and then click OK .


4. On the Tools menu, point to Protection , and then click Allow Users to Edit Ranges .

NOTE
In Excel 2007, click Allow Users to Edit Ranges in the Changes group on the Review tab.

5. Click a range in the list, and then click Modify .


6. Click Password .
7. Type the new password in the New password box, and then retype the new password in the Confirm new
password box.
8. Click OK , and then click OK .
9. To change the password for another range, repeat steps 3 through 6. Otherwise, click Protect Sheet .
10. Type the worksheet password in the Password to unprotect sheet box.
11. Click OK , retype the worksheet password to confirm it, and then click OK .

IMPORTANT
Note these aspects of applying passwords and group-level permissions to specific ranges:
Excel 2003 runs only on Microsoft Windows XP and on Microsoft Windows 2000.
When a workbook with protected ranges is opened in Excel 2002 on a Windows XP-based computer, on a Windows
2000-based computer, or on a Microsoft Windows NT-based computer, the worksheet range and group protection
are the same as they are in Excel 2003.
When a workbook with protected ranges is opened in Excel 2002 on a Microsoft Windows Millennium Edition-based
computer or on a Microsoft Windows 98-based computer, ranges with user-level and group-level permissions require
the range password.

More information
For more information about the Microsoft Office features that help enable collaboration, see Description of Office
features that are intended to enable collaboration and that are not intended to increase security.
AutoComplete may not work
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You type text in a cell in Microsoft Excel. The first few characters of the text that you type match an existing entry in
that column. When this occurs, the AutoComplete feature may not automatically fill in the remaining characters.

Cause
In Microsoft Excel, the AutoComplete feature may not fill in the remaining characters if the algorithm that Excel uses
detects a header row in the list.

More Information
Example
When you use the steps in the following example, the AutoComplete feature does not appear to function properly.
1. Save and close any open workbooks, and then create a new workbook.
2. In cell A1, type ABC in uppercase.
3. In cell A2, type a in lowercase and do not press ENTER.
The AutoComplete feature automatically inserts "aBC" in cell A2.
4. Continue typing abc in lowercase in cell A2, and then press ENTER.
This overwrites the text that is suggested by AutoComplete.
5. In cell B1, type ABC in uppercase.
6. In cell B2, type a in lowercase and do not press ENTER.
The AutoComplete feature does not automatically suggest "aBC" in cell B2 as it does in step 3.
Because the characters in cell A1 are all uppercase, and the characters in cell A2 are all lowercase, Microsoft Excel
determines that row 1 is a list header row. The algorithm for the AutoComplete feature does not generate
suggested text if the first row is considered a list header row. This behavior also occurs if characters in cell A2 are
uppercase and lowercase.
Description of the AutoRecover functions in Excel
3/30/2020 • 7 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Excel now has a built-in AutoRecover feature that has replaced the AutoSave add-in that exists in versions
of Excel that are earlier than Microsoft Excel 2002. The AutoRecover feature saves copies of all open Excel files at a
user-definable fixed interval. The files can be recovered if Excel closes unexpectedly, for example, during a power
failure.
This article contains an overview of the AutoRecover feature.

More Information
How to configure the AutoRecover settings
Microsoft Office Excel 2007 and Excel 2010
The controls to configure the AutoRecover feature are in the Save settings in Excel Options.
Note To open the Save settings, click the Microsoft Office Button in Excel 2007 or the File menu in Excel 2010,
clickExcel Optionsin 2007 or Options in Excel 2010, and then click Save .
To configure the AutoRecover settings, follow these steps:
1. Under Save Workbooks , click to select the Save AutoRecover info ever y check box to turn on the
AutoRecover feature.
2. In the minutes box, you can type any integer from 1 through 120. This box sets the number of minutes that
will occur between saves.
The default is 10 minutes.
3. In the AutoRecover file location box, you can type the path and the folder name of the location in which
you want the AutoRecover files to stay.
The default location is as follows:
drive :\Documents and Settings*user_name*\Application Data\Microsoft\Excel
Notes
If the location that you type is local (on your hard drive) or is on a network drive, and if this location
does not exist, you receive the following error message:
Cannot access directory path .
To determine the unique number that is associated with the message that you receive, press
CTRL+SHIFT+I. The following number appears in the lower-right corner of this message:
100100
If you click to clear the AutoRecover file location box but do not enter a new location, AutoRecover
files will continue to be saved to the location that you cleared. This will occur until you type a new
location.
The AutoRecover file location box remains empty until you type a new location.
4. You can turn off the AutoRecover feature in an individual workbook. To do this, click to select the Disable
AutoRecover for this workbook only check box under the AutoRecover exceptions for box. Make
sure that the workbook name is selected in the AutoRecover exceptions for box.
Microsoft Office Excel 2003 and earlier versions of Excel
The controls to configure the AutoRecover dialog box are on the Save tab of the Options dialog box.
Note To open the Options dialog box, click Options on the Tools menu.
To configure the AutoRecover dialog box, follow these steps:
1. Under Settings, click to select the Save AutoRecover info ever y check box to turn on the AutoRecover
feature.
2. In the minutes box, you can type any integer from 1 through 120. This box sets the number of minutes that
will occur between saves.
The default is 10 minutes.
3. In the AutoRecover file location box, you can type the path and the folder name of the location in which
you want the AutoRecover files to stay.
The default location is as follows:
drive :\Documents and Settings*user_name*\Application Data\Microsoft\Excel
Notes
If the location that you type is local (on your hard drive) and if the location does not exist, you receive
the following error message:
Cannot access directory path .
If the location that you type is on a network drive, you will not receive an alert until your first
AutoRecover attempt. You receive the following error message:
Microsoft cannot save AutoRecover info to path . Please check the network connection or change the
location on the Save tab of the Tools, Options dialog.
If you clear the AutoRecover file location box but do not enter a new location, AutoRecover files
will continue to be saved to the location that you cleared. This occurs until you type a new location.
The AutoRecover file location box remains empty until you type a new location.
4. You can turn off the AutoRecover feature in an individual workbook. To do this, click to select the Disable
AutoRecover check box under Workbook options .
When an AutoRecover event is triggered
When an Excel file is open and AutoRecover is turned on, AutoRecover does not save the file until the first change is
made to the file, the AutoRecover save time interval passes, and Excel has been idle for some time (the default is 30
seconds). After AutoRecover saves the file, the file is only saved at subsequent save intervals if further changes are
made.
When AutoRecover files are deleted
To keep from filling up your AutoRecover location with unneeded files, AutoRecover files are automatically deleted
in the following situations:
When the file is manually saved.
The file is saved with a new file name using Save As.
You close the file.
You quit Excel, whether you choose to save the file or not.
You turn off AutoRecover for the current workbook.
You turn off AutoRecover by clearing the Save AutoRecover info ever y check box.
AutoRecover save timing
The AutoRecover timer checks for changed Excel files at the interval you set in the minutes box on the Save tab in
the Options dialog box. The timer starts when you start Excel.

NOTE
In Excel 2007, the minutes box is in the Save category in the Excel Option dialog box. In Excel 2010, the minutes box is in the
Save category under File, Options.

When the first save interval passes, Excel checks to see whether any open files have been changed. If Excel locates
changed files, an idle timer starts. The purpose of the idle timer is to make sure that the user does not make entries
in the worksheet while the save operation occurs. The idle timer restarts each time that the user makes an entry
into the worksheet so the AutoRecover save file is not created until both the save interval passes and no entries are
made for the duration of the idle time.
The default idle time is 30 seconds. To change the default idle time, use the AutoRecoverDelay registry key. To do
this, follow these steps.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious
problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a
problem occurs. For more information about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
1. Quit Excel if it is running.
2. Click Start, click Run, type regedit in the Open box, and then click OK.
3. Locate and then select one of the following registry keys, as appropriate for the version of Excel that you are
running.
For Microsoft Excel 2002:
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Options
For Excel 2003:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options
For Excel 2007:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Options
For Excel 2010:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options
4. On the Edit menu, click New, and then click DWORD value.
5. Type the following name for the new value:
AutoRecoverDelay
6. Press ENTER.
7. Right-click the AutoRecoverDelay registry key, and then click Modify.
8. In the Value data box, type a number between 1 and 600. This is the number of seconds before AutoRecover
tries to save.
9. When you are finished, click OK.
10. Quit Registry Editor.

NOTE
Only manually performed actions in the program affect the idle timer. Formulas that automatically update the file do not
affect the idle timer. Excel saves the file when the idle time is reached, between the automatic updates to the formulas.

File formats that are saved by AutoRecover


AutoRecover saves all file formats that can be opened in Excel. To maintain speed and simplicity, AutoRecover saves
all files as the current Excel file format, regardless of the original file format opened. The file is saved as a hidden file
with an arbitrary filename with the extension .xar (for example, ~ar18a.xar).
When you try to save a recovered file upon reopening Excel after it closed unexpectedly, the original file format and
name is suggested as the Save file type. Excel stores the original file name and its related .xar file name in the
registry for the purpose of recovery.
AutoRecover and multiple instances of Excel
When more than one instance of Excel is running and one instance closes unexpectedly, a new instance of Excel is
automatically started and the AutoRecover files are opened. If all instances of Excel close unexpectedly, but the
computer is still running, a single instance of Excel is started and all AutoRecover files are opened. In the case of a
power outage, all recovered files are opened when you start Excel again.
Compatibility
All AutoRecover settings, except the Disable AutoRecover workbook option, are stored in the system registry.
AutoRecover settings are compatible with files from previous versions of Excel is not an issue.
When the Disable AutoRecover workbook option is set, and the file is opened in an earlier version of Excel, saved,
and then reopened in a later version of Excel, the Disable AutoRecover workbook option is not affected.

References
For more information about how to troubleshoot errors when you save Excel files, click the following article
number to view the article in the Microsoft Knowledge Base:
271513 How to troubleshoot errors when you save Excel files
Blank pages are unexpectedly printed in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Excel, when you print a worksheet, pages that are completely blank may be unexpectedly printed.

Cause
This behavior can occur under any of the following conditions:
The only data on a page is in cells that are formatted in such a way that they are blank.
Cells that are formatted to appear blank include those with white fonts, zeroes-as-blanks settings, three
semicolons (see Example 1 in the "More Information" section), and so forth.
A cell on the page contains an error, and errors have been selected to print as blank.
There are completely blank pages ahead of any pages that contain data (including the first two conditions
stated here), which print as blank.
The worksheet contains drawing objects that are located in unexpected areas of the worksheet.
The worksheet contains hidden columns with manual page breaks
These objects may be very small in size, formatted as white, and so forth.

NOTE
Pages that contain hidden rows or columns are not printed (if there is no other data on the page), nor are the intervening
pages.

Workaround
To work around this issue, follow these steps:
1. On the File menu, click Print.
Note In Excel 2007, click the Microsoft Office Button , and then click Print .
2. Under Print range, select only the page or pages that you want to print.

More Information
The following steps must be completed for both of the following examples:
1. Start Excel and create a new workbook.
2. In cell A1, type Test.
Example 1: A Cell Is Formatted as Blank
1. In cell M85, type Test, and then press ENTER.
2. Select cell M85.
3. On the Format menu, click Cells.
Note In Excel 2007, click Format in the Cells group on the Home tab, and then click Format Cells .
4. On the Number tab, under Category, click Custom.
5. In the Type box, delete the selection (press the BACKSPACE key to erase the selection), and then type ;;; (three
semicolons).
6. Click OK.
Cell M85 is hidden.
7. On the File menu, click Print Preview.
Note In Excel 2007, click the Microsoft Office Button , point to Print , and then click Print Preview .
Notice that not only does page 1 contain data, but it is followed by three blank pages. This includes the page
that has the hidden cell and the intervening pages.
Example 2: Errors Are Set to Print Blank
1. In cell M85, type the following formula:
=1/0
You receive a divide-by-zero error message.
2. On the File menu, click Page Setup.
Note In Excel 2007, click the Page Setup dialog box launcher in the Page Setup group on the Page
Layout tab.
3. On the Sheet tab, under Print, in the Cell error as drop-down box, click <blank> .
4. Click Print Preview.
Notice that not only does page 1 contain data, but it is followed by three blank pages.
Excel/Outlook for Mac: Border missing when pasting
table in email
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you create a table in Microsoft Excel for Mac and copy it into a new email message in Microsoft Outlook for
Mac, the table is pasted into the email without any borders.

Cause
This is a known issue in Office 2011 for Mac and Office 2016 for Mac.

Resolution
Microsoft is currently investigating this issue.
To work around this problem follow these steps:
1. In Excel, select your table.
2. Click the button to Apply borders to the selection .
3. Select the Thick Box Border option.
4. Copy and paste the table into your email message.
You can also select the Thick Box Border option before you create your table.
The table borders will be displayed as regular borders in the email when you copy it.
How to calculate ages before 1/1/1900 in Excel
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Although Microsoft Excel date formulas can only use dates entered between 1/1/1900 and 12/31/9999, you can
use a custom Microsoft Visual Basic for Applications function to calculate the age (in years) of someone or
something that was first created before January 1, 1900.
Use Macro to Calculate Age
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
Excel enters dates prior to 1/1/1900 as text. This function works for dates entered as text beginning with 1/1/0001,
normal dates, and can handle dates when the starting date is before 1900 and ending date is after 1900. To use the
macro, follow these steps:
1. Start Excel. View the worksheet on which you want to use the function.
2. Press ALT+F11 to switch to the Visual Basic Editor.
3. On the Insert menu, click Module.
4. Type the following code in the module:

' This is the initial function. It takes in a start date and an end date.
Public Function AgeFunc(stdate As Variant, endate As Variant)

' Dim our variables.


Dim stvar As String
Dim stmon As String
Dim stday As String
Dim styr As String
Dim endvar As String
Dim endmon As String
Dim endday As String
Dim endyr As String
Dim stmonf As Integer
Dim stdayf As Integer
Dim styrf As Integer
Dim endmonf As Integer
Dim enddayf As Integer
Dim endyrf As Integer
Dim years As Integer

' This variable will be used to modify string length.


Dim fx As Integer
Dim fx As Integer
fx = 0

' Calls custom function sfunc which runs the Search worksheet function
' and returns the results.
' Searches for the first "/" sign in the start date.
stvar = sfunc("/", stdate)

' Parse the month and day from the start date.
stmon = Left(stdate, sfunc("/", stdate) - 1)
stday = Mid(stdate, stvar + 1, sfunc("/", stdate, sfunc("/", stdate) + 1) - stvar - 1)

' Check the length of the day and month strings and modify the string
' length variable.
If Len(stday) = 1 Then fx = fx + 1
If Len(stmon) = 2 Then fx = fx + 1

' Parse the year, using information from the string length variable.
styr = Right(stdate, Len(stdate) - (sfunc("/", stdate) + 1) - stvar + fx)

' Change the text values we obtained to integers for calculation


' purposes.
stmonf = CInt(stmon)
stdayf = CInt(stday)
styrf = CInt(styr)

' Check for valid date entries.


If stmonf < 1 Or stmonf > 12 Or stdayf < 1 Or stdayf > 31 Or styrf < 1 Then
AgeFunc = "Invalid Date"
Exit Function
End If

' Reset the string length variable.


fx = 0

' Parse the first "/" sign from the end date.
endvar = sfunc("/", endate)

' Parse the month and day from the end date.
endmon = Left(endate, sfunc("/", endate) - 1)
endday = Mid(endate, endvar + 1, sfunc("/", endate, sfunc("/", endate) + 1) - endvar - 1)

' Check the length of the day and month strings and modify the string
' length variable.
If Len(endday) = 1 Then fx = fx + 1
If Len(endmon) = 2 Then fx = fx + 1

' Parse the year, using information from the string length variable.
endyr = Right(endate, Len(endate) - (sfunc("/", endate) + 1) - endvar + fx)

' Change the text values we obtained to integers for calculation


' purposes.
endmonf = CInt(endmon)
enddayf = CInt(endday)
endyrf = CInt(endyr)

' Check for valid date entries.


If endmonf < 1 Or endmonf > 12 Or enddayf < 1 Or enddayf > 31 Or endyrf < 1 Then
AgeFunc = "Invalid Date"
Exit Function
End If

' Determine the initial number of years by subtracting the first and
' second year.
years = endyrf - styrf

' Look at the month and day values to make sure a full year has passed.
If stmonf > endmonf Then
years = years - 1
End If
End If

If stmonf = endmonf And stdayf > enddayf Then


years = years - 1
End If

' Make sure that we are not returning a negative number and, if not,
' return the years.
If years < 0 Then
AgeFunc = "Invalid Date"
Else
AgeFunc = years
End If

End Function

' This is a second function that the first will call.


' It runs the Search worksheet function with arguments passed from AgeFunc.
' It is used so that the code is easier to read.
Public Function sfunc(x As Variant, y As Variant, Optional z As Variant)
sfunc = Application.WorksheetFunction.Search(x, y, z)
End Function

5. Save the file.


6. Type the following data:

A1 01/01/1887
A2 02/02/1945

In cell A3, enter the following formula:

=AgeFunc(startdate,enddate)

The star tdate is a cell reference to your first date (A1) and enddate is a cell reference to your second date
(A2).
The result should be 58.

NOTE
Check all dates before 1/1/1900 for validity. Dates entered as text are not checked by Excel.

References
For more information about how to use the sample code in this article, see How to run sample code from
Knowledge Base Articles in Office 2010.
Method to calculate interpolation step value in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The following Microsoft Excel formula performs linear interpolation by calculating the interpolation step value:
=(end-star t)/(ROW(end)-ROW(star t))
where end is the cell address of the larger number, and star t is the cell address of the smaller number.
Interpolation is a method used to determine a present or future value factor when the exact factor does not appear
in either a present or future value table. Interpolation assumes that the change between two values is linear and
that the margin of error is insignificant.

More Information
To create a sample linear interpolation formula, follow these steps:
1. Type the following values in a worksheet:

A1: 9 B1: =(A7-A1)/(ROW(A7)-ROW(A1))


A2: =A1+$B$1
A3:
A4:
A5:
A6:
A7: 11

2. Select cells A2:A6. On the Edit menu, point to Fill, and then click Down. The formula is filled down, and the
following values are displayed in cells A2:A6:

A2: 9.33333
A3: 9.66667
A4: 10.
A5: 10.33333
A6: 10.66667

NOTE
You must type the reference to the step value in cell B1 as an absolute reference (with dollar signs).
"Cannot use object linking and embedding" error in
Excel 2016 for Mac
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Excel 2016 for Mac, you receive the following error message:

Cannot use object linking and embedding

Workaround
To work around this issue, follow these steps:
1. Exit all Microsoft Office applications.
2. In the Finder, navigate to the following location:
Users/<username>/Library/Group Containers/UBF8T346G9.Office
3. Select one of the following folders, depending on which one you have:
ComRPC
ComRPC32
4. On the File menu, click Move to Trash .
5. Close the Finder window.
Unable to add refedit control to VBA userform.
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When trying to add a refedit control on a VBA userform the following error messages are received:

"%1 Could not be found".

"Element Could not be found".

Cause
Multiple versions of refedit.dll exist on the machine.

Resolution
To Resolve the error message "%1 Could not be found".
1. Exit Excel
2. Click Start, click Run, type regedit in the Open box, and then click OK.
3. In the Registry Editor, click on Edit, choose Find
4. In the Find What dialog type in the following key:
HKEY_Classes_Root\Wow6432Node\TypeLib{00024517-0000-0000-C000-000000000046}\1.0
5. Export and then delete every instance of this CLSID key.
6. Repair Office in the Control Panel.
7. Restart the machine.
To Resolve the error message "Element Could not be found".
Step 1: Search Regstry
1. Exit Excel.
2. Click Start, click Run, type regedit in the Open box, and then click OK.
3. In the Registry Editor, click on Edit, choose Find
4. In the Find What dialog type refedit.dll
5. Export and then delete every key that refers to refedit.dll
Step 2: Search machine for dll file
1. Search the machine for refedit.dll and delete all instances
2. Repair Office in the Control Panel
Step 3: Add refedit control to the user form
1. Go to the Developer ribbon, Insert, Lower Right Corner is Additional Controls
2. Select Additional Controls and register custom
3. Browse to C:\Program Files\Microsoft Office\Office15\Refedit.dll (for Excel 2013) or C:\Program Files\Microsoft
Office\Office14\Refedit.dll (for Excel 2010)
4. Go to VBA and insert a userform
5. In the toolbox choose additional controls and select refedit.ctrl
6. Click on the refedit control in the toolbox and add it to the user form
You cannot create a PivotTable in Excel 2013 when
field names in a source range contain similar
characters
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You have two field names in a source range that have similar characters. For example, one field is named
"Hello2World," and the other field is named "Hello2World." The "2" character corresponds to the "178" character
in ASCII.
You try to create a PivotTable by selecting the source range in Microsoft Excel 2013.
You select the Add this data to the Data Model check box in the Create PivotTable dialog box.
In this scenario, you receive the following error message:

We couldn't get data from the Data Model. Here's the error we got:

The attribute with the name of Hello<sup>2</sup>World already exists in the '**Range**' dimension.

Cause
This issue occurs because the data model cannot differentiate between the similar characters.

Workaround
To work around this issue, change one field name to be distinct from the other.

Status
This is a known issue in Excel 2013.
Unable to export to Excel from SharePoint Online
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use the Expor t to Excel button in Microsoft SharePoint Online, Excel starts and shows the following
error message:

An unexpected error has occurred. Changes to your data cannot be saved.

Cause
Excel has a 55-second timeout when fetching data from SharePoint.Therefore, you may receive the error message
when the timeout of this client is exceeded.

Resolution
You can increase the default Excel timeout value by using a registry key. To increase the Excel timeout value, follow
these steps:
1. Open Registry Editor. Locate and select the following registry subkey:
For an MSI installation of Excel
For 32-bit Excel on 32-bit Windows or 64-bit Excel on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Access Connectivity Engine\Engines
For 32-bit Excel on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Access Connectivity
Engine\Engines
For Click-to-Run installation of Excel
For 32-bit Excel on 32-bit Windows or 64-bit Excel on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Mic
rosoft\Office\16.0\Access Connectivity Engine\Engines
For 32-bit Excel on 64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Wo
w6432Node\Microsoft\Office\16.0\Access Connectivity Engine\Engines
2. On the Edit menu, point to New , and then select DWORD Value .
3. Type DataFetchTimeout , and then press Enter .
4. Right-click DataFetchTimeout , and then select Modify .
5. Select Decimal for Base , type 90000 in the Value data box, and then select OK .

NOTE
If the new value doesn't resolve the issue, try a larger value. DataFetchTimeout is in milliseconds.

6. Exit Registry Editor.


You cannot open .xls files by using Microsoft Office
Excel 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you install Microsoft Office 2010, you cannot open .xls files, and you may receive the following message:
The file is corrupt cannot be opened.
In addition, you may experience a problem in which any Microsoft Office programs, such as Word or Outlook,
crashes when you open .xls files.

Resolution
Follow these steps:
1. Click Start, click Control Panel, click Programs, and then click Uninstall a program under Programs and Features.
2. Select Microsoft Office.
3. Click Change, and then wait while the change and repair is carried out.
4. Exit after the process is completed.
5. Double-click the Excel file that you want to open or open the file through an HTML link as you could by using
previous versions of the program.
"We found a problem with some content" error when
trying to open a workbook
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open an XLSX/XLSM Excel workbook that was saved in Microsoft Excel version 1805, you may
receive the following error message:

We found a problem with some content in 'WorkbookName.xlsx'. Do you want us to try to recover as much as we
can? If you trust the source of this workbook, click Yes.

Then, you click Yes .


If the workbook is stored in a network location, you may see the following error message:

Sorry, we couldn't find <path of workbook>.xlsx. Is it possible it was moved, renamed or deleted?

After you click OK , the workbook does not open.


If the workbook is stored locally, you may see the following error message:

Excel was able to open the file by repairing or removing the unreadable content.
Removed Feature: External formula reference from <path>/externalLink*.xml part (Cached values from external
formula reference)
Removed Records: Formula from <path>.xml part
Removed Records: Formula from <path> (Calculation properties)

Then, after you click Close , the workbook opens in Excel.

Cause
The workbook contains corruption that was undetected before the Excel 1805 update. This issue occurs when there
is external link data that contains an invalid sheet name that triggers the Repair feature.

Workaround
To work around this issue, use one of the following methods:
Method 1
Save the file after the repair completes. The Repair feature is working as expected and removes the corruption.
Method 2
Scan the XML parts under xl\externalLinks for sheet names that have a book name added to the string (for example,
a sheet name is "[test.xls]something\somethingelse"), and then remove both the book name and any backslashes or
colons from the name (for example, rename the sheet name as "something-somethingelse"). Sheet name tags
should not have a book name, nor should they contain invalid characters (such as backslashes) that you cannot add
through the UI.
You cannot open an IRM protected workbook in
Protected View in Excel 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open an Information Rights Management (IRM) protected Microsoft Excel 97-2003 workbook (.xls
file) in Protected View in Excel 2013, the operation fails. Additionally, you receive the following error message:

We found a problem with some content in <file name>. Do you want us to try to recover as much as we can? If you
trust the source of this workbook, click Yes.

Workaround
To work around this issue, temporarily disable Protected View in Excel 2013, and then open the workbook again. To
disable Protected View in Excel 2013, follow these steps:
1. In the File tab, click Options .
2. In the Excel Options dialog box, click Trust Center .
3. Click Trust Center Settings .
4. Click Protect View .
5. In the Trust Center dialog box, clear the following check boxes as appropriate for your situation:
Enable Protected View for files originating from the Internet
Enable Protected View for files located in potentially unsafe locations
Enable Protected View for Outlook attachments

More Information
Protected View is a read-only mode in which most editing functions are disabled. Additionally, Protected View is
enabled by default, and files that are located in potentially unsafe locations are opened in Protected View. For more
information about Protected View, go to the following Microsoft website:
What is Protected View

Status
This is a known issue in Excel 2013.
You cannot paste any attributes into a workbook in
another instance of Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You run two instances of Microsoft Excel.

NOTE
To force Excel to open in a second instance, press Alt, and then click the Excel icon.

You open a workbook in each instance of Excel.


Then, you intend to use the following Paste Special menu command to paste attributes from a cell in one
workbook to a cell in the other workbook:

In this scenario, you cannot paste any attributes into the other workbook. The Excel Paste Special dialog box does
not appear. Instead, the following Windows Paste Special dialog box appears:
Therefore, you cannot select any one of the following options:
Formulas
Values
Formats
Comments
These options appear only in the Excel Paste Special dialog box.

Cause
This behavior occurs because Excel cannot use its internal copying functionality when you run multiple instances of
Excel. Instead, Excel relies on the Windows Paste Special dialog box for its copying functionality. When you run a
single instance of Excel, Excel uses its internal copying functionality. Therefore, the Excel Paste Special dialog box is
available in this situation.

Workaround
To work around this behavior, open both workbooks in the same instance of Excel.
You cannot remove error tracing arrow in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you correct an error found by the Formulas referring to empty cells rule in Microsoft Excel, the Trace
Empty Cell arrow changes into a Trace Precedents arrow instead of disappearing as expected.

Cause
For an example of this behavior, follow these steps:
1. On the Tools menu, click Options.

NOTE
If you use Microsoft Office Excel 2007, click the Microsoft Office Button , click Excel Options , and then click
Formulas .

2. On the Error Checking tab or in the Error Checking rules area, ensure that the Formulas referring to
empty cells check box is selected.
3. Click OK.
4. In a new workbook, type =B1 in cell A1.
5. Select cell A1 and click the Error Checking button.
6. Click Trace Empty Cell.
7. Notice that a red Trace Empty Cell arrow appears.
8. Type 1 into cell B1.
9. Notice the Trace Empty Cell arrow becomes a blue Trace Precedents arrow.

Resolution
To resolve this issue, follow these steps:
If you use Excel 2007, follow these steps:
1. Select the cell to which the arrow is pointing.
2. On the Formulas tab, click Remove All Arrows in Formula Auditing group, and then click Remove
Precedent Arrows .
If you use Microsoft Office Excel 2003 or Microsoft Excel 2002 , follow these steps:
1. Select the cell to which the arrow is pointing.
2. On the Tools menu, point to Formula Auditing , and then click Show Formula Auditing Toolbar .
3. On the Formula Auditing toolbar, click Remove Precedent Arrows .

Workaround
To work around this issue and make the arrows disappear, recalculate the cell with the error after you correct the
error, as in the following example:
1. In cell A1 of a new worksheet, type the formula =A2.
An error indicator appears in cell A1.
2. Select cell A1.
An Error Checking button appears to the right of cell A1.
3. Click the Error Checking button next to A1.
4. Click Trace Empty Cell.
A red Trace Empty Cell arrow appears, pointing to cell B2.
5. Type 1 in cell B2.
The error indicator disappears from cell A1 and the arrow turns into a blue Trace Precedents arrow.
6. Click cell A1.
7. Press F2.
8. Press ENTER to recalculate.
The arrow disappears.
Cannot Resize the Chart Area of a chart located on a
Chartsheet
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Starting from Excel 2010, you cannot adjust the size of the chart area when the chart is located on a chart
sheet. Excel 2007 would allow you to resize the chart area.
Consider this scenario:
1. When you try to resize charts on a chart sheet, Excel displays the resize handle, but it won't let you resize the
chart.
2. After upgrading a file created in Excel 2007 if the chart is positioned to be small on the chart sheet, it will snap
to maximum size on the chart sheet.

More Information
This behavior was changed in Excel 2010 and later versions, which is the intended design.
Alternatives to resizing the chart area on the chart sheet include:
Resize the plot area and position other elements to match.
Embed the chart in the worksheet instead of a chart sheet. To do this, follow these steps:
1. Highlight the chart.
2. On the Chart Toolsribbon choose Design
3. Click on Move Chart
4. Choose where you want the chart to be placed: Object in: Choose the worksheet tab you want to place it.
5. Click OK.
You cannot scroll to view the other areas of an Excel
worksheet
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to scroll to view the other areas of a Microsoft Excel worksheet, the scrolling attempt is unsuccessful.

Cause
This issue may occur when the panes in the Excel worksheet have been frozen.

Resolution
To resolve this issue, use one of the following methods, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007
To unfreeze the panes in the Excel worksheet, click the View tab, click Freeze Panes in the Window group, and
then click Unfreeze Panes .

NOTE
If you want specific rows or columns to be visible when you scroll in the Excel worksheet, you must freeze those areas. To do
this, scroll to the location that you want to be visible in the Excel worksheet, and then freeze the panes.

To freeze the panes in an Excel worksheet, click the View tab, click Freeze Panes in the Window group, and then
click Freeze Panes .
Microsoft Office Excel 2003 and earlier versions of Excel
To unfreeze the panes in the Excel worksheet, click Unfreeze Panes on the Window menu.

NOTE
If you want specific rows or columns to be visible when you scroll in the Excel worksheet, you must freeze those areas. To do
this, scroll to the location that you want to be visible in the Excel worksheet, and then freeze the panes.

To freeze the panes in an Excel worksheet, click Freeze Panes on the Window menu.
You cannot use external references with data
validation in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you type a cell reference to a cell in the Source or Formula box in the Data Validation dialog box, and then
click OK, you receive the following error message:
You may not use references to other worksheets or workbooks for Data Validation criteria.

Cause
This issue occurs after you follow these steps:
1. You select the cells to which you want to apply Data Validation, and then click Validation on the Data menu.

NOTE
In Microsoft Office Excel 2007, you click Data Validation in the Data Tools area on the Data Validation tab.

2. You click the Settings tab, and then click Custom in the Allow list.
3. You specify a cell reference to a cell in another worksheet or workbook in the Source or Formula box.
The Data Validation command lets you add restrictions on data that is typed into specific cells. However, the cells
that contain the data criteria can refer only to cells within the same worksheet as the cells that are restricted.

Workaround
To work around this issue, specify a cell that is in an external worksheet as Data Validation criteria if a local cell
refers to the criteria cell. To do this, follow these steps:
1. On the File menu, click New, click Workbook, and then click OK.

NOTE
In Excel 2007, click the Microsoft Office Button , and then click New . In the New Workbook dialog box, click
Blank and recent , click Blank Workbook , and then click Create .

2. Select cell A1.


3. On the Data menu, click Validation, and then click the Settings tab.
NOTE
In Excel 2007, click Data Validation in the Data Tools area on the Data Validation tab, and then click the Setting
tab.

4. In the Allow list, click Whole number .


5. In the Data list, click equal to .
6. In the Value box, type a reference to a cell on the worksheet. For example, type =$B$1.
7. Click OK.
8. In the cell that you referenced in step 6, type a formula that refers to the external criteria cell. For example, in
cell B1, type the following formula:
=Sheet2!$C$1
9. In the external cell, type the criteria value that you want to use for Data Validation. For example, in cell C1 of
Sheet2, type 5.
10. You may now type only the Data Validation criteria (for example, 5) in cell A1 of Sheet1.

More Information
Excel includes a tool that lets you specify what data are valid for individual cells or for cell ranges in a worksheet.
This tool is called Data Validation.
To access the tool in MIcrosoft Office Excel 2003 and in earlier versions of Excel, click Validation on the Data menu.
To access the tool in Excel 2007, click Data Validation in the Data Tools area on the Data Validation tab.
Restrictions include values, dates, times, or lists of text or values. Restrictions can be limited to exact matches or
ranges of cells. You can type the validating values in the Data Validation dialog box, or you can store them in
worksheet cells. These validating cells must be on the same worksheet as the cells that are being restricted.
Some category labels are missing or are too small to
read on Excel charts
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you view a Microsoft Excel chart that contains labels on the Category Axis, one of the following issues may
occur:
Some of the labels may be missing (such as every other label).
The labels may be too small to read.
The labels may be run together (overlap).

Cause
This issue may occur if one or more of the following conditions are true:
The frequency of the major units on the Category Axis is not set to display every major unit.
The font size is too small for you to read the labels on the Category Axis of your Excel chart.
The font size is too large for Excel to display all the labels correctly on the Category Axis of your Excel chart.

Workaround
To work around this issue, change the major unit and change the font size of the labels for the Category Axis in
your Excel chart. To do this, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007
1. Start Excel, and then open the workbook that contains the Excel chart.
2. Right-click the Categor y Axis that is contained in the Excel chart, and then perform one or both of the
following actions:
Click Format Axis , and then follow these steps:
a. In the Format Axis dialog box, click Axis Options .
b. Next to Major Unit , click Fixed , and then type 1 in the Fixed box.
c. Click Close .
In the Font box, choose a different font size to use for the labels in the Category Axis.
Microsoft Office Excel 2003 and earlier versions of Excel
1. Start Excel, and then open the workbook that contains the Excel chart.
2. Right-click the Categor y Axis that is contained in the Excel chart, and then click Format Axis .
3. In the Format Axis dialog box, perform one or both of the following actions, and then click OK :
On the Scale tab, click to clear the Major unit check box, and then change the major unit to 1 .
On the Font tab, select a different font size to use for the labels in the Category Axis.
Cell content is displayed as #N/A! after you enable
editing in a workbook in Protected View in Excel 2010
or Excel 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that you open a workbook in protected view in Microsoft Excel 2010 or Excel 2013. The workbook contains
the Cell function. After you click Enable Editing , the content in each cell in the workbook is displayed as #N/A!.

Workaround
To work around this issue, press F9 to update the workbook.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Cell shading continually darkens when you hold down
Ctrl and repeatedly select the cell in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that you select multiple cells in a Microsoft Excel 2013 or Microsoft Excel 2016 worksheet. You mistakenly
select some cells that you do not want to include in the selection. When you hold down Ctrl and then click those
cells in order to remove them from the selection, the cell shading becomes darker, and the cells are not unselected.
Additionally, the cell shading continues to darken if you repeatedly click the cells.

Cause
This behavior is by design because of a change in the Excel 2013 or Excel 2016 graphics engine. This change
enables you to highlight overlapping selections. If you repeatedly select the same cells, the cell shading eventually
becomes too dark, and you cannot see the text in the cell.

Workaround
To work around the issue, cancel the selection of cells, and start the selection process again.
How to change from absolute to relative or mixed
references in a formula in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Excel, you can create absolute, relative, or mixed references in a formula. You can easily change from one
reference type to another without having to retype it by pressing F4.

More information
The following is a description of different reference types.

TYPE EXA M P L E DESC RIP T IO N

Absolute $A$1 Both the row and column are fixed

Mixed A$1 Only the row is fixed

Mixed $A1 Only the column is fixed

Relative A1 Neither the row or column is fixed

To toggle from one reference type to another:


1. Select the cell that contains the reference you want to change.
2. In the formula bar, select the reference or references that you want to change.
Select the whole formula if you want to change all the references.
3. Press F4.
Each time you press F4, Excel cycles through the different types of reference in the order of the table. For example, if
you type a relative reference and then press F4, the reference changes to absolute. When you press F4 again, the
reference changes to mixed with the row fixed.

References
For more information about Referencing, click Microsoft Excel Help on the Help menu, type References in the
Office Assistant or the Answer Wizard, and then click Search to view the topic.
Change the Software License Registration
Information (Company, Name) for Office for Mac
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes on how to change the Software License Registration Information such as the name, company
name, or the software owner.
Before you proceed with the steps below, please have your installation media and product key in hand. If you have
downloaded version of the product, find email with the link to re-download the executable.

More information
IMPORTANT
The location of certain files are different if you have Service Pack 2 (SP2) installed. To check if it is installed, open Word, and
then click About Word from the Word menu. If the version number is 14.2.0 or above, you have Service Pack 2 and you
should follow the Service Pack 2 steps when provided in this article.

To change your license information, follow these steps for your version of Office (2011, 2008, or 2004) below:
Office 2011
1. Quit all Microsoft applications.
2. On the Go menu, click Home.
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open Preferences.
5. Click to select com.microsoft.office.plist and drag it to Trash(Don't empty the Trash before the new
information is entered).
6. Open the Microsoft folder.

NOTE
If you have Service Pack 2 installed, open Application Support > Microsoft instead of Preferences > Microsoft.
7. Open Office 2011.
8. Click to select Office Registration Cache and OLE Registration Database and drag it to Trash(Don't empty the
Trash before the new information is entered).
9. Restart the Mac.
10. Launch Word/Excel/PowerPoint/Outlook and click Continue on the first window.
11. Select Yes or No to the 2 questions on the next window and click Continue. See screenshot below:

12. Enter the correct user


information on the next window. See screenshot below.

If the steps above did not resolve the issue, follow these steps:
1. Quit all Microsoft applications.
2. On the Go menu, click Home.
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open Preferences.
5. Move com.microsoft.office.plist to the Trash(Don't empty the Trash before the new information is entered).
6. Open the Microsoft folder.
NOTE
If you have Service Pack 2 installed, open Application Support > Microsoft instead of Preferences > Microsoft.

7. Open Office 2011.


8. Move Office Registration Cache and OLE Registration Database to the Trash(Don't empty the Trash before the
new information is entered).
9. On the Go menu, click Home.
10. Open Documents.
11. Click to select Microsoft User Data press Return (enter) on your keyboard then rename the folder to
Microsoft User Data Good
12. Restart the Mac.
13. Launch Word/Excel/PowerPoint/Outlook and enter the correct name and Company.
If you are using Outlook or Entourage, follow the steps below to rename the, "Microsoft User Data Good"
folder back to "Microsoft User Data".
14. Quit all Microsoft Programs.
15. On the Go menu, click Home.
16. Open Documents.
17. Click to select Microsoft User Data and drag it to Trash (don't empty the Trash until the data is restored in
Outlook or Entourage).
18. Click to select Microsoft User DataGood press Return (enter) on your keyboard then rename the folder to
Microsoft User Data

NOTE
Do not leave extra spaces after word "data".

19. Restart the Mac.


20. Open Outlook or Entourage to make sure the data is there. If so, then the Trash can be emptied as long as
you do not have files you wish to keep in the Trash.
Office 2008
Before you start, make sure that you have Office 2008 product key in hand. Note: If you do not have Product key do
not proceed with these steps:
1. Disconnect from Network.

2. - If it is a wireless connection; turn off AirPort at the top of the screen next to the clock.

![turn off airport](./media/change-software-license-registration/airport.jpg)


- If its a wired connection, physically unplug the Ethernet cable, quit all Office applications
(Including MSN Messenger).

3. On the Go menu, click Computer.


4. Open your Hard Drive (Example, Macintosh HD).
5. Open the Applications folder
6. Open the Microsoft Office 2008 folder.
7. Open the Office folder.
8. Click and then drag the OfficePID.plist file (Don't empty the Trash before the new information is entered) to
the Trash.
9. On the Go menu, click Home.
10. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

11. Open the Preferences folder.

NOTE
If you have Service Pack 2 installed, open Application Support instead of Preferences.

12. Open the Microsoft Folder.


13. Open the Office 2008 folder.
14. Trash the Microsoft Office 2008 Settings.plist file (Don't empty the Trash before the new information is
entered).
15. Launch Word/Excel/PowerPoint/Outlook and click Continue on the first Window. On the next window, enter
the correct information in the Name field, the Company field is optional and enter the Product Key, and click
Continue, find a screenshot of this window below. Click Continue on the Product Identification window and
click Finish on the next

Office 2004
Before you start, make sure that you have Office 2004 product key in hand.
NOTE
If you do not have Product key do not proceed with these steps.

1. Disconnect from Network.


If it is a wireless connection; turn off AirPort at the top of the screen next to the clock.

If it's a wired connection, physically unplug the Ethernet cable, and quit all Office applications
(Including MSN Messenger).
2. On the Go menu, click Home.
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open the Microsoft folder and move the file named Microsoft Office Settings (11) to the Trash (Don't empty
the Trash before the new information is entered).
5. On the Go menu, click Applications.
6. Open the Microsoft Office 2004 folder, open Additional Tools, and then open Remove Office.
7. Double-click the Remove Office tool, press and hold down the Option key, click Remove Licensing
Information Only, and then click Remove and release the Option key.

NOTE
The Continue command label changes to Remove Licensing Information Only when you press the Option key.

8. When finished, close out the "Welcome to Remove Office" screen by clicking on the red dot, you will get a
"Nothing was Removed" message, just click Quit.
9. Launch Word/Excel/PowerPoint/Entourage and click Next on the first window. 10. Click Accept and enter
your personal information on the Setup Assistant window. Only the first name is required and click Next. See
screenshot below. Enter your Product Key on the next screen and click Finish and OK.
Excel statistical functions CHIINV
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes the CHIINV function in Microsoft Office Excel 2003 and in later versions of Excel and discusses
an improvement in Excel 2003 and in later versions of Excel that can affect results in extreme cases when compared
with earlier versions of Excel.

More Information
CHIINV(p, df) is the inverse function for CHIDIST(x, df). For any particular x, CHIDIST(x, df) returns the probability
that a Chi-Square-distributed random variable with df degrees of freedom is greater than or equal to x.
The CHIINV(p, df) function returns the value x where CHIDIST(x, df) returns p. Therefore, CHIINV is evaluated by a
search process that returns the appropriate value of x by evaluating CHIDIST for various candidate values of x until
it finds a value of x where CHIDIST(x, df) is "acceptably close" to p.
Syntax

CHIINV(p, df)

NOTE
In this example, p is a probability with 0 < p < 1 and df >= 1 is the number of degrees of freedom. Because in practice df is
an integer; if a non-integer value is used, Excel will truncate it (round it down) to an integer value.

Example of usage
To illustrate the CHIINV function, create a blank Excel worksheet, copy the following table, select cell A1 in your
blank Excel worksheet, and then paste the entries so that the table fills cells A1:F21 in your worksheet.

A C T UA L SA L ES

0 1 2 3 or more

before 13 8 5 4 =SUM(B3:E3)

during 8 10 6 6 =SUM(B4:E4)

=SUM(B3:B4) =SUM(C3:C4) =SUM(D3:D4) =SUM(E3:E4) =SUM(B5:E5)

expected sales
A C T UA L SA L ES

0 1 2 3 or more

before =$F$3*B5/$F$5 =$F$3*C5/$F$5 =$F$3*D5/$F$5 =$F$3*E5/$F$5

during =$F$4*B5/$F$5 =$F$4*C5/$F$5 =$F$4*D5/$F$5 =$F$4*E5/$F$5

(actual - / expected
expected)^2

0 1 2 3 or more

before =((B3-B9)^2)/B9 =((C3-C9)^2)/C9 =((D3-D9)^2)/D9 =((E3-E9)^2)/E9

during =((B4- =((C4- =((D4- =((E4-


B10)^2)/B10 C10)^2)/C10 D10)^2)/D10 E10)^2)/E10

=SUM(B14:E15)

=CHIDIST(A17,3)

=CHITEST(B3:E4,
B9:E10)

=CHIINV(A18,3)

=CHIINV(0.05,3)

After you paste this table into your new Excel worksheet, click the Paste Options button, and then click Match
Destination Formatting . With the pasted range still selected, use one of the following procedures, as appropriate
for the version of Excel that you are running:
In Microsoft Office Excel 2007, click the Home tab, click Format in the Cells group, and then click AutoFit
Column Widths .
In Excel 2003, point to Column on the Format menu, and then click AutoFit Selection .
To test the effectiveness of a sale, a store records the number of deluxe freezers sold per day for 30 days before the
sale and for 30 days during the sale (see note 1). The data is in cells B3:E4. The Chi-Square statistic is calculated by
first finding the expected numbers in each of these cells. These expected sales numbers are in cells B9:E10. Cells
B14:E15 show the quantities that must be summed to calculate the Chi-Square statistic that is shown in cell A17.
With r = 2 rows and c = 4 columns in the data table, the number of degrees of freedom is (r – 1) * (c – 1) = 3. The
CHIDIST value in cell A18 shows the probability of a Chi-Square value higher than that in A17 under the null
hypothesis that actual sales and before or during are independent. CHITEST semi-automates the process by
requiring only B3:E4 and B9:E10 as inputs. It essentially deduces the number of degrees of freedom and calculates
the Chi-Square statistic and then returns CHIDIST for that statistic and number of degrees of freedom. A20 shows
the inverse relationship between CHIDIST and CHIINV. Finally, A21 uses CHIINV to find the cutoff value for the Chi-
Square statistic assuming a significance level of 0.05. In this example, with this significance level, you would not
reject the null hypothesis of independence between actual sales and before or during because the Chi-Square
statistic value was 1.90, well below the cutoff of 7.81.
NOTE
This example comes from the long out of print text: Bell, C.E., Quantitative Methods for Administration, Irwin, 1977.

Results in earlier versions of Excel


CHIINV(p, df) is found through an iterative process that repeatedly evaluates CHIDIST(x, df) and returns a value of x
such that CHIDIST(x, df) is "acceptably close" to p. Therefore accuracy of CHIINV depends on the following factors:
The accuracy of CHIDIST
The design of the search process and definition of "acceptably close"
In rare cases, "acceptably close" in earlier versions of Excel might not be close enough. This is unlikely to affect most
users. Basically, if you request CHIINV(p, df) the search continues until a value of x is found where CHIDIST(x, df)
differs from p by less than 0.0000003.
Results in Excel 2003 and in later versions of Excel
No changes were made to CHIDIST in Excel 2003 and in later versions of Excel. The only change that affects CHIINV
was to redefine "acceptably close" in the search process to be much closer. The search now continues until the
closest possible value of x is found (in the limits of Excel's finite precision arithmetic). The resulting x should have a
CHIDIST(x, df) value that differs from p by about 10^(-15).
Conclusions
Many inverse functions have been improved for Excel 2003 and for later versions of Excel. Some have been
improved for Excel 2003 and for later versions of Excel only by continuing the search process to gain a higher level
of refinement. This set of inverse functions includes the following functions: BETAINV, CHIINV, FINV, GAMMAINV,
and TINV.
No modifications were made to the respective functions that are called by the following inverse functions:
BETADIST, CHIDIST, FDIST, GAMMADIST, and TDIST.
Additionally, this same improvement in the search process was made for NORMSINV in Microsoft Excel 2002. For
Excel 2003 and for later versions of Excel, accuracy of NORMSDIST (called by NORMSINV) was improved also.
These changes also affect NORMINV and LOGINV (these call NORMSINV) and NORMDIST and LOGNORMDIST
(these call NORMSDIST).
How to clean up an Excel workbook so that it uses
less memory
3/30/2020 • 8 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you upgrade to Microsoft Office 2013/2016/Office 365, you experience one or more of the following
symptoms:
The computer uses more memory when you open multiple Microsoft Excel 2013 workbooks, save Excel
workbooks, or make calculations in Excel workbooks.
You can no longer open as many Excel workbooks in the same instance as you could before you upgraded to
Excel 2013/2016.
When you insert columns in an Excel workbook, you receive an error about available memory.
When you are working with an Excel spreadsheet, you receive the following error message:

There isn't enough memory to complete this action.


Try using less data or closing other applications.
To increase memory availability, consider:
- Using a 64-bit version of Microsoft Excel.
- Adding memory to your device.

Cause
Starting in Excel 2013, improvements were made that require more system resources than earlier versions
required. This article identifies areas in Excel workbooks that use lots of memory and describes how you can make
your workbook files work more efficiently.
For more information about the changes that we made in Excel 2013, see Memory Usage in the 32-bit edition of
Excel 2013.

Resolution
To resolve this issue, use the following methods in the order in which they are presented. If the one of these
methods does not help, move on to the next method.

NOTE
Many Excel workbooks have several issues that can problems. After you eliminate these issues, your workbook will run more
smoothly.

Formatting considerations
Formatting can cause Excel workbooks to become so large that they do not work correctly. Frequently, Excel hangs
or crashes because of formatting issues.
Method 1: Eliminate excessive formatting
Excessive formatting in an Excel workbook can cause the file to grow and can cause poor performance. Formatting
would be considered excessive if you formatted whole columns or rows with color or borders. This problem also
occurs when formatting requires data to be copied or imported from webpages or databases. To eliminate excess
formatting, use the format cleaner add-in that is available in Clean excess cell formatting on a worksheet.
If you continue to experience issues after you eliminate excess formatting, move on to method 2.
Method 2: Remove unused styles
You can use styles to standardize the formats that you use throughout workbooks. When cells are copied from one
workbook to another, their styles are also copied. These styles continue to make the file grow and may eventually
cause the "Too many different cell formats" error message in Excel when you save back to older file versions.
Many utilities are available that remove unused styles. As long as you are using an XML-based Excel workbook (that
is, an .xlsx file or an. xlsm file), you can use the style cleaner tool. You can find this tool here.
If you continue to experience issues after you remove any unused styles, move on to method 3.
Method 3: Remove shapes
Adding lots of shapes in a spreadsheet also requires lots of memory. A shape is defined as any object that sits on
the Excel grid. Some examples are as follows:
Charts
Drawing shapes
Comments
Clip art
SmartArt
Pictures
WordArt
Frequently, these objects are copied from webpages or other worksheets and are hidden or are sitting on one
another. Frequently, the user is unaware that they are present.
To check for shapes, follow these steps:
1. On the Home Ribbon, click Find and Select , and then click Selection Pane .
2. Click The Shapes on this Sheet . Shapes are displayed in the list.
3. Remove any unwanted shapes. (The eye icon indicates whether the shape is visible.)
4. Repeat steps 1 through 3 for each worksheet.
If you continue to experience issues after you remove shapes, you should examine considerations that are not
related to formatting.
Method 4: Remove conditional formatting
Conditional formatting can cause the file to grow. This occurs when the conditional formatting in the file is
corrupted. You can remove the conditional formatting, as a test to see if the problem is with corruption in the
formatting. To remove conditional formatting, follow these steps:
1. Save a backup of the file.
2. On the Home Ribbon, click Conditional Formatting .
3. Clear rules from the whole worksheet.
4. Follow steps 2 and 3 for each worksheet in the workbook.
5. Save the workbook by using a different name.
6. See if the problem is resolved.
If removing conditional formatting resolves the issue, you can open the original workbook, remove conditional
formatting, and then reapply it.
Problem remains?
If none of these methods work, you may consider moving to a 64-bit version of Excel, breaking your problem
workbook into different workbooks, or contacting Support for additional troubleshooting.
Calculation considerations
In addition to formatting, calculations can also cause crashing and hanging in Excel.
Method 1: Open the workbook in the latest version of Excel
Opening an Excel workbook for the first time in a new version of Excel may take a long time if the workbook
contains lots of calculations. To open the workbook for the first time, Excel has to recalculate the workbook and
verify the values in the workbook. For more information, see the following articles:
Workbook loads slowly the first time that it is opened in Excel
External links may be updated when you open a workbook that was last saved in an earlier version of Excel
If the file continues to open slowly after Excel recalculates the file completely and you save the file, move on to
method 2.
Method 2: Formulas
Look through your workbook and examine the kinds of formulas that you are using. Some formulas take lots of
memory. These include the following array formulas:
LOOKUP
INDIRECT
OFFSETS
INDEX
MATCH
It's fine to use them. However, be aware of the ranges that you are referencing.
Formulas that reference whole columns could cause poor performance in .xlsx files. The grid size grew from 65,536
rows to 1,048,576 rows and from 256 (IV) columns to 16,384 (XFD) columns. A popular way to create formulas,
although not a best practice, was to reference whole columns. If you were referencing just one column in the old
version, you were including only 65,536 cells. In the new version, you're referencing more than 1 million columns.
Assume that you have the following VLOOKUP:
=VLOOKUP(A1,$D:$M,2,FALSE)

In Excel 2003 and earlier versions, this VLOOKUP was referencing a whole row that included only 655,560 cells (10
columns x 65,536 rows). However, with the new, larger grid, the same formula references almost 10.5 million cells
(10 columns x 1,048,576 rows = 10,485,760).
This is fixed in Office 2016/365 version 1708 16.0.8431.2079 and later. For information on how to update Office,
please see Install Office updates.
For earlier versions of Office you may need to reconstruct your formulas to reference only those cells that are
required for your formulas.

NOTE
Check your defined names to make sure that you don't have other formulas that reference whole columns or rows.

NOTE
This scenario will also occur if you use whole rows.

If you continue experience issues after you change your formulas to refer only to cells that are being used, move on
to method 3.
Method 3: Calculating across workbooks
Limit the formulas that are doing the calculations across workbooks. This is important for two reasons:
You are trying to open the file over the network.
Excel is trying to calculate large amounts of data.
Instead of doing calculations across networks, contain the formula in one workbook, and then create a simple link
from one workbook to another.
If you continue to experience the issue after you change your formulas to refer only to cells instead of calculating
across workbooks, move on to method 4.
Method 4: Volatile functions
Limit the use of the volatile functions in a workbook. You do not have to have hundreds of cells that use the TODAY
or NOW function. If you have to have the current date and time in your spreadsheet, use the function one time, and
then reference the function through a defined name of a link.
If you continue to experience the issue after you limit your volatile formulas, move on to method 5.
Method 5: Array formulas
Array formulas are powerful. But they must be used correctly. It is important not to add more cells to your array
than you must have. When a cell in your array has a formula that requires calculation, calculation occurs for all cells
that are referenced in that formula.
For more information about how arrays work, please see Excel 2010 Performance: Tips for Optimizing Performance
Obstructions.
If you continue to experience the issue after you update your array formulas, move on to method 6.
Method 6: Defined names
Defined names are used to reference cells and formulas throughout the workbook to add a "friendly name" to your
formulas. You should check for any defined names that link to other workbooks or temporary Internet files.
Typically, these links are unnecessary and slow down the opening of an Excel workbook.
You can use the Name Manager tool to view hidden defined names that you can't see in the Excel interface. This tool
enables you to view and delete the defined names that you don't need.
If Excel continues to crash and hang after you remove any unnecessary defined names, move on to method 7.
Method 7: Links and hyperlinks
Excel's power is in its ability to bring in live data from other spreadsheets. Take an inventory of the file and the
external files to which it is linking. Excel doesn't have a limit on how many Excel workbooks can be linked, although
there are several issues that you can encounter. Test the file without the links to determine whether the issue is in
this file or in one of the linked files.
Moving on
These are the most common issues that cause hanging and crashing in Excel. If you are still experiencing crashing
and hanging in Excel, you should consider opening a support ticket with Microsoft.

More Information
If none of these methods made a difference, you should consider either moving to a 64-bit version of Excel or
breaking your problem workbook into different workbooks.
How to troubleshoot "available resources" errors in Excel
Excel: How to troubleshoot crashing and "not responding" issues in an Excel workbook
Columns and rows are labeled numerically in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Your column labels are numeric rather than alphabetic. For example, instead of seeing A, B, and C at the top of your
worksheet columns, you see 1, 2, 3, and so on.

Cause
This behavior occurs when the R1C1 reference style check box is selected in the Options dialog box.

Resolution
To change this behavior, follow these steps:
1. Start Microsoft Excel.
2. On the Tools menu, click Options .
3. Click the Formulas tab.
4. Under Working with formulas , click to clear the R1C1 reference style check box (upper-left corner), and
then click OK.
If you select the R1C1 reference style check box, Excel changes the reference style of both row and column
headings, and cell references from the A1 style to the R1C1 style.

More information
A1 Reference Style vs. R1C1 Reference Style
The A1 Reference Style
By default, Excel uses the A1 reference style, which refers to columns as letters (A through IV, for a total of 256
columns), and refers to rows as numbers (1 through 65,536). These letters and numbers are called row and column
headings. To refer to a cell, type the column letter followed by the row number. For example, D50 refers to the cell at
the intersection of column D and row 50. To refer to a range of cells, type the reference for the cell that is in the
upper-left corner of the range, type a colon (:), and then type the reference to the cell that is in the lower-right
corner of the range.
The R1C1 Reference Style
Excel can also use the R1C1 reference style, in which both the rows and the columns on the worksheet are
numbered. The R1C1 reference style is useful if you want to compute row and column positions in macros. In the
R1C1 style, Excel indicates the location of a cell with an "R" followed by a row number and a "C" followed by a
column number.

References
For more information about this topic, click Microsoft Excel Help on the Help menu, type about cell and range
references in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
COM add-ins are not displayed in the COM Add-Ins dialog box in
Excel 2013 and Excel 2016
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change, read this blog post.

Symptoms
You try to enable one of the following COM add-ins installed with Microsoft Excel 2013 and Microsoft Excel 2016:
Microsoft Office PowerPivot for Excel 2013 and Excel 2016
Power View
To do this, you click Options, click Add-Ins, select Com Add-Ins in the Manage list, and then click Go . In this situation, the COM add-ins do not
appear in the COM Add-Ins dialog box as expected.

Cause
This issue occurs because the registry keys that provide the add-in information to the Add-in Manager are damaged or set to invalid values.
See More Information for the Office 2013 and Office 2016 SKUs that contain these add-ins.

Resolution
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry
incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore
the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in
Windows.

Fix it for me
To resolve this issue, run the "Power View" troubleshooter for the add-in. The Power View add-in troubleshooter may automatically fix the
problem described in this article. This troubleshooter fixes many problems.run now
Let me fix it myself
To work around this issue, follow these steps to delete the affected registry keys:
1. Exit Excel 2013 or Excel 2016.
2. Start Registry Editor. To do this, use the appropriate method for your operating system, as follows:
In Windows 7, click Star t , click Run , type regedit , and then click OK .
In Windows 8, click Star t , type regedit in the Star t Search box, and then press Enter.
3. Locate the registry keys that are described in the "Notes" section that follows this procedure.
4. Right-click the appropriate registry entry, and then click Delete .
5. Exit Registry Editor.
6. Start Excel 2013 or Excel 2016.
7. Follow the steps that are described in the "Symptoms" section to enable the add-in.
Notes
Excel 2013 and Excel 2016 automatically rebuilds the registry keys.
The registry keys that you have to delete vary, depending on the add-ins that you use. You have to delete the registry keys only for the
add-in that is missing from the COM Add-Ins dialog box. Each add-ins corresponds to the following registry keys, respectively:
Microsoft Office PowerPivot for Excel 2013 add-in
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\User Settings\PowerPivotExcelAddin
KEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\PowerPivotExcelClientAddIn.NativeEntry.1
Microsoft Office PowerPivot for Excel 2016 add-in
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\User Settings\PowerPivotExcelAddin
KEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\PowerPivotExcelClientAddIn.NativeEntr y.1
Power View add-in
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\User Settings\PowerViewExcelAddin
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\AdHocRepor tingExcelClientLib.AdHocRepor tingExcelClientAddIn.1

More Information
These add-ins and the Inquire add-in all require specific SKUs of Microsoft Office 2013 and Microsoft Office 2016. They are available on:
Microsoft Office 2013 Professional Plus and Microsoft Office Professional Plus 2016
Microsoft Microsoft 365 Apps for enterprise available as a standalone subscription.
Microsoft Microsoft 365 Apps for enterprise available as part of the Office 365 Enterprise E3, Office 365 Enterprise E4, Office 365 Education
E2, Office 365 Education E3, Office 365 Government E3, or Office 365 Government E4 offerings.
Microsoft Excel 2013 standalone with the update: Description of the Excel 2013 update: August 13, 2013
For more information about a COM add-in, see What Is a COM Add-in?.
Command bars of add-ins are not displayed or
removed in Excel 2013 or later when you load or
unload the add-ins
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use add-ins in Microsoft Excel 2013 or later, you experience the following issues.
Issue 1
When you load an Excel add-in (.xlam) or an Excel 97-2003 add-in (.xla), the command bars of the add-in are not
displayed automatically. Instead, you must close all workbooks and then restart Excel to display the command bars.
Issue 2
When you unload an Excel add-in (.xlam) or an Excel 97-2003 add-in (.xla) or close an Excel macro-enabled
workbook (.xlsm) that contains command bars, the command bars of the add-in or the macro-enabled workbook
are not removed from all open workbooks.

Cause
These issues occur because of the Single Document Interface (SDI) in Excel 2013 or later. When you use a legacy
CommandBar object to create menu items, the menu items are added to the Add-Ins tab of the ribbon. In Excel
2013 or later, each workbook has its own ribbon. Therefore, when you load or unload add-ins after the ribbon of
the workbook is created, the ribbon is not updated.
The following code sample creates menu items by using the CommandBar object:

Application.CommandBars("Worksheet Menu Bar").Controls.Add Type:=msoControlPopup

Workaround
To work around issue 1, close all open workbooks, and then restart Excel.
To work around issue 2, use one of the following methods:
Replace command bars with a Ribbon (XML) item in the add-in or the macro-enabled workbook. For more
information about the Ribbon (XML), see Ribbon XML.
In the Workbook_BeforeClose event of the add-in or the macro-enabled workbook, loop through all open
windows, and remove the command bars. The following is a code sample:
For Each wnd In Application.Windows
wnd.Activate
Application.CommandBars("<ToolbarName>").Delete
Next wnd

NOTE
In this code, the placeholder <ToolbarName > represents a command bar name.
Error Message: That command cannot be used on
multiple selections
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you attempt to copy nonadjacent cell or range selections, you may receive the following error message:
That command cannot be used on multiple selections.

Cause
These error messages may occur when your cell or range selections are in different columns or different rows. You
can, however, copy and paste nonadjacent ranges without getting an error message if your selection contains any
of the following:
Multiple rows within the same column, for example, A1, A3, A5.
Multiple columns within the same row, for example, A2, C2, E2.
Multiple rows and columns within the same columns and rows, for example, A1, C1, A3, C3, A5, C5.

More information
When you make a nonadjacent selection and then click Copy on the Edit menu, Excel tries to identify an outline type
of the selection. Because Excel "slides" the ranges together and pastes them as a single rectangle, a contiguous
rectangle must remain if the rows and columns in between the selected cells are collapsed or set to a size of 0.
For example if you wanted to perform an operation on the following sample data:

A1: 1 B1: C1: 2

A2: B2: C2:

A3: 3 B3: C3: 4

Because a contiguous rectangle remains if you were to collapse row 2 and column B, you can individually select
cells A1, C1, A3, C3 and copy them without error. (To make a nonadjacent selection, hold down the CTRL key while
selecting additional cells or ranges.)
This selection will be pasted as a single rectangle:

A5: 1 B5: 2

A6: 3 B6: 4
However, you cannot add cell B2 to this nonadjacent selection, because Microsoft Excel cannot determine which
direction you want the cells to slide. For example, B2 could slide between A1 and A3, C1 and C3, A1 and C1 or A3
and C3. This would result in rectangles of varying shapes and sizes. Because you cannot designate how you want
the rectangle arranged, Excel returns the error message. In this case, the cell range must be a single selection, or the
cells must be copied individually.
The conditional formatting may be set incorrectly
when you use VBA in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario.
You select a cell in a worksheet in Microsoft Excel 2000 or in a later version of Excel.
You use Microsoft Visual Basic for Applications (VBA) to create a formula-based conditional formatting program.
You use relative cell references in the VBA conditional formatting program.
You apply the conditional formatting to a cell other than the selected cell.
When you apply the conditional formatting, you notice that the conditional formatting is not set correctly.
For example, you experience this problem when you use a program that includes VBA code in an Excel worksheet
that is similar to the following code:

Sub Example()
ThisWorkbook.Worksheets(1).Range("A1").Select
With ThisWorkbook.Worksheets(1).Range("B1")
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, _
Formula1:="=A1=1"
.FormatConditions(1).Interior.ColorIndex = 46
End With
End Sub

This code automatically applies the conditional formatting to cell B1 when you enter "1" in cell A1. When you enter
"1" in cell A1, you expect the color of cell B1 to change to red. However, the color of the cell does not change. The
color of cell B1 changes to red only if you enter "1" in cell B1.
Additionally, the Conditional Formatting dialog box displays the formula as =B1=1 instead of =A1=1.

Workaround
To work around this issue, use one of the following methods.
Method 1: Use absolute cell references
You can use absolute cell references to refer to the cell that contains the formula instead of to refer to relative cell
references.
For example, you can modify the Formula1:="=A1=1" text entry in the VBA code that is described in the
"Symptoms" section as Formula1:="=$A$1=1" to make the code use absolute cell references. This modified version
of the VBA code is as follows:
Sub Example()

ThisWorkbook.Worksheets(1).Range("A1").Select

With ThisWorkbook.Worksheets(1).Range("B1")
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression, Formula1:="=$A$1=1"
.FormatConditions(1).Interior.ColorIndex = 46
End With

End Sub

Method 2: Select the cell that you want to use for conditional formatting before you apply the formula
When you want to apply conditional formatting to a cell, first select the cell that you want to use for the conditional
formatting. Then, select the cell that you want to use for the formula. After you select this cell, modify the formula to
suit your requirements.
To do this, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007
1. Start Excel, and then open a new Excel worksheet.
2. In the Excel worksheet, select cell B1.
3. Click the Home tab.
4. Click Conditional Formatting in the Styles group, and then click New Rule .
5. Click Use a formula to determine which cells to format under Select a Rule Type .
6. Click inside the Format values where this formula is true box. Then, select the cell that you want to use for
the conditional formatting.
7. Modify the value in step 6 to be =$A$1=1 .
8. Click Format .
9. In the Format Cells dialog box, click the Fill tab.
10. Click the color "red," and then click OK .
11. In the New Formatting Rule dialog box, click OK .
12. In cell A1, type 1 , and then press ENTER.
13. Verify that the color of the cell B1 changed to red.
14. Close the Excel worksheet.
Microsoft Office Excel 2003 and earlier versions of Excel
1. Start Excel, and then open a new Excel worksheet.
2. In the Excel worksheet, select cell B1.
3. On the Format menu, click Conditional Formatting .
4. Under Condition 1 , click Formula Is in the list.
5. Click inside the data entry box. Then, select the cell that you want to use for the conditional formatting.
6. Modify the value in the data entry box to be =$A$1=1 , and then click OK .
7. Click Format .
8. In the Format Cells dialog box, click the Patterns tab.
9. Select the color "red," and then click OK .
10. In the Conditional Formatting dialog box, click OK .
11. In cell A1, type 1 , and then press ENTER.
12. Verify that the color of the cell B1 changed to red.
13. Close the Excel worksheet.
Connection to ODBC driver fails in PowerPivot for
Excel 2010 or PowerPivot for Excel 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that you try to connect to a database by using Microsoft OLE DB Provider for ODBC Drivers in the
PowerPivot for Microsoft Excel 2010 or PowerPivot for Microsoft Excel 2013 add-in. You create the connection
string by using the Table Import Wizard. The connection test is successful. However, when you click Next , you
receive the following error message:

Failed to connect to the server. Reason: ERROR [28000] [Microsoft][ODBC SQL Server Driver][SQL Server]Login
failed for user ''.
ERROR [01S00] [Microsoft][ODBC SQL Server Driver]Invalid connection string attribute
ERROR [28000] [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ''.
ERROR [01S00] [Microsoft][ODBC SQL Server Driver]Invalid connection string attribute

The following is a sample of the connection string that you created:

Provider=MSDASQL.1;Persist Security Info=True;User ID=sa;Initial Catalog=test;DSN=MSSQL


2012;Password=**********

Cause
This issue occurs because the Extended Properties information is not contained in the ODBC connection string. The
following is a sample of the correct connection string:

Provider=MSDASQL;Persist Security Info=True;User ID=sa;Extended Properties="DSN=MSSQL 2012;UID=sa;APP=Microsoft


Office 2013;WSID=GENLI-T430;DATABASE=test;Pwd=**********";Initial Catalog=test;Password=**********

Resolution
To create a correct connection string, select the Use connection string option when you create the connection
string:
1. In the Table Impor t Wizard , click Build .
2. In the Provider tab, make sure that you select Microsoft OLE DB Provider for ODBC Drivers.
3. In the Connection tab, select the User connection string option, and then click Build .
4. Click the Machine Data Source tab, select your database resource, and then click OK .
5. When you receive the Database logon prompt, type the logon ID and password, and then click OK .
6. In the Enter information to log on to the ser ver box, type in the logon ID and password again, and then
select the Allow saving password option.
7. Click OK . A correct connection string is generated.
How to convert degrees/minutes/seconds angles to
or from decimal angles in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Angular measurements are commonly expressed in units of degrees, minutes, and seconds (DMS). One degree
equals 60 minutes, and one minute equals 60 seconds. To simplify some mathematical calculations you may want
to express angular measurements in degrees and decimal fractions of degrees.
This article contains a sample custom function you can use to convert a degree value stored in decimal format, to
DMS stored in text format, and a sample function that converts DMS to a degree value stored in decimal format.

More Information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied,
including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This
article assumes that you are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality of a particular
procedure, but they will not modify these examples to provide added functionality or construct procedures to meet
your specific needs.
If you have limited programming experience, you may want to contact a Microsoft Advisory Services. For more
information, visit the Microsoft Web site:
Microsoft Advisory Services - https://support.microsoft.com/gp/advisoryservice
For more information about the support options that are available and about how to contact Microsoft, see
https://support.microsoft.com.
Converting Decimal Degrees to Degrees/Minutes/Seconds
The following Microsoft Visual Basic for Applications custom function accepts an angle formatted as a decimal
value and converts it to a text value displayed in degrees, minutes, and seconds.
Function Convert_Degree(Decimal_Deg) As Variant
With Application
'Set degree to Integer of Argument Passed
Degrees = Int(Decimal_Deg)
'Set minutes to 60 times the number to the right
'of the decimal for the variable Decimal_Deg
Minutes = (Decimal_Deg - Degrees) * 60
'Set seconds to 60 times the number to the right of the
'decimal for the variable Minute
Seconds = Format(((Minutes - Int(Minutes)) * 60), "0")
'Returns the Result of degree conversion
'(for example, 10.46 = 10~ 27 ' 36")
Convert_Degree = " " & Degrees & "° " & Int(Minutes) & "' " _ & Seconds + Chr(34)
End With
End Function

To use this function, create a conversion formula, as in the following example:


1. Start Excel and press ALT+F11 to start the Visual Basic editor.
2. On the Insert menu, click Module.
3. Enter the sample code for the Convert_Degree custom function described above into the module sheet.
4. Press ALT+F11 to return to excel.
5. In cell A1 type 10.46.
6. In cell A2 type the formula: =Convert_Degree(A1)
The formula returns 10°27'36"
Converting Degrees/Minutes/Seconds to Decimal Degrees
The following Microsoft Visual Basic for Applications custom function accepts a text string of degrees, minutes and
seconds formatted in the exact same format that the Convert_Degree function returns (for example, 10° 27' 36")
and converts it to an angle formatted as a decimal value. This is exactly the reverse of the Convert_Degree custom
function.

WARNING
This custom function fails if the Degree_Deg argument is not in the format ° ' " even if the seconds value is 0.
Function Convert_Decimal(Degree_Deg As String) As Double
' Declare the variables to be double precision floating-point.
Dim degrees As Double
Dim minutes As Double
Dim seconds As Double
' Set degree to value before "°" of Argument Passed.
degrees = Val(Left(Degree_Deg, InStr(1, Degree_Deg, "°") - 1))
' Set minutes to the value between the "°" and the "'"
' of the text string for the variable Degree_Deg divided by
' 60. The Val function converts the text string to a number.
minutes = Val(Mid(Degree_Deg, InStr(1, Degree_Deg, "°") + 2, _ InStr(1, Degree_Deg, "'") -
InStr(1, Degree_Deg, _ "°") - 2)) / 60
' Set seconds to the number to the right of "'" that is
' converted to a value and then divided by 3600.
seconds = Val(Mid(Degree_Deg, InStr(1, Degree_Deg, "'") + _ 2, Len(Degree_Deg) - InStr(1,
Degree_Deg, "'") - 2)) _
/ 3600
Convert_Decimal = degrees + minutes + seconds
End Function

To use this function, create a conversion formula, as in the following example:


1. Start Excel and press ALT+F11 to start the Visual Basic Editor.
2. On the Insert menu, click Module.
3. Enter the sample code for the Convert_Decimal custom function described above into the module sheet.
4. Press ALT+F11 to return to excel.
5. In cell A1 type the following formula:
=Convert_Decimal("10° 27' 36""")
NOTE You are required to type three quotation marks (""") at the end of the argument of this formula to
balance the quotation mark for the seconds and the quotation mark for the text string. A cell reference will
not require a quotation mark.
6. The formula returns 10.46
How to convert Excel column numbers into
alphabetical characters
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article discusses how to use the Microsoft Visual Basic for Applications (VBA) function in Microsoft Excel to
convert column numbers into their corresponding alphabetical character designator for the same column.
For example, the column number 30 is converted into the equivalent alphabetical characters "AD".

More Information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
The ConvertToLetter function works by using the following algorithm:
1. Let iCol be the column number. Stop if iCol is less than 1.
2. Calculate the quotient and remainder on division of (iCol - 1) by 26, and store in variables a and b .
3. Convert the integer value of b into the corresponding alphabetical character (0 => A, 25 => Z) and tack it on
at the front of the result string.
4. Set iCol to the divisor a and loop.
For example: The column number is 30.
(Loop 1, step 1) The column number is at least 1, proceed.
(Loop 1, step 2) The column number less one is divided by 26:
29 / 26 = 1 remainder 3. a = 1, b = 3

(Loop 1, step 3) Tack on the (b+1) letter of the alphabet:


3 + 1 = 4, fourth letter is "D". Result = "D"
(Loop 1, step 4) Go back to step 1 with iCol = a

iCol = 1

(Loop 2, step 1) The column number is at least 1, proceed.


(Loop 2, step 2) The column number less one is divided by 26:
0 / 26 = 0 remainder 0. a = 0, b = 0

(Loop 2, step 3) Tack on the b+1 letter of the alphabet:


0 + 1 = 1, first letter is "A" Result = "AD"
(Loop 2, step 4) Go back to step 1 with iCol = a

iCol = 0

(Loop 3, step 1) The column number is less than 1, stop.


The following VBA function is just one way to convert column number values into their equivalent alphabetical
characters:

Function ConvertToLetter(iCol As Long) As String


Dim a As Long
Dim b As Long
a = iCol
ConvertToLetter = ""
Do While iCol > 0
a = Int((iCol - 1) / 26)
b = (iCol - 1) Mod 26
ConvertToLetter2 = Chr(b + 65) & ConvertToLetter
iCol = a
Loop
End Function

Note This function only converts integers that are passed to it into their equivalent alphanumeric text character. It
does not change the appearance of the column or the row headings on the physical worksheet.
How to troubleshoot crashing and not responding
issues with Excel
3/30/2020 • 7 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you open or use Microsoft Excel, Excel stops responding, hangs, freezes, or stops working. Additionally, you
may receive one of the following error messages:

Excel is not responding.


Excel has stopped working.
A problem caused the program to stop working correctly. Windows will close the program and notify you if a
solution is available.

Resolution
Use the following methods in the order in which they are presented. If you try one of these methods and it does not
help, go to the next method.
Method 1: Start Excel in safe mode
Safe mode lets you safely use Excel without encountering certain startup programs. You can open Excel in safe
mode by pressing and holding Ctrl while you start the program or by using the "/safe" option (that is, excel.exe
/safe) when you start the program from the command line. When you run Excel in safe mode, it bypasses
functionality and settings such as alternative startup location, changed toolbars, the xlstar t folder, and Excel add-
ins. (However, COM add-ins are excluded.)
If your issue is resolved after you run Excel in safe mode, see the following articles in the Microsoft Knowledge
Base:
291288 Description of the startup switches for Excel
280504 How to troubleshoot startup problems in Excel 2013
If your issue is not resolved after you start Excel in safe mode, go to method 2.
Method 2: Investigate possible issues with COM add-ins Many developers create add-ins for Excel. These add-
ins are divided into two types
Excel add-ins that are saved as .xla, .xlam, or .xll files.
COM add-ins. These add-ins usually have to be installed and include DLLs and registry keys. COM add-ins
created for one version of Excel frequently are incompatible with a newer version, and may cause the system to
stop responding. They are not disabled by safe mode.
The simplest way to resolve this possible cause is to run this troubleshooter.
If the troubleshooter resolves the issue, but it recurs, you'll have to determine which add-in is causing the problem.
To disable COM add-ins, follow these steps:
1. Select File > Options > Add-ins .
2. At the bottom of the dialog box, change the Manage dropdown to COM add-ins, and select Go .
3. Clear the check box for any enabled COM add-ins. select OK . If disabling the COM add-ins alleviates the issue,
try enabling them one at a time to test for the problem add-in.
If these steps do not resolve your issue, continue to method 3.
Method 3: Investigate Excel file details and contents
Excel files can exist on the computer for a long time. They are upgraded from version to version and frequently
travel from one user to another user. Frequently, a user inherits an Excel file but doesn't know what is included in
the file. The following areas can cause performance or crashing issues:
Formulas referencing entire columns.
Array formulas referencing an uneven number of elements in the arguments.
Hundreds, or perhaps thousands, of hidden or size 0 height and width objects.
Too many styles caused by frequent copying and pasting between workbooks.
Too many (as well as invalidly defined) names.
Inspect and simplify your files if possible.
If these steps do not resolve your issue, continue to method 4.
Method 4: Check whether your file is being generated by a third party
Sometimes Excel files are generated by a third-party application. In this case, the files may be generated incorrectly,
and some features may not work correctly when you open the files in Excel. If this occurs, test the features in new
files outside the third-party application. If the features work correctly, make sure that the third party is aware of the
issue.
If your issue is not resolved after you test it outside the third-party application, go to method 5.
Method 5: Perform a selective startup to determine whether a program, process, or service conflicts with Excel
When you start Windows as usual, several applications and services start automatically and then run in the
background. These applications and services can interfere with other software on your device. Performing a
selective startup (also known as a "clean boot") can help you identify problems with conflicting applications. To
perform a selective startup, see How to perform a clean boot in Windows.
Selective startup is used to help identify the process, service, or application that conflicts with Excel.
If your issue is not resolved after a clean boot, go to method 6.
Method 6: Check whether your antivirus software is up to date or is conflicting with Excel
Antivirus software can interfere with Excel, and cause performance issues. Frequently updating your AV software
can correct the issue.
How to check whether your antivirus software is up to date
To keep up with new viruses that are created, antivirus software vendors periodically provide updates that you can
download from the Internet. Download the latest updates by visiting your antivirus software vendor's website. For a
list of antivirus software vendors, see the following Microsoft website:
Consumer antivirus software providers for Windows
How to check whether antivirus software is conflicting with Excel
If your antivirus software includes integration with Excel, you may experience performance issues. In this case, you
can disable all Excel integration within the antivirus software by creating exceptions for Excel files.
IMPORTANT
Changing your antivirus settings may make your PC vulnerable to viral, fraudulent, or malicious attacks. We do not
recommend that you try to change your antivirus settings. Use this workaround at your own risk. You may have to contact
your antivirus software vendor to determine how to configure software to exclude any integration with Excel.

If updating your antivirus software or excluding it from integrating with Excel does not resolve your issue, go to
method 7.Method 7: Verify or install the latest Windows and Office updates
Windows updates
You might have to set Windows Update to automatically download and install recommended updates. Installing
any important, recommended, and optional updates can frequently correct problems by replacing out-of-date files
and fixing vulnerabilities. To install the latest Windows updates, see Microsoft Windows FAQ.
Office updates
For more information about the latest Office updates, see Office Updates.
If your issue is not resolved after you install the latest Windows and Office updates, continue to the advanced
troubleshooting in the More Information section.

More information
Advanced troubleshooting
If the methods that were mentioned earlier did not resolve your issue, the issue might be either environmental or
file-specific in nature. The following section describes how to troubleshoot additional issues that can cause Excel to
stop responding.
Environmental factors
Environmental factors are just as important as file contents and add-ins when you are troubleshooting problems.
You can help us determine the cause of your issue by taking the following actions:
Follow basic troubleshooting steps.
Test files in the cleanest possible environment.
The following sections describe troubleshooting tips that might help diagnose the problem.
Where the file is stored
Several issues can arise when you save an Excel file over a network or to a web server.Moving the file locally will
help determine whether there's something wrong with the file or the server where the file is saved. Save the file to
your local hard drive is one of the following scenarios is true:
You have redirected "My Documents" folder to a server location.
Your files are stored offline.
You are trying to open files from SharePoint or a Web folder.
You are using Remote Desktop or Citrix.
You are using network appliances.
You work in a virtualized environment. For more information about Microsoft software that's running in a
virtualized environment, see the following Microsoft Knowledge Base article:
897615 Support policy for Microsoft software running in non-Microsoft hardware virtualization software
Memory
Excel files can grow fairly large when you add text formatting and shapes. Make sure that your system has enough
RAM to run the application. For system requirements of the Microsoft Office suites, see the following Microsoft
Knowledge Base article:
System requirements for Office
Printers and video drivers
When Excel is started, it examines the default printer and video drivers that will display the Excel workbooks. Excel
is printer-intensive. Therefore, it will run even slower when Excel files are saved in Page Break Preview view. Testing
the file by using different printers such as the Microsoft XPS Document Writer printer driver or the VGA video
driver will determine whether the problem is with a specific printer or video driver.
If you still have hanging or crashing issues in Excel after you work through the resolution methods that are
mentioned here, contact Microsoft Support for guided troubleshooting.
How to create a conditional format to hide errors in
Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you can create conditional formatting on a cell or on a range of cells so that error values are not
displayed in the cell(s).

More Information
In versions of Excel that are earlier than Microsoft Excel 97, you could not create a custom conditional format to
hide error values that were returned to the cell by the cell formula.
For example, #DIV/0! is returned to cell A1 if you enter the following data in the worksheet:
A1: =B1/C1 B1: 5 C1: 0
To hide the error value, you can change the formula in cell A1 to the following formula:
=IF(ISERROR(B1/C1),"",B1/C1)
In these examples, this formula returns the empty string ("").
In Microsoft Office Excel 2007, you can use the IFERROR function to simplify this formula, as follows:
=IFERROR(B1/C1,"")
Note that there are other techniques for hiding error values that you can use in versions of Excel that are earlier
than Excel 97.
Conditional formatting allows you to use the simpler of the two formulas in cell A1 and still prevent the error value
from appearing in cell A1.
To use conditional formatting to hide error values that are returned by formulas in cells, use one of the following
sample procedures, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2003 and earlier versions of Excel
1. Enter the following data in a worksheet:
A1: =B1/C1 B1: 5 C1: 0
A2: =nofunction()*B2 B2: 6 C2: 0
NOTE
Cell A1 returns the #DIV/0! error value, and cell A2 returns the #NAME? error value. This occurs because the
nofunction() function that is used in cell A2 is not a valid function.

2. Select column A.
3. On the Format menu, click Conditional Formatting .
4. In the Conditional Formatting dialog box, click Condition 1 , and then click Formula Is .
5. In the edit box to the right of Condition 1 , type the following formula:
=ISERROR(A1)
6. Click the Format button. In the Format Cells dialog box, click Color , and then click the White square.
7. Click OK in the Format Cells dialog box, and then click OK in the Conditional Formatting dialog box.

NOTE
Because you selected column A in step 2, all the cells in column A were formatted with this conditional format.
Therefore, any other cells in column A that return error values will not display the error value.

Microsoft Office Excel 2007


1. Enter the following data in a worksheet:
A1: =B1/C1 B1: 5 C1: 0
A2: =nofunction()*B2 B2: 6 C2: 0

NOTE
Cell A1 returns the #DIV/0! error value, and cell A2 returns the #NAME? error value. This occurs because the
nofunction() function that is used in cell A2 is not a valid function.

2. Select column A.
3. On the Home tab, click the arrow next to Conditional Formatting in the Styles group,and then click New
Rule .
4. In the New Formatting Rule dialog box, click Use a formula to determine which cells to format .
5. In the Edit the Rule Description box, type the following formula in the Format values where this
formula is true field:
=ISERROR(A1)
6. Click the Format button.
7. In the Format Cells dialog box, click the Font tab, and then click the White square in the Color list.
8. Click OK , and then click OK in the New Formatting Rule dialog box.
NOTE
Because you selected column A in step 2, all the cells in column A were formatted with this conditional format.
Therefore, any other cells in column A that return error values will not display the error value.
How to create a dynamic defined range in an Excel
worksheet
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you may have a named range that must be extended to include new information. This article
describes a method to create a dynamic defined name.

NOTE
The method in this article assumes that there are no more than 200 rows of data. You can revise the defined names so that
they use the appropriate number and reflect the maximum number of rows.

How to use the OFFSET formula with a defined name


To do this, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007, Microsoft Excel 2010 and Microsoft Excel 2013
1. In a new worksheet, enter the following data.

A B

1 Month Sales

2 Jan 10

3 Feb 20

4 Mar 30

2. Click the Formulas tab.


3. In the Defined Names group, click Name Manager .
4. Click New .
5. In the Name box, type Date.
6. In the Refers to box, type the following text, and then click OK :
=OFFSET($A$2,0,0,COUNTA($A$2:$A$200),1)
7. Click New .
8. In the Name box, type Sales.
9. In the Refers to box, type the following text, and then click OK :
=OFFSET($B$2,0,0,COUNT($B$2:$B$200),1)
10. Click Close .
11. Clear cell B2, and then type the following formula:
=RAND()*0+10

NOTE
In this formula, COUNT is used for a column of numbers. COUNTA is used for a column of text values.

This formula uses the volatile RAND function. This formula automatically updates the OFFSET formula that is
used in the defined name "Sales" when you enter new data in column B. The value 10 is used in this formula
because 10 is the original value of cell B2.
Microsoft Office Excel 2003
1. In a new worksheet, enter the following data:

A B

1 Month Sales

2 Jan 10

3 Feb 20

4 Mar 30

2. On the Inser t menu, point to Name , and then click Define .


3. In the Names in workbook box, type Date.
4. In the Refers to box, type the following text, and then click OK :
=OFFSET($A$2,0,0,COUNTA($A$2:$A$200),1).
5. Click Add .
6. In the Names in workbook box, type Sales.
7. In the Refers to box, type the following text, and then click Add:
=OFFSET($B$2,0,0,COUNT($B$2:$B$200),1)
8. Click OK .
9. Clear cell B2, and then type the following formula:
=RAND()*0+10

NOTE
In this formula, COUNT is used for a column of numbers. COUNTA is used for a column of text values.

This formula uses the volatile RAND function. This formula automatically updates the OFFSET formula that is
used in the defined name "Sales" when you enter new data in column B. The value 10 is used in this formula
because 10 is the original value of cell B2.
Create a formula to correctly evaluate blank cells in
Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, when you use a formula that tests for a zero value, you may see unexpected results if the cell is
blank. Microsoft Excel interprets a blank cell as zero, and not as empty or blank. Therefore, any cells that are blank
are evaluated as zero in the function.

More information
If you are checking a cell for a zero value and the cell is blank, the test evaluates to true. For example, if you have
the following formula in cell A1:

=IF(B1=0,"zero","blank")

and B1 is blank, the formula returns "zero" and not "blank" as expected.
If the range might contain a blank cell, you should use the ISBLANK function to test for a zero value, as in the
following example:

=IF(ISBLANK(B2),"blank",IF(B2=0,"zero","other"))

NOTE
The above formula returns "zero" if there is a zero value in the cell, "blank" if the cell is blank, and "other" if anything else is in
the cell.

You must always use the ISBLANK formula first before you test for a zero value. Otherwise you will always return a
"true" for the zero value, and never get to the test for the ISBLANK formula.
How to create a monthly calendar in Excel
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains a sample Microsoft Visual Basic for Applications macro (Sub procedure) that prompts you for
the month and year and creates a monthly calendar using a worksheet.

Resolution
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
To create the calendar, follow these steps.
Microsoft Excel 2003
1. Create a new workbook.
2. On the Tools menu, point to Macro, and then click Visual Basic Editor.
3. On the Insert menu, click Module.
4. Copy the Visual Basic for Applications code below into the module sheet.
5. On the File menu, click "Close and Return to Microsoft Excel."
6. Click the Sheet1 tab.
7. On the Tools menu, point to Macro, and then click Macros.
8. Click CalendarMaker, and then click Run to create the calendar.
Microsoft Excel 2007 or later
1. Create a new workbook.
2. On the Developer ribbon, Click Visual Basic.
3. On the Insert menu, click Module.
4. Copy the Visual Basic for Applications code below into the module sheet.
5. On the File menu, click "Close and Return to Microsoft Excel."
6. Click the Sheet1 tab.
7. On the Developer ribbon, click Macros
8. Click CalendarMaker, and then click Run to create the calendar.
NOTE
If the Developer Ribbon is not showing go to Excel Options and enable it. In Excel 2007 you will find it in the Popular menu
and in Excel 2010 you will find it in the Customize Ribbon menu.

Sample Visual Basic Procedure

Sub CalendarMaker()

' Unprotect sheet if had previous calendar to prevent error.


ActiveSheet.Protect DrawingObjects:=False, Contents:=False, _
Scenarios:=False
' Prevent screen flashing while drawing calendar.
Application.ScreenUpdating = False
' Set up error trapping.
On Error GoTo MyErrorTrap
' Clear area a1:g14 including any previous calendar.
Range("a1:g14").Clear
' Use InputBox to get desired month and year and set variable
' MyInput.
MyInput = InputBox("Type in Month and year for Calendar ")
' Allow user to end macro with Cancel in InputBox.
If MyInput = "" Then Exit Sub
' Get the date value of the beginning of inputted month.
StartDay = DateValue(MyInput)
' Check if valid date but not the first of the month
' -- if so, reset StartDay to first day of month.
If Day(StartDay) <> 1 Then
StartDay = DateValue(Month(StartDay) & "/1/" & _
Year(StartDay))
End If
' Prepare cell for Month and Year as fully spelled out.
Range("a1").NumberFormat = "mmmm yyyy"
' Center the Month and Year label across a1:g1 with appropriate
' size, height and bolding.
With Range("a1:g1")
.HorizontalAlignment = xlCenterAcrossSelection
.VerticalAlignment = xlCenter
.Font.Size = 18
.Font.Bold = True
.RowHeight = 35
End With
' Prepare a2:g2 for day of week labels with centering, size,
' height and bolding.
With Range("a2:g2")
.ColumnWidth = 11
.VerticalAlignment = xlCenter
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.Orientation = xlHorizontal
.Font.Size = 12
.Font.Bold = True
.RowHeight = 20
End With
' Put days of week in a2:g2.
Range("a2") = "Sunday"
Range("b2") = "Monday"
Range("c2") = "Tuesday"
Range("d2") = "Wednesday"
Range("e2") = "Thursday"
Range("f2") = "Friday"
Range("g2") = "Saturday"
' Prepare a3:g7 for dates with left/top alignment, size, height
' and bolding.
With Range("a3:g8")
.HorizontalAlignment = xlRight
.HorizontalAlignment = xlRight
.VerticalAlignment = xlTop
.Font.Size = 18
.Font.Bold = True
.RowHeight = 21
End With
' Put inputted month and year fully spelling out into "a1".
Range("a1").Value = Application.Text(MyInput, "mmmm yyyy")
' Set variable and get which day of the week the month starts.
DayofWeek = WeekDay(StartDay)
' Set variables to identify the year and month as separate
' variables.
CurYear = Year(StartDay)
CurMonth = Month(StartDay)
' Set variable and calculate the first day of the next month.
FinalDay = DateSerial(CurYear, CurMonth + 1, 1)
' Place a "1" in cell position of the first day of the chosen
' month based on DayofWeek.
Select Case DayofWeek
Case 1
Range("a3").Value = 1
Case 2
Range("b3").Value = 1
Case 3
Range("c3").Value = 1
Case 4
Range("d3").Value = 1
Case 5
Range("e3").Value = 1
Case 6
Range("f3").Value = 1
Case 7
Range("g3").Value = 1
End Select
' Loop through range a3:g8 incrementing each cell after the "1"
' cell.
For Each cell In Range("a3:g8")
RowCell = cell.Row
ColCell = cell.Column
' Do if "1" is in first column.
If cell.Column = 1 And cell.Row = 3 Then
' Do if current cell is not in 1st column.
ElseIf cell.Column <> 1 Then
If cell.Offset(0, -1).Value >= 1 Then
cell.Value = cell.Offset(0, -1).Value + 1
' Stop when the last day of the month has been
' entered.
If cell.Value > (FinalDay - StartDay) Then
cell.Value = ""
' Exit loop when calendar has correct number of
' days shown.
Exit For
End If
End If
' Do only if current cell is not in Row 3 and is in Column 1.
ElseIf cell.Row > 3 And cell.Column = 1 Then
cell.Value = cell.Offset(-1, 6).Value + 1
' Stop when the last day of the month has been entered.
If cell.Value > (FinalDay - StartDay) Then
cell.Value = ""
' Exit loop when calendar has correct number of days
' shown.
Exit For
End If
End If
Next

' Create Entry cells, format them centered, wrap text, and border
' around days.
For x = 0 To 5
For x = 0 To 5
Range("A4").Offset(x * 2, 0).EntireRow.Insert
With Range("A4:G4").Offset(x * 2, 0)
.RowHeight = 65
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlTop
.WrapText = True
.Font.Size = 10
.Font.Bold = False
' Unlock these cells to be able to enter text later after
' sheet is protected.
.Locked = False
End With
' Put border around the block of dates.
With Range("A3").Offset(x * 2, 0).Resize(2, _
7).Borders(xlLeft)
.Weight = xlThick
.ColorIndex = xlAutomatic
End With

With Range("A3").Offset(x * 2, 0).Resize(2, _


7).Borders(xlRight)
.Weight = xlThick
.ColorIndex = xlAutomatic
End With
Range("A3").Offset(x * 2, 0).Resize(2, 7).BorderAround _
Weight:=xlThick, ColorIndex:=xlAutomatic
Next
If Range("A13").Value = "" Then Range("A13").Offset(0, 0) _
.Resize(2, 8).EntireRow.Delete
' Turn off gridlines.
ActiveWindow.DisplayGridlines = False
' Protect sheet to prevent overwriting the dates.
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, _
Scenarios:=True

' Resize window to show all of calendar (may have to be adjusted


' for video configuration).
ActiveWindow.WindowState = xlMaximized
ActiveWindow.ScrollRow = 1

' Allow screen to redraw with calendar showing.


Application.ScreenUpdating = True
' Prevent going to error trap unless error found by exiting Sub
' here.
Exit Sub
' Error causes msgbox to indicate the problem, provides new input box,
' and resumes at the line that caused the error.
MyErrorTrap:
MsgBox "You may not have entered your Month and Year correctly." _
& Chr(13) & "Spell the Month correctly" _
& " (or use 3 letter abbreviation)" _
& Chr(13) & "and 4 digits for the Year"
MyInput = InputBox("Type in Month and year for Calendar")
If MyInput = "" Then Exit Sub
Resume
End Sub

You can add other code to customize the calendar to meet your needs. Insert extra rows for entry on the screen for
each day or resize the screen to see all of the calendar based on screen size and resolution.
How to Create a Sequential Numbered List in Pocket
Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to create a sequential numbered list using the Fill command in Microsoft Pocket Excel.

More Information
To create a sequential numbered list in Pocket Excel, use the following steps:
1. Tap the cell where you want your numbered list to start, type the number with which you want your list to begin,
and then press ENTER.
2. Starting with the cell where you typed the number in step 1, tap to select the cells where you want to create the
numbered list.
3. On the Edit menu, tap Fill.
4. Under Fill Type, tap Series.
5. Under Series Type, tap Number.
6. Tap OK.
How to create and use two-input data tables in
Microsoft Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to create and to use two-input tables in Microsoft Excel. These tables allow you to test
how changes in two variables affect one formula.

More Information
When you create a two-input table, you specify input cells in the Row Input Cell and Column Input Cell boxes in the
Table dialog box.

NOTE
In Microsoft Office Excel 2007, the Table dialog box is called the Data Table dialog box.

To create a simple two-input table, follow these steps:


1. Create a new workbook.
2. In cells B15:B19, type the following data:

C EL L VA L UE

B15 1

B16 2

B17 3

B18 4

B19 5

3. In cells C14:G14, type the following data:

C EL L VA L UE

C14 6

D14 7
C EL L VA L UE

E14 8

F14 9

G14 10

4. In cell B14, type the following formula:


=A14*2+A15

NOTE
A14 is the column input cell (which substitutes values 1, 2, 3, 4, and 5), and A15 is the row input cell (which
substitutes values 6, 7, 8, 9, and 10). These input cells must be located outside the table; they may or may not
contain data. Because this table is set up in cells B14:G19, and because A14 and A15 are outside the table, they are
valid column input and row input cells.

5. Select B14:G19.
6. On the Data menu, click Table.

NOTE
In Excel 2007, click the Data tab, click What-If Analysis, and then click Data Table .

7. In the Row Input Cell box, type A15. In the Column Input Cell box, type A14.
8. Click OK.
You see the following results:
Two-Input table (with formulas displayed)
=========================================

Note: Due to screen display limitations, the following six-column table is shown in two parts.

(Left three columns of a six-column table)

||B|C|D|
|---|-----------|---------------|---------------|
|14|=A14*2+A15|6|7|
|15|1|=TABLE(A15,A14)|=TABLE(A15,A14)|
|16| 2|=TABLE(A15,A14)|=TABLE(A15,A14)|
|17| 3|=TABLE(A15,A14)|=TABLE(A15,A14)|
|18| 4|=TABLE(A15,A14)|=TABLE(A15,A14)|
|19| 5|=TABLE(A15,A14)|=TABLE(A15,A14)|

(Right three columns of a six-column table.)

||E|F|G|
|---|----------------|---------------|---------------|
|14|8|9|10|
|15|=TABLE(A15,A14)|=TABLE(A15,A14)|=TABLE(A15,A14)|
|16|=TABLE(A15,A14)|=TABLE(A15,A14)|=TABLE(A15,A14)|
|17|=TABLE(A15,A14)|=TABLE(A15,A14)|=TABLE(A15,A14)|
|18|=TABLE(A15,A14)|=TABLE(A15,A14)|=TABLE(A15,A14)|
|19|=TABLE(A15,A14)|=TABLE(A15,A14)|=TABLE(A15,A14)|

Two-Input table (with values displayed)


=======================================

||B|C|D|E|F|G|
|---|---|---|---|---|---|---|
|14| | 6| 7| 8| 9| 10|
|15| 1| 8| 9| 10| 11| 12|
|16| 2| 10| 11| 12| 13| 14|
|17| 3| 12| 13| 14| 15| 16|
|18| 4| 14| 15| 16| 17| 18|
|19| 5| 16| 17| 18| 19| 20|

NOTE
Take cell C15 as an example. The actual values that are used in the formula are from cells B15:B19 (the row input cells) and
cells C15:G14 (the column input cells). The formula with the values in it would be 1*2+6 (for a total of 8). Excel internally
substitutes the values in the row and column input cells into the formula in cell B14.

0 appears in cell B14, although the cell B14 is not a number format. To duplicate the blank value in cell B14, follow
these steps:
1. Right-click cell B14, and then click Format Cells .
2. Click the Number tab.
3. In the Category list, click Custom.
4. In the Type box, type "" (two quotation marks).
5. Click OK.

References
For more information about how to use data tables, view the following articles:
Calculate multiple results by using a data table
282852 An overview of data tables in Microsoft Excel
Create application-level event handlers in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
If you want a particular event handler to run whenever a certain event is triggered, you can write an event handler
for the Application object. Event handlers for the Application object are global, which means that as long as
Microsoft Excel is open, the event handler will run when the appropriate event occurs, regardless of which
workbook is active when the event occurs.
This article describes how to create an Application-level event handler and provides an example.

More information
To create an Application-level event handler, you must use the following basic steps:
Declare a variable for the Application object using the WithEvents keyword. The WithEvents keyword can be
used to create an object variable that responds to events triggered by an ActiveX object (such as the Application
object).NOTE: WithEvents is valid only in a class module.
Create the procedure for the specific Application event. For example, you can create a procedure for the
WindowResize, WorkbookOpen, or SheetActivate event of the object you declared using WithEvents.
Create and run a procedure that starts the event handler.
The following example uses these steps to set up a global event handler that displays a message box whenever you
resize any workbook window (the event firing the event handler).
Creating and Initiating the Event Handler
1. Open a new workbook.
2. On the Tools menu, point to Macro , and then click Visual Basic Editor .

NOTE
In Microsoft Office Excel 2007, click Visual Basic in the Code group on the Developer tab.

3. Click Class Module on the Insert menu. This will insert a module titled "<book name> - Class1 (Code)" into
your project.
4. Enter the following line of code in the Class1 (Code) module:

Public WithEvents appevent As Application

The WithEvents keyword makes the appevent variable available in the Object drop-down in the Class1
(Code) module window.
5. In the Class1 (Code) module window, click the Object drop-down and then click appevent in the list.
6. In the Class1 (Code) module window, click the Procedure drop-down and then click WindowResize in the list.
This will add the following to the Class1 (Code) module sheet:

Private Sub appevent_WindowResize(ByVal Wb As Excel.Workbook, _


ByVal Wn As Excel.Window)

End Sub

7. Add code to the Class1 (Code) module sheet so that it appears as follows:

Public WithEvents appevent As Application

Private Sub appevent_WindowResize(ByVal Wb As Excel.Workbook, _


ByVal Wn As Excel.Window)

MsgBox "you resized a window"

End Sub

Next, you have to create an instance of the class and then set the appevent object of the instance of the
Class1 to Application. This happens because when you declare a variable, WithEvents, at design time, there is
no object associated with it. A WithEvents variable is just like any other object variable - you have to create
an object and assign a reference to the object to the WithEvents variable.
8. On the Insert menu click Module to insert a general type module sheet into your project.
9. In this module sheet, enter the following code:

Dim myobject As New Class1

Sub Test()
Set myobject.appevent = Application
End Sub

10. Run the test macro.


You have just set the event handler to run each time you resize a workbook window in Microsoft Excel.
11. On the File menu, click Close and Return to Microsoft Excel .
12. Resize a workbook window. A message box with "you resized a window" will be displayed.
How to Turn Off the Event Handler
If you close the workbook that contains the above project, the application-level event handler will be turned off. To
programmatically turn off the event handler, do the following:
1. Start the Visual Basic Editor.
2. In the macro code you entered in Step 9, change the macro to:

Sub test()
Set myobject.appevent = Nothing
End Sub

3. Run the test macro again.


4. On the File menu, click Close and Return to Microsoft Excel .
5. Resize a workbook window.
The message box will not display.
Custom function may not calculate expected value in
Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you calculate your worksheet, some cells may appear to have calculated the wrong value.

Cause
This problem occurs when the following conditions are true:
A cell on the worksheet contains a custom function.
The custom function contains one or more arguments that refer to a range of cells on the worksheet.
The result of the custom function depends on more cells than it directly references.
This behavior is by design of Microsoft Excel. When Excel calculates the cell containing the custom function, it
recalculates all cell ranges that are passed as arguments to your custom function. If the result of your function
depends on cells that are not explicitly referred to by the function, then those cells may not be recalculated.

Workaround
To work around this problem, use any of the following methods.
Method 1: Modify your function so that all relevant cell ranges are passed
Modify your function to accept as arguments all of the cells necessary to calculate the result of the function.
Method 2: Make your custom function volatile
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.If you make your custom function volatile, this problem
will not occur. To make your custom function volatile, add the following line of code to the function.

Application.Volatile
NOTE
If you make your custom function volatile, it will recalculate every time you make a change to a value or recalculate an open
workbook. This could impact the performance of your worksheet model.

Method 3: Force Excel to recalculate all open workbooks


Press CTRL+ALT+F9 to recalculate the values in all open workbooks. In Microsoft Office Excel 2007, press
CTRL+ALT+SHIFT+F9 to recalculate the values in all open workbooks.

More information
Example of the problem
To illustrate this problem, follow these steps:
1. Close and save any open workbooks, and then open a new workbook.
2. Start the Visual Basic Editor (press ALT+F11).
3. On the Inser t menu, click Module .
4. Type the following code into the module sheet:

' This function counts the number of blank cells by starting from the cell
' referred to by the rngStartCell argument and moving up the column.

Function FindTextUp(rngStartCell As Range) As Single


Dim iIndex As Integer

For iIndex = 0 To 100


If rngStartCell.Value <> "" Then
FindTextUp = iIndex
Exit Function
Else
Set rngStartCell = rngStartCell.Offset(-1, 0)
End If
Next iIndex
End Function

5. Press ALT+F11 to return to Excel.


6. Type Test, in cell A2, and then press ENTER.
7. Type the following formula in cell A10, and then press ENTER:

=FindTextUp(A9)

The formula returns a value of 7.


8. Type Another test in cell A5, and then press ENTER.
The formula still returns a value of 7, when a value of 4 is expected. In this example, the FindTextUp function
explicitly refers to cell A9. However, the function may depend on cells A1:A8, depending on the data entered in the
worksheet.
If you implement method 1 in the "Workaround" section of this article, the function will calculate the expected
result. The following line of code illustrates how to modify the function in this example so that the expected result is
calculated.
Function FindTextUp(rngStartCell As Range, rngOtherCells As Range) As Single

Now, if you replace the function call in step 7 with the following function call, the function will always return the
expected result.

=FindTextUp(A9,A1:A8)
[SDP 3][7b5791e2-2449-4351-867a-a22d34449d15]
Data that is collected by the Excel Support Diagnostic
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This Support Diagnostics Platform (SDP) manifest file collects relevant log files, registry keys, client networking
configuration, application event logs, and important file details that are used by the following Microsoft Office
applications:
Microsoft Excel 2013
Microsoft Excel 2010
Microsoft Office Excel 2007
Microsoft Office Excel 2003
Also, to help troubleshoot common support issues, a series of configuration checks are run to check whether you
may be encountering the condition that is specified by the check.
This article discusses the data that is collected by the Microsoft Excel Baseline Diagnostic.

More Information
When you run the Excel Baseline Diagnostic, you receive a message that resembles the following. The message asks
whether you want to have fixes applied automatically or by selecting them yourself:
You see several items that are running, and then you see a prompt that resembles the following. The prompt lets
you know that the Excel application will have to be open to continue.

You should click Skip only if you are experiencing startup issues (for example, crashes) with the selected
application.

NOTE
All file names in the data collection are prefaced by <ComputerName >. This placeholder represents the name of the
computer on which the Microsoft Support Diagnostic Tool is run.
Some file names in the data collection include <full path >. This placeholder represents the full path of the file on the
hard disk.

Data that is collected for all Office applications


Add-ins that are installed for the Office application

DESC RIP T IO N F IL E N A M E F O RM AT S

List of third-party add-ins <ComputerName >_3rd_party_addins. .txt


*

List of Microsoft add-ins <ComputerName >_msft_addins.* .txt

Third-party modules that are running under the Office application

DESC RIP T IO N F IL E N A M E F O RM AT S

List of third-party modules running <ComputerName >_3rd_party_Modul .txt


under the selected process es.*

Autorun information
For more information about the Autoruns utility that is used to collect this information, see Autoruns for Windows
v13.96.

DESC RIP T IO N F IL E N A M E F O RM AT S

Autorun information <ComputerName >_Autoruns.* .xml, .htm

Application and System logs


Events from the last 15 days are recorded in the full
DESC RIP T IO N F IL E N A M E F O RM AT S

Event log - Application <ComputerName >_evt_Application.* .txt, .csv, .evtx

Event log - System <ComputerName >_evt_System.* .txt, .csv, .evtx

Event log - OAlerts <ComputerName>_evt_OAlerts.* .txt, .csv, .evtx

File created from the Application event logs: _crash_events_applog.csv


Environment variables
This set of environment variables is a subset of those that are displayed by running the Setcommand at a command
prompt.

DESC RIP T IO N F IL E N A M E F O RM AT S

List containing environment variables <ComputerName >_EnvironmentVaria .txt


and their values bles.*

Uploaded files

DESC RIP T IO N F IL E N A M E F O RM AT S

File containing any additional file(s) that <ComputerName >_File.* .zip


you elected to upload to Microsoft

Updates Installed

DESC RIP T IO N F IL E N A M E F O RM AT S

List of updates that are installed on the <ComputerName >_Hotfixes.* .txt, .htm, .csv
client

Software Installed

DESC RIP T IO N F IL E N A M E F O RM AT S

List of software products that are <ComputerName >_Installed_Product .csv


installed on the client s.*

List of processes that are running on the computer

DESC RIP T IO N F IL E N A M E F O RM AT S

List of processes and related services <ComputerName >_Processes.* .txt


running on the computer

List of non-Microsoft processes and <ComputerName>_Non_Microsoft_Serv .csv


services running on the computer ices_Running.*

List of Enabled Startup Items <ComputerName>_Startup_Items_Enab .csv


led.*

Windows registry keys


Windows registry locations below are exported in full .reg files. Text files are then created from these files.
DESC RIP T IO N F IL E N A M E F O RM AT S

HKEY_CURRENT_USER\Software\Micros <ComputerName >_reg_HKCU_Office. .txt


oft\Office *

HKEY_CURRENT_USER\Software\Policies <ComputerName >_reg_HKCU_Policie .txt


s.*

HKEY_LOCAL_MACHINE\Software\Micr <ComputerName >_reg_HKLM_IFEO.* .txt


osoft\Windows
NT\CurrentVersion\Image File Execution
Options,
HKEY_LOCAL_MACHINE\Software\Wow
6432Node\Microsoft\Windows
NT\CurrentVersion\Image File Execution
Options

HKEY_LOCAL_MACHINE\Software\Micr <ComputerName >_reg_HKLM_Office. .txt


osoft\Office, *
HKEY_LOCAL_MACHINE\Software\Wow
6432Node\Microsoft\Office

HKEY_CLASSES_ROOT (filtered) <ComputerName>_HKCR_XLnExtsFilter .txt, .reg


ed.*

HKEY_CURRENT_USER\Software\Micros <ComputerName>_HKCU_FileExts.* .txt, .reg


oft\Windows\CurrentVersion\Explorer\Fi
leExts

Networking details

DESC RIP T IO N F IL E N A M E F O RM AT S

List with network-related parameters <ComputerName >_SMB-Info.* .txt

List with TCP/IP-related information <ComputerName >_TcpIp-Info.* .txt


from the computer

Robust Office Inventory Scan output

DESC RIP T IO N F IL E N A M E F O RM AT S

List of installed applications of the <ComputerName >_ROIScan.* .xml, .log


supported Office families

Excel data
In addition to the data that is listed in the "Data that is collected for all Office applications" section, the following
files are collected specifically for Microsoft Office Excel when you run this diagnostic.
Information about the XLStart folder

DESC RIP T IO N F IL E N A M E F O RM AT S

Summary of files found in the folder <ComputerName >_dir_Contents_App .txt


and subfolders: Data-Microsoft-Excel.*
C:\Users{username}\AppData\Roaming\
Microsoft\Excel
DESC RIP T IO N F IL E N A M E F O RM AT S

Summary of files that are found in the <ComputerName >_dir_Contents_XLSt .txt


folder: \{Office Install folder}\XLStart art.*

Summary of Excel specific information <ComputerName >_Excel_Configurati .txt


on_Summary.*

Additional Configuration Information <ComputerName>_Excel_Additional_Su .txt


that may affect Excel mmary.*

File information for important Excel files


Text and .csv files contain details about important files that are used by Excel.
File details include: Version, Location, Description, Size, Date, Company

DESC RIP T IO N F IL E N A M E F O RM AT S

Common Office program file <ComputerName >_sym_CommonPro .csv, .txt


information gramFilesOffice.*

32-bit Common Office program file <ComputerName >_sym_CommonPro .csv, .txt


information gramFilesx86Office.*

Common System program file <ComputerName >_sym_CommonPro .csv, .txt


information gramFilesSystem.*

32-bit Common System program file <ComputerName >_sym_CommonPro .csv, .txt


information gramFilesx86System.*

Common VBA Program file information <ComputerName >_sym_CommonPro .csv, .txt


gramFilesVBA.*

32-bit Common VBA Program file <ComputerName >_sym_CommonPro .csv, .txt


information gramFilesx86VBA.*

Common VSTO Program file <ComputerName >_sym_CommonPro .csv, .txt


information gramFilesVSTO.*

32-bit Common VSTO Program file <ComputerName >_sym_CommonPro .csv, .txt


information gramFilesx86VSTO.*

Office Program information <ComputerName >_sym_ProgramFiles .csv, .txt


Office.*

Office Addins Program information <ComputerName>_sym_ProgramFilesO .csv, .txt


fficeAddins.*

System 32 information <ComputerName >_sym_System32.* .csv, .txt

System 32 (64-bit) information <ComputerName >_sym_Syswow64.* .csv, .txt


DESC RIP T IO N F IL E N A M E F O RM AT S

64-bit Click-to-Run Program File <ComputerName>_sym_C2R_ProgramF .csv, .txt


Information ilesCommonx64.*

32-bit Click-to-Run Program File <ComputerName>_sym_C2R_ProgramF .csv, .txt


Information ilesCommonx86.*

DESC RIP T IO N F IL E N A M E F O RM AT S

.DLL files currently running under the <ComputerName >_sym_excel_Proces .csv, .txt
Excel.exe process s.*

Other

DESC RIP T IO N F IL E N A M E F O RM AT S

Resultant set of policy (RSoP) generated <ComputerName>_GPResult.* .htm, .csv


by gpresult.exe

List of modules and the status of their <ComputerName>_Module_Signature_ .txt


signature Status.*

List of Printers <ComputerName>_Printers.* .txt

List of Video Driver Information <ComputerName>_VideoDriverInforma .txt


tion.*

Click-to-Run Configuration Information <ComputerName>_Click-To- .txt


Run_Details.*

Summary of File Association <ComputerName>_Excel_File_Associatio .txt


information most relevant to Excel ns.*

Reports created for the Office Configuration Analyzer Tool (OffCAT)

DESC RIP T IO N F IL E N A M E F O RM AT S

Summary of OffCAT Information <ComputerName>_OffCAT_Report.* .html

OffCAT results <ComputerName>_OffCAT_Results.* .xml, .xml.log

Related article:
Office Configuration Analyzer Tool (OffCAT) information
Fixes Offered
Fixes are offered for known issues while running this utility. Knowledge Base articles are provided for more
information with each fix offered. You may choose to apply the fix automatically or opt-out. If choosing to opt-out,
please review the articles and apply the fixes manually as you choose.
Known issue
If the tool offers you only one opportunity to "fix" an issue and you opt out, the tool may appear to run successfully.
However, results will not be uploaded.
To work around this issue, run the diagnostic package by using the Additional Methods option.
References
Information about Microsoft Automated Troubleshooting Services and Support Diagnostic Platform
Date format is not correct when you convert a CSV
text file in Excel by using a VBA macro
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use a Microsoft Visual Basic for Applications (VBA) macro to convert a Comma-Separated Values (CSV)
text file into a Microsoft Office Excel workbook (*.xls), the format of dates that are converted into your Excel
workbook may not be correct.
For example, in your CSV file, dates may be in the format of:
dd/mm/yyyy
When you run the following macro to convert your CSV text file into Excel,

Sub test()

Workbooks.OpenText Filename:="C:\Test1.csv", DataType:=xlDelimited, _


TextQualifier:=xlTextQualifierNone, FieldInfo:=Array(1, 4)

End Sub

dates may be converted in the following format:


mm/dd/yyyy

Resolution
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. To resolve this problem, add the local:=true parameter to
your VBA macro as in the following example:

Sub test()

Workbooks.OpenText Filename:="C:\Test1.csv", DataType:=xlDelimited, _


TextQualifier:=xlTextQualifierNone, FieldInfo:=Array(1, 4), Local:=True

End Sub
Delete cells by using a "For Each...Next" loop in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Excel 2002 and later versions of Excel delete cells in a "For Each...Next" loop in a different way than
Microsoft Excel 97 and earlier versions of Excel do.
This article describes the differences, and it provides a Visual Basic for Applications macro example that illustrates
how to delete cells in a loop.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure. However, they will not modify these examples to provide added functionality
or construct procedures to meet your specific requirements.
Sample data
To use the macro in this article, type the following sample data in a worksheet:

A1: a B1: 1
A2: b B2: 2
A3: x B3: 3
A4: x B4: 4
A5: c B5: 5
A6: x B6: 6
A7: d B7: 7
A8: x B8: 8
A9: x B9: 9
A10: e B10: 10

Sample macro
In a new macro module, type the following macro.

Sub DeleteCells()

'Loop through cells A1:A10 and delete cells that contain an "x."
For Each c in Range("A1:A10")
If c = "x" Then c.EntireRow.Delete
Next

End Sub
Behavior of the sample macro in Excel 2002 and in later versions of Excel
When you run the DeleteCells macro in Excel 2002 and in later versions of Excel, only rows 3, 6 and 8 are deleted.
Although rows 4 and 9 contain an "x" in column A, the macro does not delete the rows. The results of the macro are
as follows:

A1: a B1: 1
A2: b B2: 2
A3: x B3: 4
A4: c B4: 5
A5: d B5: 7
A6: x B6: 9
A7: e B7: 10

When Microsoft Excel deletes row 3, all cells move up one row. For example, cell A3 assumes the contents of cell A4,
cell A4 assumes the contents of cell A5, and so forth. After the For Each...Next loop evaluates a cell, it evaluates the
next cell; therefore, when cells are shifted, they may be skipped by the loop.
Behavior of the sample macro in Microsoft Excel 5.0 and Microsoft Excel 7.0
When you run the DeleteCells macro in Excel 5.0 and in Excel 7.0, the macro deletes all rows that contain an "x." The
results of the macro are as follows:

A1: a B1: 1
A2: b B2: 2
A3: c B3: 5
A4: d B4: 7
A5: e B5: 10

When row 3 is deleted, all cells move up one row. Then, cell A3 assumes the contents of cell A4, cell A4 assumes the
contents of cell A5, and so on.
However, unlike the behavior of the loop in Excel 2002 and in later versions of Excel, when the "For Each...Next" loop
evaluates a cell in Excel 5.0 and in Excel 7.0, the loop reevaluates the cell if it is deleted in the loop. Therefore, the
cells are not skipped.
Recommended method for using a loop to delete cells
Use the following macro when you want to use a loop to delete cells:
Sub DeleteCells2()

Dim rng As Range


Dim i As Integer, counter As Integer

'Set the range to evaluate to rng.


Set rng = Range("A1:A10")

'initialize i to 1
i = 1

'Loop for a count of 1 to the number of rows


'in the range that you want to evaluate.
For counter = 1 To rng.Rows.Count

'If cell i in the range contains an "x",


'delete the row.
'Else increment i
If rng.Cells(i) = "x" Then
rng.Cells(i).EntireRow.Delete
Else
i = i + 1
End If

Next

End Sub

The results of this macro in all versions of Excel are as follows:

A1: a B1: 1
A2: b B2: 2
A3: c B3: 5
A4: d B4: 7
A5: e B5: 10

Additional method for using a loop to delete cells


This is an alternate method to the method that is shown above. This method produces the same results.

Sub DeleteCells3()

Dim rng As Range, i As Integer

'Set the range to evaluate to rng.


Set rng = Range("A1:A10")

'Loop backwards through the rows


'in the range that you want to evaluate.
For i = rng.Rows.Count To 1 Step -1

'If cell i in the range contains an "x", delete the entire row.
If rng.Cells(i).Value = "x" Then rng.Cells(i).EntireRow.Delete
Next

End Sub
How to delete every other row on an Excel worksheet
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains a sample Microsoft Visual Basic for Applications macro that you can use to delete every other
row in a selected range on a Microsoft Excel worksheet.

More Information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. To use the following macro, set up an Excel workbook as
follows:
1. Create a new Microsoft Excel workbook.
2. In a new worksheet, in the range A1:A9, type the numbers 1 to 5, skipping rows, as in the following example:

A1: 1
A2:
A3: 2
A4:
A5: 3
A6:
A7: 4
A8:
A9: 5

3. On the Tools menu, point to Macro, and then click Visual Basic Editor.
Note In Microsoft Office Excel 2007 and later versions, click Visual Basic in the Code group on the
Developer tab.
4. On the Insert menu, click Module.
5. In the new module, type the following macro:
Sub Delete_Every_Other_Row()

' Dimension variables.


Y = False ' Change this to True if you want to
' delete rows 1, 3, 5, and so on.
I = 1
Set xRng = Selection

' Loop once for every row in the selection.


For xCounter = 1 To xRng.Rows.Count

' If Y is True, then...


If Y = True Then

' ...delete an entire row of cells.


xRng.Cells(I).EntireRow.Delete

' Otherwise...
Else

' ...increment I by one so we can cycle through range.


I = I + 1

End If

' If Y is True, make it False; if Y is False, make it True.


Y = Not Y

Next xCounter

End Sub

6. Switch to the worksheet that contains the data, and then select the range A1:A9.
7. To run the macro, point to Macro on the Tools menu, and then click Macros.

NOTE
In Excel 2007 and later versions, click Macros in the Code group on the Developer tab.
To display the Developer tab in the Ribbon, click the Microsoft Office Button , click Excel Options , click the
Popular categor y , click to select the Show Developer tab in the Ribbon check box, and then click OK .

8. Select the Delete_Ever y_Other_Row macro, and then click Run .


This macro will delete every other row, starting with the second row of the selection.

NOTE
If you have a list of data that contains multiple columns, select only the first column of data, and then run the macro.
How Excel determines the current mode of
calculation
4/1/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, all currently open documents use the same mode of calculation, regardless of the mode in which
they were saved.

More Information
To help explain how the mode of calculation is determined, this article refers to the following hypothetical
documents:

F IL E N A M E K IN D O F DO C UM EN T M O DE T H AT IS USED TO SAVE T H E F IL E

Auto1.xlsx Workbook Automatic

Manual1.xlsx Workbook Manual

Auto2.xlsx Workbook Automatic

The following statements apply to calculation modes in Excel:


The first document that is opened uses the calculation mode with which it was last saved. Documents that are
opened later use the same mode. For example, if you open Auto1.xlsx and then open Manual1.xlsx, both
documents use automatic calculation (the mode used by Auto1.xlsx). If you open Manual1.xlsx and then open
Auto1.xlsx, both documents use manual calculation.
Changing the calculation mode of one open document changes the mode for all open documents. For example,
if Auto1.xlsx and Auto2.xlsx are both open, changing the calculation mode of Auto2.xlsx to manual also changes
the mode of Auto1.xlsx to manual.
All sheets that are contained in a workbook use the same mode of calculation. For example, if Auto2.xlsx
contains three worksheets, changing the mode of calculation of the first worksheet to manual also changes the
mode of calculation to manual in the other two sheets.
If all other documents are closed and you create a new document, the new document uses the same calculation
mode as the previously closed documents. However, if you use a template, the mode of calculation is the mode
that is specified in the template.
If the mode of calculation in a workbook changed and the file is saved, the current mode of calculation is saved.
For example, if Auto1.xlsx is opened, Manual1.xlsx is opened, and Manual1.xlsx is immediately saved, the mode
of calculation is saved as automatic.
How to control the mode of calculation
All open documents use the same mode of calculation. You must follow special procedures to work with documents
that use different calculation modes. For example, if you are working with Auto1.xlsx and you want to open
Manual1.xlsx in manual calculation mode, take one of the following actions:
Set Auto1.xlsx to manual calculation mode before you open Manual1.xlsx.
Close Auto1.xlsx (and any other open documents) before you open Manual1.xlsx.
There are four modes of calculation that you can select in Excel. They are as follows:
Automatic
Automatic except for data tables
Manual
Recalculate workbook before saving

M O DE T IM E W H EN C A L C UL AT IO N O C C URS

Automatic When you make any change to the document. All affected
parts of the document are recalculated.

Automatic except tables When you make any change to the document. All affected
parts of the document except tables are recalculated. A table is
recalculated only when a change is made to it.

Manual When you press F9, click Options on the Tools menu, click
the Calculation tab, and then click Calc Sheet .

Manual / Recalculate before saving When you press F9 or click Calc Sheet on the Calculation
tab on the Tools/Options menu. Calculation also occurs
every time that you save the file if you have the checkbox
"Recalculate workbook before saving" checked under File >
Options > Formulas .

Recalculate the active sheet


To recalculate only the active sheet, use one of the following methods:
Press SHIFT+F9.
Click Calculate Sheet on the Formulas menu in the Calculation group.
Recalculate all open documents
To recalculate all open documents, use one of the following methods:
Press F9.
Click Calculate Now on the Formulas menu in the Calculation group.
How to change the mode of calculation in Excel
To change the mode of calculation in Excel, follow these steps:
1. Click the Microsoft Office Button , and then click Excel Options .
2. On the Formulas tab, select the calculation mode that you want to use.
Method to determine whether a year is a leap year
4/21/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to determine whether the year in a date that is used in a Microsoft Excel document is a
leap year.

More Information
The date system that is used by Excel is based on the Gregorian calendar, first established in 1582 by Pope Gregory
XIII. This calendar was designed to correct the errors introduced by the less accurate Julian calendar.
In the Gregorian calendar, a normal year consists of 365 days. Because the actual length of a sidereal year (the time
required for the Earth to revolve once about the Sun) is actually 365.25635 days, a "leap year" of 366 days is used
once every four years to eliminate the error caused by three normal (but short) years. Any year that is evenly
divisible by 4 is a leap year: for example, 1988, 1992, and 1996 are leap years.
However, there is still a small error that must be accounted for. To eliminate this error, the Gregorian calendar
stipulates that a year that is evenly divisible by 100 (for example, 1900) is a leap year only if it is also evenly
divisible by 400.
For this reason, the following years are not leap years:
1700, 1800, 1900, 2100, 2200, 2300, 2500, 2600
This is because they are evenly divisible by 100 but not by 400.
The following years are leap years: 1600, 2000, 2400
This is because they are evenly divisible by both 100 and 400.
Because versions of Microsoft Excel earlier than Excel 97 handle only years from 1900 to 2078, only the year 1900
is subject to the 100/400 exclusion rule of leap years in Microsoft Excel. However, in order to be compatible with
other programs, Microsoft Excel treats the year 1900 as a leap year.
How to determine whether a year is a leap year
To determine whether a year is a leap year, follow these steps:
1. If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.
2. If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 5.
3. If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5.
4. The year is a leap year (it has 366 days).
5. The year is not a leap year (it has 365 days).
Formula to determine whether a year is a leap year
Use the following formula to determine whether the year number that is entered into a cell (in this example, cell A1)
is a leap year:

=IF(OR(MOD(A1,400)=0,AND(MOD(A1,4)=0,MOD(A1,100)<>0)),"Leap Year", "NOT a Leap Year")

IF T H E VA L UE IN C EL L A 1 IS T H IS T H E F O RM UL A RET URN S

1992 Leap Year

2000 Leap Year

1900 NOT a Leap Year


Differences between the Excel statistical functions
STDEVPA and STDEVP
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses the differences between the STDEVPA function in Microsoft Excel and the closely related
STDEVP function. In particular, it discusses how the results of the STDEVPA function for Microsoft Office Excel 2007
and for Microsoft Office Excel 2003 may differ from the results of STDEVPA in earlier versions of Excel.
Excel 2004 for Macintosh Information
The statistical functions in Microsoft Excel 2004 for Macintosh were updated using the same algorithms as
Microsoft Office Excel 2003. Any information in this article that describes how a function works or how a function
was modified for Excel 2003 and Excel 2007 also applies to Excel 2004 for Macintosh.

More Information
The STDEVPA function returns the population standard deviation for a population whose values are contained in an
Excel worksheet and specified by the argument(s) to STDEVPA.
Syntax

STDEVPA(value1, value2, value3, ...)

The parameters (value1, value2, value 3,...) are up to 30 value arguments.


Frequently, STDEVPA includes only one value argument that specifies a range of cells that contain the sample. For
example:

STDEVPA(A1:B100)

Example Usage
STDEVPA differs from STDEVP only in the way it treats cells in the data range that contain TRUE, FALSE, or a text
string. STDEVPA interprets TRUE as the value 1 and interprets FALSE as the value 0. It interprets a text string as the
value 0. It ignores blank cells. These interpretations also apply for the COUNTA, AVERAGEA, and STDEVA functions.
STDEVP ignores blank cells and cells that contain TRUE, FALSE, or a text string. These interpretations also apply for
the COUNT, AVERAGE, and STDEV functions.
Use STDEVP instead of STDEVPA unless you are sure that you want the function to interpret TRUE, FALSE, and text
strings as described earlier in this article for STDEVPA. Most data you want to calculate a population standard
deviation for is completely numeric. Therefore, STDEVP is appropriate.
To illustrate the difference between STDEVPA and STDEVP, create a blank Excel worksheet, copy the table below,
select cell A1 in your blank Excel worksheet, and then click Paste on the Edit menu so that the entries in the table
below fill cells A1:D12 in your worksheet.

DATA 0

6 6 Sample Mean for STDEVP, =AVERAGE(A1:A8)


STDEV

4 4 Sample Size for STDEVP, =COUNT(A1:A8)


STDEV

2 2 STDEVP =STDEVP(A1:A8)

1 1 STDEV =STDEV(A1:A8)

7 7 Sample Mean for STDEVPA, =AVERAGEA(A1:A8)


STDEVA

TRUE 1 Sample Size for STDEVPA, =COUNTA(A1:A8)


STDEVA

STDEVPA =STDEVPA(A1:A8)

STDEVA =STDEVA(A1:A8)

STDEVP for Column B =STDEVP(B1:B8)

STDEV for Column B =STDEV(B1:B8)

NOTE
After you paste this table into your new Excel worksheet, click the Paste Options button, and then click Match
Destination Formatting . With the pasted range still selected, point to Column on the Format menu, and then click
AutoFit Selection .

In this example, cells A1:A8 contain data values that contrast STDEVPA with STDEVP. All the functions that are used
in cells D3:D10 refer to the data in A1:A8. STDEVPA treats the text string in cell A1 as the value 0, the numeric values
in A3:A7 as themselves, and the value TRUE in A8 as 1. The values that are used for STDEVPA in A1:A8 appear in
B1:B8. The worksheet shows that the value of STDEVPA(A1:A8) in cell D9 is exactly equal to the value of
STDEVP(B1:B8) in cell D11.
STDEVP and STDEVPA return population standard deviation, whereas STDEV and STDEVA return sample standard
deviation. In all versions of Excel, a value is calculated first for VAR, VARA, VARP, or VARPA. The square root of this
value is returned (respectively) for STDEV, STDEVA, STDEVP, or STDEVPA. To evaluate VAR, VARA, VARP, and VARPA,
Excel 2003 calculates the number of data points and their average, and then calculates the sum of squared
deviations of data values from this average. This sum of squared deviations is the numerator of the fraction that is
used to evaluate VAR, VARA, VARP, and VARPA. The denominator for VARP and VARPA is the number of data points.
The denominator for VAR and VARA is one less than the number of data points.
To calculate each of these four functions, Excel 2003 and Excel 2007 use a procedure that differs from and improves
upon the procedure that earlier versions of Excel use. The article for STDEV gives a worksheet that permits you to
examine cases where unusual behavior occurs in STDEV for earlier versions of Excel, but not for Excel 2003 or for
Excel 2007. However, such cases are likely to occur only in extreme situations. Procedures for STDEV, STDEVA,
STDEVP, STDEVPA, VAR, VARA, VARP, and VARPA have all been modified in the same way to improve the numeric
stability of the results. The articles for STDEV and VAR also describe these modifications.
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
826349 Description of the STDEV function in Excel 2003
826112 Excel Statistical Functions: VAR
Differences between the 1900 and the 1904 date
system in Excel
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Excel supports two different date systems. These systems are the 1900 date system and the 1904 date
system. This article describes the two date systems and the problems that you may encounter when you use
workbooks that use different date systems.

More Information
The 1900 Date System
In the 1900 date system, the first day that is supported is January 1, 1900. When you enter a date, the date is
converted into a serial number that represents the number of elapsed days starting with 1 for January 1, 1900. For
example, if you enter July 5, 1998, Excel converts the date to the serial number 35981.
By default, Microsoft Excel for Windows uses the 1900 date system. The 1900 date system enables better
compatibility between Excel and other spreadsheet programs, such as Lotus 1-2-3, that are designed to run under
MS-DOS or Microsoft Windows.
The 1904 Date System
In the 1904 date system, the first day that is supported is January 1, 1904. When you enter a date, the date is
converted into a serial number that represents the number of elapsed days since January 1, 1904, starting with 0
for January 1, 1904. For example, if you enter July 5, 1998, Excel converts the date to the serial number 34519.
Because of the design of early Macintosh computers, dates before January 1, 1904, were not supported. This design
was intended to prevent problems related to the fact that 1900 was not a leap year. In the past, Excel for Macintosh
defaulted to using the 1904 date system for workbooks originating on a Macintosh. However, Excel for Macintosh
now defaults to the 1900 date system and supports dates as early as January 1, 1900.
The Difference Between the Date Systems
Because the two date systems use different starting days, the same date is represented by different serial numbers
in each date system. For example, July 5, 1998 can have two different serial numbers, as follows.

DAT E SY ST EM SERIA L N UM B ER O F JULY 5, 1998

1900 date system 35981

1904 date system 34519

The difference between the two date systems is 1,462 days; that is, the serial number of a date in the 1900 Date
System is always 1,462 days bigger than the serial number of the same date in the 1904 date system. 1,462 days is
equal to four years and one day (including one leap day).
Setting the Date System for a Workbook
In Excel, each workbook can have its own date system setting, even if multiple workbooks are open.
To set the date system for a workbook in Microsoft Office Excel 2003 and in earlier versions of Excel, follow these
steps:
1. Open or switch to the workbook.
2. On the Tools menu, click Options . In Excel X and later versions for Macintosh, click Preferences on the Excel
menu.
3. Click the Calculation tab.
4. To use the 1900 date system in the workbook, click to clear the 1904 date system check box. To use the 1904
date system in the workbook, click to select the 1904 date system check box.
5. Click OK .
To set the date system for a workbook in Microsoft Office Excel 2007, follow these steps:
1. Open or switch to the workbook.
2. Click the Microsoft Office Button , and then click Excel Options .
3. Click Advanced .
4. Click to select the Use 1904 data system check box under the When calculating this workbook , and then
click OK .
Notice that if you change the date system for a workbook that already contains dates, the dates shift by four years
and one day. For information about how to correct shifted dates, see the "Correcting Shifted Dates" section.
Problems Linking and Copying Dates Between Workbooks
If two workbooks use different date systems, you may encounter problems when you link or copy dates between
workbooks. Specifically, the dates may be shifted by four years and one day.
To see an example of this behavior, follow these steps:
1. In Excel, create two new workbooks (Book1 and Book2).
2. Follow the steps in the "Setting the Date System for a Workbook" section to use the 1900 date system in
Book 1. Use the 1904 date system in Book2.
3. In Book1, enter the date July 5, 1998.
4. Select the cell that contains the date, and then click Copy on the Edit menu.
Note In Excel 2007, select the cell that contains the date, and then click Copy in the Clipboard group on the
Home tab.
5. Switch to Book2, select a cell, and then click Paste on the Edit menu.
Note In Excel 2007, switch to Book2, select a cell, and then click Paste in the Clipboard group on the Home
tab.
The date is pasted as July 6, 2002. Notice that the date is four years and one day later than the date in step 3
because Book2 uses the 1904 date system.
6. In Book2, type the date July 5, 1998. Select the cell that contains the date and then click Copy on the Edit
menu.
Note In Excel 2007, type the date July 5, 1998 in Book2. Select the cell that contains the date, and then click
Copy in the Clipboard group on the Home tab.
7. Switch to Book1, select a cell, and then click Paste on the Edit menu.
Note In Excel 2007, switch to Book1, select a cell, and then click Paste in the Clipboard group on the Home
tab.
The date is pasted as July 4, 1994. It has been shifted down by four years and one day because Book1 uses
the 1900 date system.
Correcting Shifted Dates
If you link from or copy dates between workbooks, or if you change the date system for a workbook that already
contains dates, the dates may be shifted by four years and one day. You can correct shifted dates by following these
steps:
1. In an empty cell, enter the value 1462.
2. Select the cell. On the Edit menu, click Copy .
Note In Excel 2007, select the cell, and then click Copy in the Clipboard group on the Home tab.
3. Select the cells that contain the shifted dates. On the Edit menu, click Paste Special .
Note In Excel 2007, select the cells that contain the shifted dates, click Paste in the Clipboard group on the
Home tab, and then click Paste Special .
4. In the Paste Special dialog box, click to select the Values check box under Paste , and then click to select
either of the following check boxes under Operation . |Select this| If| |---|---| |Add| The dates must be shifted
up by four years and one day.| |Subtract |The dates must be shifted down by four years and one day.|
5. Click OK.
Repeat these steps until all the shifted dates have been corrected.
If you are using a formula to link to a date in another workbook, and if the date returned by the formula is incorrect
because the workbooks use different date systems, modify the formula to return the correct date. For example, use
the following formulas:

=[Book2]Sheet1!$A$1+1462

=[Book1]Sheet1!$A$1-1462

In these formulas, 1,462 is added or deleted from the date value.


Description of digital signatures and code signing in
workbooks in Excel
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Office Excel 2003 and in later versions of Excel, you can digitally sign a workbook or code sign your
macro project. This ensures that you were the last person to make changes to the workbook or macro project.

More information
What is a digital certificate?
Digital certificates and signatures help to assure you that the file that you are about to use comes from a reliable
source. They help to assure you that the file has not been tampered with.
A digital certificate is an ID that a file carries with it. To validate a signature, a certifying authority validates
information about the creator of the file and then issues the digital certificate. The digital certificate contains
information about the person to whom the certificate was issued, as well as information about the certifying
authority that issued it. When a digital certificate is used to sign a file, this ID is stored with the file in a verifiable
form so that it can be displayed to a user.
What is a digital signature?
Excel uses digital signatures on the workbook contents to help ensure that the workbook has not been modified
and saved since it was signed. Digital signatures can also help you distinguish workbooks and macros created by a
reliable source from undesirable and potentially damaging workbooks or macro code (viruses).
A digital signature is a public certificate plus the value of the signed data as encrypted by a private key. The value is
a number that a cryptographic algorithm generates for any data that you want to sign. This algorithm makes it
nearly impossible to change the data without changing the resulting value. So, by encrypting the value instead of
the data, a digital signature helps a user to verify the data was not changed.
What happens when I use a digital signature?
You can view and edit signed Excel workbooks, although you cannot modify and save a signed workbook without
invalidating the signature. For example, you can sign a file and other users can view the file. As long as the file
remains signed, others will know it came from you and has not been modified.
Digital signing a workbook is different from code signing a Visual Basic for Applications (VBA) macro project. You
can digitally sign the workbook for content and you can also code sign your VBA macro project in the same
workbook.
What Excel files can I digitally sign?
You can digitally sign any Excel workbook or Excel template. However, Excel versions that are earlier than Microsoft
Excel 2002 do not recognize the digital signature.
If you digitally sign a shared workbook, Excel will not retain the digital signature because more than one person can
make changes to the workbook. Additionally, you cannot code sign a macro project, because Excel will not allow
you to create or make changes to macro projects in a workbook after it has been set up as shared workbook.
How can I obtain a digital signature?
To obtain a digital signature, you first have to have a digital certificate.
You can obtain a digital certificate or a code signing ID from a commercial certification authority or from your
internal security administrator or information technology (IT) professional.
A certification authority can issue you a digital certificate or code signing ID for no charge. The certification
authority does an in-depth identification check before it issues a digital certificate.
For more information about how to obtain a digital signature or code signing ID, visit the following Microsoft Web
site:
Microsoft Root Certificate Program Members
You can create your own digital certificate for personal use or testing purposes with the SelfCert.exe tool that is
provided in Microsoft Office. However, this certificate is not authenticated by a Certificate Authority (CA).
How do I add a digital signature to a workbook?
To add a digital signature to your workbook, follow these steps, as appropriate for the version of Excel that you are
running.
Microsoft Office Excel 2007
1. Click the Microsoft Office Button , point to Prepare , and then click Add a Digital Signature .
2. Click OK .
If the workbook has changed and is not yet saved, or if it is not saved in the Excel 2007 workbook format,
you receive the following message:
Before you can add signatures, you must save the workbook in a format that supports digital signatures.
Do you want to save the workbook as a Microsoft Office Excel Workbook?
3. Click Yes to display the Save As dialog box. You must save the file in the Excel Workbook (*.xlsx) format
to add the digital signature.
4. After you save the workbook, the Get a Digital ID dialog box is displayed. Select the type of digital ID that
you want to use, and then click OK .
After you complete the necessary steps for the type of digital ID that you selected, your Excel workbook is now
signed.
NOTE
If you save your workbook after you add the digital ID, the digital ID will be removed. For example, when you click the
Microsoft Office Button and then click Save As after you digitally sign your workbook, you receive the following
message:
Saving a copy of this workbook will invalidate all of the signatures in the copy.
Do you want to continue? If you click Yes , the digital ID will be removed from the copy of the workbook.
When you close and then reopen the signed workbook, the Excel title bar will display the words [Read-Only] (in
brackets) after the workbook name. Additionally, the digital ID icon appears in the status bar, and the Signatures task
pane appears to indicate that a digital signature has been added to the workbook.
To verify that changes have not occurred in the signed workbook, verify that a signer appears in the Signature task
pane.

Excel 2003
1. On the Tools menu, click Options .
2. On the Security tab, click Digital Signatures .
3. Click Add .
If the workbook has changed and is not yet saved, or if it is not saved in the Excel 2003 workbook format,
you receive the following message:
This workbook must be saved as a Microsoft Excel workbook before it can be digitally signed. Do you want
to save the workbook?
4. Click Yes to display the Save As dialog box. You must save the file in the Microsoft Excel Workbook format
to add the digital signature.
5. After you save the workbook, the Select Cer tificate dialog box is displayed. Select the certificate that you
want to use, and then click OK .
6. Click OK to close the Digital Signatures dialog box.
Your Excel workbook is now signed.

NOTE
If you save your workbook after you add the digital signature, the digital signature will be removed. For example,
when you click Save on the File menu after you digitally sign your workbook, you receive the following message:
Saving will remove all digital signatures in the workbook.
Do you want to continue?If you click Yes , the digital signatures will be removed from your workbook.
When you close and reopen the signed workbook, the Excel title bar will display the words [Signed, unverified] (in
brackets) after the workbook name. This indicates that a digital signature has been added to the workbook.

To verify that changes have not occurred in the signed workbook, follow these steps:
1. On the Tools menu, click Options .
2. On the Security tab, click Digital Signatures .
3. On the Signatures tab, if a signer is listed in the The following have digitally signed this document list,
you can be assured that the file has not been changed since the digital signature was added to the file.
How do I code sign a macro project?
To code sign your Visual Basic for Applications macro project, follow these steps:
1. Open the workbook that contains the macro project that you want to sign.
2. Press ALT+F11 to open the Visual Basic Editor.
3. In the Project Explorer, select the project that you want to sign.
4. On the Tools menu, click Digital Signature .
5. Do one of the following:
If you have not previously selected a digital certificate, or if you want to use another one, click Choose ,
select the certificate, and then click OK two times.
To use the current certificate, click OK .
Display more digits in trendline equation coefficients
in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
When you add a trendline to a chart, and then display the equation and R-squared value for the trendline, the
equation shows only the first five digits of each coefficient. For some purposes, this may not be a sufficient number
of significant figures. This article explains how to display more digits in the coefficients.
Display more digits
The trendline equation and R-squared value are initially displayed as rounded to five digits. To display a greater
number of digits, use one of the following methods:
Method 1: Microsoft Office Excel 2007
1. Open the worksheet that contains the chart.
2. Right-click the trendline equation or the R-squared text, and then click Format Trendline Label .
3. Click Number .
4. In the Categor y list, click Number , and then change the Decimal places setting to 30 or less.
5. Click Close .
Method 2: Microsoft Office Excel 2003 and earlier versions of Excel
1. Open the worksheet that contains the chart.
2. Double-click the trendline equation or R-squared text.
3. On the Number tab, click Number in the Category list, and then change the Decimal places setting to 30 or
less.
4. Click OK.

NOTE
Even though you can set the number of decimal places to 30 for the Number category, Excel only displays values to a
maximum of 15 digits of precision. Additional digits are displayed as zero.
The DSUM and DCOUNT functions in Excel do not
work with PivotTables
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario in Microsoft Excel:
You create a table that has two or more columns of data on a worksheet.
You insert a new PivotTable into the worksheet that is based on the new table's data.
You enter a formula by using either of the following database functions:
DCOUNT
DSUM
You use the PivotTable's cell references for the database parameter of the database function. And, you use the
cell reference for the column in the PivotTable for the field parameter of the database function.
For example, consider the following scenario. The PivotTable is in cells C10:F20. The targeted column is F10,
and this column has the column label of "Total." The database table on which the PivotTable is based is in
N1:Q10. The criteria for the function are H2:H12. The DCOUNT function parameters are as follows:
database= C10:F20
field= F10
criteria= H2:H12
The function is written as follows: DCOUNT(C10:F20,F10,H2:H12)
In this scenario, when the DCOUNT and DSUM functions are calculated, they return the following error:
"#VALUE!"
And, if you use the column label "Total" for the fieldparameter, the DCOUNT and DSUM functions also return
the "#VALUE!" error.

Cause
This problem occurs because the field parameter of the DCOUNT and DSUM functions cannot use a cell reference
or a column label to retrieve data from the database table. When you use the DCOUNT and the DSUM functions on
a PivotTable, the field parameter can only use a number to represent the position of the column within the list. For
example, the parameter can use 1 for the first column, 2 for the second column, and so on. Do not use quotation
marks around the number.

Workaround
To work around this issue, use either a column label or the column position value to identify the column to use in
the field parameter.
For example, by using the example in the "Symptoms" section, the DCOUNT function can be rewritten as follows:
DCOUNT(C10:F20,4,H2:H12)
Macros in embedded Excel workbook are blocked
from running
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptom
In an environment that has the Block macros from running in Office files from the Internet Group Policy
setting enabled for Microsoft Excel 2016, macros in embedded Excel workbooks are blocked from running.
For example, when you create a new Excel workbook and embed a macro-enabled workbook in the new workbook,
you receive the following security notice:

Microsoft Office has identified a potential security concern.

Macros in this document have been disabled by your enterprise administrator for security reasons.

Cause
This issue occurs if the embedded Excel workbook isn't from a trusted location, or the new workbook isn't saved to
a trusted location.

Resolution
To work around the issue, save the embedded or new workbook to a trusted location.
For more information about the Block macros from running in Office files from the Internet Group Policy
setting, see New feature in Office 2016 can block macros and help prevent infection.
Excel may appear to endlessly loop calculating cells
when inserting subtotals in a workbook
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you insert several subtotals in a Microsoft Excel workbook, Excel may appear to endlessly loop calculating
cells.

Cause
This behavior may occur because Excel recalculates once for each subtotal that is inserted in a workbook.

Workaround
To work around this behavior, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007
1. Click the Formulas tab.
2. Click Calculation Options in the Calculation group, and then click Manual .
3. Select the cell in which you want the subtotal to appear.
4. Click Math & Trig in the Function Librar y group, and then click SUBTOTAL .
5. In the Function Arguments dialog box, make the changes that you want, and then click OK .
6. After you have inserted all the subtotals that you want into the workbook, click Calculation Options in the
Calculation group, and then click Automatic .
Microsoft Office Excel 2003
1. On the Tools menu, click Options .
2. On the Calculation tab, click Manual .
3. Click OK .
4. Select the cell in which you want the subtotal to appear.
5. On the Data menu, click Subtotals .
6. In the Subtotal dialog box, make the changes that you want, and then click OK .
7. After you have inserted all the subtotals that you want into your workbook, click Options on the Tools menu.
8. On the Calculation tab, click Automatic .
9. Click OK .
"An error occurred when sending commands to the
program" in Excel
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You receive the following error message in Microsoft Excel. This error indicates that some process that is running
inside Excel will not let Excel close. An error occurred when sending commands to the program

Resolution
To resolve this problem, try the following methods, as appropriate, in the given order.
Method 1: Ignore DDE
To correct this setting, follow these steps:
1. Select File > Options .
2. Select Advanced , scroll down to the General section, and then clear the Ignore other applications that use
Dynamic Data Exchange (DDE) check box in the General area.
3. SelectOK .
This problem may occur if the Ignore other applications that use Dynamic Data Exchange (DDE) check box
in Excel options is selected.
When you double-click an Excel workbook in Windows Explorer, a dynamic data exchange (DDE) message is sent to
Excel. This message instructs Excel to open the workbook that you double-clicked.
If you select the "Ignore" option, Excel ignores DDE messages that are sent to it by other programs. Therefore, the
DDE message that is sent to Excel by Windows Explorer is ignored, and Excel does not open the workbook that you
double-clicked.

NOTE
For more information about how to turn off DDE, see the following Microsoft Knowledge Base article:

211494 "There was a problem sending the command to the program" error in Excel
If these steps do not resolve the problem, go to Method 2.
Method 2: Repair User Experience Virtualization (UE-V )
If you are running Update User Experience Virtualization (UE-V), install Hotfix Package 1 for Microsoft User
Experience Virtualization 2.0 (KB2927019).
If you are not sure whether you are running UE-V, examine the program list in the Programs and Features item
in Control Panel. An entry for "Company Settings Center" indicates that you are running UE-V.
If these steps do not resolve the problem, go to Method 3.
Method 3: Reset file associations
To check whether the file associations in the system are performing correctly, reset the Excel file associations to
their default settings. To do this, follow the steps for your operating system.Windows 10
1. Right-click the Excel workbook, point to Open with , and then click More apps .
2. Select the version of Excel you want to use to open this file type, such as Excel 2016 .
3. Click to select Always use this app to open .xlsx files .
4. Click OK .
Windows 8
1. On the Start screen, type Control Panel.
2. Select Control Panel .
3. Select Default Programs > Set your default programs .
4. Select Excel > Choose default for this program .
5. On the Set Program Associations screen, select Select All > Save .
Windows 7
1. Select Star t > Control Panel .
2. Select Default Programs .
3. Select Associate a file type or protocol with a specific program .
4. Select Microsoft Excel Worksheet , and then select change program.
5. Under Recommended Programs , select Microsoft Excel .
6. If Excel does not appear in this list, select Browse , locate the Excel installation folder, select Excel.exe > Excel .
If these steps do not resolve the problem, go to Method 4.
Method 4: Repair Office
Try to repair your Office programs. To do this, follow the steps for your installation type and operating system.
For an Office 365 Click-to-Run installation
Windows 10
1. In the search box, type Control Panel , and then click Control Panel in the search results.
2. Under Programs , click Uninstall a program .
3. Click Microsoft Office 365 > Change .
4. Click Online Repair > Repair .

NOTE
You may have to restart your computer after the repair process is completed. Windows 8

1. On the Start screen, type Control Panel.


2. Select Control Panel .
3. Under Programs , select Uninstall a program .
4. Select **Microsoft Office 365 **> Change .
5. Select Online Repair > Repair .
NOTE
You may have to restart your computer after the repair process is finished.

Windows 7
1. Select Star t >Control Panel .
2. Double-click Programs and Features .
3. Select **Microsoft Office 365 **> Change .
4. Select Online Repair > Repair .

NOTE
You may have to restart your computer after the repair process is complete.

For an Office 2016, 2013, Office 2010, or Office 2007 installation


To repair Office 2013, Office 2010, or Office 2007, follow the steps in the following Office website topic: Repair
Office programs
If these steps do not resolve the problem, go to Method 5.
Method 5: Turn off add-ins
Excel and COM add-in programs can also cause this problem. These two kinds of add-ins are located in different
folders. For testing, disable and isolate the conflict by turning off each add-in one at a time. To do this, follow these
steps:
1. On the File menu, select Options > Add-Ins .
2. In the Manage list at the bottom of the screen, select COM Add-Ins > Go .
3. Clear one of the add-ins in the list, and then select OK .
4. Restart Excel by double-clicking the icon or file name for the workbook that you are trying to open.
5. If the problem persists, repeat steps 1-4, except select a different add-in in step 3.
6. If the problem persists after you clear all the COM Add-ins, repeat steps 1-4, except select Excel Add-Ins in step
2, and then try each of the Excel add-ins one at a time in step 3.
If Excel loads the file, the add-in you last turned off is causing the problem. If this is the case, we recommend that
you visit the manufacturer's website for the add-in to learn whether an updated version of the add-in is available. If
a newer version of the add-in is not available, or if you don't have to use the add-in, you can leave it turned off.
If Excel does not open the file after you turn off all the add-ins, the problem has a different cause.
If these steps do not resolve the problem, go to Method 6.
Method 6: Disable hardware acceleration
To work around this problem, disable hardware acceleration until a fix is released by your video card manufacturer.
Make sure to check regularly for updates to your video card driver.
To disable hardware acceleration, follow these steps:
1. Start any Office 2013 program.
2. On the File tab, select Options .
3. In the Options dialog box, select Advanced .
4. In the list of available options, select the Disable hardware graphics acceleration check box.
The following screen shot shows this option in Excel.

5. Select OK .

NOTE
For more information about hardware acceleration, see Performance and display issues in Office 2013 client applications
(KB2768648).

If these steps do not resolve the problem, go to Method 7.


Method 7: Verify or install the latest updates
You may have to set Windows Update to automatically download and install recommended updates. Installing any
important, recommended, and optional updates can frequently correct problems by replacing out-of-date files and
fixing vulnerabilities.
For more information about Office updates, click the following article number to go to the article in the Microsoft
Knowledge Base: Office Updates
Microsoft Support

More Information
There are many possible reasons that might lead to this error.
The Excel workbook tries to access data from another application that is still active.
Too many Excel add-ins have been added to the program, or one of the add-ins is corrupted.
You might have taken one of the following actions:
Use a third-party add-in or application
Try to open an embedded object
Save or open a file
Try to use the Send as Attachment option
Call another application from the Excel workbook
For more information about this problem and for additional troubleshooting steps, see the following Microsoft
Knowledge Base articles:
2616247 Why does "An error occurred when sending commands to the program" appear when opening Excel
2010 files? (Easy Fix Article)
2994633 Excel: How to Troubleshoot Excel opening blank when you double-click a file icon or file name
"Not enough memory" when you copy formulas over
large area in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
If you fill or copy formulas into a large area of a worksheet, or you add formulas to a large worksheet, you receive
error messages that are similar to the following:
Not enough memory.
Not enough system resources to display completely.

Cause
Each instance of Microsoft Excel 2007, Excel 2010, and Excel 2013 32-bit is limited to 2 gigabyte (GB) of memory
(internal heap space). Each instance is also limited to 32,760 source cells when you perform a smart fill operation.
When you copy or fill large sections of a worksheet, one or both of these limitations may affect the result.

Workaround
To work around the source cell limit, follow these steps:
1. Fill only the part of the range that you have to fill.
2. Select only the last row or last two rows of the filled range, and then fill farther down the sheet.
3. Repeat step 2 until you have filled the entire range that you have to fill.
To work around the memory limit, break your work into smaller workbooks, and open them in separate
instances of Excel.

More Information
Excel uses internal heap space for different types of operations, including the following:
to track cells and formulas.
to provide copy and paste functionality.
to track pointers to objects.
In versions of Excel earlier than Microsoft Excel 2002, the memory limit is 64 MB. In Excel 2002, the limit is
increased to 128 MB. In Microsoft Office Excel 2003, the limit is increased to 1 gigabyte (GB).
Because this is a per-instance limit, this problem may occur if you have two or three large workbooks open, or one
very large workbook. If you are working with several workbooks, try to open them in separate instances of Excel.
With smart fill functionality, you can increment relative references and fill lists. By reducing the copy range in any
copy or fill operation, you can work around the 32,760 source cell limit.
"Index was outside the bounds of the array" error
when you import data from multiple tables in a SQL
Server database to an Excel 2013 workbook
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario in which you try to import data from a Microsoft SQL Server 2012 database to a
Microsoft Excel 2013 workbook:
You start the Data Connection Wizard to create a connection from the SQL Server database to the workbook.
You select multiple tables from the database.
You select how you want to view the imported data in the workbook. For example, you select to create a table, a
PivotTable report, or a PivotChart report.
In this scenario, you receive the following error message:

We couldn't get data from the Data Model. Here's the error we got: Index was outside the bounds of the array.

Cause
This issue occurs when one of the selected table names ends with a string that matches a schema name in the
database. The Data Connection Wizard only uses the table names instead of the fully qualified table names when
you import data from multiple tables.
Note This issue does not occur when you use the Data Connection Wizard to import data from a single table. In this
situation, the Data Connection Wizard uses the fully qualified table name.

Workaround
To work around this issue, use one of the following methods:
Use the Data Connection Wizard to import data from one table at a time.
Make sure that none of your table names end with a string that matches a schema name, and then import data
from multiple tables.
After you receive the error message that is mentioned in the "Symptoms" section, follow these steps to import
data from multiple tables:
1. Click Proper ties in the Import Data dialog box.
2. Click the Definition tab.
3. In the Command Text box, change the table names to fully qualified table names by using the following
format: Database.Schema.TableName
"File path you entered is too long" when saving Excel
file in OneDrive
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptom
When you try to save a Microsoft Excel workbook in OneDrive, you receive the following error message:

The file path you entered is too long. Enter a shorter file name or select a shorter file path, and then try
saving the file again.

Cause
This issue occurs because the total length of the path and the file name, including the file name extension, exceeds
255 characters.

NOTE
This limitation includes the characters that represent the server name, the characters in folder names, the backslash character
between folders, and the characters in the file name.

Resolution
To fix the issue, make sure that the path of the file contains no more than 255 characters. To do this, use one of the
following methods:
Rename the file so that it has a shorter name.
Rename one or more folders that contain the file so that they have shorter names.
Save the file to a folder that has a shorter path.
Excel 2013 crashes when you scroll down by using the
mouse wheel or the worksheet scrollbar
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you scroll down in a workbook in Microsoft Excel 2013, Excel may crash. If you review the Application log,
you see that the crash occurred in OSF.dll.
For example, this problem may occur if you scroll down by using the mouse wheel or the worksheet scrollbar. This
problem occurs only after you log in to Microsoft Office 365 by using your Microsoft Account (previously known as
Windows Live ID).

Cause
This problem occurs because of a conflict with Avast! Antivirus software.

NOTE
This problem is known to occur when you have Avast! Antivirus installed on your computer. However, there may be additional
causes. Microsoft is currently investigating these additional causes.

Resolution
Avast! has released an update to resolve this conflict. This update is version 2014.9.0.2008 and was released on
November 11, 2013. If you use Avast! Antivirus, you must have this update or a later version installed.
To resolve this issue, follow these steps:
1. Install the Avast! update, and then restart the computer.
2. Start Excel 2013.
3. On the File tab, click Options .
4. Click Trust Center , and then click Trust Center Settings .
5. Click Trusted App Catalogs , and then click Clear .

NOTE
If you experience these symptoms but do not have Avast! Antivirus installed, follow steps 2 though 5 to resolve the problem.

References
Third-party information disclaimerThe third-party products that this article discusses are manufactured by
companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the
performance or reliability of these products.
Excel 2013 or Word 2013 crashes on close after using
the Insert menu
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Microsoft Excel 2013 or Microsoft Word 2013 may crash on exit after certain actions, such as using the Insert
menu.
If you then review the events in the Application Event log you find any of the following crash signatures for Event ID
1000.
For Microsoft Excel 2013

FA ULT IN G FA ULT IN G M O DUL E


A P P L IC AT IO N N A M E VERSIO N NAME VERSIO N O F F SET

Excel.exe 15.0.4623.1000 osf.dll 15.0.4623.1000 0x00016033

Excel.exe 15.0.4621.1000 osf.dll 15.0.4609.1000 0x0000000000006D8


9

Excel.exe 15.0.4615.1000 osf.dll 15.0.4609.1000 0x0000000000006D8


9

Excel.exe 15.0.4605.1000 osf.dll 5.0.4603.1000 0x00015F8D

Excel.exe 15.0.4569.1504 osf.dll 15.0.4569.1504 0x00015C8B

For Microsoft Word 2013

FA ULT IN G FA ULT IN G M O DUL E


A P P L IC AT IO N N A M E VERSIO N NAME VERSIO N O F F SET

Winword.exe 15.0.4569.1504 osf.dll 15.0.4569.1504 0x00015C8B

Winword.exe 15.0.4623.1000 osf.dll 15.0.4609.1000 0x0000000000006D8


9

Winword.exe 15.0.4623.1000 osf.dll 15.0.4609.1000 0x00015FA1

Winword.exe 15.0.4615.1000 osf.dll 15.0.4609.1000 0x0000000000006D8


9

Winword.exe 15.0.4609.1000 osf.dll 15.0.4615.1000 0x00015FC9


Note There may be other crash signatures related to this issue. Therefore, if you find a crashing event for
Winword.exe or Excel.exe where the crashing module name is Osf.dll, we recommend following the resolution
below.

Cause
This has been identified as a problem in a DownloadManager (osf.dll) component of Microsoft Office 2013.

Resolution
This issue is fixed in the Office 2013 hotfix package KB2825683 that is dated July 8, 2014. For more information,
click the following article number to view the article in the Microsoft Knowledge Base:
2825683 Hotfix KB2825683 for Office 2013 July 8, 2014 (Osfclient-x-none.msp)

More Information
You can use the following steps to review the Application event log:
1. In Control Panel, open Administrative Tools .
2. Double-click Event Viewer .
3. In the left pane, select Application under Windows Logs .
4. In the Actions pane, click Filter Current Log .
5. In the Filter Current Log dialog box, enter 1000 (as shown in the following figure) and then click OK .
Excel 2016 for Mac crashes when you click the From
Database option
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Excel 2016 for Mac crashes when you click Data > New Database Quer y > From Database .

Cause
This issue occurs if you 're running Excel 2016 for Mac version 15.25 or later, and you have an older 32-bit ODBC
driver installed on your Mac.

Resolution
To resolve this issue, remove the 32-bit driver, and then install a new 64-bit driver. For information about how to
remove and install the drivers, contact the driver manufacturer or supplier.

More Information
In September 2015, Excel 2016 for Mac was originally released as 32-bit software. However, in August 2016, the
software was updated to 64-bit. To check whether you have this update, click About Excel on the Excel menu. If
you have version 15.25 or later, you have the 64-bit version.
If you have the 64-bit version and an older 32-bit ODBC driver, this may cause Excel to crash. To prevent this issue,
install a 64-bit driver from the provider or from the company's website. Some of the most common drivers are
provided by Openlink Software and Actual Technologies.
To determine whether your driver is 32-bit or 64-bit, follow these steps:
1. Go to the Finder.
2. Click Go > Utilities, and then double-click System Information.
3. On the left side, scroll down, and then click Applications.
4. Scroll through the list of applications to find the name of your driver.
5. Click the driver, and then look in the 64-bit column.
For more information about compatible ODBC drivers, see ODBC drivers that are compatible with Excel for Mac.
Third-par ty information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
Excel 2013 crashes when moving Excel sheet tab
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
While you are working with Excel spread sheet, Microsoft Excel 2013 crashes when you move Excel sheet tab to
reposition within the same workbook or to a separate workbook window.
When you examine your Application event log, you find an event (Event ID = 1000) with a crash signature that
matches one of the following.

A P P L IC AT IO N
A P P L IC AT IO N N A M E VERSIO N M O DUL E N A M E M O DUL E VERSIO N O F F SET

Excel.exe 15.0.4517.1004 Excel.exe 15.0.4517.1004 0x000218AE

Excel.exe 15.0.4535.1507 Excel.exe 15.0.4535.1507 0x000218AE

Excel.exe 15.0.4569.1504 Excel.exe 15.0.4569.1504 0x000219C5

Cause
This problem is caused by a known issue in certain builds of Microsoft Excel 2013.

Resolution
If you find a crash signature in your Application event log that mataches one of the signatures in the table in the
System section, please install the latest update for Excel. The method of updating depends on whether you have a
Click-to-Run installation of Office or an MSI installation of Office.
To see whether you are using a Click-to-Run installation of Office 2013, click the File tab in Excel and then click
Account. If you see"Office Updates" under Product Information, as shown in the following figure, you are using a
Click-to-Run installation of Office.
If you do not see "Office Updates" under Product Information, you have an MSI installation of Office 2013.
The latest updates for Office can be found using the following links:
MSI installation
https://technet.microsoft.com/en-us/office/ee748587.aspx
Click-to-Run installation
https://support.microsoft.com/gp/office-2013-click-to-run

More Information
The following crash signatures have not been correlated to reproducible steps that cause the crash. Crash
signatures are based on a combination of the different elements listed in the signature data. So, if you find one of
these crash signatures in your application event log, then the update recommended by this article has a very high
chance of stopping these particular crashes on your computer.
Excel 2013 crashes when working on multiple
workbooks
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
While you are working with multiple Excel workbooks, Microsoft Excel 2013 crashes when you are interacting with
one of editor windows shortly before the workbook owning this editor window is closed.
When you examine your Application event log, you find an event (Event ID = 1000) with a crash signature that
matches one of the following.

A P P L IC AT IO N
A P P L IC AT IO N N A M E VERSIO N M O DUL E N A M E M O DUL E VERSIO N O F F SET

Excel.exe 15.0.4517.1004 Excel.exe 15.0.4517.1004 0x00A83E00

Excel.exe 15.0.4569.1504 Excel.exe 15.0.4569.1504 0x00A8FEBF

Excel.exe 15.0.4605.1000 Excel.exe 15.0.4605.1000 0x00A8FD81

Excel.exe 15.0.4535.1507 Excel.exe 15.0.4535.1507 0x00A86CAD

Excel.exe 15.0.4551.1003 Excel.exe 15.0.4551.1003 0x00A86D07

Cause
This problem is caused by a known issue in certain builds of Microsoft Excel 2013.

Resolution
If you find a crash signature in your Application event log that matches one of the signatures in the table in the
System section, please install the latest update for Excel. The method of updating depends on whether you have a
Click-to-Run installation of Office or an MSI installation of Office.
To see whether you are using a Click-to-Run installation of Office 2013, click the File tab in Excel and then click
Account. If you see "Office Updates" under Product Information, as shown in the following figure, you are using a
Click-to-Run installation of Office.
If you do not see "Office Updates" under Product Information, you have an MSI installation of Office 2013.
For the latest updates for Office, reference Office updates.

More Information
The following crash signatures have not been correlated to reproducible steps that cause the crash. Crash
signatures are based on a combination of the different elements listed in the signature data. So, if you find one of
these crash signatures in your application event log, then the update recommended by this article has a very high
chance of stopping these particular crashes on your computer.
Excel crashing issues fixed in recent updates
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario when working in Excel the application stops responding or crashes. If you examine
the Application Event log, you will find entries for Event ID 1000 that have one or more of the following crash
signatures.

FA ULT IN G FA ULT IN G M O DUL E


A P P L IC AT IO N N A M E VERSIO N NAME VERSIO N O F F SET

Excel.exe 15.0.4517.1004 Excel.exe 15.0.4517.1004 0x0004F20E

Excel.exe 15.0.4420.1017 Excel.exe 15.0.4420.1017 0x003CBD72

Excel.exe 15.0.4551.1510 Excel.exe 15.0.4551.1510 0x003BFFCA

Excel.exe 15.0.4569.1504 Excel.exe 15.0.4569.1504 0x0006045C

Excel.exe 15.0.4517.1004 Excel.exe 15.0.4517.1004 0x0005F9B4

Excel.exe 15.0.4605.1000 Excel.exe 15.0.4605.1000 0x0005FC4C

Cause
Microsoft is researching this problem and this article will be updated with additional information as it becomes
available.

Resolution
To resolve this problem, please install the latest update for Excel. The method for updating depends on whether you
have a Click-to-Run installation of Office or an MSI installation of Office.
To see whether you are using a Click-to-Run installation of Office 2013, click the Filetab in Outlook and then
click Office Account. If you see "Office Updates" under Product Information, as shown in the following figure, you
are using a Click-to-Run installation of Office.
If you do notsee "Office Updates" under Product Information, you have an MSI installation of Office 2013.
The latest updates for Office can found using the following links:
MSI installation https://technet.microsoft.com/office/ee748587.aspx
Click-to-Run installation https://support.microsoft.com/gp/office-2013-click-to-run

More Information
Note The following crash signatures have not been correlated to reproducible steps that cause the crash. Crash
signatures are based on a combination of the different elements listed in the signature data. So, if you find one of
these crash signatures in your application event log, then the update recommended by this article has a very high
chance of stopping these particular crashes on your computer.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The
information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it
available, the materials may include typographical errors and may be revised at any time without notice. See Terms
of Use for other considerations.
Excel 2013 does not recognize data as Date type data
after you import the data from a SQL Server data
source to an Excel workbook
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You use the Microsoft SQL OLE DB Provider to import data from a SQL Server data source to a Microsoft Excel
2013 workbook.
The SQL Server data source contains a Date type column.
You use the data to create a PivotTable in Excel 2013.
You try to insert a timeline into the PivotTable.
In this scenario, you cannot select the cell range that contains the data in the Insert Timeline dialog box.

Cause
This issue occurs because the SQL OLE DB Provider returns the String data type if the data source contains a Date,
Time, or DateTime2 type column. In this situation, Excel 2013 cannot recognize the data as the Date type.

Workaround
To work around this issue, use one of the following methods:
Change the column type to DateTime in the SQL Server data source.
Use an Open Database Connectivity (ODBC) driver to import the data.
BUG: Excel Does Not Shut Down After Calling the
Quit Method When Automating from JScript
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When automating Microsoft Excel from Microsoft JScript, Excel stays in memory after calling the Quit method until
you close Internet Explorer or navigate to another page.

Cause
JScript is holding on to a reference to Excel. Because there is a reference on Excel when you issue the Quit
command, Excel does not shut down. JScript is a garbage collecting language, which means the engine cleans up
after itself at a certain point, and not when you set the variables to NULL. When you shut down Internet Explorer or
move to another page, the engine is destroyed. This behavior forces garbage collection and frees the reference to
Excel.

Resolution
To work around this problem, you can call the CollectGarbage method. This forces JScript's garbage collection to
occur immediately, which releases the reference to Excel. The following code snippet illustrates how to use the
CollectGarbage method:

<HTML>
<BODY>
<INPUT type="button" value="Automate Excel" name=AutomateExcel onclick="StartExcel()">
<SCRIPT LANGUAGE=Javascript>
var idTmr = "";

function StartExcel() {
var oExcel;

oExcel = new ActiveXObject("Excel.Application");


oExcel.Quit();
oExcel = null;
idTmr = window.setInterval("Cleanup();",1);
}

function Cleanup() {
window.clearInterval(idTmr);
CollectGarbage();
}

</SCRIPT>
</BODY>
</HTML>
Notice that the CollectGarbage method is not called directly after Excel's Quit method. You need to give JScript a
small amount of time before calling CollectGarbage. A timer is used in this example to show how to wait briefly
before forcing garbage collection.
Another workaround to this problem is to use VBScript for Automation of Microsoft Excel. Unlike JScript, VBScript is
not a garbage collecting language and, therefore, references are released when you set the variables to Nothing.
Using VBScript, Excel shuts down immediately after calling the Quit method and releasing the variables. Please see
the "References" section of this article for more information.
NOTE The undocumented CollectGarbage method is not part of the ECMA-262 specification, and may not be
available in future versions of the scripting engine. When you force the garbage collector to run by calling
CollectGarbage, this may also negatively impact performance.

Status
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

More Information
Steps to Reproduce Behavior
1. Start Notepad and paste the following code in the editor:

<HTML>
<BODY>
<INPUT type="button" value="Automate Excel" name=AutomateExcel onclick="StartExcel()">
<SCRIPT LANGUAGE=Javascript>
function StartExcel() {
var oExcel;

oExcel = new ActiveXObject("Excel.Application");


oExcel.Quit();
oExcel = null;
}
</SCRIPT>
</BODY>
</HTML>

2. Save the file as JScriptTest.HTM, and then exit Notepad.


3. Double-click the JScriptTest.HTM file to load the file in Internet Explorer.
4. Start the Windows Task Manager.
5. Click the Automate Excel button on the Web page in Internet Explorer. Examine the Windows Task Manager, and
note that Excel starts and stays in memory.
6. Navigate to another page or exit Internet Explorer. Note that Excel quits and no longer appears in Windows Task
Manager.

References
For additional information a VBScript code sample that demonstrates Automation to Excel, see How to automate
Excel from a client-side VBScript.
Excel 2010 not responding, hangs, freezes or stops
working
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses troubleshooting steps that can help resolve issues when you receive an "Excel not
responding" error, or Excel hangs or freezes when you launch Excel, open a file or save a file.

Cause
Problems with Excel hanging, freezing or not responding may occur for one or more of the following reasons:
This issue can occur if you have not installed the latest updates.
Excel may be in use by another process.
A previously installed add-in may be interfering with Excel.
You may need to repair your Office 2010 programs.
Antivirus software may be outdated, or conflicting with Excel.
Advanced Troubleshooting Another program may be conflicting with Excel.

Resolution
Follow the provided methods in this article in order. If you have previously tried one of these methods and it did
not help, go to another method from this list:
Method 1: Install the latest updates
Click here to show information on how to install latest updates.
You might need to set Windows Update to automatically download and install recommended updates. Installing
any important, recommended, and optional updates can often correct problems by replacing out-of-date files and
fixing vulnerabilities. To install the latest Office updates, see Install Windows updates.
If installing the latest Office updates did not resolve your issue, continue to method 2.
Method 2: Check to make sure Excel is not in use by another process
Click here to show information on how to make sure Excel is not in use by another process.
If Excel is in use by another process, this information will be displayed in the horizontal status bar at the bottom of
the screen. If you try to perform other actions while Excel is in use, Excel may not respond. Let the task in process
finish its job before attempting other actions.
If Excel is not in use by another process, continue to method 3.
Method 3: Investigate possible issues with add-ins
Click here to show information on how to look for add-in issues.
While add-ins can enhance your experience, they can occasionally interfere or conflict with Excel. Try starting Excel
without add-ins to see if the problem goes away. Here's how:
1. Do one of the following:
If you are running Windows XP, click Start, and then click Run.
If you are running Windows Vista or Windows 7, click Start.
2. Type Excel /safe, and then click OK.
3. If the issue is resolved, on the File menu, click Options, and then click Add-Ins.
4. Select COM Add-ins, and then click Go.
5. Click to clear all the check boxes (Disable the Add-ins) in the list, and then click OK.
6. Restart Excel.
If the issue does not occur, start enabling the add-ins one at a time until the issue occurs. This will allow you to
figure out which add-in is causing the problem. Be sure and restart Excel each time you enable an Add-in.
If disabling add-ins did not resolve your issue, continue to method 4.
Method 4: Repair your Office 2010 programs
Click here to show information on how you can repair Office 2010 programs.
Repairing your Office 2010 programs can resolve issues with Excel not responding, hanging, or freezing by
automatically repairing errors in the file.
1. Quit any Microsoft Office programs that are running.
2. Open the Control Panel, and then open Add or Remove Programs (if you are running Windows XP) or Programs
and Features (if you are running Windows Vista or Windows 7).
3. In the list of installed programs, right-click Microsoft Office 2010, and then click Repair.

NOTE
If you are using Office Click-to-Run, please see the following Microsoft Office article and follow the steps to Repair Office
Click-to-Run:

If you're not sure if the version of Office that you have is Click to Run, check your version by:
1. Open any Office product (Excel, Word, PowerPoint etc.).
2. Click on the FileTab and select Help.
3. Under "About Microsoft Office" it should say (32-bit) or (64-bit) next to the version number.
4. If you have a Click to Runversion it will be stated there.
If repairing your Office programs did not resolve your issue, continue to method 5.
Method 5: Check to see if your antivirus software is up-to -date or conflicting with Excel
Click here to show information on how you can check for conflicts or if the antivirus is up-to-date.
If your antivirus software is not up-to-date, Excel may not function properly.
To check whether your antivirus software is up-to-date
To keep up with new viruses that are created, antivirus software vendors periodically provide updates that you can
download from the Internet. Download the latest updates by visiting your antivirus software vendor's website.
For a list of antivirus software vendors, see Consumer security software providers.
To check whether antivirus software is conflicting with Excel
If your antivirus software includes integration with Excel, you may experience performance issues. In this case, you
can disable all Excel integration within the antivirus software. Or, you can disable any antivirus software add-ins that
are installed in Excel.

IMPORTANT
Changing your antivirus settings may make your PC vulnerable to viral, fraudulent, or malicious attacks. Microsoft does not
recommend that you attempt to change your antivirus settings. Use this workaround at your own risk.

You may have to contact your antivirus software vendor to determine how to configure the software to exclude any
integration with Excel or to exclude scanning in Excel.
If updating you antivirus software, and excluding it from integrating with Excel did not resolve your issue, continue
to Advanced Troubleshooting.
Advanced Troubleshooting
This section is intended for more advanced computer users. If you are not comfortable with advanced
troubleshooting, go to the More Information section.
Perform a Selective Startup to determine if another program is conflicting with Excel
Click here to show information on how to perform a selective startup.
When you start Windows normally, several applications and services start automatically and then run in the
background. These applications and services can interfere with other software on your PC. Performing a Selective
Startup or "clean boot" can help you identify problems with conflicting applications. To perform a Selective Startup,
see How to perform a clean boot in Windows.
If performing a Selective Startup does not resolve your issue, continue to method 2.

More Information
If the information in this knowledge base article did not help resolve your issue in Excel 2010, select one of the
following options:
More Microsoft online articles: Perform a search to find more online articles about this specific error
Help from the Microsoft Community online: Visit the Microsoft Community online and post your question about
this error.
Contact Microsoft support: Find the phone number to contact Microsoft Support.
Excel incorrectly assumes that the year 1900 is a leap
year
5/11/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Microsoft Excel incorrectly assumes that the year 1900 is a leap year. This article explains why the year 1900 is
treated as a leap year, and outlines the behaviors that may occur if this specific issue is corrected.

More Information
When Lotus 1-2-3 was first released, the program assumed that the year 1900 was a leap year, even though it
actually was not a leap year. This made it easier for the program to handle leap years and caused no harm to almost
all date calculations in Lotus 1-2-3.
When Microsoft Multiplan and Microsoft Excel were released, they also assumed that 1900 was a leap year. This
assumption allowed Microsoft Multiplan and Microsoft Excel to use the same serial date system used by Lotus 1-2-
3 and provide greater compatibility with Lotus 1-2-3. Treating 1900 as a leap year also made it easier for users to
move worksheets from one program to the other.
Although it is technically possible to correct this behavior so that current versions of Microsoft Excel do not assume
that 1900 is a leap year, the disadvantages of doing so outweigh the advantages.
If this behavior were to be corrected, many problems would arise, including the following:
Almost all dates in current Microsoft Excel worksheets and other documents would be decreased by one day.
Correcting this shift would take considerable time and effort, especially in formulas that use dates.
Some functions, such as the WEEKDAY function, would return different values; this might cause formulas in
worksheets to work incorrectly.
Correcting this behavior would break serial date compatibility between Microsoft Excel and other programs
that use dates.
If the behavior remains uncorrected, only one problem occurs:
The WEEKDAY function returns incorrect values for dates before March 1, 1900. Because most users do not use
dates before March 1, 1900, this problem is rare.
NOTE: Microsoft Excel correctly handles all other leap years, including century years that are not leap years (for
example, 2100). Only the year 1900 is incorrectly handled.

References
For additional information about determining whether a given year is a leap year, click the article number below to
view the article in the Microsoft Knowledge Base:
Method to Determine Whether a Year Is a Leap Year
Troubleshoot Excel opening blank when you double-
select a file icon or file name
5/9/2020 • 9 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you double-select an icon or file name for a Microsoft Excel workbook, Excel starts, then displays a blank
screen where you expect the file content to appear.
Try the following options to help determine the cause of your printing failure. Select the arrow image to see more
detailed instructions about that option.

IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

Ignore DDE

NOTE
This step can be skipped for Excel 2019 and Excel O365

1. In the upper-left corner of the Excel window, select File ,


then Options .
2. On the left side of the Options window, select
Advanced to open the Advanced window.
3. In the Advanced window, scroll down to the General
section.
4. Clear the Ignore other applications that use
Dynamic Data Exchange (DDE) check box, then
select the OK button at the bottom of the window.

Repair User Experience Vir tualization (UE-V) If you are


running Update User Experience Virtualization (UE-V), install
Hotfix 2927019. To do this, see the following Microsoft
Knowledge Base article:
2927019 - Hotfix Package 1 for Microsoft User Experience
Virtualization 2.0
Reset file associations
Windows 10
1. Copy the file that is opening incorrectly, to your
desktop.
2. Right-click the file, and choose Proper ties
3. On the General tab, next to Type of file , the type of
file will be indicated within parenthesis. For example,
(.docx), (.pdf), or (.csv).
The Opens with shows you which app it is currently
associated with.
To open this type of file in a different app:
1. Select Change .
2. Select More apps .
3. Select the desired app, then select the checkbox to
Always use this app .
4. Select the OK button.

Delete the Word Options registr y key


For an Office 365 or Office 2019 Click-to-Run installation
W indow s 1 0
1. On the Star t screen, type Settings .
2. Select or tap Settings .
3. In the Settings window, select or tap Apps .
4. In the Apps & features window, scroll down to your
Office program and select or tap it.
5. Select or tap the Modify button.
6. In the How would you like to repair your Office
programs window, select or tap the Online Repair
radio button, then select or tap the Repair button.

Turn off add-ins


1. On the File menu, select Options , then select Add-
Ins .
2. In the Manage list at the bottom of the screen, select
COM Add-Ins item, then select Go .
3. Clear one of the add-ins in the list, then select OK .
4. Restart Excel by double-selecting the icon or file name
for the workbook that you are trying to open.
5. If the problem persists, repeat steps 1-4, except select
a different add-in in step 3.
6. If the problem persists after you clear all the COM
Add-ins, repeat steps 1-4, except select Excel Add-
Ins in step 2, then try each of the Excel add-ins one at
a time in step 3.
Disable hardware acceleration
1. Start any Office 2013, 2016, 2019, or O365
program.
2. On the File tab, select Options .
3. In the Options dialog box, select Advanced .
4. In the list of available options, select the Disable
hardware graphics acceleration check box.
5. Select the OK button.

Minimizing and maximizing the window


1. Select the minimize button in the top-right corner of
the Excel sheet.
2. In the task tray, right-click Excel and select your
spreadsheet. (Or double click the Excel icon.)

Check for hidden sheets


1. Select the minimize button in the top-right corner of
the Excel sheet.
2. In the task tray, right-click Excel and select your
spreadsheet. (Or double click the Excel icon.)

Resolution
To resolve this problem, try the following options, as appropriate, in the given order.
Option 1: Ignore DDE
This problem may occur if the Ignore other applications that use Dynamic Data Exchange (DDE) check box
in Excel options is selected.
When you double-select an Excel workbook in Windows Explorer, a dynamic data exchange (DDE) message is sent
to Excel. This message instructs Excel to open the workbook that you double-selected.
If you select the "Ignore" option, Excel ignores DDE messages that are sent to it by other programs. Therefore, the
DDE message that is sent to Excel by Windows Explorer is ignored, and Excel does not open the workbook that you
double-selected.
To correct this setting, follow these steps:

NOTE
This step can be skipped for Excel 2019 and Excel O365

1. In the upper-left corner of the Excel window, select File , then Options .
2. On the left side of the Options window, select Advanced to open the Advanced window.
3. In the Advanced window, scroll down to the General section.
4. Clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box, then select the
OK button at the bottom of the window.

NOTE
For more information about how to turn off DDE, see "An error occurred when sending commands to the program" in Excel
If these steps do not resolve the problem, continue to Option 2 .
Option 2: Repair User Experience Virtualization (UE-V )
If you are running Update User Experience Virtualization (UE-V), install Hotfix 2927019. To do this, see the following
Microsoft Knowledge Base article:
2927019 - Hotfix Package 1 for Microsoft User Experience Virtualization 2.0
If you are not sure whether you are running UE-V, examine the program list in the Programs and Features item
in Control Panel. An entry for "Company Settings Center" indicates that you are running UE-V.
If these steps do not resolve the problem, continue to Option 3 .
Option 3: Reset file associations
To check whether the file associations in the system are performing correctly, reset the Excel file associations to
their default settings. To do this, follow the steps for your operating system.
Windows 8.1/10
1. Copy the file that is opening incorrectly, to your desktop.
2. Right-click the file, and choose Proper ties
3. On the General tab, next to Type of file , the type of file will be indicated within parenthesis. For example,
(.docx), (.pdf), or (.csv).
The Opens with shows you which app it is currently associated with.
To open this type of file in a different app:
1. Select Change .
2. Select More apps .
3. Select the desired app, then select the checkbox to Always use this app .
4. Select the OK button.
Windows 8
1. On the Start screen, type Control Panel.
2. Select or tap Control Panel .
3. Select Default Programs , then select Set your default programs .
4. Select Excel , then select Choose default for this program .
5. On the Set Program Associations screen, select Select All , then select Save .
Windows 7
1. Select Star t , then select Control Panel .
2. Select Default Programs .
3. Select Associate a file type or protocol with a specific program .
4. Select Microsoft Excel Worksheet , then select change program.
5. Under Recommended Programs , select Microsoft Excel .
6. If Excel does not appear in this list, select Browse , locate the Excel installation folder, select Excel.exe , then select
Excel .
If these steps do not resolve the problem, continue to Option 4 .
Option 4: Repair Office
Try to repair your Office programs. To do this, follow the steps for your installation type and operating system.
For an Office 365 or Office 2019 Click-to-Run installation
W indow s 10

1. On the Star t screen, type Settings .


2. Select or tap Settings .
3. In the Settings window, select or tap Apps .
4. In the Apps & features window, scroll down to your Office program and select or tap it.
5. Select or tap the Modify button.
6. In the How would you like to repair your Office programs window, select or tap the Online Repair radio
button, then select or tap the Repair button.
W indow s 8

1. On the Start screen, type Control Panel.


2. Select or tap Control Panel .
3. Under Programs , select or tap Uninstall a program .
4. Select or tap Microsoft Office 365 , then select or tap Change .
5. Select or tap Online Repair , then select or tap Repair . You may have to restart your computer after the repair
process is finished.
W indow s 7

1. Select Star t , then select Control Panel .


2. Double-select Programs and Features .
3. Select Microsoft Office 365 , then select Change .
4. Select Online Repair , then select Repair .

NOTE
You may have to restart your computer after the repair process is complete.

For an Office 2013, Office 2010, or Office 2007 installation


To repair Office 2013, Office 2010, or Office 2007, follow the steps in the following Office website topic:
Repair an Office application
If these steps do not resolve the problem, continue to Option 5 .
Option 5: Turn off add-ins
Excel and COM add-in programs can also cause this problem. These two kinds of add-ins are located in different
folders. For testing, disable and isolate the conflict by turning off each add-in one at a time. To do this, follow these
steps:
1. On the File menu, select Options , then select Add-Ins .
2. In the Manage list at the bottom of the screen, select COM Add-Ins item, then select Go .
3. Clear one of the add-ins in the list, then select OK .
4. Restart Excel by double-selecting the icon or file name for the workbook that you are trying to open.
5. If the problem persists, repeat steps 1-4, except select a different add-in in step 3.
6. If the problem persists after you clear all the COM Add-ins, repeat steps 1-4, except select Excel Add-Ins in step
2, then try each of the Excel add-ins one at a time in step 3.
If Excel loads the file, the add-in you last turned off is causing the problem. If this is the case, we recommend that
you visit the manufacturer's website for the add-in to learn whether an updated version of the add-in is available. If
a newer version of the add-in is not available, or if you don't have to use the add-in, you can leave it turned off.
If Excel does not open the file after you turn off all the add-ins, the problem has a different cause.
If these steps do not resolve the problem, continue to Option 6 .
Option 6: Disable hardware acceleration
To work around this problem, disable hardware acceleration until a fix is released by your video card manufacturer.
Make sure to check regularly for updates to your video card driver.
To disable hardware acceleration, follow these steps:
1. Start any Office 2013, 2016, 2019, or O365 program.
2. On the File tab, select Options .
3. In the Options dialog box, select Advanced .
4. In the list of available options, select the Disable hardware graphics acceleration check box.
The following screen shot shows this option in Excel.

5. Select the OK button.


NOTE
For more information about hardware acceleration, see the following Microsoft Knowledge Base article:
2768648 - Performance and display issues in Office 2013 client applications

Option 7: Minimizing and maximizing the window


Minimizing and then maximizing the window can sometimes refresh the Excel page and cause any hidden data to
appear.
1. Select the minimize button in the top-right corner of the Excel sheet.
2. In the task tray, right-click Excel and select your spreadsheet. (Or double click the Excel icon.)
When your sheet is maximized, your data may appear.
Option 8: Check for hidden sheets
An Excel sheet may have inadvertently been saved as a hidden document. To find out:
1. Go to the View tab.
2. Select Unhide .
3. Choose a workbook from the list.
4. Select OK .
If you still experience this problem after you try all these options, contact Microsoft Support for additional
troubleshooting help.
Error message "Microsoft Excel has stopped working"
after installing KB3118373
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Customers reported that after installing October 4, 2016, update for Excel 2016. Some Excel 2016 workbooks
stopped responding and returned the error.

"Microsoft Excel has stopped working"

Cause
Due to the severe outcome, we have stopped further release of KB3118373, update for Excel 2016. If you have
already installed this patch please uninstall it.
We apologize for any inconvenience this may have caused. The fix for this regression as well as other fixes in
KB3118373 will be included in the next public update for Excel 2016.

More Information
How to uninstall this update:
Windows 10
1. Go to Start, enter View Installed Updates in the Search Windows box, and then press Enter.
2. In the list of updates, locate and select KB3118373, and then select Uninstall.
Windows 8 and Windows 8.1
1. Swipe in from the right edge of the screen, and then select Search. If you're using a mouse, point to the lower-
right corner of the screen, and then select Search.
2. Enter windows update, select Windows Update, and then select Installed Updates.
3. In the list of updates, locate and select KB3118373, and then select Uninstall.
Windows 7
1. Go to Start, enter Run, and then select Run.
2. Enter Appwiz.cpl, and then select OK.
3. Select View installed updates.
4. In the list of updates, locate and select KB3118373, and then select Uninstall.
Excel 2013 takes a very long time to insert or delete
rows after a custom sort on many named columns
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You try to insert or delete rows in a Microsoft Excel 2013 worksheet. You do this after you sort a range that contains
defined names that refer to whole columns. In this scenario, it takes a very long time to insert or delete rows.

Cause
This issue occurs because of the defined names. There are over one million rows per column in Excel 2013. If you
refer to the whole column, all rows of the column are loaded into memory when you perform an operation on the
column. Therefore, you encounter a performance issue when you insert or delete rows after sorting.

Workaround
To work around this issue, create a dynamic defined name on ranges instead of naming the whole column.
For more information about how to create a dynamic defined range in Excel, click the following article number to
view the article in the Microsoft Knowledge Base:
830287 How to create a dynamic defined range in an Excel worksheet
Procedure to export a text file with both comma and
quote delimiters in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Excel does not have a menu command to automatically export data to a text file so that the text file is
exported with both quotation marks and commas as delimiters. For example, there is no command to automatically
create a text file that contains the following data:
"Text1","Text2","Text3"
However, you can create this functionality in Excel by using a Microsoft Visual Basic for Applications procedure.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
You can use the Print # statement in a Visual Basic procedure that is similar to the following to export a text file with
both quotation marks and commas as the delimiters. For the procedure to function correctly, select the cells that
contain your data before you run it.
Before you work with the following sample code, follow these steps:
1. Open a new workbook.
2. In Microsoft Office Excel 2003 or in Microsoft Excel 2002, point to Macro on the Tools menu, and then click
Visual Basic Editor. Alternatively, press ALT+F11.
In Microsoft Office Excel 2007, click the Developer tab, and then click Visual Basic in the Code group.
Alternatively, press ALT + F11.

NOTE
To show the Developer tab in the Ribbon, click the Microsoft Office Button , click Excel Options , click
thePopular category, click to select the Show Developer tab in the Ribbon check box, and then click OK .

3. In the Visual Basic Editor, click Module on the Insert menu.


4. Type or paste the following sample code in the module sheet.
Sub QuoteCommaExport()
' Dimension all variables.
Dim DestFile As String
Dim FileNum As Integer
Dim ColumnCount As Integer
Dim RowCount As Integer

' Prompt user for destination file name.


DestFile = InputBox("Enter the destination filename" _
& Chr(10) & "(with complete path):", "Quote-Comma Exporter")

' Obtain next free file handle number.


FileNum = FreeFile()

' Turn error checking off.


On Error Resume Next

' Attempt to open destination file for output.


Open DestFile For Output As #FileNum

' If an error occurs report it and end.


If Err <> 0 Then
MsgBox "Cannot open filename " & DestFile
End
End If

' Turn error checking on.


On Error GoTo 0

' Loop for each row in selection.


For RowCount = 1 To Selection.Rows.Count

' Loop for each column in selection.


For ColumnCount = 1 To Selection.Columns.Count

' Write current cell's text to file with quotation marks.


Print #FileNum, """" & Selection.Cells(RowCount, _
ColumnCount).Text & """";

' Check if cell is in last column.


If ColumnCount = Selection.Columns.Count Then
' If so, then write a blank line.
Print #FileNum,
Else
' Otherwise, write a comma.
Print #FileNum, ",";
End If
' Start next iteration of ColumnCount loop.
Next ColumnCount
' Start next iteration of RowCount loop.
Next RowCount

' Close destination file.


Close #FileNum
End Sub

5. Before you run the macro, select the data that you want to export, and then run the QuoteCommaExport
subroutine.
F4 keyboard shortcut does not work as expected in
Excel 2013, Excel 2010, and Excel 2007
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
The F4 keyboard shortcut does not work as expected in Microsoft Excel 2013, Excel 2010, or Excel 2007.
For example, when you sort a row (row A), and then you press F4 to repeat the action on another row (row B), row
B is not sorted. Or, when you copy and paste a cell, and then you press F4, the cell is pasted. However, when you
press F4 again, the cell is not pasted.

Cause
This is a known issue in Excel 2013, Excel 2010, and Excel 2007.

Workaround
If you cannot use the F4 keyboard shortcut to repeat a command or action, manually perform the command or
action that you want to repeat.

More Information
F4 is a predefined keyboard shortcut in Excel that repeats your last command or action. However, the shortcut does
not always work.
The result is "FALSE" when you use the ISBLANK()
function in an Excel spreadsheet
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use the ISBL ANK() function in a Microsoft Excel spreadsheet, the result is "FALSE". This behavior occurs
even though the cell appears to be empty. Additionally, this behavior occurs even though the formula bar may
show that nothing is in the cell.

Cause
This behavior may occur when the cell contains a zero-length string. A zero length string may be a result of the
following conditions:
A formula.
A copy and paste operation.
A cell that contains a zero-length string is imported from a database that supports zero-length strings and that
contains zero-length strings.

Workaround
To work around this issue, clear the zero-length string from the cell. To do this, select the cell, click Edit , and then
click Clear All .
In addition, you can also check whether a cell contains a zero-length string by using the LEN function. For example,
if the cell you are checking is A1, the formula will be =OR(Len(A1)=0, Isblank(A1)) .

More information
To create a zero-length string in Microsoft Excel, use any of the following methods:
Type a formula that evaluates the value "" in a cell.
Type a single apostrophe (') in a cell.
Copy a cell that contains either of the earlier values, and then paste only the values in another cell.
Import data from a database that supports and that contains zero-length strings.
If you use the third method or the fourth method in the bulleted listed to create a zero-length string, the formula
bar is blank, but the cell is not.
The first worksheet name in a new Excel workbook
displays in a language other than the Office display
language
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You create a new Microsoft Excel workbook by right-clicking in a folder and then selecting New > Microsoft
Excel Worksheet .
You have more than one language packs installed with Office 365.
In this scenario, the name of the first sheet in the Excel workbook may appear in a language that's different than the
Display Language set in Microsoft Office. For example, if you have Office 365 installed with German, English, and
Polish, the name of the worksheet created is displayed in German, despite having English (or Polish) set as the
Display Language .
Cause
When you create a workbook through by right-clicking in a folder and then selecting > New > Microsoft Excel
Worksheet , Windows Explorer creates a copy of a workbook named Excel12.xlsx from thea system folder called
SHELLNEW in the active folder. The original Excel12.xlsx is created in the SHELLNEW folder at the Office installation,
with the name of its default sheet in a language that may differ from the Display Language .

Workaround
To correct this behavior, replace the original Excel12.xlsx in the SHELLNEW folder with a workbook that you create
in the language of your choice and with the same name (Excel12.xlsx).
The SHELLNEW folder is located in the following folder (depending on the version and architecture of Excel and the
OS):
For Office 365 32-bit on 64-bit Windows
C:\Program Files (x86)\Microsoft Office\root\vfs\Windows\SHELLNEW
For 64-bit Office 365 installations on 64-bit Windows
C:\Program Files\Microsoft Office\root\vfs\Windows\SHELLNEW
For Office MSI
C:\Windows\SHELLNEW
The next time you create a workbook by right-clicking in a folder, a copy of your new Excel12.xlsx with the chosen
language will be created in the active folder.
NOTE
If you add a sheet by clicking "+" in the Excel Worksheet, the sheet name appears according to the Display Language . The
behavior that's described in the Symptoms section only applies to the first sheet.

Also, if you create a blank workbook in Excel by using the Start screen or through File > New , the first worksheet is
displayed according to the display language.
Microsoft is researching this problem and will post more information in this article when the information becomes
available.
Floating-point arithmetic may give inaccurate results
in Excel
3/30/2020 • 8 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses how Microsoft Excel stores and calculates floating-point numbers. This may affect the results
of some numbers or formulas because of rounding or data truncation.
Overview
Microsoft Excel was designed around the IEEE 754 specification to determine how it stores and calculates floating-
point numbers. IEEE is the Institute of Electrical and Electronics Engineers, an international body that, among other
things, determines standards for computer software and hardware. The 754 specification is a very widely adopted
specification that describes how floating-point numbers should be stored in a binary computer. It is popular
because it allows floating-point numbers to be stored in a reasonable amount of space and calculations to occur
relatively quickly. The 754 standard is used in the floating-point units and numeric data processors of nearly all of
today's PC-based microprocessors that implement floating-point math, including the Intel, Motorola, Sun, and MIPS
processors.
When numbers are stored, a corresponding binary number can represent every number or fractional number. For
example, the fraction 1/10 can be represented in a decimal number system as 0.1. However, the same number in
binary format becomes the following repeating binary decimal:
0001100110011100110011 (and so on)
This can be infinitely repeated. This number cannot be represented in a finite (limited) amount of space. Therefore,
this number is rounded down by approximately -2.8E-17 when it is stored.
However, there are some limitations of the IEEE 754 specification that fall into three general categories:
Maximum/minimum limitations
Precision
Repeating binary numbers

More Information
Maximum/Minimum Limitations
All computers have a maximum and a minimum number that can be handled. Because the number of bits of
memory in which the number is stored is finite, it follows that the maximum or minimum number that can be
stored is also finite. For Excel, the maximum number that can be stored is 1.79769313486232E+308 and the
minimum positive number that can be stored is 2.2250738585072E-308.
Cases in which we adhere to IEEE 754
Underflow: Underflow occurs when a number is generated that is too small to be represented. In IEEE and Excel,
the result is 0 (with the exception that IEEE has a concept of -0, and Excel does not).
Overflow: Overflow occurs when a number is too large to be represented. Excel uses its own special
representation for this case (#NUM!).
Cases in which we do not adhere to IEEE 754
Denormalized numbers: A denormalized number is indicated by an exponent of 0. In that case, the entire
number is stored in the mantissa and the mantissa has no implicit leading 1. As a result, you lose precision,
and the smaller the number, the more precision is lost. Numbers at the small end of this range have only one
digit of precision.
Example: A normalized number has an implicit leading 1. For instance, if the mantissa represents 0011001,
the normalized number becomes 10011001 because of the implied leading 1. A denormalized number does
not have an implicit leading one, so in our example of 0011001, the denormalized number remains the
same. In this case, the normalized number has eight significant digits (10011001) while the denormalized
number has five significant digits (11001) with leading zeroes being insignificant.
Denormalized numbers are basically a workaround to allow numbers smaller than the normal lower limit to
be stored. Microsoft does not implement this optional portion of the specification because denormalized
numbers by their very nature have a variable number of significant digits. This can allow significant error to
enter into calculations.
Positive/Negative Infinities: Infinities occur when you divide by 0. Excel does not support infinities, rather, it
gives a #DIV/0! error in these cases.
Not-a-Number (NaN): NaN is used to represent invalid operations (such as infinity/infinity, infinity-infinity,
or the square root of -1). NaNs allow a program to continue past an invalid operation. Excel instead
immediately generates an error such as #NUM! or #DIV/0!.
Precision
A floating-point number is stored in binary in three parts within a 65-bit range: the sign, the exponent, and the
mantissa. ||||| |---|---|---|---| |1 Sign Bit|11 Bit Exponent|1 Implied Bit|52 Bit Mantissa|
The sign stores the sign of the number (positive or negative), the exponent stores the power of 2 to which the
number is raised or lowered (the maximum/minimum power of 2 is +1,023 and -1,022), and the mantissa stores
the actual number. The finite storage area for the mantissa limits how close two adjacent floating point numbers
can be (that is, the precision).
The mantissa and the exponent are both stored as separate components. As a result, the amount of precision
possible may vary depending on the size of the number (the mantissa) being manipulated. In the case of Excel,
although Excel can store numbers from 1.79769313486232E308 to 2.2250738585072E-308, it can only do so
within 15 digits of precision. This limitation is a direct result of strictly following the IEEE 754 specification and is
not a limitation of Excel. This level of precision is found in other spreadsheet programs as well.
Floating-point numbers are represented in the following form, where exponent is the binary exponent:
X = Fraction * 2^(exponent - bias)
Fraction is the normalized fractional part of the number, normalized because the exponent is adjusted so that the
leading bit is always a 1. This way, it does not have to be stored, and you get one more bit of precision. This is why
there is an implied bit. This is similar to scientific notation, where you manipulate the exponent to have one digit to
the left of the decimal point; except in binary, you can always manipulate the exponent so that the first bit is a 1,
because there are only 1s and 0s.
Bias is the bias value used to avoid having to store negative exponents. The bias for single-precision numbers is
127 and 1,023 (decimal) for double-precision numbers. Excel stores numbers using double-precision.
Example using very large numbers
Enter the following into a new workbook:
A1: 1.2E+200
B1: 1E+100
C1: =A1+B1

The resulting value in cell C1 would be 1.2E+200, the same value as cell A1. In fact if you compare cells A1 and C1
using the IF function, for example IF(A1=C1), the result will be TRUE. This is caused by the IEEE specification of
storing only 15 significant digits of precision. To be able to store the calculation above, Excel would require at least
100 digits of precision.
Example using very small numbers
Enter the following into a new workbook:

A1: 0.000123456789012345
B1: 1
C1: =A1+B1

The resulting value in cell C1 would be 1.00012345678901 instead of 1.000123456789012345. This is caused by
the IEEE specification of storing only 15 significant digits of precision. To be able to store the calculation above, Excel
would require at least 19 digits of precision.
Correcting precision errors
Excel offers two basic methods to compensate for rounding errors: the ROUND function and the Precision as
displayed or Set precision as displayed workbook option.
Method 1: The ROUND function
Using the previous data, the following example uses the ROUND function to force a number to five digits. This lets
you successfully compare the result to another value.

A1: 1.2E+200
B1: 1E+100
C1: =ROUND(A1+B1,5)

This results in 1.2E+200 .


D1: =IF(C1=1.2E+200, TRUE, FALSE)
This results in the value TRUE.
Method 2: Precision as displayed
In some cases, you may be able to prevent rounding errors from affecting your work by using the **Precision as
displayed **option. This option forces the value of each number in the worksheet to be the displayed value. To turn
on this option, follow these steps.
1. On the File menu, click Options , and then click the Advanced category.
2. In the When calculating this workbook section, select the workbook that you want, and then select the Set
precision as displayed check box.
For example, if you choose a number format that shows two decimal places, and then you turn on the Precision as
displayed option, all accuracy beyond two decimal places is lost when you save your workbook. This option affects
the active workbook including all worksheets. You cannot undo this option and recover the lost data. We
recommend that you save your workbook before you enable this option.
Repeating binary numbers and calculations that have near-zero results
Another confusing problem that affects the storage of floating point numbers in binary format is that some
numbers that are finite, non-repeating numbers in decimal base 10, are infinite, repeating numbers in binary. The
most common example of this is the value 0.1 and its variations. Although these numbers can be represented
perfectly in base 10, the same number in binary format becomes the following repeating binary number when it is
stored in the mantissa:
000110011001100110011 (and so on)
The IEEE 754 specification makes no special allowance for any number. It stores what it can in the mantissa and
truncates the rest. This results in an error of about -2.8E-17, or 0.000000000000000028 when it is stored.
Even common decimal fractions, such as decimal 0.0001, cannot be represented exactly in binary. (0.0001 is a
repeating binary fraction that has a period of 104 bits). This is similar to why the fraction 1/3 cannot be exactly
represented in decimal (a repeating 0.33333333333333333333).
For example, consider the following simple example in Microsoft Visual Basic for Applications:

Sub Main()
MySum = 0
For I% = 1 To 10000
MySum = MySum + 0.0001
Next I%
Debug.Print MySum
End Sub

This will PRINT 0.999999999999996 as output. The small error in representing 0.0001 in binary propagates to the
sum.
Example: Adding a negative number
1. Enter the following into a new workbook:
A1: =(43.1-43.2)+1
2. Right-click cell A1, and then click Format Cells . On the Number tab, click Scientific under Category. Set the
Decimal places to 15.
Instead of displaying 0.9, Excel displays 0.899999999999999. Because (43.1-43.2) is calculated first, -0.1 is stored
temporarily and the error from storing -0.1 is introduced into the calculation.
Example when a value reaches zero
1. In Excel 95 or earlier, enter the following into a new workbook:
A1: =1.333+1.225-1.333-1.225
2. Right-clickcell A1, and then click Format Cells . On the Number tab, click Scientific under Category. Set the
Decimal places to 15.
Instead of displaying 0, Excel 95 displays -2.22044604925031E-16.
Excel 97, however, introduced an optimization that attempts to correct for this problem. Should an addition or
subtraction operation result in a value at or very close to zero, Excel 97 and later will compensate for any error
introduced as a result of converting an operand to and from binary. The example above when performed in Excel
97 and later correctly displays 0 or 0.000000000000000E+00 in scientific notation.
For more information about floating-point numbers and the IEEE 754 specification, please see the following World
Wide Web sites:
https://www.ieee.org
https://steve.hollasch.net/cgindex/coding/ieeefloat.html
How to force Excel to open in a new instance by
default
4/1/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Excel 2013 and later versions, when you open multiple spreadsheets, they all open in the same
instance of Excel. However, in some situations, such as when you're working with large Excel spreadsheets, you may
want to open each one in a new instance. This article explains how to do that by configuring a registry key.

NOTE
This method works only when you use the Excel icon to open the application. If you use File Open within the Excel application
or double-click a file in Windows Explorer, the files will still open in the same instance as designed.

Cause
By opening each spreadsheet in its own instance, the spreadsheet has a dedicated 2 gigabytes (GB) of memory to
use. This is important if you are experiencing out-of-memory issues in a 32-bit version of Excel.

NOTE
If you are using the Large Address Aware option (see the "More Information" section), this limit may be increased.

Resolution
To change the default setting, install the latest version of Office (build numbers referenced in the following table are
the minimum builds required for that version), and then add the key to the registry. The versions of Office that have
the update include the following:

VERSIO N REL EA SE DAT E B UIL D N UM B ER

Office 365 for 2016 (Current Channel May 3, 2016 Build 16.0.6868.2060
Subscribers)

Office 365 for 2013 June 7, 2016 Build 15.0.4833.1001

Excel 2013 (MSI) June 7, 2016 Build 15.0.4833.1000

Excel 2016 (MSI) June 7, 2016 Build 16.0.4393.1000


IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

1. Exit all instances of Excel.


2. Start Registry Editor:
In Windows 10, click Start, type regedit in the Search box, and then select regedit.exe in the search results.
In Windows 8 or Windows 8.1, move the pointer to the upper-right corner, select Search, enter regeditin
the search box, and then select regedit.exein the search results.
3. Locate and select the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options
4. On the Edit menu, point to New , and then select DWORD Value .
5. Enter DisableMergeInstance, and then press Enter.
6. In the Detailspane, press and hold (or right-click) DisableMergeInstance, and then select Modify.
7. In the Value databox, enter 1, and then click OK.

More Information
32-bit versions of Excel 2016 can take advantage of the Large Address Aware (LAA) functionality after installation
of the May 3, 2016, update for Outlook 2013 (KB3115031), build 16.0.6868.2060 for O365 Current Channel
subscribers. This change lets 32-bit installations of Excel 2016 consume double the memory when users work on a
64-bit Windows OS. The system provides this capability by increasing the user mode virtual memory from 2 GB to
4 GB. This change provides 50-percent more memory (for example, from 2 GB to 3 GB) when users work on a 32-
bit system. For more information about LAA, see Large Address Aware capability change for Excel.

NOTE
There are some known issues in opening each Excel spreadsheet in its own instance. For example, see You cannot paste any
attributes into a workbook in another instance of Excel.
How to control and understand settings in the Format
Cells dialog box in Excel
3/30/2020 • 22 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Excel lets you change many of the ways it displays data in a cell. For example, you can specify the number
of digits to the right of a decimal point, or you can add a pattern and border to the cell. You can access and modify
the majority of these settings in the Format Cells dialog box (on the Format menu, click Cells).
The "More Information" section of this article provides information about each of the settings available in the
Format Cells dialog box and how each of these settings can affect the way your data is presented.

More Information
There are six tabs in the Format Cells dialog box: Number, Alignment, Font, Border, Patterns, and Protection. The
following sections describe the settings available in each tab.
Number Tab
Auto Number Formatting
By default, all worksheet cells are formatted with the General number format. With the General format, anything
you type into the cell is usually left as-is. For example, if you type 36526 into a cell and then press ENTER, the cell
contents are displayed as 36526. This is because the cell remains in the General number format. However, if you
first format the cell as a date (for example, d/d/yyyy) and then type the number 36526, the cell displays 1/1/2000.
There are also other situations where Excel leaves the number format as General, but the cell contents are not
displayed exactly as they were typed. For example, if you have a narrow column and you type a long string of digits
like 123456789, the cell might instead display something like 1.2E+08. If you check the number format in this
situation, it remains as General.
Finally, there are scenarios where Excel may automatically change the number format from General to something
else, based on the characters that you typed into the cell. This feature saves you from having to manually make the
easily recognized number format changes. The following table outlines a few examples where this can occur:

IF Y O U T Y P E EXC EL A UTO M AT IC A L LY A SSIGN S T H IS N UM B ER F O RM AT

1.0 General

1.123 General

1.1% 0.00%

1.1E+2 0.00E+00
IF Y O U T Y P E EXC EL A UTO M AT IC A L LY A SSIGN S T H IS N UM B ER F O RM AT

1 1/2 # ?/?

$1.11 Currency, 2 decimal places

1/1/01 Date

1:10 Time

Generally speaking, Excel applies automatic number formatting whenever you type the following types of data into
a cell:
Currency
Percentage
Date
Time
Fraction
Scientific
Built-in Number Formats
Excel has a large array of built-in number formats from which you can choose. To use one of these formats, click
any one of the categories below General and then select the option that you want for that format. When you select
a format from the list, Excel automatically displays an example of the output in the Sample box on the Number tab.
For example, if you type 1.23 in the cell and you select Number in the category list, with three decimal places, the
number 1.230 is displayed in the cell.
These built-in number formats actually use a predefined combination of the symbols listed below in the "Custom
Number Formats" section. However, the underlying custom number format is transparent to you.
The following table lists all of the available built-in number formats:

N UM B ER F O RM AT N OT ES

Number Options include: the number of decimal places, whether or not


the thousands separator is used, and the format to be used
for negative numbers.

Currency Options include: the number of decimal places, the symbol


used for the currency, and the format to be used for negative
numbers. This format is used for general monetary values.

Accounting Options include: the number of decimal places, and the


symbol used for the currency. This format lines up the
currency symbols and decimal points in a column of data.

Date Select the style of the date from the Type list box.

Time Select the style of the time from the Type list box.

Percentage Multiplies the existing cell value by 100 and displays the result
with a percent symbol. If you format the cell first and then
type the number, only numbers between 0 and 1 are
multiplied by 100. The only option is the number of decimal
places.
N UM B ER F O RM AT N OT ES

Fraction Select the style of the fraction from the Type list box. If you do
not format the cell as a fraction before typing the value, you
may have to type a zero or space before the fractional part.
For example, if the cell is formatted as General and you type
1/4 in the cell, Excel treats this as a date. To type it as a
fraction, type 0 1/4 in the cell.

Scientific The only option is the number of decimal places.

Text Cells formatted as text will treat anything typed into the cell as
text, including numbers.

Special Select one of the following from the Type box: Zip Code, Zip
Code + 4, Phone Number, and Social Security Number.

Custom Number Formats


If one of the built-in number formats does not display the data in the format that you require, you can create your
own custom number format. You can create these custom number formats by modifying the built-in formats or by
combining the formatting symbols into your own combination.
Before you create your own custom number format, you need to be aware of a few simple rules governing the
syntax for number formats:
Each format that you create can have up to three sections for numbers and a fourth section for text.

<POSITIVE>;<NEGATIVE>;<ZERO>;<TEXT>

The first section is the format for positive numbers, the second for negative numbers, and the third for zero
values.
These sections are separated by semicolons.
If you have only one section, all numbers (positive, negative, and zero) are formatted with that format.
You can prevent any of the number types (positive, negative, zero) from being displayed by not typing
symbols in the corresponding section. For example, the following number format prevents any negative or
zero values from being displayed:
0.00;;
To set the color for any section in the custom format, type the name of the color in brackets in the section.
For example, the following number format formats positive numbers blue and negative numbers red:
[BLUE]#,##0;[RED]#,##0
Instead of the default positive, negative and zero sections in the format, you can specify custom criteria that
must be met for each section. The conditional statements that you specify must be contained within brackets.
For example, the following number format formats all numbers greater than 100 as green, all numbers less
than or equal to -100 as yellow, and all other numbers as cyan:
[>100][GREEN]#,##0;[<=-100][YELLOW]#,##0;[CYAN]#,##0
For each part of the format, type symbols that represent how you want the number to look. See the table
below for details on all the available symbols.
To create a custom number format, click Custom in the Category list on the Number tab in the Format Cells dialog
box. Then, type your custom number format in the Type box.
The following table outlines the different symbols available for use in custom number formats.

F O RM AT SY M B O L DESC RIP T IO N / RESULT

0 Digit placeholder. For example, if you type 8.9 and you want it
to display as 8.90, then use the format #.00

# Digit placeholder. Follows the same rules as the 0 symbol


except Excel does not display extra zeros when the number
you type has fewer digits on either side of the decimal than
there are # symbols in the format. For example, if the custom
format is #.## and you type 8.9 in the cell, the number 8.9 is
displayed.

? Digit placeholder. Follows the same rules as the 0 symbol


except Excel places a space for insignificant zeros on either side
of the decimal point so that decimal points are aligned in the
column. For example, the custom format 0.0? aligns the
decimal points for the numbers 8.9 and 88.99 in a column.

. (period) Decimal point.

% Percentage. If you enter a number between 0 and 1, and you


use the custom format 0%, Excel multiplies the number by 100
and adds the % symbol in the cell.

, (comma) Thousands separator. Excel separates thousands by commas if


the format contains a comma surrounded by '#'s or '0's. A
comma following a placeholder scales the number by a
thousand. For example, if the format is #.0,, and you type
12,200,000 in the cell, the number 12.2 is displayed.

E- E+ e- e+ Scientific format. Excel displays a number to the right of the "E"


symbol that corresponds to the number of places the decimal
point was moved. For example, if the format is 0.00E+00 and
you type 12,200,000 in the cell, the number 1.22E+07 is
displayed. If you change the number format to #0.0E+0 the
number 12.2E+6 is displayed.

$-+/():space Displays the symbol. If you want to display a character that is


different than one of these symbols, precede the character
with a backslash () or enclose the character in quotation marks
(" "). For example, if the number format is (000) and you type
12 in the cell, the number (012) is displayed.

\ Display the next character in the format. Excel does not display
the backslash. For example, if the number format is 0! and you
type 3 in the cell, the value 3! is displayed.

* Repeat the next character in the format enough times to fill


the column to its current width. You cannot have more than
one asterisk in one section of the format. For example, if the
number format is 0*x and you type 3 in the cell, the value
3xxxxxx is displayed. Note, the number of "x" characters
displayed in the cell vary based on the width of the column.
F O RM AT SY M B O L DESC RIP T IO N / RESULT

_ (underline) Skip the width of the next character. This is useful for lining up
negative and positive values in different cells of the same
column. For example, the number format (0.0);(0.0) align the
numbers 2.3 and -4.5 in the column even though the negative
number has parentheses around it.

"text" Display whatever text is inside the quotation marks. For


example, the format 0.00 "dollars" displays "1.23 dollars"
(without quotation marks) when you type 1.23 into the cell.

@ Text placeholder. If there is text typed in the cell, the text from
the cell is placed in the format where the @ symbol appears.
For example, if the number format is "Bob "@" Smith"
(including quotation marks) and you type "John" (without
quotation marks) in the cell, the value "Bob John Smith"
(without quotation marks) is displayed.

DATE FORMATS

m Display the month as a number without a leading zero.

mm Display the month as a number with a leading zero when


appropriate.

mmm Display the month as an abbreviation (Jan-Dec).

mmmm Display the month as a full name (January-December).

d Display the day as a number without a leading zero.

dd Display the day as a number with a leading zero when


appropriate.

ddd Display the day as an abbreviation (Sun-Sat).

dddd Display the day as a full name (Sunday-Saturday).

yy Display the year as a two-digit number.

yyyy Display the year as a four-digit number.

TIME FORMATS

h Display the hour as a number without a leading zero.

[h] Elapsed time, in hours. If you are working with a formula that
returns a time where the number of hours exceeds 24, use a
number format similar to [h]:mm:ss.

hh Display the hour as a number with a leading zero when


appropriate. If the format contains AM or PM, then the hour is
based on the 12-hour clock. Otherwise, the hour is based on
the 24-hour clock.
F O RM AT SY M B O L DESC RIP T IO N / RESULT

m Display the minute as a number without a leading zero.

[m] Elapsed time, in minutes. If you are working with a formula


that returns a time where the number of minutes exceeds 60,
use a number format similar to [mm]:ss.

mm Display the minute as a number with a leading zero when


appropriate. The m or mm must appear immediately after the
h or hh symbol, or Excel displays the month rather than the
minute.

s Display the second as a number without a leading zero.

[s] Elapsed time, in seconds. If you are working with a formula


that returns a time where the number of seconds exceeds 60,
use a number format similar to [ss].

ss Display the second as a number with a leading zero when


appropriate.Note that if you want to display fractions of a
second, use a number format similar to h:mm:ss.00.

AM/PM, am/pm, A/P, a/p Display the hour using a 12-hour clock. Excel am/pm displays
AM, am, A, or a for times from midnight A/P until noon, and
PM, pm, P, or p for times from noon a/p until midnight.

Displayed Value versus Stored Value


Microsoft Excel displays a number according to the format of the cell that contains it. Therefore, the number that
you see in the cell may differ from the number stored by Excel and from the number used in calculations that refer
to the cell. For example, if you type 1.2345 in a cell where you only want two digits to the right of the decimal to be
displayed, the cell displays the value 1.23. Note however, if you use that cell in a calculation, the full four digits to
the right of the decimal are used.
Alignment Tab
You can position text and numbers, change the orientation and specify text control in cells by using the Alignment
tab in the Format Cells dialog box.
Text Alignment
Under Text alignment , you control the horizontal, vertical alignment and indention. The following is a list of
available settings for text alignment:

GRO UP SET T IN G DESC RIP T IO N

Horizontal General Text data is left-aligned, and numbers,


dates, and times are right-aligned.
Changing the alignment does not
change the type of data.
GRO UP SET T IN G DESC RIP T IO N

Left (Indent) Aligns contents at the left edge of the


cell. If you specify a number in the
Indent box, Microsoft Excel indents the
contents of the cell from the left by the
specified number of character spaces.
The character spaces are based on the
standard font and font size selected on
the General tab of the Options dialog
box (Tools menu).

Center Centers the text in the selected cells.

Right Aligns contents at the right edge of the


cell.

Fill Repeats the contents of the selected cell


until the cell is full. If blank cells to the
right also have the Fill alignment, they
are filled as well.

Justify Aligns wrapped text within a cell to the


right and left. You must have more than
one line of wrapped text to see the
justification.

Center Across Selection Centers a cell entry across the selected


cells.

Vertical Top Aligns cell contents along the top of the


cell.

Center Centers cell contents in the middle of


the cell from top to bottom.

Bottom Aligns cell contents along the bottom of


the cell.

Justify Justifies the cell contents up and down


within the width of the cell.

Text Control
There are some additional miscellaneous text alignment controls in the Text Control section of the Alignment tab.
These controls are Wrap Text, Shrink to Fit and Merge Cells.
Select Wrap Text to wrap the text in the selected cell. The number of wrapped lines depends on the width of the
column and the length of the cell contents.

NOTE
To start a new line when the Wrap Text option is selected, press ALT+ENTER while typing in the formula bar.

Selecting the Shrink to Fit option decreases the font size of the text in a cell until all the contents of the cell can be
displayed. This feature is helpful when you want to avoid changing the column width for the entire column. The
applied font size is not changed.
The Merge Cells option combines two or more selected cells into a single cell. A "merged cell" is a single cell
created by combining two or more selected cells. The cell reference for a merged cell is the upper-left cell in the
original selected range.
Orientation
You can set the amount of text rotation in the selected cell by using the Orientation section. Use a positive number
in the Degree box to rotate the selected text from lower left to upper right in the cell. Use negative degrees to rotate
text from upper left to lower right in the selected cell.
To display text vertically from top to bottom, click the vertical Text box under Orientation. This gives a stacked
appearance to text, numbers and formulas in the cell.
Font Tab
The term font refers to a typeface (for example, Arial), along with its attributes (point size, font style, underlining,
color, and effects). Use the Font tab in the Format Cells dialog box to control these settings. You can see a preview of
your settings by reviewing the Preview section of the dialog box.

NOTE
You can use this same Font tab to format individual characters. To do this, select the characters in the formula bar and click
Cells on the Format menu.

Typeface, Font Style, and Size


The Font option on the Font tab allows you to choose a typeface. You choose your typeface for the selected cell by
clicking a name in the Font list or typing a name in the Font box. There are three types of typefaces you can use, as
described in the following table:

DESC RIP T IO N ( B OT TO M O F DIA LO G


FONT T YPE IC O N ( L EF T O F N A M E) B O X)

TrueType TT The same font is used on both the


printer and the screen.

Screen Display none This font is installed for screen display


only. The closest available font is used
for printing.

Printer Printer This is a printer-resident font. What is


printed may not match exactly what is
on the screen.

After you select a typeface in the Font list, the Size list displays the available point sizes. Keep in mind that each
point is 1/72 of an inch. If you type a number in the Size box that is not in the Size list, you see the following text at
the bottom of the Font tab:
"This font's size is not installed on the system. The closest available font will be used."
Typeface Styles
The list of choices in the Font Style list varies depending on the font that is selected in the Font list. Most fonts
include the following styles:
Regular
Italic
Bold
Bold italic
Underline
In the Underline list, you can select an underlining option to format the selected text. The following table describes
each underlining option:

UN DERL IN E T Y P E DESC RIP T IO N

None No underlining is applied.

Single A single underline is placed under each character in the cell.


The underline is drawn through the descenders of characters
like "g" and "p."

Double Double underlines are placed under each character in the cell.
The underlines are drawn through the descenders of
characters like "g" and "p."

Single Accounting A single underline is placed across the entire width of the cell.
The underline is drawn below the descenders of characters like
"g" and "p."

Double Accounting Double underlines are placed across the entire width of the
cell. The underlines are drawn below the descenders of
characters like "g" and "p."

Color, Effects, and Normal Font Settings


Choose a color for the font by clicking a color in the Color list. You can rest the mouse over a color to see a ToolTip
with the color name. The Automatic color is always black unless you change the window font color on the
Appearance tab of the Display Properties dialog box. (Double-click the Display icon in the Control Panel to open the
Display Properties dialog box.)
Select the Normal font check box to set the font, font style, size, and effects to the Normal style. This is essentially
resetting the cell formatting to defaults.
Select the Strikethrough check box to draw a line through selected text or numbers. Select the Superscript check
box to format the selected text or numbers as superscripts (above). Select the Subscript check box to format the
selected text or numbers as subscripts (below). You typically want to use subscripts and superscripts for individual
characters in a cell. To do this, select the characters in the formula bar and click Cells on the Format menu.
Border Tab
In Excel, you can put a border around a single cell or a range of cells. You can also have a line drawn from the
upper-left corner of the cell to the lower-right corner, or from the lower-left corner of the cell to the upper-right
corner.
You can customize these cells' borders from their default settings by changing the line style, line thickness or line
color.
The following settings are available on the Border tab of the Format Cells dialog box:

GRO UP SET T IN G DESC RIP T IO N

Presets None Turns off all borders that are currently


applied to the selected cell(s).

Outline Places a border on all four sides of a


single cell or around a selected group of
cells.
GRO UP SET T IN G DESC RIP T IO N

Inside Places a border on all interior sides of a


group of selected cells. This button is
unavailable (dimmed) if a single cell is
selected.

Border Top Applies a border with the currently


selected style and color to the top of
the cell(s) in the selected region.

Inside Horizontal Applies a border with the currently


selected style and color to all horizontal
sides in the interior of the currently
selected group of cells. This button is
unavailable (dimmed) if a single cell is
selected.

Bottom Applies a border with the currently


selected style and color to the bottom
of the cell(s) in the selected region.

Diagonal (bottom-left to upper-right Applies a border with the currently


selected style and color from the
bottom-left corner to the upper-right
corner for all cells in the selection.

Left Applies a border with the currently


selected style and color to the top of
the cell(s) in the selected region.

Inside Vertical Applies a border with the currently


selected style and color to all vertical
sides in the interior of the currently
selected group of cells. This button is
unavailable (dimmed) if a single cell is
selected.

Right Applies a border with the currently


selected style and color to the right side
of the cell(s) in the selected region.

Diagonal (upper-left to bottom-right) Applies a border with the currently


selected style and color from the upper-
left corner to the lower-right corner for
all cells in the selection.

Line Style Applies the selected line style to the


border. Choose from dotted, dashed,
solid and double border lines.

Color Applies the specified color to the border.

Applying Borders
To add a border to a single cell or a range of cells, follow these steps:
1. Select the cells that you want to format.
2. On the Format menu, click Cells.
3. In the Format Cells dialog box, click the Border tab.

NOTE
Some buttons on the Border tab are unavailable (dimmed) when you only have a single cell selected. This is because
these settings are only applicable when you apply borders to a range of cells.

4. Select any one of the line styles in the Style list.


5. Click the Color drop-down arrow and select any one of the colors.
6. Click any one of buttons listed under Presets or Border.
This displays a line with your settings in the sample region.
7. If you want to remove a specific border, click the button for that border a second time.
8. If you want to change the line color or style, click the style or color that you want, and then click the button
for the border again.
Patterns Tab
Use the Patterns tab in the Format Cells dialog box to set the background color of the selected cells. You can also
use the Pattern list to apply two-color patterns or shading for the background of the cell.

NOTE
The color palette on the Patterns tab is the same color palette from the Color tab of the Options dialog box. Click Options on
the Tools menu to access the Options dialog box.

To shade cells with patterns, follow these steps:


1. Select the cells to which you want to apply shading.
2. On the Format menu, click Cells, and then click the Patterns tab.
3. To include a background color with the pattern, click a color in the Cell shading box.
4. Click the arrow next to the Pattern box, and then click the pattern style and color that you want.
If you do not select a pattern color, the pattern is black.
You can return the background color formatting for the selected cells to their default state by clicking No Color.
Protection Tab
The Protection tab offers you two options for protecting your worksheet data and formulas:
Locked
Hidden
However, neither of these two options takes effect unless you also protect your worksheet. To protect a worksheet,
point to Protection on the Tools menu, click Protect Sheet, and then select the Contents check box.
Locked
By default, all cells in a worksheet have the Locked option turned on. When this option is turned on (and the
worksheet is protected), you cannot do the following:
Change the cell data or formulas.
Type data in an empty cell.
Move the cell.
Resize the cell.
Delete the cell or its contents.

NOTE
If you want to be able to type data in some cells after protecting the worksheet, make sure to clear the Locked check box for
those cells.

Hidden
By default, all cells in a worksheet have the Hidden option turned off. If you turn on this option (and the worksheet
is protected) the formula in a cell does not appear in the formula bar. However, you do see the results of the
formula in the cell.

IMPORTANT
The Locked and Hidden settings enable specific collaboration scenarios to function correctly in collaboration environments
that do not include users who have malicious intent. You cannot enable a strong encryption file by using these settings.

To protect the document or the file from a user who has malicious intent, use Information Rights Management
(IRM) to set permissions that will protect the document or the file.
For more information about the Office features that help enable collaboration, see Description of Office features
that are intended to enable collaboration and that are not intended to increase security .

References
For more information about cell formatting, click Microsoft Excel Help on the Help menu, type worksheet
formatting in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.
Formatted text (.prn) is limited to 240 characters per
line in Excel
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Excel, when you save a worksheet as a Formatted Text (Space Delimited) (.prn) file, any characters
beyond the two-hundred fortieth character are wrapped to the next line.

NOTE
If several rows on the same sheet contain text beyond 240 characters, the text begins wrapping at the row after the last row
that contains text.

For example, consider the following sheet: |Cell| Number of Characters| |-----|------------| |A1| 40| |A2 |255| |A3 |10|
|A4| 21| |A5| 2| |A6 |52| |A7| 255| |A8| 5| |A9| 3| |A20| 13|
The resulting formatted text file contains lines with the following number of characters:

L IN E N UM B ER C H A RA C T ERS

1 40

2 240

3 10

4 21

5 2

6 52

7 240

8 5

9 3

10-19 0

20 13
L IN E N UM B ER C H A RA C T ERS

21 0

22 15

23-26 0

27 15

After the last line (in this example, line 20), the line numbering starts at 1 for the lines that are wrapped. In effect,
line 21 corresponds with line 1, line 22 corresponds with line 2, and so on.

Cause
This behavior occurs because, by design, Formatted Text (Space Delimited) (.prn) files have a limit of 240 characters
per line.

Workaround
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. To create a space-delimited text file that exceeds the 240-
character per line limitation, use a macro similar to the following sample macro.

NOTE
Before you run this macro, do the following:
Select the cells to be included in the text file.
Verify that column widths are wide enough to view the largest string in each column. The maximum column width for a
single Excel column is 255 characters when formatted with a fixed-width font.
Use the Style menu commands to format the worksheet to use a fixed-width font. For example, Courier is a fixed-width
font.

The following sample code can be modified to export data delimited with characters other than a space. You must
select the range of data to be exported before running this sample macro.

Sub ExportText()

Dim delimiter As String


Dim quotes As Integer
Dim Returned As String

delimiter = " "

quotes = MsgBox("Surround Cell Information with Quotes?", vbYesNo)

' Call the WriteFile function passing the delimiter and quotes options.
Returned = WriteFile(delimiter, quotes)

' Print a message box indicating if the process was completed.


Select Case Returned
Case "Canceled"
Case "Canceled"
MsgBox "The export operation was canceled."
Case "Exported"
MsgBox "The information was exported."
End Select

End Sub

'------------------------------------------------------------

Function WriteFile(delimiter As String, quotes As Integer) As String

' Dimension variables to be used in this function.


Dim CurFile As String
Dim SaveFileName
Dim CellText As String
Dim RowNum As Integer
Dim ColNum As Integer
Dim FNum As Integer
Dim TotalRows As Double
Dim TotalCols As Double

' Show Save As dialog box with the .TXT file name as the default.
' Test to see what kind of system this macro is being run on.
If Left(Application.OperatingSystem, 3) = "Win" Then
SaveFileName = Application.GetSaveAsFilename(CurFile, _
"Text Delimited (*.txt), *.txt", , "Text Delimited Exporter")
Else
SaveFileName = Application.GetSaveAsFilename(CurFile, _
"TEXT", , "Text Delimited Exporter")
End If

' Check to see if Cancel was clicked.


If SaveFileName = False Then
WriteFile = "Canceled"
Exit Function
End If
' Obtain the next free file number.
FNum = FreeFile()

' Open the selected file name for data output.


Open SaveFileName For Output As #FNum

' Store the total number of rows and columns to variables.


TotalRows = Selection.Rows.Count
TotalCols = Selection.Columns.Count

' Loop through every cell, from left to right and top to bottom.
For RowNum = 1 To TotalRows
For ColNum = 1 To TotalCols
With Selection.Cells(RowNum, ColNum)
Dim ColWidth as Integer
ColWidth=Application.RoundUp(.ColumnWidth, 0)
' Store the current cells contents to a variable.
Select Case .HorizontalAlignment
Case xlRight
CellText = Space(Abs(ColWidth - Len(.Text))) & .Text
Case xlCenter
CellText = Space(Abs(ColWidth - Len(.Text))/2) & .Text & _
Space(Abs(ColWidth - Len(.Text))/2)
Case Else
CellText = .Text & Space(Abs(ColWidth - Len(.Text)))
End Select
End With
' Write the contents to the file.
' With or without quotation marks around the cell information.
Select Case quotes
Case vbYes
CellText = Chr(34) & CellText & Chr(34) & delimiter
Case vbNo
Case vbNo
CellText = CellText & delimiter
End Select
Print #FNum, CellText;

' Update the status bar with the progress.


Application.StatusBar = Format((((RowNum - 1) * TotalCols) _
+ ColNum) / (TotalRows * TotalCols), "0%") & " Completed."

' Loop to the next column.


Next ColNum
' Add a linefeed character at the end of each row.
If RowNum <> TotalRows Then Print #FNum, ""
' Loop to the next row.
Next RowNum

' Close the .prn file.


Close #FNum

' Reset the status bar.


Application.StatusBar = False
WriteFile = "Exported"
End Function

NOTE
The output file that this routine creates is, by definition, different from a Formatted Text(*.prn) file. By definition, the formatted
text file cannot contain more than 240 characters per line. In addition, the formatted text file also contains printer font
information. This sample macro does not. This solution is designed to give flexibility when you export to text files.
Formula errors in Excel when list separater is not set
correctly
5/2/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When entering a formula an error will occur if trying to use a symbol that is not the default 'list separator' in the
Windows Regional settings.

"We found a problem with this formula. Try clicking Insert Function on the Formulas tab to fix it, or click
Help for more info on common formula problems."

Cause
If the error occurs when you use a character to separate the arguments you expect to work and Excel will not accept
it then this is typically caused by either or both of the following scenarios:
The list separator in Windows - Regional Settings does not match what is being typed for the Excel formula.
The 'Use system separators' option is set in Excel Advanced Options and does not match what is being typed for
the Excel formula.

Resolution
To workaround the error message follow the following steps:
1. Determine if 'Use system separators' is selected in Excel options. From the File menu select Options. Select
Advanced. In the 'Editing options' group determine if 'Use system separators' is unselected. If it is unselected
you can select it to have Excel use the Windows Regional settings or specify the 'Thousands separator' you
want to use.
If the 'Use system separators' is enabled then look in the Region (Regional) Settings in the Windows Control
Panel. The list separator is specified in the Additional settings.
2. Use the same character as the designated list separator in Windows settings when creating the formula(s).
3. Use the Reset button to reset the options to match the default for the selected country or modify the
Windows List Separator to a different character (some special characters cannot be used).
NOTE
By default, Microsoft Excel uses the system separators that are defined in the regional settings in Control Panel. If you
sometimes need to display numbers with different separators for thousands or decimals, you can temporarily replace the
system separators with custom separators. To do that please follow the steps in the following article.
The comma is the default list separator for US - English Locale.

Changing the List separator in the Windows Region settings will affect the delimiter used when opening or saving a
Comma-separated value (.csv) file as Excel utilizes the Windows list separator character for the delimiter in .csv files.
Description of formulas to count the occurrences of
text, characters, and words in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains and describes formulas that calculate the following:
The number of occurrences of a text string in a range of cells.
The number of occurrences of a character in one cell.
The number of occurrences of a character in a range of cells.
The number of words (or text strings) separated by a character in a cell.

More Information
Formula to Count the Number of Occurrences of a Text String in a Range
=SUM(LEN(range )-LEN(SUBSTITUTE(range ,"text","")))/LEN("text")
Where range is the cell range in question and "text" is replaced by the specific text string that you want to count.

NOTE
The above formula must be entered as an array formula. To enter a formula as an array in Excel for Windows, press
CTRL+SHIFT+ENTER. To enter a formula as an array in Excel for Macintosh, press COMMAND+RETURN.

The formula must be divided by the length of the text string because the sum of the character length of the range is
decreased by a multiple of each occurrence of the text string. This formula can replace all later formulas in this
article except the formula to count the number of words in a cell.
Example 1: Counting the Number of Occurrences of a Text String in a Range
1. Start Excel, and then open a new workbook.
2. Type the following on sheet1:

A1: Fruit
A2: apple,apple
A3: orange
A4: apple,orange
A5: grape
A6: orange,grape
A7: grape, apple
A8: =SUM(LEN(A2:A7)-LEN(SUBSTITUTE(A2:A7,"apple","")))/LEN("apple")

The value of cell A8 is 4 because the text "apple" appears four times in the range.
Formula to Count the Number of Occurrences of a Single Character in One Cell
=LEN(cell_ref )-LEN(SUBSTITUTE(cell_ref ,"a",""))
Where cell_ref is the cell reference, and "a" is replaced by the character you want to count.

NOTE
This formula does not need to be entered as an array formula.

Example 2: Counting the Number of Occurrences of a Character in One Cell


Use the same data from the preceding example; assuming you want to count the number of occurrences of the
character "p" in A7. Type the following formula in cell A9:
A9: =LEN(A7)-LEN(SUBSTITUTE(A7,"p",""))

The value of cell A9 is 3 because the character "p" appears three times in A7.
Formula to Count the Number of Occurrences of a Single Character in a Range
=SUM(LEN(range )-LEN(SUBSTITUTE(range ,"a","")))
Where range is the cell range in question, and "a" is replaced by the character you want to count.

NOTE
The above formula must be entered as an array formula. To enter a formula as an array formula in Excel, press
CTRL+SHIFT+ENTER.

Example 3: Counting the Number of Occurrences of a Character in a Range


Use the same data from the preceding example; assuming you want to count the number of occurrences or the
character "p" in A2:A7. Type the following formula in cell A10:
A10: =SUM(LEN(A2:A7)-LEN(SUBSTITUTE(A2:A7,"p","")))

NOTE
The above formula must be entered as an array formula. To enter a formula as an array formula in Excel, press
CTRL+SHIFT+ENTER.

The value of cell A10 is 11 because the character "p" appears 11 times in A2:A7.
Formula to Count the Number of Words Separated by a Character in a Cell
=IF(LEN(TRIM(cell_ref ))=0,0,LEN(cell_ref )-LEN(SUBSTITUTE(cell_ref ,char ,""))+1)
Where cell_ref is the cell reference, and char is the character separating the words.

NOTE
There are no spaces in the above formula; multiple lines are used only to fit the formula into this document. Do not include
any spaces when you type it into the cell. This formula does not need to be entered as an array formula.

Example 4: Counting the Number of Words Separated by a Space in a Cell


To count the number of words in a cell where the words are separated by a space character, follow these steps:
1. Start Excel, and then open a new workbook.
2. Type the following on sheet1:
A1: The car drove fast
A2: =IF(LEN(TRIM(A1))=0,0,LEN(TRIM(A1))-LEN(SUBSTITUTE(A1," ",""))+1)

The formula in cell A2 returns a value of 4 to reflect that the string contains four words separated by spaces. If
words are separated by multiple spaces or if words start or end in a space, it does not matter. The TRIM function
removes extra space characters and starting and ending space characters in the text of the cell.
In Excel, you can also use a macro to count the occurrences of a specific character in a cell, or range of cells.

References
For additional information about counting occurrences of text, click the following article number to view the article
in the Microsoft Knowledge Base:
89794 How to use Visual Basic for Applications to count the occurrences of a character in a selection in Excel
Gridlines not printing as expected in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When printing a workbook or worksheet, and gridlines are set to print, Excel is not printing the gridlines as
expected.

Cause
This is seen in the following scenario:
The default printer driver with a Universal Printer Driver connected to a printer that is capable and set to a high
resolution setting (e.g. 1200 dpi).
AND
The workbook is printed and saved with these print settings.
AND
From the same system, or another system, using the same Universal Printer Driver, but connected to a different
printer, which has a lower resolution capability (e.g. 600 dpi) the workbook is then printed to this printer.

Resolution
Option 1: Prior to printing the workbook or worksheet, open the printing preferences, and select the printer
properties option. Within the printer properties, set the print quality to 600 dpi, and save the file to retain the 600
dpi setting for future printing.
Option 2: Install and load the model-specific driver for the printer rather than the Universal Printer Driver. (Example:
When printing from an HP Laserjet 4020, install and use the Laserjet 4020 printer driver, not the Universal Printer
Driver)
Option 3: Print to a printer that is 1200 dpi capable if using a Universal Printer Driver (e.g. HP LaserJet 9040).

More Information
Microsoft is aware of this issue. When saving the file, Excel stores printer related information within the workbook.
This cached information is then compared to the client's default printer information when the workbook is printed.
If the information is different, Excel will use the client's default printer information.
However, in the scenario described above, since the same Universal Printer Driver is being used in both cases, Excel
does not consider the lower resolution printer to be different, and as such uses the cached information when
printing the workbook. This results in the workbook being printed at a higher resolution than the printer supports
and this leads to the issue described within the Symptoms section.
Excel statistical functions: GROWTH
3/30/2020 • 14 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes the GROWTH function in Microsoft Office Excel 2003 and in later versions of Excel, illustrates
how the function is used, and compares results of the function for Excel 2003 and for later versions of Excel with
results of GROWTH in earlier versions of Excel. GROWTH is evaluated by calling the related function, LINEST.
Extensive changes to LINEST for Excel 2003 and for later versions of Excel are summarized, and their implications
for GROWTH are noted.
Microsoft Excel 2004 for Macintosh information
The statistical functions in Excel 2004 for Mac were updated by using the same algorithms that were used to update
the statistical functions in Excel 2003 and in later versions of Excel. Any information in this article that describes
how a function works or how a function was modified for Excel 2003 or for later versions of Excel also applies to
Excel 2004 for Mac.

More Information
The GROWTH(known_y's, known_x's, new_x's, constant) function is used to perform a regression analysis where an
exponential curve is fitted. A least squares criterion is used, and GROWTH tries to find the best fit under that
criterion. Known_y's represent data on the "dependent variable" and known_x's represent data on one or more
"independent variables". The GROWTH Help file discusses rare cases where the second or third argument may be
omitted.
Assuming that there are p predictor variables, GROWTH essentially calls LOGEST. LOGEST fits an equation of the
form:

y = b * (m1^x1) * (m2^x2) * ... * (mp^xp)

Values of the coefficients, b, m1, m2, ..., mp are determined that give the best fit to the y data.
If the last argument "constant" is set to TRUE, you want the regression model to include the multiplicative
coefficient b in the regression model. If set to FALSE, b is excluded by essentially setting it to 1. The last argument is
optional; if the argument is omitted it is interpreted as TRUE.
For ease of exposition in the remainder of this article, assume that data is arranged in columns so that known_y's is
a column of y data and known_x's is one or more columns of x data. Of course the dimensions (lengths) of each of
these columns must be equal. New_x's will also be assumed to be arranged in columns and there must be the same
number of columns for new_x's as for known_x's. All our observations below are equally true if the data is not
arranged in columns, but it is just easier to discuss this single (most frequently used) case.
After you compute the best fit regression model (by essentially calling Excel's LOGEST function), GROWTH returns
predicted values that are associated with new_x's.
This article uses examples to show how GROWTH relates to LOGEST and to point out problems with LOGEST in
versions of Excel that are earlier than Excel 2003 that translate to problems with GROWTH. GROWTH effectively
calls LOGEST, executes LOGEST, uses regression coefficients in LOGEST output in its calculation of predicted y values
that are associated with each row of new_x's, and presents this column of predicted y values to you. Therefore, you
must know about problems in the execution of LOGEST. When LOGEST is called, it in turn effectively calls LINEST.
While code for GROWTH and LOGEST have not been rewritten for Excel 2003 and for later versions of Excel,
extensive changes (and improvements) in LINEST code have been made.
As supplements to this article, the following article about LINEST is highly recommended. It contains several
examples and documents problems with LINEST in versions of Excel that are earlier than Excel 2003.
For more information about LINEST, click the following article number to view the article in the Microsoft
Knowledge Base:
828533 Description of the LINEST function in Excel 2003 and in Excel 2004 for Mac
The LINEST Help file, as revised for Excel 2003, is also recommended.
The following article about LOGEST explains how LOGEST interacts with LINEST. These details are omitted here.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
828528 Excel statistical functions: LOGEST
Because the focus in this article is on numeric problems in versions of Excel that are earlier than Excel 2003, this
article does not have many practical examples of the use of GROWTH. The Help file in GROWTH contains useful
examples.
Syntax

GROWTH(known_y's, known_x's, new_x's, constant)

The arguments, known_y's, known_x's, and new_x's must be arrays or cell ranges that have related dimensions. If
known_y's is one column by m rows then known_x's is c columns by m rows where c is greater than or equal to
one. C is the number of predictor variables; m is the number of data points. New_x's must then be c columns by r
rows where r is greater than or equal to one. (Similar relationships in dimensions must hold if data is laid out in
rows instead of columns.) Constant is a logical argument that must be set to TRUE or FALSE (or 0 or 1 that Excel
interprets as FALSE or TRUE, respectively). The last three arguments to GROWTH are all optional; see the GROWTH
Help file for options of omitting the second argument, third argument, or both; omitting the fourth argument is
interpreted as TRUE.
The most common usage of GROWTH includes two ranges of cells that contain the data, such as
GROWTH(A1:A100, B1:F100, B101:F108, TRUE). Note that because there is typically more than one predictor
variable, the second argument in this example contains multiple columns. In this example, there are one hundred
subjects, one dependent variable value (known_y) for each subject, and five dependent variable values (known_x's)
for each subject. There are eight additional hypothetical subjects where you want to use GROWTH to compute
predicted y values.
Example of usage
An Excel worksheet example is provided to illustrate the following key concepts:
How GROWTH interacts with LOGEST
Problems that occur with GROWTH (or LOGEST and LINEST) because of collinear known_x's in versions of Excel
that are earlier than Excel 2003
NOTE
An extensive discussion of the second bulleted item in the context of LINEST is provided in the article about LINEST.

To illustrate the GROWTH function, create a blank Excel worksheet, copy the following table, select cell A1 in your
blank Excel worksheet and then paste the entries so that the table following fills cells A1:K35 in your worksheet.

Y: X'S:

=EXP(F 1 2 1 1
2)

=EXP(F 3 4 1 2
3)

=EXP(F 4 5 1 3
4)

=EXP(F 6 7 1 4
5)

=EXP(F 7 8 1 5
6)

new x's: 9 11

12 14

GROW Values
TH for
using Excel
cols 2002
B,C: and for
earlier
version
s of
Excel:

Values
for
Excel
2003
and for
later
version
s of
Excel:

=GRO #NUM! 472.43


WTH(A 24325
2:A6,B 63203
2:C6,B
7:C8,TR
UE)
Y: X'S:

=GRO #NUM! 3400.1


WTH(A 64008
2:A6,B 95377
2:C6,B
7:C8,TR
UE)

GROW
TH
using
col B
only

=GRO 472.43 472.43


WTH(A 24325 24325
2:A6,B 63203 63203
2:B6,B7
:B8,TR
UE)

=GRO 3400.1 3400.1


WTH(A 64008 64008
2:A6,B 95377 95377
2:B6,B7
:B8,TR
UE)

Fitted
values
from
the
LOGES
T
results
in Excel
2003
and in
later
version
s of
Excel

Using Using
cols B, Col B
C

=EXP(L =EXP(L
N(K24) N(J31)*
*1 + 1+
LN(J24) LN(I31)
*B7 + *B7)
LN(I24)
*C7)
Y: X'S:

=EXP(L =EXP(L
N(K24) N(J31)*
*1 + 1+
LN(J24) LN(I31)
*B8 + *B8)
LN(I24)
*C8)

LOGES Values Values


T using for for
cols Excel Excel
B,C: 2002 2003
and for and for
earlier later
version version
s of s of
Excel: Excel:

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 1 1.9307 1.2672


ST(A2: ST(A2: ST(A2: 23372 41011
A6,B2: A6,B2: A6,B2: 0034 29183
C6,TRU C6,TRU C6,TRU
E,TRUE) E,TRUE) E,TRUE)

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 0 0.0438 0.2066


ST(A2: ST(A2: ST(A2: 59649 52964
A6,B2: A6,B2: A6,B2: 12280 72613
C6,TRU C6,TRU C6,TRU 7 6
E,TRUE) E,TRUE) E,TRUE)

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 0.9868 0.2094 #N/A


ST(A2: ST(A2: ST(A2: 42105 26954
A6,B2: A6,B2: A6,B2: 26315 14584
C6,TRU C6,TRU C6,TRU 8 8
E,TRUE) E,TRUE) E,TRUE)

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 225 3 #N/A


ST(A2: ST(A2: ST(A2:
A6,B2: A6,B2: A6,B2:
C6,TRU C6,TRU C6,TRU
E,TRUE) E,TRUE) E,TRUE)

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 9.8684 0.1315 #N/A


ST(A2: ST(A2: ST(A2: 21052 78947
A6,B2: A6,B2: A6,B2: 63158 36842
C6,TRU C6,TRU C6,TRU 1
E,TRUE) E,TRUE) E,TRUE)

LOGES
T using
col B
only
Y: X'S:

=LOGE =LOGE 1.9307 1.2672 1.9307 1.2672


ST(A2: ST(A2: 23372 41011 23372 41011
A6,B2: A6,B2: 0034 29183 0034 29183
B6,TRU B6,TRU
E,TRUE) E,TRUE)

=LOGE =LOGE 0.0438 0.2066 0.0438 0.2066


ST(A2: ST(A2: 59649 52964 59649 52964
A6,B2: A6,B2: 12280 72613 12280 72613
B6,TRU B6,TRU 71 6 7 6
E,TRUE) E,TRUE)

=LOGE =LOGE 0.9868 0.2094 0.9868 0.2094


ST(A2: ST(A2: 42105 26954 42105 26954
A6,B2: A6,B2: 26315 14584 26315 14584
B6,TRU B6,TRU 8 8 8 8
E,TRUE) E,TRUE)

=LOGE =LOGE 224.99 3 225 3


ST(A2: ST(A2: 99999
A6,B2: A6,B2: 99999
B6,TRU B6,TRU
E,TRUE) E,TRUE)

=LOGE =LOGE 9.8684 0.1315 9.8684 0.1315


ST(A2: ST(A2: 21052 78947 21052 78947
A6,B2: A6,B2: 63158 36842 63158 36842
B6,TRU B6,TRU 1 1
E,TRUE) E,TRUE)

NOTE
After you paste this table in your new Excel worksheet, click the Paste Options button, and then click Match Destination
Formatting . With the pasted range still selected, use one of the following procedures, as appropriate for the version of Excel
that you are running:
In Microsoft Office Excel 2007, click the Home tab, click Format in the Cells group and then click AutoFit Column
Width .
In Excel 2003, point to Column on the Format menu, and then click AutoFit Selection .

Data for GROWTH are in cells A1:C8. (Entries in cells D2:D6 are not part of the data, but are used for illustration
below.) Results of GROWTH for two different models for both earlier versions of Excel and for later versions of Excel
are presented in cells E10:E16 and I10:116, respectively. Results in cells A10:A16 will correspond to the version of
Excel that you are using. For now, focus on the results for Excel 2003 and for later versions of Excel when you
investigate how GROWTH calls LOGEST and how GROWTH uses LOGEST results.
GROWTH and LOGEST can be viewed as interacting in the following steps:
1. You call GROWTH(known_y's, known_x's, new_x's, constant)
2. GROWTH calls LOGEST(known_y's, known_x's, constant, TRUE)
3. Regression coefficients from this call to LOGEST are obtained. These coefficients appear in the first row of
LOGEST's output table.
4. For each new_x's row, the predicted y-value is calculated based on these LOGEST coefficients and the new_x's
values in that row.
5. The calculated value in step 4 is returned in the appropriate cell for GROWTH output that corresponds to that
new_x's row.
If GROWTH is to return appropriate results, then LOGEST must generate appropriate results in step 3. Because the
evaluation of LOGEST in step 3 requires a call to LINEST, it is essential that LINEST be well-behaved. Problems with
LINEST in versions of Excel that are earlier than Excel 2003 come from collinear predictor columns. (There are other
problems with LINEST and LOGEST in the earlier versions of Excel that occur when the last argument to GROWTH is
set to FALSE. However, those problems do not affect the results of GROWTH, and are not discussed here.)
Predictor columns (known_x's) are collinear if at least one column, c, can be expressed as a sum of multiples of
others, c1, c2, and other columns. Column c is frequently called redundant because the information that it contains
can be constructed from the columns c1, c2, and other columns. The fundamental principle in the existence of
collinearity is that results should be unaffected by whether a redundant column is included in the original data or
removed from the original data. Because LINEST in versions of Excel that are earlier than Excel 2003 did not look for
collinearity, this principle was easily violated. Predictor columns are almost collinear if at least one column, c, can be
expressed as almost equal to a sum of multiples of others, c1, c2, and other columns. In this case "almost equal"
means a very small sum of squared deviations of entries in c from corresponding entries in the weighted sum of
c1, c2, and other columns. "Very small" might be less than 10^(-12), for example.
The first model, in rows 10 to 12, uses columns B and C as predictors and requests Excel to model the constant (last
argument set to TRUE). Excel then effectively inserts an additional predictor column that looks just like cells D2:D6.
It is easy to notice that entries in column C in rows 2 to 6 are exactly equal to the sum of corresponding entries in
columns B and D. Therefore, there is collinearity present because column C is a sum of multiples of the following
items:
Column B
Excel's additional column of 1s that is inserted because the third argument to LOGEST was omitted or TRUE (the
"normal" case)
This causes such numeric problems that versions of Excel that are earlier than Excel 2003 cannot compute results.
Therefore, the GROWTH output table is filled with #NUM!.
The second model, in rows 14 to 16, is one that any version of Excel can handle successfully. There is no collinearity,
and the user again requests Excel to model the constant. This model is included here for the following reasons:
First, it is perhaps most typical of practical cases: that there is no collinearity present. These cases are handled
sufficiently in all versions of Excel. It should be reassuring to know that numeric problems are not likely to occur
in the most common practical case if you have an earlier version of Excel.
Second, this example is used to compare the behavior of Excel 2003 and of later versions of Excel in the two
models. Most major statistical packages analyze collinearity, remove a column that is a sum of multiples of
others from the model, and alert the user with a message such as "column C is linearly dependent on other
predictor columns and has been removed from the analysis."
In Excel 2003 and in later versions of Excel, such a message is conveyed not in an alert or in a text string, but in the
LOGEST output table. GROWTH has no mechanism for delivering such a message to the user. In the LOGEST output
table, a regression coefficient that is one, and whose standard error is zero, corresponds to a coefficient for a
column that has been removed from the model. LOGEST output tables are included in rows 23 to 35 corresponding
to the GROWTH output in rows 10 to 16. The entries in cells I24:I25 show an eliminated redundant predictor
column. In this case, LOGEST chose to remove column C (coefficients in cells I24, J24, K24 correspond to columns C,
B, and Excel's constant column, respectively). When there is collinearity present, any one of the columns involved
can be removed and the choice is basically arbitrary.
In the second model in rows 30 to 35, there is no collinearity and no column removed. You can see that the
predicted y values are the same in both models. This issue occurs because removing a redundant column that is a
sum of multiples of others does not reduce the goodness of fit of the resulting model. Such columns are removed
precisely because they represent no value added in trying to find the best least squares fit. Also, if you examine the
LOGEST output in cells I23:K35 in Excel 2003 and in later versions of Excel, you will notice that the last three rows of
the output tables are the same. Additionally, the entries in cells I31:J32 and cells J24:K25 coincide. This
demonstrates that the same results are obtained when column C is included in the model, but found to be
redundant (output in cells I24:K28) as when column C was eliminated before LOGEST was run (output in cells
I31:J35). This satisfies the fundamental principle in the existence of collinearity.
In cells A18:C21, Microsoft uses data from Excel 2003 and from later versions of Excel to illustrate how GROWTH
takes LOGEST output and computes the relevant predicted y-values. By examining the formulas in cells A20:A21
and cells C20:C21, you can see how LOGEST coefficients are combined with new_x's data in cells B7:C8 for each of
the two models (using columns B, C as predictors; using only column B as a predictor).
Collinearity is identified in LOGEST in Excel 2003 and in later versions of Excel because LOGEST calls LINEST. LINEST
uses a completely different approach to solving for the regression coefficients. This approach is QR Decomposition.
The LINEST article contains a walkthrough of the QR Decomposition algorithm for a small example.
Summary of results in earlier versions of Excel
GROWTH results are adversely affected in versions of Excel that are earlier than Excel 2003 because of inaccurate
results in LOGEST that, in turn, stem from inaccurate results in LINEST.
LINEST was calculated using an approach that paid no attention to collinearity issues. The existence of collinearity
caused roundoff errors, inappropriate standard errors of regression coefficients, and inappropriate degrees of
freedom. Sometimes roundoff problems are sufficiently severe that LINEST filled its output table with #NUM!. If, as
in the great majority of cases in practice, you can be confident that there were not collinear (or almost collinear)
predictor columns, then LINEST would generally provide acceptable results. Therefore, users of GROWTH can be
similarly reassured if they can see the absence of collinear (or almost collinear) predictor columns.
Summary of results in Excel 2003 and in later versions of Excel
Improvements in LINEST include switching to the QR Decomposition method of determining regression
coefficients. QR Decomposition has the following advantages:
Better numeric stability (generally, smaller roundoff errors)
Analysis of collinearity issues
All problems with versions of Excel that are earlier than Excel 2003 that are illustrated in this article have been
corrected for Excel 2003 and for later versions of Excel. These improvements in LINEST translate to improvements
in LOGEST and GROWTH.
Conclusions
GROWTH's performance has been improved because LINEST has been greatly improved for Excel 2003 and for
later versions of Excel. Improvements in LINEST also affect LOGEST, because LOGEST is essentially called by
GROWTH. Users of earlier versions of Excel should verify that predictor columns are not collinear before they use
GROWTH.
Much of the material presented in this article and in the LINEST article might at first appear alarming to users of
versions of Excel that are earlier than Excel 2003. However, it should be noted that collinearity is a problem in only a
small percentage of cases. Earlier versions of Excel give acceptable GROWTH results when there is no collinearity.
Fortunately, improvements in LINEST also affect the Analysis ToolPak's linear regression tool (this tool calls LINEST)
and two other related Excel functions: LOGEST and TREND.
Hide sheets and use the xlVeryHidden constant in a
macro
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you can hide sheets in a workbook so that a user cannot see them. You can hide any type of
sheet in a workbook, but you must always leave at least one sheet visible.

More information
Hiding a Sheet Using Menu Commands
To hide a sheet, point to Sheet on the Format menu, and then click Hide. To unhide a sheet, point to Sheet on the
Format menu, and then click Unhide. Select the appropriate sheet and then click OK.

NOTE
You cannot hide module sheets because they appear in the Visual Basic Editor.

Hiding a Sheet with a Visual Basic Macro


You can also hide or unhide a sheet using a Microsoft Visual Basic for Applications macro or procedure. When you
use Visual Basic code, you can use the xlVeryHidden property to hide a sheet and keep the Unhide dialog box from
listing it. When you do this, the only way to make the sheet visible again is to create another Visual Basic macro.
In a Visual Basic macro, use the Visible property to hide or unhide a sheet. You can set the Visible property to True,
False, or xlVeryHidden. True and False have the same effect as using the Unhide or Hide menu commands. The
xlVeryHidden argument hides the sheet and also keeps the Unhide dialog box from displaying it.
Sample Visual Basic Code
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.The following samples show you how to use the Visible
property of a Sheet object.

Sub UnhideSheet()
Sheets("Sheet1").Visible = True
End Sub
Sub HideSheet()
Sheets("Sheet1").Visible = False
End Sub

The following sample illustrates how to use the xlVeryHidden argument of the Visible property to hide a worksheet:

Sub VeryHiddenSheet()
Sheets("Sheet1").Visible = xlVeryHidden
End Sub
Description of how column widths are determined in
Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The standard column width in Microsoft Excel 2000 is 8.43 characters; however, the actual width that you see on the
screen varies, depending on the width of the font defined for the Normal style of your workbook. Changing the
default font also changes the column width. This behavior occurs because of the way that Excel stores the column
width information for individual fonts. This article discusses how column widths are determined.

More information
Excel begins with a default width of 8 characters and translates this into a given number of pixels, depending on the
Normal style font. It then rounds this number up to the nearest multiple of 8 pixels, so that scrolling across columns
and rows is faster. The pixel width is stored internally in Excel for positioning data on the screen. The number that
you see in the Column Width dialog box is the pixel width retranslated into character units (based on the Normal
font) for display.
A column width of 8.43 means that 8.43 of the default font's characters fit into a cell. The default font for the
worksheet is the font that is assigned to the Normal style. Excel 2000 uses a factory default font of Arial 10.

NOTE
Changing Printer DPI can affect the font metrics and can adjust the column widths.Microsoft Office Excel 2007 uses a default
theme that is named Office. This default theme has Cambria as the default heading font and Calibri 11 as the default body
font.

To determine the default font on your worksheet, follow these steps:


1. On the Format menu, click Style.
2. Read the font listed next to the Font check box.
To change the default font, follow these steps:
1. On the Format menu, click Style.
2. Click Modify.
3. On the Font tab, select the font, style, and size that you want.
4. Click OK.
To change the default font in Excel 2007, follow these steps:
1. On the Page Layout tab, in the Themes group, click Fonts .
2. Click Create New Theme Fonts .
3. In the Heading Font and the Body Font boxes select the fonts that you want. to use.
4. In the Named box, type Office to replace the default template.
5. Click Save .
If the default font is a non-proportional (fixed width) font, such as Courier, 8.43 characters of any type (numbers or
letters) fit into a cell with a column width of 8.43 because all Courier characters are the same width. If the font is a
proportional font, such as Arial, 8.43 integers (numbers such as 0, 1, 2, and so on) fit into a cell with column width
of 8.43. This is because numbers are fixed-spaced with most proportional fonts. However, because letters are not
fixed-spaced with proportional fonts, more "i" characters fit and fewer "w" characters fit.
When you change the width of a column to a fractional number, the column width may be set to a different number
depending on the font used in the Normal style. For example, with a Normal style font of Arial, if you attempt to
change the width of a column to 8.5, the column is set to 8.57 or 65 pixels. This behavior occurs because of the
translation of font characters to pixel units. Fractional pixel units cannot be displayed; therefore, the column width
rounds to the nearest number that results in a whole pixel unit.
Example of Column Width Behavior
1. In a new Excel workbook, select cell A1.
2. On the Format menu, point to Column, and then click Width.
3. In the Column width box, type 10 (75 pixels wide), and then click OK.
4. On the Format menu, click Style, and then verify that the default font is correctly set to Arial 10.
5. In cell A1, type 1234567890.

NOTE
The letters fit perfectly into the cell and the column width is still 10 (75 pixels wide).

6. On the Format menu, click Style.


7. Click Modify.
8. On the Font tab, change the font to Courier New, and then click OK twice. Note that the Column Width box
automatically updates to accommodate the new font and that the number in the cell still fits, even though
the column width is still 10 but has increased to 85 pixels wide.
Column Width behavior in Excel 2007
To set the column width in Excel 2007, follow these steps:
1. On the first column click A to select the column, and then right click and select Column Width .
2. Type the width that you want for your column.
3. Click OK .
The behavior of the column width in Excel 2007 is the same as noted above. If you change fonts after having set the
width it will adjust for the new fonts pixel width.
How Excel works with two-digit year numbers
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
When you type a date using a two-digit year number (such as 98), Microsoft Excel uses specific rules to determine
which century to use for the date. This article explains how Microsoft Excel determines the century.

More information
When you type a date in a cell, if you omit the century digits from the year, Excel automatically determines which
century to use for the date.
For example, if you type 7/5/98, Excel automatically uses the year 1998 and changes the date to 7/5/1998 in the
formula bar.
The following sections explain the default rules that Excel uses.
Using the Regional Settings in Control Panel
Excel first interprets dates according to the date ordering defined by the Shor t date style setting under Regional
Settings in Control Panel, for example, M/d/yy.
If you are running Microsoft Windows 98 or later, you can use the When a two digit year is entered, interpret
a year between setting under Regional Settings in Control Panel to determine the cutoff year for the century. The
default value is 2029, but you can change this to any value between 99 and 9999.

NOTE
You can change the When a two digit year is entered, interpret a year between setting to a value that is not
compatible with Excel. If you enter an incompatible value, Excel will revert to the rules discussed in the "The 2029 Rule"
section of this article.

To change the century cutoff date, follow these steps:


1. Click Star t , point to Settings , and then click Control Panel .
2. Double-click the Regional Settings icon.
3. Click the Date tab.
4. In the When a two digit year is entered, interpret a year between box, type the cutoff year that you want,
and then click OK .
The following table illustrates the effect that various cutoff years will have when you type a two-digit year in Excel:
Regional Settings |Setting |Date typed |Date used| |----------|------------|------| |2039| 9/7/70| 9/7/1970| |2039|
2/3/27| 2/3/2027| |2075| 9/7/70| 9/7/2070| |2099| 2/3/27| 2/3/2027|
NOTE
This will modify the way Excel interprets dates only when they are typed into a cell. If you import or programmatically enter a
date, the following 2029 rule is always in effect.

The 2029 Rule


By default, Excel determines the century by using a cutoff year of 2029, which results in the following behavior:
Dates in the inclusive range from January 1, 1900 (1/1/1900) to December 31, 9999 (12/31/9999) are valid.
When you type a date that uses a two-digit year, Excel uses the following centuries:
Two-digit |year typed| Century used| |----------|----------------| |00-29| 21st (year 2000)| |30-99 |20th (year
1900)|
For example, when you type the following dates, Excel interprets these as follows:

DAT E T Y P ED DAT E USED

7/4/00 7/4/2000

1/1/10 1/1/2010

12/31/29 12/31/2029

1/1/30 1/1/1930

7/5/98 7/5/1998

12/31/99 12/31/1999

If you want to type a date that is before January 1, 1930, or after December 31, 2029, you must type the full
four-digit year. For example, to use the date July 4, 2076, type 7/4/2076.
Entering Dates That Contain Only Day/Month or Month/Year Components
So far, this article has discussed how Excel interprets three-part date entries that contain month, day, and year
components. It is possible to enter a two-part date that contains only the day and month, or the month and year
components of the date. Two-part dates are inherently ambiguous and should be avoided if possible. This section
discusses how Excel handles date entries that contain only two parts.
When you enter a date that contains only two of the three date components, Excel assumes that the date is in the
form of Day/Month or Month/Year. Excel first attempts to resolve the entry as a Day/Month entry in the current
year. If it cannot resolve the entry in the Day/Month form, Excel attempts to resolve the entry in the Month/Year
form, using the first day of that month. If it cannot resolve the entry in the Month/Year form, Excel interprets the
entry as text.
The following table illustrates how Excel interprets various date entries that contain only two of the three date
components.

NOTE
This table assumes that the current year is 1999.
EN T RY RESO L UT IO N

12/01 12/1/1999

12/99 12/1/1999

11/95 11/1/1995

13/99 13/99 (text)

1/30 1/30/1999

1/99 1/1/1999

12/28 12/28/1999

NOTE
This table illustrates how Excel stores the date, not how the date is displayed in the cell. The display format of the date varies
according to the date formats that have been applied to the cell, and the current settings under Regional Settings in Control
Panel.
How to obtain the latest Excel Viewer
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Notice
Excel Viewer has been retired

IMPORTANT
The Microsoft Excel Viewer was retired in April, 2018. It is no longer available for download or receive security updates. To
continue viewing Excel files for free, we recommend installing the Excel mobile app or storing documents in OneDrive or
Dropbox, where Excel Online opens them in your browser. For the Excel mobile app, visit the store for your device:
Google Play
iTunes
Microsoft Store

Summary
The Microsoft Excel Viewer is a small, freely redistributable program that lets you view and print Microsoft Excel
spreadsheets if you don't have Excel installed. In addition, the Excel Viewer can open workbooks that were created
in Microsoft Excel for the Macintosh.
The Excel Viewer can open the latest version of Excel workbooks, but it will not display newer features.

More Information
The Microsoft Excel Viewer is the latest version of the viewer. It can read the file formats of all versions of Excel, and
it replaces the Microsoft Excel Viewer 2003.
Other options for free viewing of Excel workbooks
Excel Online Excel Online is available through OneDrive or deployed as part of Microsoft SharePoint. Excel
Online can view, edit and print Excel workbooks. For more information about Excel Online, see the Office Online
overview.
Office 365 Trial Downloading the trial will give you access to the full capabilities of Microsoft Office 2013. For
more information, see Office 365 Home.
Office Mobile applications Download the trial for mobile applications available on iPhone, Android phone, or
Windows Phone. For more information, see Office on mobile devices.

NOTE
The Excel Viewer is available only as a 32-bit application. A 64-bit version of the Excel Viewer does not exist. The 32-bit
version of the Excel Viewer can be used on 64-bit versions of Windows.
The file name of the Excel Viewer is xlview.exe. The default folder location for the Excel Viewer on a 32-bit operating
system isc:\Program Files\Microsoft Office\Office12. The default folder location for the Excel Viewer on a 64-bit
operating system is c:\Program Files (x86)\Microsoft Office\Office12.

NOTE
If you already have a full version of Microsoft Excel installed on your computer, do not install Microsoft Excel Viewer in the
same directory. Doing this causes file conflicts.

File formats supported


The Excel file formats supported are .xlsx, .xlsm, .xlsb, .xltx, .xltm, .xls, .xlt, .xlm, and .xlw. Macro-enabled files can be
opened (.xlsm, .xltm, and .xlm), but the macros do not run.
Known issues with newer versions of Excel workbooks and the Excel Viewer
Even though the Excel Viewer can read the latest Excel workbooks, the following new features are not visible or are
displayed differently in the Excel Viewer.
Sparklines are not shown in the Excel Viewer. The cells where they are located are blank.
PivotTables and PivotCharts are flattened. The data or chart will appear, but modifications cannot be made.
Macros do not run in the Excel Viewer.
Slicers do not display data in the Excel Viewer. Instead, a box is displayed in the location of the slicer and it
contains the following text: "This shape represents a slicer. Slicers are supported in Excel 2010 or later. If the
shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2003 or earlier, the
slicer cannot be used."

If you have to view or use these features, use Excel Online.


Hyperlink to MHT File in Office Documents Fails to
Load in Internet Explorer
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider this scenario:
You are using an Office application (Microsoft Excel, Microsoft Word, Microsoft PowerPoint) and you insert a
hyperlink to a MHT file on a file share. When you click the link to follow it, Internet Explorer starts, but the MHT file
is not loaded. Instead you see an error:
The address is not valid.
Most likely causes:
There might be a typing error in the address.
If you clicked on a link, it may be out of date.

Cause
There are spaces in the path or file name in the URL.

Resolution
Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious
problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a
problem occurs. For more information about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To work around this issue, follow these steps:
1. Quit any open Office Application that is affected by the issue.
2. Click Star t , click Run , type regedit, and then click OK .
3. Locate and then click to select the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\
4. After you select the key that is specified in step 3, point to New on the Edit menu, and then click Key.
5. Type FEATURE_CREATE_URL_MONIKER_DISABLE_LEGACY_COMPAT, and then press ENTER.
6. Select Newon the Editmenu again, and select DWord (32-bit) Value
7. Type iexplore.exe and press Enter
8. On the File menu, click Exit to quit Registry Editor.
Did this fix the problem?
Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is
not fixed, you can contact support.
We would appreciate your feedback. To provide feedback or to report any issues with this solution, please leave
a comment on the "Fix it for me" blog or send us an email.

More Information
Web files (.HTM, .HTML, .ASP, .MHT, .MHTML, etc.) are most frequently stored on web servers, which are designed to
use URL encoding to deal with spaces. If you access your .MHT files from a web server, they will load properly with
or without spaces in the path.
Hyperlinks stop working after you save as a PDF in
Office 2011
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you save one of the following Microsoft Office for Mac 2011 file types as a PDF, hyperlinks no longer work in
the converted file:
Excel 2016 for Mac or Excel for Mac 2011 workbook
PowerPoint 2016 for Mac or PowerPoint for Mac 2011 presentation
Word 2016 for Mac or Word for Mac 2011 document

Cause
This issue occurs because metadata is not maintained during the conversion to the PDF format.

Status
Microsoft is aware of this issue and may produce a solution in an upcoming product release or service pack.
Incorrect icon shows when inserting an object in Excel
2019
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Excel 2019, when you try to insert a file that's located on a OneDrive for Business locally synced folder
and you select the Display as icon check box, the wrong icon is displayed.

Workaround
Use the Change Icon button to manually assign an icon to the inserted object.
Inquire COM add-in options do not respond in Excel
2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you enable the Inquire COM add-in in Microsoft Excel 2013, the INQUIRE tab is displayed as expected.
However, there is no response when you click any option (such as the Clean Excess Cell Formatting or
Compare Files option) on the INQUIRE tab. When this issue occurs, you do not receive an error message.

Cause
This issue occurs because the Inquire COM add-in works only on computers that have the .NET Framework 4 or a
later version of the .NET Framework installed.

Workaround
To work around this issue, install the .NET Framework 4 or a later version of the .NET Framework.
Note We recommend that you install the Microsoft .NET Framework 4.5 to work around the issue. To do this, go to
Download the .NET Framework 4.5.
Excel statistical functions: INTERCEPT
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses the INTERCEPT function in Microsoft Excel, illustrates how to use the function, and compares
its results for Excel 2003 and for later versions of Excel with its results in earlier versions of Excel.

More Information
The INTERCEPT(known_y's ,known_x's ) function returns the INTERCEPT of the linear regression line that is used to
predict y values from x values.
Syntax

INTERCEPT(known_y's,known_x's)

The arguments, known_y's and known_x's , must be arrays or cell ranges that contain equal numbers of numeric
data values. Frequently, INTERCEPT includes 2 ranges of cells containing the data, such as INTERCEPT(A1:A100,
B1:B100).
Example of usage
To illustrate the INTERCEPT function, create a blank Excel worksheet, copy the following table, select cell A1 in your
blank Excel worksheet, and then paste the entries so that the following table fills cells A1:D13 in your worksheet.

Y - VA L UES X- VA L UES

1 = 3 + 10^$D$3 Power of 10 to add to data

2 =4 + 10^$D$3 0

3 =2 + 10^$D$3

4 =5 + 10^$D$3

5 =4+10^$D$3

6 =7+10^$D$3 Excel 2002 and earlier

when D3 = 7.5

=SLOPE(A2:A7,B2:B7) -23717082.0762629
Y - VA L UES X- VA L UES

=INTERCEPT(A2:A7,B2:B7) -24516534.4029667

= AVERAGE(A2:A7) - when D3 = 8
A9*AVERAGE(B2:B7)

=AVERAGE(A2:A7) - #DIV/0!
0.775280899*AVERAGE(B2:B
7)

-77528089.6303371

NOTE
After you paste this table into your new Excel worksheet, click the Paste Options button, and then click Match
Destination Formatting . With the pasted range still selected, use one of the following procedures, as appropriate for the
version of Excel that you are running:

In Microsoft Office Excel 2007, click the Home tab, click Format in the Cells group, and then click AutoFit
Column Widths .
In Excel 2003, point to Column on the Format menu, and then click AutoFit Selection .
You may want to format cells B2:B7 as Number with 0 decimal places and cells A9:D13 as Number with 6 decimal
places.
Cells A2:A7 and B2:B7 contain the y -values and x -values that call INTERCEPT in cell A10.
In versions of Excel that are earlier than Excel 2003, INTERCEPT can exhibit round off errors. Excel 2003 and later
versions of Excel improve the behavior of INTERCEPT. INTERCEPT(known_y's , known_x's ) is the result of
evaluating AVERAGE(known_y's ) – SLOPE(known_y's , known_x's ) * AVERAGE(known_x's ). While the code for
INTERCEPT has not been directly changed for Excel 2003 and for later versions of Excel, the behavior of INTERCEPT
is improved because of improved code for SLOPE.
If you have an earlier version of Excel, you can use the worksheet you created earlier to run an experiment to
discover when round off errors occur. Adding a positive constant to each of the observations in B2:B7 should not
affect the value of SLOPE. If you plot x ,y pairs with x on the horizontal axis and y on the vertical axis, and then add a
positive constant to each x value, data just shifts to the right. The best-fit regression line still has the same slope.
However, the shifted data has a different intercept.
With the default value of 0 in D3, SLOPE in A9 is 0.775280899. Cell A10 shows the value of INTERCEPT, and cell
A11 shows the value of the expression that is evaluated when calculating INTERCEPT:
AVERAGE(known_y's ) – SLOPE(known_y's , known_x's ) * AVERAGE(known_x's )
Values in cells A9 and A10 always agree because the value in A10 is exactly what INTERCEPT returns. SLOPE should
not vary as you add different positive constants to the known_x's . Cell A11 shows AVERAGE(known_y's ) –
0.775280899 * AVERAGE(known_x's ). Because SLOPE should not change, and 0.775280899 is the value of SLOPE
when D3 = 0, values of this expression in A11 should also agree with the values in cells A9 and A10.
If you increase the value in D3, you add a larger constant to B2:B7. If D3 <= 7, then there are no round off errors
that appear in the first 6 decimal places of SLOPE. But if you try 7.25, 7.5, 7.75, and 8, the SLOPE in A9 changes. As a
result, the values in cells A11 (that agree with A10) and A12 differ. However, values in A11 (or A10) and A12 should
be the same because adding a constant to the known_x's should not affect SLOPE.
D7:D13 show the values that INTERCEPT returns and the values that INTERCEPT should have returned if SLOPE had
not changed. These pairs of values appear for the cases where D3 = 7.5 and 8 respectively. Round off errors have
become so severe that division by 0 occurs when D3 = 8.
Earlier versions of Excel give wrong answers in these cases because the effects of round-off errors are greater with
the computational formula that these versions use. Still, this experiment shows that the cases where the errors
occur are extreme.
If you have Excel 2003 or a later version of Excel, there is little or no difference between the common values in A10
and A11 and the value in A12 if you try the experiment. However, cells D7:D13 show the round-off errors that you
obtain with the earlier versions of Excel.
Results in earlier versions of Excel
The article about SLOPE describes the less numerically robust formula that earlier versions use. The formula
requires only one pass through the data. Only the shortcomings of SLOPE in these versions cause INTERCEPT to
give round-off errors in the extreme cases.
Results in Excel 2003 and in later versions of Excel
Excel 2003 and later versions of Excel uses an improved procedure to calculate SLOPE. As a result, INTERCEPT's
performance improves. The improved procedure requires two passes through the data. Again, the following article
about SLOPE describes the improvement.
For more information about the improvements in SLOPE for Excel 2003 and for later versions of Excel, click the
following article number to view the article in the Microsoft Knowledge Base:
828142 Excel statistical functions: SLOPE
Conclusions
Because Excel 2003 and later versions of Excel replace a one-pass approach with a two-pass approach, the numeric
performance of SLOPE in Excel 2003 and in later versions of Excel is better than in earlier versions of Excel.
Therefore, the numeric performance of INTERCEPT is better. Results in Excel 2003 and in later versions of Excel will
never be less accurate than the results in earlier versions of Excel.
Typically, there is not a difference between the results in Excel 2003 and in later versions of Excel and the results in
earlier versions of Excel because data does not frequently behave in the unusual way that this experiment
illustrates. Numeric instability is most likely to appear in earlier versions of Excel when the data contains many
significant digits and little variation between the data values.
The following procedure finds the sum of the squared deviations about a sample mean:
1. Find the sample mean.
2. Calculate each squared deviation.
3. Sum the squared deviations.
This procedure is more accurate than the following alternative procedure (also known as the "calculator formula"
because it was suitable for use on a calculator for a small number of data points):
1. Find the sum of the squares of all the observations, the sample size, and the sum of all the observations.
2. Calculate the sum of the squares of all the observations minus ((sum of all obser vations )^2)/sample size ).
By replacing this latter one-pass procedure with the two-pass procedure that finds the sample mean on the first
pass and computes the sum of squared deviations about it on the second pass, Excel 2003 and later versions of
Excel improve many other functions. A short list of such functions includes VAR, VARP, STDEV, STDEVP, DVAR,
DVARP, DSTDEV, DSTDEVP, FORECAST, SLOPE, INTERCEPT, PEARSON, RSQ, and STEYX. Microsoft made similar
improvements in each of the three Analysis of Variance tools in the Analysis ToolPak.
"This document contains invalid signatures" error
when opening Excel workbooks that were digitally
signed in an earlier version
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You open a Microsoft Excel workbook that was digitally signed in an earlier version of Excel than the one that you
are using. In this situation, the signature is no longer valid, and the following warning message is displayed in the
Trust Bar:

This document contains invalid signatures. [View Signatures]

NOTE
When you open the digitally signed workbook in same program version that it was created in, the workbook opens as
expected without an error message.

Cause
When Excel opens a workbook that was last recalculated in a different version (either a different product version or
an update that introduced changes in the recalculation behavior), it updates the internal recalculation data to the
current version. Because this data is part of the file content, the digital signature is no longer valid because of this
change in the content.

Workaround
Workaround 1
Before you sign the workbook, switch the calculation mode to Manual . To do this, select the Formulas tab on the
ribbon, and then select Manual on the Calculation Options list.

NOTE
Although the calculation option is saved per workbook, it can affect the setting for other workbooks that are opened in the
same instance of Excel.

Workaround 2
If the workbook is already signed, follow these steps:
1. Before you open the workbook, start Excel through the Star t menu.
2. Change the calculation mode to Manual . To do this, select the Formulas tab on the ribbon, and then select
Manual on the Calculation Options list.
3. To open the signed file, select Open on the File menu.
The signature should be displayed as valid.

NOTE
If the calculation in any workbook is made when the workbook is open, the signatures will be invalidated because they are
updated even if they return the same value.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
How to troubleshoot errors when you save Excel
workbooks
3/30/2020 • 9 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
You may have problems when you try to save a Microsoft Excel workbook if one or more of the following
conditions are true:
You save an Excel workbook to a network drive on which you have restricted permissions.
You save an Excel workbook to a location that does not have sufficient drive space.
The connection to the Excel workbook is lost.
There is a conflict with an antivirus software program.
You save an Excel workbook that is shared.
The 218-character path limitation is exceeded when you save an Excel workbook.

Workarounds and resolutions


The following sections include workarounds to save your workbooks and troubleshooting steps to help you find
the cause of the problem. We recommend that you first try to save changes in any open Excel workbooks before
you start troubleshooting.
Workarounds to save Excel workbooks
To work around this problem and try to save your work before you troubleshoot, use the following methods.
Depending on the cause of the problem, you may be unable to recover the current file as-is. However, the following
methods are typically successful. These methods are listed in order of format retention when you are trying to keep
the original file formatting.

NOTE
The following methods may not save all the latest changes, formatting, and feature sets of the workbook that are specific to
the version of Excel that you are using. The following methods are intended to let you obtain a usable, saved version of the
file. These methods require you to save the file to your local hard disk by using a unique file name.

Method 1: Save the workbook by using a new file name


1. On the File menu, select Save As .
2. Save the Excel workbook by using a unique file name.
Method 2: Move the original worksheets to a new workbook
1. Add a filler worksheet to your workbook. To do this, press Shift + F11.
NOTE
This sheet is required because there has to be at least one remaining sheet in a workbook after you move all relevant
data sheets.

2. Group all the worksheets (except the filler). To do this, select the first sheet, hold the Shift key, and then
select the last sheet.
3. Right-select the grouped sheets, and then select Move or copy .
4. In the To Book list, select (New Book) .
5. Select OK .

NOTE
These steps should move the active (grouped) worksheets to a new workbook.

If your workbook contains VBA macros, copy the modules from the old workbook to the new workbook.
Method 3: Save the file as a different Excel file type
1. On the File menu, select Save As .
2. In the Save as Type list, select a file format other than the current file format. If you are using Microsoft Excel
2007 or a later version, save the file as .xlsx or .xlsm instead of as .xls.
Troubleshooting
To troubleshoot this problem, follow these steps in the given order.
Step 1: Try to save the workbook to another location
Try saving your notebook to another location, such as a local hard drive, a network drive, or removable drive. If you
are successful, the following are possible causes of the problem:
Antivirus software conflict
Restricted permissions
File name length
File sharing conflict
Step 2: Try to save a new workbook to the original location
To save a new Excel file to the original location, follow these steps:
1. Create an Excel workbook.
2. On the File menu, select Save As .
3. In the Save As dialog box, follow these steps:
a. In the Save in box, select the location in which the original workbook is saved.
b. In the File name box, type a name for the new file.
c. Select Save .
If you can save a new workbook to the original location, the following are possible causes of the problem:
File name length
File sharing conflict
If you cannot save a new workbook to the original location, the following is a possible cause of the problem:
Insufficient drive space
If you have sufficient drive space, try Step 3.
Step 3: Try to save the workbook in safe mode
Restart Windows in safe mode, and then try to save the workbook to your local hard disk.
Notes
If you use a network location to save your workbook, try to restart Windows in safe mode with network
support, and then try to save.
Windows safe mode cannot be used to troubleshoot issues in Microsoft Excel 2010 or later versions.
For more information about how to start Windows in safe mode, see Advanced startup options (including safe
mode).
If the workbook saves after you restart Windows in safe mode, try to save the file again. To do this, select Save on
the File menu.
If the workbook does not save (or save again) after you restart Windows in safe mode, the following are possible
causes:
Third-party add-in
Antivirus software conflict
Restricted permissions
File name length
Causes
Third-party add-in
If the Excel file is not saved when you run Excel in Windows safe mode, the issue may be caused by a third-party
add-in or by a file that is in one of the Excel startup locations. By default, these files are loaded when you start Excel.
Sometimes, third-party software vendors install custom add-ins to work with Excel. Some of these add-ins work
with existing Excel features by design, and some are intended to enable a seamless transition when you are using a
third-party product. Typically, these third-party add-ins do not interfere with normal Excel functionality. However,
there are some exceptions. For example, Excel save conflicts have occurred because of an add-in.
To test for and eliminate the possibility that a third-party Excel add-in or file is causing an Excel save issue, start
Excel in safe mode. To do this, follow these steps:
1. Exit Excel.
2. Select Star t , and then point to Programs .
3. Press Ctrl when you start Excel, and hold it until you receive a message that resembles the following:
Excel has detected that you are holding down the Ctrl key. Do you want to star t Excel in safe
mode?
4. Select Yes .
5. Try to save a new Excel file, and then resave the same Excel file again.
If the file saves correctly, a custom add-in or a file that is located in an Excel startup location is most likely the cause.
You must locate and remove the add-in or the file to eliminate the problem. After you determine the add-in or the
file that caused the problem, contact the vendor that designed it. The vendor may have additional information
about this issue and an update that does not cause the issue to occur.
For more information about Microsoft Excel safe mode, press F1 in Excel to open the Help menu, type safe modein
the Search box, and then select Search to view the topic.
For more information about how to determine the folders that Excel uses during startup and additional options to
disable this functionality, select the following article numbers to view the articles in the Microsoft Knowledge Base:
822107 How to use startup folders in Excel
826922 How to prevent files from opening automatically in Excel
Restricted permissions
When you save an Excel file, you must have the following permissions to the folder in which you are saving the file:
Read permission
Write permission
Modify permission
Delete permission

NOTE
If you do not have these permissions, the Excel save process cannot be completed.

Insufficient drive space


When you save to any medium, such as a floppy disk drive, a local hard disk, or a network drive, you must make
sure that the drive has sufficient free space to enable the file to save. If the destination drive does not have sufficient
space, Excel cannot complete the save operation, and you receive the following error message: Disk is Full.
For more information about this error message, select the following article numbers to view the articles in the
Microsoft Knowledge Base:
214245 You receive the "Disk is Full" error message when you save a workbook in Excel
214073 You receive an error message when you try to save a file in Excel
Antivirus software conflict
When antivirus software is installed or is running, you may receive an error message when you try to save an
existing workbook. You do not receive an error message if you try to save a new file. You may receive an error
message because some antivirus programs quickly scan any new files that appear on a computer. This scan can
sometimes disrupt the Excel save process. This interruption may stop Excel from saving the file correctly.
File sharing conflict
If you and a second user work concurrently on a shared workbook, you may receive an error message if you and
the second user try to save the file at the same time. You receive an error message because Excel cannot save the
file if another instance of Excel is saving the same file.
For more information about this error message, see the following Microsoft Knowledge Base article:
130494 Unlock a file that has been locked for editing
File name length
If you try to save or open an Excel file, and the path of that file (including the file name) is more than 218
characters, you may receive the following error message: Filename is not valid.
For more information, select the following article number to view the article in the Microsoft Knowledge Base:
213983 Error message when you open or save a file in Microsoft Excel: "Filename is not valid"
Process to save a file
Excel follows these steps when it saves a file:
1. Excel creates a randomly named temporary file (for example, Cedd4100 without a file name extension) in the
destination folder that you specified in the Save As dialog box. The whole workbook is written to the temporary
file.
2. If changes are being saved to an existing file, Excel deletes the original file.
3. Excel renames the temporary file. Excel gives the temporary file the file name that you specified (such as
Book1.xls) in the Save As dialog box.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
814068 Description of the way that Excel saves files

NOTE
Other processes that occur on your computer may disrupt the Excel save process. These issues may occur if the Excel
temporary file is accessed before the Excel save process is completed. For example, the local antivirus software locks the
temporary file for scanning before the file can be renamed. Therefore, you must keep track of any new software installations
or updates that are performed before you have problems when you try to save workbooks. This information will be helpful if
this article does not fix your issue and you have to contact Microsoft Support. For more information, go to the following
Microsoft website:
http:/ support.microsof t.com
Excel may not automatically fit the worksheet to the
page after you set the "Fit to" option
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Excel 2000 and later versions of Excel may not automatically fit the worksheet to the page as earlier
versions of Excel did.
This issue occurs when you click Page Setup on the File menu, click to select the Fit to check box on the Page tab,
and then type the number of pages wide that you want the worksheet to fit. For example, you type 1.

More information
In earlier versions of Excel, when you click to select the Fit to check box and then specify a setting in either the
page(s) wide by or the tall boxes, Excel would clear the manual page breaks both vertically and horizontally to
automatically make the worksheet fit the page wide by the page tall.
However, in Excel 2000 and in later versions of Excel, the Fit to option does not automatically clear all the manual
page breaks in a worksheet. Excel clears the manual page breaks for only the width or height that you specify. For
example:
When you specify a page width setting in the page(s) wide by box, Excel clears all the manual vertical page
breaks in the worksheet.
When you specify a page height in the tall box, Excel clears all the manual horizontal page breaks in the
worksheet.
When you do not specify either a width or height by clearing both the page(s) wide by box and the tall box,
Excel retains both the vertical and horizontal manual page breaks in the worksheet.
This is a design change in Excel 2000 and in later versions of Excel. This change gives you more flexibility when you
fit a worksheet to a page.
You may receive an error message when you sort a
range that contains merged cells in Excel
3/31/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you sort a range in a Microsoft Excel worksheet, Excel does not sort the range. Additionally, you may receive
the following error message:
This operation requires the merged cells to be identically sized.

Cause
This issue might occur if you sort a range of cells, and if the following conditions are true:
You previously merged some of the cells, but not all of the cells in the sort range.
You previously merged all of the cells in the sort range and the cells are not all the same size.

Workaround
To work around this issue, split all the merged cells in the range, or merge all the cells in the range so that the
merged cells are the same size. Each merged cell in the range must occupy the same number of rows and columns
as the other merged cells in the range.
General solution
1. Select the entire range you want to sort.
2. In the Alignment group on the Home tab, select the Alignment dialog box launcher.

3. Select the Alignment tab, and then clear the Merge cells check box.
4. Select OK .

NOTE
This can alter the layout of the data in the range.

Example solution
1. In a worksheet, type the following data:
A1: B1: Name C1: Value
A2: B2: Sue C2: 1
A3: B3: Tom C3: 2

2. Merge cells A1 and B1, A2 and B2, and A3 and B3. To do this, follow these steps:
a. Select each pair of cells.
b. Select the Alignment dialog box launcher in the Alignment group on the Home tab.

c. Select the Alignment tab, and then select the Merge cells check box.
d. Select OK .
Do not merge cells in column C.
3. Select cells A1:C3, select Sor t & Filter in the Editing group on the Home tab, and then click Custom Sor t .
4. In the Sor t box, select "Column C" next to Sor t By , and then select OK . You should see the error message as
documented above.
5. To resolve the issue, do one of the following:
a. Unmerge cells A1:B3 so there are no merged cells in the selection.
b. Merge cells C1 and D1, C2 and D2, and C3 and D3, so that C column is same sized (merged) as the A/B
column. Then select cells A1:D3, and repeat steps 3 and 4 using a uniform range size.
"Microsoft Excel has encountered a problem and
needs to close" when starting Excel for Mac
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to start Microsoft Excel for Mac, you receive the following error message:
Microsoft Excel has encountered a problem and needs to close. We are sorr y for the inconvenience.

Cause
This error may occur if one of the following conditions is true:
The Excel preferences are corrupted.
Programs that are running in the background are interfering with Excel for Mac.
Application files are corrupted.
A user account profile is corrupted.

Resolution
To resolve this issue, try the following methods, in order, until the issue is resolved.
Method 1
Step 1: Quit all programs
You must quit all programs before you continue. To quit an application, select the application on the toolbar (top),
and then select Quit . If you cannot quit an application or do not know how, hold down the Command and Option
keys, and then press Esc on your keyboard. Select the application in the "Force Quit Application" window, and then
select Force Quit . Click Force Quit to quit the application.

NOTE
You cannot quit Finder.

When you are finished, click the red button in the upper-left corner and go to step 2.
Step 2: Remove your Excel preferences
1. Quit all Microsoft Office for Mac applications.
2. On the Go menu, click Home .
3. Open Librar y . Note The Librar y folder is hidden in Mac OS X Lion. To display this folder, hold down the
OPTION key while you click the Go menu.
4. Open Preferences .
5. Drag com.microsoft.Excel.plist to the desktop. If you cannot locate the file, Excel is using the default
preferences. Go to step 7.
6. Open Excel, and check whether the problem still occurs. If the problem still occurs, quit Excel, restore the file
to its original location, and go to the next step. If the problem is resolved, drag com.microsoft.Excel.plist to
the Trash .
7. Quit all Office for Mac applications.
8. On the Go menu, click Home .
9. Open Librar y .

NOTE
The Librar y folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

10. Open Preferences .


11. Open Microsoft , and then drag com.microsoft.Excel.prefs.plist to the desktop. If you cannot locate the file,
Excel is using the default preferences. Go to step 13.
12. Open Excel, and check whether the problem still occurs. If the problem still occurs, quit Excel, restore the file
to its original location, and go to Method 2 . If the problem is resolved, drag com.microsoft.Excel,prefs.plist
to the Trash .
Method 2
Use the "Repair Disk Permissions" option
You can use the Repair Disk Permissions option to troubleshoot permissions problems in Mac OS X 10.2 or later
versions. To use the Repair Disk Permissions option, follow these steps:
1. On the Go menu, click Utilities .
2. Start the Disk Utility program.
3. Click the primary hard disk drive for your computer.
4. Click the First Aid tab.
5. Click Repair Disk Permissions .

NOTE
The Disk Utility program only repairs software that is installed by Apple. This utility also repairs folders, such as the
Applications folder. However, this utility does not repair software that is in your home folder.

Open Excel and check if the issue is resolved. If it is not, continue to Method 3.
Method 3
Create and use a new user account
To create a new user account, use the following procedure.

NOTE
You many have to reinstall Office if you log on with a new account.
1. Click the Apple icon, and then click System Preferences .

2. Click Accounts .

3. Click the plus sign ("+") in the lower-left corner to open the new account window.

NOTE
If you are not the Administrator of the computer, click Click the lock to make changes . Log on by using your
Administrator user name and password, and then click OK .

4. Type the word Test for the user name, and leave the password box blank. Click Create Account . When you
receive a warning, click OK .
5. Click to select Allow User to Administer this computer . (If this option is not available, just go to the next
step).

6. Click the Apple icon, and then click Log Out name .

7. Log on with your Test account.


Open Excel and check if the issue is resolved. If you can save when you use a new user account, contact Apple
support to troubleshoot your existing account. If you do not want to keep your existing account, you can rename
the "Test" account that you create in the following procedure, and continue to use that account. If it is not, continue
to Method 4.
Method 4
Remove and then reinstall Office
For information about how to remove and then reinstall Office, see the following article:
Troubleshoot Office 2011 for Mac issues by completely uninstalling before you reinstall

Third-party disclaimer information


The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
The information and the solution in this document represent the current view of Microsoft Corporation on these
issues as of the date of publication. This solution is available through Microsoft or through a third-party provider.
Microsoft does not specifically recommend any third-party provider or third-party solution that this article might
describe. There might also be other third-party providers or third-party solutions that this article does not describe.
Because Microsoft must respond to changing market conditions, this information should not be interpreted to be a
commitment by Microsoft. Microsoft cannot guarantee or endorse the accuracy of any information or of any
solution that is presented by Microsoft or by any mentioned third-party provider.
Error message when you update external links that
contain a three-dimensional reference
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You create a workbook (workbook A) and save it as an .xlsx file in Microsoft Excel.
You create a defined name under the Formulas tab that refers to a three-dimensional reference.
You save workbook A.
You create another workbook (workbook B) and save it as an .xlsx file.
You add an external reference link to the defined name in workbook A.
You save workbook B, you close both workbooks, and then you open workbook B again.
You update external reference links when you are prompted to do this.
In this scenario, you receive one of the following error messages:

Microsoft Excel cannot find name "Defined Name".


There are two possible reasons: The name you specified may not be defined. The name you specified is defined as
something other than a rectangular cell reference. Check the name and try again.

We can't update some of the links in your workbook right now. You can continue without updating their values,
or edit the links you think are wrong.

Workaround
To work around this issue, use either of the following methods:
Save workbook A and workbook B as .xlsb files.
Do not add an external reference link to a defined name that refers to a 3-D reference in workbook B.
Unexpected behavior when you use different print
quality for sheets in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you print multiple worksheets in Microsoft Excel, multiple print jobs may be generated. This may cause the
following behavior to occur:
If you are printing to a file, only some of the sheets are printed to the file; remaining sheets are printed to
your printer.
If you are printing to a file, you may be prompted to enter the name of the output file multiple times.
As a result, more than one output file is generated. Each file contains part of the complete printout.
If you are using a Microsoft Visual Basic for Applications macro to print the sheets, the macro may fail
because there are multiple requests for names for the output files.
If you are printing to a network printer that is heavily used, your print jobs may be mixed in with other users'
print jobs.

Cause
This behavior occurs if you use different print quality settings to print the worksheets. When you print multiple
worksheets in Microsoft Excel, each change in the print quality setting forces Microsoft Excel to create a new print
job using that print quality setting.

NOTE
This behavior does not occur when you print the same worksheets in earlier versions of Microsoft Excel.

Workaround
To work around this behavior, make sure that all of the worksheets you are printing use the same print quality
settings. You can do this manually or you can use a Visual Basic macro to change the print quality.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.The following Visual Basic macro ensures that all
worksheets in a workbook use the same print quality settings:
Sub SetPrintQuality()

For Each xSheet In ActiveWorkbook.Sheets


xSheet.PageSetup.PrintQuality = 600
Next xSheet

End Sub

This macro assumes that your printer is capable of printing at 600 dots per inch (dpi). If your printer cannot print at
this resolution, change the value in the third line of the macro to an appropriate value for your printer (for example,
150, 300, 600, or 1200).
After you run this macro, all of the worksheets use the same print quality setting, and the behavior no longer
occurs.

Status
This behavior is by design.

More Information
The following steps demonstrate the behavior:
1. Create a new workbook that contains three worksheets, for example, Sheet1, Sheet2, and Sheet3.
2. In each worksheet, enter the following values:
Sheet1:
A1: Sheet1 - 300 DPI
Sheet2:
A1: Sheet2 - 600 DPI
Sheet3:
A1: Sheet3 - 300 DPI
3. Click Sheet1. On the File menu, click Page Setup , and then click the Page tab. In the Print Quality list, click
"300 dpi" and click OK .
4. Repeat step 3 for Sheet2 and Sheet3, setting the Print Quality to "600 dpi" and "300 dpi" respectively.
Note that each worksheet uses a different print quality than the worksheet that precedes it.
5. Right-click the sheet tab for Sheet1. On the shortcut menu, click Select All Sheets .
6. On the File menu, click Print . In the Printer section of the Print dialog box, click to select the Print To File
check box. Then, click OK .
The following behavior may occur:
If you are using a printer driver that is connected to the FILE: port, the Print To File dialog box appears three
times.
If you are using a printer driver that is connected to the LPT1:, LPT2:, or any other port that is connected to a
printer, the Print To File dialog box appears only once for Sheet1. The other worksheets are printed to the printer.
If you use a Visual Basic macro to print the worksheets, the Print To File dialog box may appear more than once.
If you are using the SendKeys method to send the name of the output file to the Print To File dialog box, the
macro may fail if the dialog box appears more than once.
If you change the print quality of Sheet3 to 600 dpi, two print jobs are generated: one at 300 dpi (Sheet1), and one
at 600 dpi (Sheet2 and Sheet3). If you change the print quality of Sheet1 to 600 dpi, two print jobs are generated:
one at 600 dpi (Sheet1 and Sheet2), and one at 300 dpi (Sheet3).
Large Address Aware capability change for Excel
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
32-bit versions of Microsoft Excel 2013 and Excel 2016 can take advantage of Large Address Aware (LAA)
functionality after installation of the latest updates. (see the "Resolution" section) This change lets 32-bit
installations of Excel 2016 consume double the memory when users work on a 64-bit Windows OS. The system
provides this capability by increasing the user mode virtual memory from 2 gigabytes (GB) to 4 GB. This change
provides 50 percent more memory (for example, from 2 GB to 3 GB) when users work on a 32-bit system.
This change may minimize the frequency of the errors that are described in the following error messages when
memory is constrained for 32-bit Excel installations:

Excel cannot complete this task with available resources. Choose less data or close other applications.

Out of Memory

Not enough System Resources to Display Completely

There isn't enough memory to complete this action. Try using less data or closing other applications. To
increase memory availability, consider:
* Using a 64-bit version of Microsoft Excel.
* Adding memory to your device.

Resolution
To enable this change, you must be running the latest version of Microsoft Office.

VERSIO N REL EA SE DAT E B UIL D N UM B ER

Office 365 for 2016 (Current Channel 5/3/2016 Build 16.0.6868.2060


Subscribers)

Office 365 for 2016 (First Release 6/14/2016 Build 16.0.6965.2058


Deferred Channel)

Office 365 for 2016 (Deferred Channel 10/11/2016 Build 16.0.6965.2092


Subscribers)

Office 365 for 2013 6/7/2016 Build 15.0.4833.1001

Excel 2013 (MSI) 6/7/2016 Build 15.0.4833.1000

Excel 2016 (MSI) 6/7/2016 Build 16.0.4393.1000


More Information
In the Windows 32-bit architecture, the address space for any program is shared between the application (user
mode memory) and the operating system (system or kernel memory). For a 32-bit process, the total amount of
addressable memory is 4 GB. By default, this memory is evenly divided between the process and the system. To
support programs that may require more memory, Windows supports the LAA memory layout. This functionality
is used only if the program can support it and identify itself as providing this support. LAA lets the system allocate
more process memory at the expense of keeping less memory for itself.
The current design change to 32-bit Excel makes it LAA-supportable and identifies it to Windows as an LAA
program. The maximum amount of memory that Windows can provide to the program depends on the system
bitness. 32-bit Windows systems can allocate no more than 3 GB for user mode memory. This shrinks available
system memory to 1 GB. (A 32-bit system cannot exceed 4 GB total RAM). On 64-bit Windows systems, the
addressable memory space for the system is much larger, and the system memory can be located outside the 4-GB
limit. Therefore, the maximum available user memory for a 32-bit process that's running on a 64-bit system is the
full 4-GB addressable range.
This change applies only to 32-bit programs. Therefore, it affects only 32-bit versions of Excel. If you're running a
64-bit version of Excel, this change has no effect.
64-bit operating system and 32-bit Office
If you're running 64-bit Windows, this change is applied automatically. No action by you is required. The available
memory for the Excel process is automatically doubled from 2 GB to 4 GB. This improves support for actions that
use lots of memory.
32-bit operating system and 32-bit Office
If you're running 32-bit Windows, this change cannot be applied automatically because it requires you to change
the mode in which the operating system runs. More specifically, to take advantage of LAA on 32-bit Windows, you
must enable the /3GB boot switch and then restart the system. For more information about this switch, see
Available switch options for the Windows XP and the Windows Server 2003 Boot.ini files.

NOTE
This manual change can be reversed by removing the /3GB boot switch.
By setting this switch, you reduce system memory resources to 1 GB. This may cause limitations in capabilities such as the
number of programs that can be run at the same time and the number of windows (for all programs) that can be opened
at the same time. Every system resource consumes some system memory. Therefore, although the /3GB switch expands
memory for program resources, it reduces the memory that's available for system resources. Be aware of this tradeoff
because it may trigger errors in other programs, not necessarily in the LAA program itself. 64-bit Windows systems do
not have this limitation because system resources can be held outside the 32-bit addressable range.
Also included in this update is ability to open Excel in its own instance by default. For more information, see How to force
Excel to open in a new instance by default.

FAQ
Can the LAA update be applied to Excel 2013?
LAA applies to Excel 2016 Click-to-Run, Excel 2013 MSI, and Excel 2016 MSI versions.
Can the LAA update be applied to the Excel 2016 MSI version?
Yes, Excel 2016 MSI can be applied after you install the June 7, 2016, update for Excel 2016.
Can I add more RAM to my computer to force LAA to exceed the standard limit (2 GB for 32-bit OS, 4 GB for 64-bit
OS)?
Adding more RAM does not affect the maximum addressable memory for LAA programs. If your programs require
more memory than the LAA maximums, you may want to move to a 64-bit system and a 64-bit version of Excel.
Will add-ins be affected by LAA?
Any code program can be affected by this change in subtle ways. Therefore, you will want to test add-ins to make
sure that they work correctly. There should be no hard break of compatibility for any functionality. Therefore,
correctly written add-ins should gain as much benefit from the change as does the host application itself. However,
if the add-in was never tested in LAA, any existing code bugs may now be exposed to the user for the first time.
Will this change fix out-of-memory-resource errors in workbooks?
Many factors can cause out-of-memory errors in workbooks. LAA can help reduce memory pressure but does not
solve every memory problem. Sometimes, one of the following actions may be required:
Review the workbook to determine whether the file requires changes. For information about how to do this, see
How to clean up an Excel workbook so that it uses less memory.
Users may have to move to a 64-bit version of the system and a 64-bit version of Excel. For more information,
see 64-bit editions of Office 2013.
Additional content
Memory usage in the 32-bit edition of Excel 2013 and 2016
How to troubleshoot crashing and not responding issues with Excel
Excel not responding, hangs, freezes or stops working
Legacy UML features are missing when you edit a
UML or database diagram in Visio 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
Assume that you try to edit a UML or database diagram that was created in Visio 2010 or in an earlier version of
Visio by using Microsoft Visio 2013. However, the legacy UML features are missing. Additionally, you receive the
following message in the message bar and in the information pane:

This UML Model Diagram was created with a feature that is not supported in this version of Visio. Editing of
the diagram is limited and may result in the diagram not working in earlier versions of Visio.

More Information
This issue occurs because Visio 2013 uses new UML and database modeling templates that are not used by Visio
2010 or by earlier versions of Visio. Therefore, you can edit a UML or database diagram that is created in Visio
2010 or in an earlier version of Visio by using Visio 2013. However, the diagram does not work correctly when you
open it in Visio 2010 or in an earlier version of Visio. Additionally, the diagram cannot be automatically upgraded to
a new format in Visio 2013.
Description of the limitations for working with arrays
in Excel
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In the versions of Microsoft Excel that are listed in the "Applies to" section, the "Calculation Specifications" Help
topic lists the limitations for working with an array. This article describes the limitations of arrays in Excel.

More Information
In Excel, arrays in worksheets are limited by available random access memory, by the total number of array
formulas, and by the "entire column" rule.
Available memory
The Excel versions that are listed in the "Applies to" section do not impose a limit on the size of worksheet arrays.
Instead, you are limited only by the available memory on your computer. Therefore, you can create very large
arrays that contain hundreds of thousands of cells.
The "entire column" rule
Although you can create very large arrays in Excel, you cannot create an array that uses a whole column or multiple
columns of cells. Because recalculating an array formula that uses a whole column of cells is time consuming, Excel
does not allow you to create this kind of array in a formula.

NOTE
There are 65,536 cells in a column in Microsoft Office Excel 2003 and in earlier versions of Excel. There are 1,048,576 cells in a
column in Microsoft Office Excel 2007.

Maximum array formulas


In Excel 2003 and in earlier versions of Excel, a single worksheet may contain a maximum of 65,472 array formulas
that refer to another worksheet. If you want to use more formulas, split the data into multiple worksheets so that
there are fewer than 65,472 references to a single worksheet.
For example, in Sheet1 of a workbook, you can create the following items:
65,472 array formulas that refer to Sheet2
65,472 array formulas that refer to Sheet3
65,472 array formulas that refer to Sheet4
If you try to create more than 65,472 array formulas that refer to a specific worksheet, the array formulas that you
enter after array formula number 65,472 may disappear when you enter them.
Array formula examples
The following is a list of array formula examples. To use these examples, create a new workbook, and then enter
each formula as an array formula. To do this, type the formula in the formula bar, and then press
CTRL+SHIFT+ENTER to enter the formula.
Excel 2007
A1: =SUM(IF(B1:B1048576=0,1,0))
The formula in cell A1 returns the result 1048576. This result is correct.
A2: =SUM(IF(B:B=0,1,0))
The formula in cell A2 returns the result 1048576. This result is correct.
A3: =SUM(IF(B1:J1048576=0,1,0))
The formula in cell A3 returns the result 9437184. This result is correct.

NOTE
The formula may take a long time to calculate the result because the formula is checking more than 1 million cells.

A4: =SUM(IF(B:J=0,1,0))
The formula in cell A4 returns the result 9437184. This result is correct.

NOTE
The formula may take a long time to calculate the result because the formula is checking more than 1 million cells.

A5: =SUM(IF(B1:DD1048576=0,1,0))
When you enter this formula in cell A5, you may receive one of the following error messages:
Excel ran out of resources while attempting to calculate one or more formulas. As a result,
these formulas cannot be evaluated.
To determine the unique number that is associated with the message that you receive, press CTRL+SHIFT+I.
The following number appears in the lower-right corner of this message:
101758
In this case, the size of the worksheet array is too large for the available memory. Therefore, the formula
cannot be calculated.
Additionally, Excel may appear to stop responding for a few minutes. This is because the other formulas that
you entered must recalculate their results.
After the results are recalculated, Excel responds as expected. The formula in cell A5 returns the value 0
(zero).
Excel 2003 and earlier versions of Excel
A1: =SUM(IF(B1:B65535=0,1,0))
The formula in cell A1 returns the result 65535. This result is correct.
A2: =SUM(IF(B:B=0,1,0))
The formula in cell A2 returns a #NUM! error because the array formula refers to a whole column of cells.
A3: =SUM(IF(B1:J65535=0,1,0))
The formula in cell A3 returns the result 589815. This result is correct.

NOTE
The formula may take a long time to calculate the result because the formula is checking almost 600,000 cells.

A4: =SUM(IF(B:J=0,1,0))
Like the formula in cell A2, the formula in cell A4 returns a #NUM! error because the array formula refers to
a whole column of cells.
A5: =SUM(IF(B1:DD65535=0,1,0))
When you enter the formula in cell A5, you may receive one of the following error messages:
Not enough memor y. Continue without Undo?
Not enough memor y.
In this case, the size of the worksheet array is too large for the available memory. Therefore, the formula
cannot be calculated.
Additionally, Excel may appear to stop responding for a few minutes. This is because the other formulas that
you entered must recalculate their results.
After the results are recalculated, Excel responds as expected. The formula in cell A5 returns the value 0
(zero).
Note that none of these formulas work in earlier versions of Excel. This is because the worksheet arrays that are
created by the formulas are all larger than the maximum limits in earlier versions of Excel. The following is a list of
some of the functions in Excel that use arrays:
LINEST()
MDETERM()
MINVERSE()
MMULT()
SUM(IF())
SUMPRODUCT()
TRANSPOSE()
TREND()

NOTE
The following facts about the functions are helpful to remember.
If any cells in an array are empty or contain text, MINVERSE returns the #VALUE! error value.
MINVERSE also returns the #VALUE! error value if the array does not have an equal number of rows and columns.
MINVERSE returns the #VALUE! error if the returned array exceeds 52 columns by 52 rows.
The MMULT function returns #VALUE! if the output exceeds 5460 cells.
The MDETERM function returns #VALUE! if the returned array is larger than 73 rows by 73 columns.
How to link a Visio drawing to a specific region in an
Excel worksheet
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to embed a link in a Microsoft Office Visio drawing to a named region within a Microsoft
Office Excel Worksheet.

More Information
About linking and embedding
Embed an object in your Visio drawing if you want to keep all the data that you want to work with in one file, or if
you want to transfer the file to other computers. You can embed data from programs that support the OLE 2
standard.
For example, if you want to distribute Excel worksheet data along with a Visio diagram, you can embed an Excel
worksheet into the drawing.
When you embed data from another program, Visio becomes the container for that data. The object embedded in
the Visio drawing becomes part of the Visio file and, when you edit the data, you open the object's program from
within the Visio drawing.
In addition, you can link the embedded data to maintain a connection between the embedded objects from other
programs and their original files. You can view the links and choose whether to update an object manually or
automatically as you edit or update the linked file in its original program. You can also change the file reference for
the linked object.
Example
To embed and link a named portion of an Excel worksheet into a Visio drawing, follow these steps:
1. Open your worksheet in Microsoft Excel.
2. Select the range of cells that you want to link to.
3. On the Insert menu, point to Name, and then click Define.
4. In the Define Name dialog box, type a unique name in the Names in Workbook box, and then click OK.
5. Save the Microsoft Excel Workbook.
6. Start Microsoft Visio and open your drawing.
7. On the Insert menu, click Object.
8. In the Insert Object dialog box, click Create from file and then click Browse. Navigate to your Excel
workbook, select it, and click Open.
9. Click to select the Link to file check box, and then click OK.

NOTE
Selecting the Link to file check box establishes a dynamic connection between the Visio drawing and another
program's file. When changes occur in the original file, you can update the linked file so that the most current version
of the object appears in the linked file.

10. Select the Excel worksheet. On the Edit menu, click Links.
11. In the Links dialog box, click Automatic under Update, and then click Change Source.
12. In the Item Name box, type the name defined in step 4, and then click Open.
13. Click Update Now, and then click Close.
Now, only the named area of the Excel worksheet is dynamically linked to the Visio drawing.
You can perform a similar process with a Microsoft Word document. In Word, you can use a unique bookmark
name to identify a portion of a document.

References
For more information about Visio, visit the following Microsoft Web site:
https://www.microsoft.com/office/visio
Excel statistical functions: LOGEST
3/30/2020 • 17 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes the LOGEST function in Microsoft Office Excel 2003 and in later versions of Excel. It illustrates
how the function is used, and it compares the results of the function in Excel 2003 and in later versions of Excel with
the results of the function in earlier versions of Excel.
LOGEST is evaluated by calling the related function, LINEST. Extensive changes to LINEST for Excel 2003 and for
later versions of Excel are summarized, and their implications for LOGEST are noted.
Microsoft Excel 2004 for Macintosh Information
The statistical functions in Microsoft Excel 2004 for Macintosh were updated by using the same algorithms as Excel
2003 and later versions of Excel. Any information in this article that describes how a function works or that
describes how a function was modified for Excel 2003 and for later versions of Excel also applies to Excel 2004 for
Macintosh.

More Information
The LOGEST(known_y's, known_x's, constant, statistics) function is used to perform regression where an exponential
curve is fitted. A least squares criterion is used, and LOGEST tries to find the best fit under that criterion. Known_y's
represent data on the dependent variable, and known_x's represents data on one or more independent variables.
The second argument is optional. If it is omitted, it is assumed to be an array of the same size as known_y's that
contain the values (1, 2, 3, ...).
Assuming that there are p predictor variables, LOGEST fits an equation of the following form:

y = b * (m1^x1) * (m2^x2) * … * (mp^xp)

Values of the coefficients, b, m1, m2, ..., mp that give the best fit to the y data are determined.
The last argument to LOGEST is set to TRUE if you want additional statistics, including various sums of squares, r-
squared, f-statistic, and standard errors of the regression coefficients. In this case, LOGEST must be entered as an
array formula. The last argument is optional. If it is omitted, it is interpreted as FALSE. The dimensions of the array
are five rows by a number of columns equal to the number of independent variables plus one if the third argument
is set to TRUE (plus 0 if the third argument is not set to TRUE).
If the third argument "constant" is set to TRUE, you want the regression model to include the constant b in the
previous equation in its model. If it is set to FALSE, the multiplicative constant b is excluded from the regression
model by forcing it equal to one. The third argument is optional. If it is omitted, it is interpreted as TRUE.
In this article, assume that data is arranged in columns so that known_y's is a column of y data and known_x's is
one or more columns of x data. The dimensions or lengths of each of these columns must be equal. All the
following observations are equally true if the data is not arranged in columns, but it is easier to discuss the most
frequently used case. Also, assume that the last argument to LOGEST is always TRUE and that you are always
interested in detailed output. This supposition helps to reveal numeric problems in earlier versions of Excel. Some
numeric problems are still present if you use FALSE for this argument.
This article uses the following examples to show how LOGEST relates to LINEST and to point out problems with
LINEST in earlier versions of Excel that translate into problems with LOGEST. While the code for LOGEST has not
been rewritten for Excel 2003 and for later versions of Excel, extensive changes and improvements in the code for
LINEST have been made. LOGEST effectively calls LINEST, executes LINEST, modifies LINEST output, and presents it
to you. Therefore, you should know about problems in the execution of LINEST.For additional information about
LINEST, click the following article number to view the article in the Microsoft Knowledge Base:
828533 Description of the LINEST function in Excel 2003 and in later versions of Excel
The LINEST Help file has also been revised for Excel 2003 and for later versions of Excel, and is useful for more
information.Because the focus of this article is on numeric problems in earlier versions of Microsoft Excel, this
article does not include many practical examples of LOGEST. The LOGEST Help file contains two useful examples.
Syntax

LOGEST(known_y's, known_x's, constant, statistics)

The arguments, known_y's and known_x's, must be arrays or cell ranges that have related dimensions. If known_y's
is one column by m rows, known_x's should be c columns by m rows where c is greater than or equal to one. C is
the number of predictor variables; m is the number of data points. Similar relationships must hold if known_y's is
laid out in a single row; in that case, known_x's should be in r rows. (R must be greater than or equal to 1.) Constant
and statistics are logical arguments that must be set to TRUE or FALSE. In Excel, these arguments must be set to 0 or
1 and are interpreted by Excel as FALSE or TRUE, respectively. The last three arguments to LOGEST are all optional. If
you omit the second argument, LOGEST assumes a single predictor that contains the entries {1, 2, 3, ...}. If you omit
the third argument, it is interpreted as TRUE. If you omit the fourth argument, it is interpreted as FALSE.
The most common use of LOGEST includes two ranges of cells that contain the data, such as LOGEST(A1:A100,
B1:F100, TRUE, TRUE). Because there is typically more than one predictor variable, the second argument in this
example contains multiple columns. In this example, there are 100 subjects, one dependent variable value,
known_y's, for each subject, and five dependent variable values, known_x's, for each subject.
Example of usage
Two separate Excel worksheet examples are provided to illustrate the following key concepts:
How LOGEST interacts with LINEST
Problems in Microsoft Excel 2002 and in earlier versions of Excel when the third argument to LOGEST or LINEST
is set to FALSE or is omitted.
Problems because of collinear known_x's in LOGEST or LINEST in Excel 2002 and earlier.
For additional information about the second and third concepts in this list, click the following article number to
view the article in the Microsoft Knowledge Base:
828533 Description of the LINEST function in Excel 2003 and in later versions of Excel
To illustrate LOGEST with the third argument set to FALSE, follow these steps:
1. Create a blank Excel worksheet, and then copy the table later in this section.
2. Click cell A1 in your blank Excel worksheet. Then, paste the entries so that the table fills cells A1:H17 in your
worksheet.
3. After you paste the table into your new Excel worksheet, click Paste Options , and then click Match
Destination Formatting .
4. While the pasted range is still selected, use one of the following procedures, as appropriate for the version of
Excel that you are running:
In Microsoft Office Excel 2007, click the Home tab, click Format in the Cells group, and then click
AutoFit Column Width .
In Excel 2003 and in earlier versions of Excel, point to Column on the Format menu, and then click
AutoFit Selection .

T H IRD
A RGUM EN T
SET TO
FA L SE

Excel 2002
and earlier
versions of
Excel

Excel 2003
and later
versions of
Excel

Y's X's LOGEST: LOGEST:

=EXP(A11) 1 197.495201 1 197.495201 1


079493 079493

=EXP(A12) 2 1.23717914 #N/A 1.23717914 #N/A


826348 826348

=EXP(A13) 3 - 4.62910049 0.90125082 4.62910049


20.4285714 886276 2909809 886276
285714

- 2 18.2533333 2
1.90666666 333333
666667

- 42.8571428 391.142857 42.8571428


40.8571428 571429 142857 571429
571429

LN(Y's) X's LINEST: LINEST:

11 =B4 5.28571428 0 5.28571428 0


571429 571429

12 =B5 1.23717914 #N/A 1.23717914 #N/A


826348 826348

13 =B6 - 4.62910049 0.90125082 4.62910049


20.4285714 886276 2909809 886276
285714
T H IRD
A RGUM EN T
SET TO
FA L SE

- 2 18.2533333 2
1.90666666 333333
666667

- 42.8571428 391.142857 42.8571428


40.8571428 571429 142857 571429
571429

using EXP: =EXP(G11) =EXP(H11)

Data for LOGEST are in cells A4:B6. Detailed results for Excel 2002 and for earlier versions of Excel and for Excel
2003 and for later versions of Excel are presented in cells D4:E8 and cells G4:H8, respectively. Cells A11:B13 show
the same known_x's, but the known_y's in cells A4:A6 have been transformed by taking their natural logarithm by
using the Excel LN function. LINEST is then called on this transformed data, and the results are displayed in cells
G11:H15. Notice that the results in cells G12:H15 are the same as the LOGEST results in cells G5:H8. The LINEST
coefficients in cells G11:H11 are transformed by exponentiation. That is, the LINEST coefficients in the cells are
transformed by essentially using the Excel EXP function to calculate the LOGEST coefficients in cells G4:H4. You can
verify this relationship by using the EXP function in cells G17:H17. To summarize how LOGEST and LINEST interact,
observe the following sequence of steps:
1. You call LOGEST(known_y's, known_x's, constant, TRUE).
2. LOGEST calls LINEST(LN of known_y's, known_x's, constant, TRUE).
3. LOGEST receives the results table from this call to LINEST.
4. LOGEST modifies LINEST coefficients in the first row of LINEST result table by exponentiation. For example,
replace each LINEST coefficient, m, by EXP(m).
5. LOGEST returns this modified LINEST result table to you as the LOGEST result table.
If LOGEST is to return appropriate results, LINEST must generate appropriate results in step 3. Examine cells
D13:D15. Cell D13 contains an r-squared value, cell D14 contains an f statistic, and cell D15 contains the LINEST
regression sum of squares.
In Excel 2002 and in earlier versions of Excel, when LINEST is called with its third argument set to FALSE, it always
computes a regression sum of squares that is not correct because it uses a formula that is not correct. This problem
has been corrected in Excel 2003 and in later versions of Excel. Notice that the values in the first two rows of the
output table are not affected by this problem. In Excel 2002 and in earlier versions of Excel, the LINEST article
describes a workaround to generate the appropriate values in the last three rows of the LINEST output table. If you
are using an earlier version of Excel and you want to set the third argument to LOGEST to FALSE, we recommend
that you explicitly execute steps 2 and 3 of the previous procedure, and then use the workaround in the LINEST
article to modify the last three rows of the LINEST output table.
Problems occur because of collinear known_x's in LOGEST or LINEST in Excel 2002 and in earlier versions of Excel.
Predictor columns, known_x's are collinear if at least one column, c, can be expressed as a sum of multiples of
others (c1, c2, and other values). Column c is called redundant because the information that it contains can be
constructed from the columns (c1, c2, and other values). The fundamental principle in the presence of collinearity is
that results should not be affected by whether a redundant column is included in the original data or removed from
the original data. Because the version of LINEST in Excel 2002 and in earlier versions of Excel did not look for
collinearity, this principle was easily violated. Predictor columns are nearly collinear if at least one column, c, can be
expressed as almost equal to a sum of multiples of others (c1, c2, and other values). In this case, "almost equal"
means a very small sum of squared deviations of entries in c from corresponding entries in the weighted sum of
c1, c2, and other values. For example, "very small" might be less than 10^(-12).
To illustrate LOGEST collinearity, follow these steps:
1. Create a blank Excel worksheet, and then copy the following table.
2. Click cell A1 in your blank Excel worksheet. Then, paste the entries so that the table fills cells A1:N27 in your
worksheet.
3. After you paste the table into your new Excel worksheet, click Paste Options , and then click Match
Destination Formatting .
4. While the pasted range is still selected, use one of the following procedures, as appropriate for the version of
Excel that you are running:
In Excel 2007, click the Home tab, click Format in the Cells group, and then click AutoFit Column
Width .
In Excel 2003 and in earlier versions of Excel, point to Column on the Format menu, and then click
AutoFit Selection .

Y 'S X'S

=EXP(A 1 2 1
23)

=EXP(A 3 4 1
24)

=EXP(A 4 5 1
25)

=EXP(A 6 7 1
26)

=EXP(A 7 8 1
27)

LOGES Values Values


T using for for
column Excel Excel
s B,C: 2002 2003
and for and for
earlier later
version version
s of s of
Excel: Excel:

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 1 1.9307 1.2672


ST(A2: ST(A2: ST(A2: 23372 41011
A6,B2: A6,B2: A6,B2: 0034 29183
C6,TRU C6,TRU C6,TRU
E,TRUE) E,TRUE) E,TRUE)
Y 'S X'S

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 0 0.0438 0.2066


ST(A2: ST(A2: ST(A2: 59649 52964
A6,B2: A6,B2: A6,B2: 12280 72613
C6,TRU C6,TRU C6,TRU 7 6
E,TRUE) E,TRUE) E,TRUE)

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 0.9868 0.2094 #N/A


ST(A2: ST(A2: ST(A2: 42105 26954
A6,B2: A6,B2: A6,B2: 26315 14584
C6,TRU C6,TRU C6,TRU 8 8
E,TRUE) E,TRUE) E,TRUE)

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 225 3 #N/A


ST(A2: ST(A2: ST(A2:
A6,B2: A6,B2: A6,B2:
C6,TRU C6,TRU C6,TRU
E,TRUE) E,TRUE) E,TRUE)

=LOGE =LOGE =LOGE #NUM! #NUM! #NUM! 9.8684 0.1315 #N/A


ST(A2: ST(A2: ST(A2: 21052 78947
A6,B2: A6,B2: A6,B2: 63158 36842
C6,TRU C6,TRU C6,TRU 1
E,TRUE) E,TRUE) E,TRUE)

LOGES
T using
column
B only

=LOGE =LOGE 1.9307 1.2672 1.9307 1.2672


ST(A2: ST(A2: 23372 41011 23372 41011
A6,B2: A6,B2: 0034 29183 0034 29183
B6,TRU B6,TRU
E,TRUE) E,TRUE)

=LOGE =LOGE 0.0438 0.2066 0.0438 0.2066


ST(A2: ST(A2: 59649 52964 59649 52964
A6,B2: A6,B2: 12280 72613 12280 72613
B6,TRU B6,TRU 71 6 7 6
E,TRUE) E,TRUE)

=LOGE =LOGE 0.9868 0.2094 0.9868 0.2094


ST(A2: ST(A2: 42105 26954 42105 26954
A6,B2: A6,B2: 26315 14584 26315 14584
B6,TRU B6,TRU 8 8 8 8
E,TRUE) E,TRUE)

=LOGE =LOGE 224.99 3 225 3


ST(A2: ST(A2: 99999
A6,B2: A6,B2: 99999
B6,TRU B6,TRU
E,TRUE) E,TRUE)
Y 'S X'S

=LOGE =LOGE 9.8684 0.1315 9.8684 0.1315


ST(A2: ST(A2: 21052 78947 21052 78947
A6,B2: A6,B2: 63158 36842 63158 36842
B6,TRU B6,TRU 1 1
E,TRUE) E,TRUE)

Y's X's

1 1 2

2 3 4

3 4 5

4 6 7

5 7 8

LINEST Values Values


using for for
column Excel Excel
s B,C: 2002 2003
and for and for
earlier later
version version
s of s of
Excel: Excel:

=LINES =LINES =LINES #NUM! #NUM! #NUM! 0 0.6578 0.2368


T(A23: T(A23: T(A23: 94736 42105
A27,B2 A27,B2 A27,B2 84210 26315
3:C27,T 3:C27,T 3:C27,T 5 8
RUE,TR RUE,TR RUE,TR
UE) UE) UE)

=LINES =LINES =LINES #NUM! #NUM! #NUM! 0 0.0438 0.2066


T(A23: T(A23: T(A23: 59649 52964
A27,B2 A27,B2 A27,B2 12280 72613
3:C27,T 3:C27,T 3:C27,T 7 6
RUE,TR RUE,TR RUE,TR
UE) UE) UE)

=LINES =LINES =LINES #NUM! #NUM! #NUM! 0.9868 0.2094 #N/A


T(A23: T(A23: T(A23: 42105 26954
A27,B2 A27,B2 A27,B2 26315 14584
3:C27,T 3:C27,T 3:C27,T 8 8
RUE,TR RUE,TR RUE,TR
UE) UE) UE)
Y 'S X'S

=LINES =LINES =LINES #NUM! #NUM! #NUM! 225 3 #N/A


T(A23: T(A23: T(A23:
A27,B2 A27,B2 A27,B2
3:C27,T 3:C27,T 3:C27,T
RUE,TR RUE,TR RUE,TR
UE) UE) UE)

=LINES =LINES =LINES #NUM! #NUM! #NUM! 9.8684 0.1315 #N/A


T(A23: T(A23: T(A23: 21052 78947
A27,B2 A27,B2 A27,B2 63158 36842
3:C27,T 3:C27,T 3:C27,T 1
RUE,TR RUE,TR RUE,TR
UE) UE) UE)

LINEST
using
column
B only

=LINES =LINES 0.6578 0.2368 0.6578 0.2368


T(A23: T(A23: 94736 42105 94736 42105
A27,B2 A27,B2 84210 26315 84210 26315
3:B27,T 3:B27,T 5 9 5 8
RUE,TR RUE,TR
UE) UE)

=LINES =LINES 0.0438 0.2066 0.0438 0.2066


T(A23: T(A23: 59649 52964 59649 52964
A27,B2 A27,B2 12280 72613 12280 72613
3:B27,T 3:B27,T 71 6 7 6
RUE,TR RUE,TR
UE) UE)

=LINES =LINES 0.9868 0.2094 0.9868 0.2094


T(A23: T(A23: 42105 26954 42105 26954
A27,B2 A27,B2 26315 14584 26315 14584
3:B27,T 3:B27,T 8 8 8 8
RUE,TR RUE,TR
UE) UE)

=LINES =LINES 224.99 3 225 3


T(A23: T(A23: 99999
A27,B2 A27,B2 99999
3:B27,T 3:B27,T
RUE,TR RUE,TR
UE) UE)

=LINES =LINES 9.8684 0.1315 9.8684 0.1315


T(A23: T(A23: 21052 78947 21052 78947
A27,B2 A27,B2 63158 36842 63158 36842
3:B27,T 3:B27,T 1 1
RUE,TR RUE,TR
UE) UE)

Data is included in cells A1:C6. Entries in cells D2:D6 are not part of the data. These entries are used for illustration
in the next paragraph. Results of two different calls to LOGEST are shown for Excel 2002 and for earlier versions of
Excel in cells E8:G20, and for Excel 2003 and for later versions of Excel in cells I8:K20.
The first model, in rows 8 to 13, uses columns B and C as predictors and requests Excel to model the constant
where the third argument set to TRUE. Excel then effectively inserts an additional predictor column that looks just
like cells D2:D6. Notice that entries in column C in rows 2 through 6 are exactly equal to the sum of corresponding
entries in columns B and D. Therefore, collinearity occurs because column C is a sum of multiples of column B, and
the Excel additional column of 1 is inserted because the third argument to LOGEST was omitted or TRUE that is the
"normal" case. This collinearity causes numeric problems, and Excel 2002 and earlier versions of Excel cannot
compute results and the LOGEST output table is filled with #NUM!.
Any version of Excel can handle the second model in rows 15 through 20. Collinearity does not occur with this
model, and the user requests Excel to model the constant. This example is included here for the following two
reasons:
This example is the most typical of practical cases: no collinearity is present and the third argument to LOGEST is
either TRUE or omitted. If you have an earlier version of Excel, numerical problems are not likely to occur in the
most common practical case.
Second, this example is used to compare the behavior of Excel 2003 and of later versions of Excel in the two
models. Most major statistical packages analyze collinearity, remove a column that is a sum of multiples of
others from the model, and alert you with a message like "Column C is linearly dependent on other predictor
columns and has been removed from the analysis."
In Excel 2003 and in later versions of Excel, you receive the information in the LOGEST output table, not in a
message or in a text string. A regression coefficient that is one and whose standard error is "zero" corresponds to a
coefficient for a column that has been removed from the model. (See the entries in cells I9:I10 for an example.) In
this case, LOGEST removes column C (coefficients in cells I9, J9, K9 correspond to columns C, B, and in the Excel
constant column, respectively). When collinearity occurs, any one of the columns involved may be removed.
In the second model in rows 16 to 20, collinearity does not occur, and none of the columns are removed. The
predicted y values are the same in both models because removing a redundant column that is a sum of multiples of
others (the first and second models) does not reduce the goodness of fit of the resulting model. Such columns are
removed precisely because they represent no value added in trying to find the best least squares fit. Also, in the
output of Excel 2003 and of later versions of Excel in cells I8:K20, the last three rows of the output tables are the
same, and the entries in cells I16:J17 and cells J9:K10 coincide. This demonstrates that the same results are
obtained when column C is included in the model but found to be redundant (output in I9:K13) as when column C
was eliminated before LOGEST was run (output in I16:J20). This output satisfies the fundamental principle in the
presence of collinearity.
Collinearity is identified in LINEST in Excel 2003 and in later versions of Excel by using a completely different
approach, QR Decomposition, to solve for the regression coefficients. The LINEST article describes a walkthrough of
the QR Decomposition algorithm for a small example.
Summary of results in earlier versions of Excel
LOGEST results are adversely affected in Excel 2002 and in earlier versions of Excel by results in LINEST that are not
accurate.
LINEST used a formula that is not correct for the total sum of squares when the third argument in LINEST is set to
FALSE. This formula resulted in values of the regression sum of squares that are not correct. Also, the values that
depend on the regression sum of squares, r squared and the f statistic, are not correct. (See the workaround in the
LINEST article if you are using an earlier version of Excel.) Therefore, users of LOGEST must use this workaround
when they call LOGEST with the third argument set to FALSE.
Regardless of the value of the third argument, LINEST was calculated by using an approach that did not address
collinearity issues. Collinearity caused round off errors, standard errors of regression coefficients that were not
appropriate, and degrees of freedom that were not appropriate. In some cases, round off errors were sufficiently
severe that the LINEST output table was filled with #NUM!. LINEST generally provides acceptable results if the
following conditions are true:
Users are confident that the predictor columns are not collinear (or nearly collinear).
The third argument to LINEST is TRUE or is omitted.
Therefore, LOGEST generally provides acceptable results if the predictor columns are not collinear (or nearly
collinear) and if the third argument to LOGEST is TRUE or is omitted.
Summary of results in Excel 2003 and in later versions of Excel
The following improvements in LINEST have been made:
The formula for the total sum of squares where the third argument to LINEST is set to FALSE was corrected.
The QR Decomposition method is used to determine the regression coefficients.
QR Decomposition has two advantages:
Better numeric stability (or generally smaller round off errors).
Analysis of collinearity issues.
All the problems with Excel 2002 and with earlier versions of Excel that are discussed in this article have been
corrected in Excel 2003 and in later versions of Excel.
Conclusions
The performance of LOGEST has been improved because LINEST has been greatly improved in Excel 2003 and in
later versions of Excel. If you use an earlier version of Excel, verify that the predictor columns are not collinear
before you use LOGEST. Also, be careful to use the workaround that is presented in the LINEST article when the
third argument to LOGEST is set to FALSE. Although this information in this article and in the LINEST article may
seem alarming to users of Excel 2002 and of earlier versions of Excel, collinearity is a problem in a small percentage
of cases. Calls to LOGEST with the third argument set to FALSE are probably also relatively rare in practice. Earlier
versions of Excel give acceptable LOGEST results when there is no collinearity and when LOGEST's third argument is
TRUE or omitted.

NOTE
The improvements in LINEST also affect the Analysis ToolPak's linear regression tool (which calls LINEST) and two other related
Excel functions: TREND and GROWTH.
Long numbers are displayed incorrectly in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you enter a long number (such as a credit card number) in an Excel cell, the number is not displayed correctly
in Excel. For example,

NOTE
Default number format in Excel is General therefore you can display up to 11 digits in a cell.

Workaround
To work around this issue, use one of the following methods.
Method 1: Format the cell as text
To do this, follow these steps:
1. Right-click target cell, and then click Format Cells .

2. On the Number tab, select Text , and then click OK .


3. Then type a long number. (Be sure to set the cell format before you type the number)

4. If you do not want to see the warning arrows, click the small arrow, and then click Ignore Error .

Method 2: Use a single quotation mark


When you enter a long number, type a single quotation mark (' ) first in the cell, and then type the long number.
For example, type '1234567890123456789 and the quotation mark will not be displayed after you press ENTER.

Your opinion is important to us!Do not hesitate to tell us what you think of this article using the comment field
located at the bottom of the document. This will allow us to improve the content. Thank you in advance!
How to loop through a list of data on a worksheet by
using macros in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
When you write a Microsoft Visual Basic for Applications (VBA) macro, you may have to loop through a list of data
on a worksheet. There are several methods for performing this task. The "More Information" section of this article
contains information about the methods that you can use to search the following types of lists:
A list that contains a known, constant number of rows.
A dynamic list, or a list with an unknown number of rows.
A list that contains a specific record.

More Information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. The following code samples assume that the list has a
header row that starts in cell A1 and data that starts in cell A2.
To Search a List with a Constant, Known Number of Rows
This code moves down column A to the end of the list:

Sub Test1()
Dim x As Integer
' Set numrows = number of rows of data.
NumRows = Range("A2", Range("A2").End(xldown)).Rows.Count
' Select cell a1.
Range("A2").Select
' Establish "For" loop to loop "numrows" number of times.
For x = 1 To NumRows
' Insert your code here.
' Selects cell down 1 row from active cell.
ActiveCell.Offset(1, 0).Select
Next
End Sub

To Search a Dynamic List or a List with an Unknown Number of Rows


This code moves down column A to the end of the list. (This code assumes that each cell in column A contains an
entry until the end.)
Sub Test2()
' Select cell A2, *first line of data*.
Range("A2").Select
' Set Do loop to stop when an empty cell is reached.
Do Until IsEmpty(ActiveCell)
' Insert your code here.
' Step down 1 row from present location.
ActiveCell.Offset(1, 0).Select
Loop
End Sub

Note If there are empty cells in column A throughout the data, modify this code to account for this condition. Make
sure that the empty cells are a consistent distance apart. For example, if every other cell in column A is empty (for
example, this situation may occur if every 'record' uses two rows, with the second row indented one cell), this loop
can be modified as follows:

' Set Do loop to stop when two consecutive empty cells are reached.
Do Until IsEmpty(ActiveCell) and IsEmpty(ActiveCell.Offset(1, 0))
' Insert your code here.
'
' Step down 2 rows from present location.
ActiveCell.Offset(2, 0).Select
Loop

To Search a List for a Specific Record


This code moves down column A to the end of the list:

Sub Test3()
Dim x As String
Dim found As Boolean
' Select first line of data.
Range("A2").Select
' Set search variable value.
x = "test"
' Set Boolean variable "found" to false.
found = False
' Set Do loop to stop at empty cell.
Do Until IsEmpty(ActiveCell)
' Check active cell for search value.
If ActiveCell.Value = x Then
found = TRUE
Exit Do
End If
' Step down 1 row from present location.
ActiveCell.Offset(1, 0).Select
Loop
' Check for found.
If found = True Then
Msgbox "Value found in cell " & ActiveCell.Address
Else
Msgbox "Value not found"
End If
End Sub
Macro to extract data from a chart in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you can retrieve data from a chart even when the data is in an external worksheet or workbook.
This is useful in situations where the chart was created from, or linked to, another file that is unavailable or has
been damaged in some way. When the source data to a chart is lost, the data can still be retrieved from the chart
itself, by using a Microsoft Visual Basic for Applications macro.

More Information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
The following sample macro places the chart's source data in a worksheet called "ChartData" in the active
workbook, beginning in the first column and first row.
1. Enter the following macro code in a module sheet:
Sub GetChartValues()
Dim NumberOfRows As Integer
Dim X As Object
Counter = 2

' Calculate the number of rows of data.


NumberOfRows = UBound(ActiveChart.SeriesCollection(1).Values)

Worksheets("ChartData").Cells(1, 1) = "X Values"

' Write x-axis values to worksheet.


With Worksheets("ChartData")
.Range(.Cells(2, 1), _
.Cells(NumberOfRows + 1, 1)) = _
Application.Transpose(ActiveChart.SeriesCollection(1).XValues)
End With

' Loop through all series in the chart and write their values to
' the worksheet.
For Each X In ActiveChart.SeriesCollection
Worksheets("ChartData").Cells(1, Counter) = X.Name

With Worksheets("ChartData")
.Range(.Cells(2, Counter), _
.Cells(NumberOfRows + 1, Counter)) = _
Application.Transpose(X.Values)
End With

Counter = Counter + 1
Next

End Sub

2. Insert a new worksheet into your workbook and rename it to "ChartData" (without the quotation marks).
3. Select the chart from which you want to extract the underlying data values.

NOTE
The chart can either be embedded on a worksheet or on a separate chart sheet.

4. Run the GetChartValues macro.


The data from the chart is placed in the "ChartData" worksheet.
Steps to Link the Chart to the Recovered Data
To have the chart be interactive with the recovered data, you need to link the chart to the new data sheet rather
than retain the links to the missing or damaged workbook.
1. Select the chart, and click a series to find the sheet name to which the chart is linked in the damaged or
missing workbook. The sheet name appears in the series formula in the formula bar.

NOTE
The sheet name may follow the workbook name, which is enclosed in square brackets such as "[Book1]," and precede
the exclamation point "!" (or apostrophe and exclamation point "'!") that indicates the beginning of a cell reference.
The sheet name includes only the characters between the closed square bracket symbol "]" and the exclamation point
(or apostrophe and exclamation point). Leave out any apostrophe if it is immediately before the exclamation mark,
because an apostrophe can not be the last character in a sheet name.
2. Double-click the tab of the new sheet called ChartData.
3. Type the original sheet name from step 1 over the highlighted "ChartData" and press ENTER. This name
must be the same as the sheet name from the damaged or missing workbook.
4. If you have not saved this file with the chart and data sheet, save the file.
5. In Excel 2003 or Excel 2002, click Links on the Edit menu, and then click Change Source.
In Excel 2007, click the Data tab, click Edit Links in the Connenctions group, and then click Change
Source .
6. In the Source File box, select the link to change, and then click Change Source.
7. In the Change Links dialog box, select the new file with the recovered data and chart, and then click OK.
8. If you receive the following error message
Your formula contains an invalid external reference to a worksheet.
it is likely that the sheet name that you typed in step 3 is not the same as the original. Go back to step 1.
9. The Source File box may now be blank. This indicates that all links point to the active file rather than the
missing or damaged file. Click Close.
The chart now references and interacts with the recovered data on the renamed sheet in the active workbook.
Excel macros that protect and unprotect worksheets
may run slowly
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Macros in Microsoft Excel 2013 run slower than in earlier versions of Excel. For example, you may notice that .xlsm
files open very slowly or that it takes a long time to move to the next cell when you enter data in cells.

Cause
Because of a new, stronger hashing algorithm (SHA-512) for encryption in Microsoft Office 2013, macros that
protect worksheets and unprotect worksheets run slower if they protect or unprotect several worksheets
sequentially.

Resolution
This behavior is by design. It's not noticeable when you're manually protecting a worksheet. However, if you have
code that protects or unprotects work sheets repeatedly, this behavior can cause a performance issue.

More Information
The delay is caused by a stronger hashing algorithm (SHA-512) than is present in earlier versions. (The default
hashing algorithm to protect files by requiring a password in Office 2010 is SHA1.) This change can cause a
performance issue for some Office developers.
For more information about worksheet protection, click the following article number to view the article in the
Microsoft Knowledge Base:
822924 Description of Office features that are intended to enable collaboration and that are not intended to
increase security
Make Paste Options button disappear after you paste
in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
After you perform a copy-and-paste operation in Microsoft Excel, the Paste Options button is displayed near the
paste destination. This step-by-step article explains how to make the Paste Options button disappear and how to
prevent options from appearing.
How to make the Paste Options button disappear
The Paste Options button is displayed until one of the following actions occurs:
You perform an action that can be undone. This action differs from those that are listed in the Paste Options
list.

NOTE
An action that can be undone is an action that is added to the undo stack. When you click the Undo button, you see
the list of actions that can be undone.

The Clipboard contents change because you copy information in another Microsoft Office program.
You use the Undo command.
You type something in the worksheet or document.
In some situations, you can also press ESC to make the Paste Options button disappear.

NOTE
These conditions also apply to the Auto Fill Options and the Insert Options that appear in Excel.

How to prevent options from appearing


To prevent the paste options, the auto fill options, and the insert options from appearing, follow these steps, as
appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007
1. Click the Microsoft Office Button , and then click Excel Options .
2. Click Advanced .
3. Under Cut, copy, and paste , use one or both of the following procedures:
To turn off Paste Options and Auto Fill Options, click to clear the Show Paste Options buttons check
box.
To turn off Insert Options, click to clear the Show Inser t Options buttons check box.
4. Click OK .
Microsoft Office Excel 2003 and earlier versions of Excel
1. On the Tools menu, click Options.
2. Click the Edit tab.
3. Use one or both of the following procedures:
To turn off Paste Options and Auto Fill Options, click to clear the Show Paste Options buttons check
box.
To turn off Insert Options, click to clear the Show Inser t Options buttons check box.

References
For more information on Paste Options, see How to use the Paste Options button in Excel.
How to manage multiple windows in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you can open multiple windows into a workbook (document). By doing so, you can gain access
to different areas of your workbook simultaneously.

More information
Opening multiple windows into a workbook provides an easy way to view or work with different areas of your
workbook simultaneously. Any changes made in any of the windows are made to the workbook.
You can save multiple windows into a workbook by saving it while multiple windows are open. To remove windows
that have been saved with your workbook, close all multiple windows, and then save your document.
To open multiple windows into a workbook, follow these steps:
1. Start Microsoft Excel and open any workbook.
2. In Microsoft Office Excel 2007, click the View tab, and then click New Window in the Window group.
In Microsoft Office Excel 2003 and in earlier versions of Excel, click New Window on the Window menu.
Notice that a new window displays the active workbook. You can browse to different areas of the workbook in the
separate windows, and changes made in one window are evident in the others.

NOTE
The name on the title bar of each window changes to indicate that these are multiple windows of the same workbook (for
example, Book1:1 and Book1:2).

To close multiple windows, click the Close button in the upper-right corner of the window or press CTRL+F4.

NOTE
When you have closed all multiple windows, the workbook name no longer displays a window number.

Excel also allows you to create custom views; a custom view gives you a great deal of flexibility in viewing and
editing your workbooks.
Memory usage in the 32-bit edition of Excel 2013 and
2016
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you upgrade to Microsoft Office 2013 or 2016, you experience one or more of the following symptoms:
The computer uses more memory when you open multiple Microsoft Excel files, save Excel files, or make
calculations in Excel workbooks.
You can no longer open as many Excel workbooks in the same instance as you could before you upgraded to
Excel.
When you insert columns in an Excel workbook, you receive an error about available memory.
When you are working with an Excel worksheet, you receive the following error message:

There isn't enough memory to complete this action.


Try using less data or closing other applications.
To increase memory availability, consider:
- Using a 64-bit version of Microsoft Excel.
- Adding memory to your device

Cause
Although improvements in Office 2013/2016 did not significantly affect system requirements, Office
2013/2016 does use more available system resources than Office 2010 did. The limit of virtual address space for
32-bit editions of Windows-based applications is 2 gigabytes (GB). For Excel, this space is shared by the Excel
application itself together with any add-ins that run in the same process. The size of the worksheet itself also affects
the usage of virtual address space. Because Excel loads the worksheet into addressable memory, some worksheets
that have a file size of less than 2 GB may still require Excel to use more than 2 GB of addressable memory. This
situation results in the error message that is mentioned in the "Symptoms" section.

Resolution
Excel expert users who work with complex Excel worksheets can benefit from using the 64-bit edition of Office
2013/2016. This is because the 64-bit edition of Office does not impose hard limits on file size. Instead, workbook
size is limited only by available memory and system resources. On the other hand, the 32-bit edition of Office is
limited to 2 GB of virtual address space, and this space is shared by Excel, the workbook, and add-ins that run in the
same process. (Worksheets smaller than 2 GB on disk might still contain enough data to occupy 2 GB or more of
addressable memory.)
The following options can help improve performance in Excel 2013/2016:
Excel users who regularly work with large, complex Excel worksheets may benefit from using the 64-bit edition
of Office 2013 because 64-bit editions of Windows-based applications can address up to 8 terabytes (TB) of
memory. Learn more about 64-bit editions of Office 2013.
The 2-GB limitation is per windows process instance of Excel. You can run multiple files in one instance. However,
if the files are really large and have to be open, consider opening multiple instances for the other files. For
information about limits that you may encounter, see You cannot paste any attributes into a workbook in
another instance of Excel.
If you are running Windows 7 or Windows 2008, we suggest that you install Platform update for Windows 7
SP1 and Windows Server 2008 R2 SP1.
Test performance without COM add-ins. COM add-ins can use memory at the expense of the 2-GB limitation.
For testing, disable COM add-ins, and then start Excel. If COM add-ins are causing the memory issue, contact
your third-party vendor for an updated copy or a 64-bit version of the COM add-ins.
Disable hardware graphics acceleration. This shuts off animations. To do this, on the File menu, click Options ,
click Advanced , click Display , and then select Disable hardware graphics acceleration .
Change your workbook to streamline areas that use memory unnecessarily. For suggested changes, see How to
clean up an Excel 2013 workbook so that it uses less memory.

NOTE
32-bit Excel 2016 will be enabled for Large Address Aware with update May 4, 2016 build number 16.0.6868.2060 for the
O365 Current Channel subscribers. For more information on Large Address Aware Update click here.

More Information
You can use Process Explorer to check whether you are approaching the 2-GB limit in Excel. Consider anything over
1.75 GB as a maximum for the 32-bit edition of Excel. The column to focus is not there by default and can be added
by Choosing View> Select Columns> Process Memory tab and clicking on Virtual Size.
Before moving to a 64-bit version of Office, please review the information at this link:
https://technet.microsoft.com/library/ee681792.aspx
Other Resources
How to troubleshoot "available resources" errors in Excel
How to minimize the size of an XML Spreadsheet file
in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
When you save an Excel workbook as an XML Spreadsheet file (.xml), and the workbook contains large ranges of
special formatting, the size of the file may be much larger than the original workbook (.xls) file size.

NOTE
To save an Excel workbook as an XML Spreadsheet file, on the File menu, click Save As , and then change the Save as type
box to XML Spreadsheet (*.xml) .

The purpose of this article is to describe how to minimize the XML Spreadsheet file size.

More Information
To minimize the XML Spreadsheet file size, use the following methods.
Method 1: Use Common Formatting
In an XML Spreadsheet file, Excel represents a formatted column as a style, and then designates every cell in that
column to correspond to that particular style.
If the format of a cell or a range of cells in that column differs from the column common format, Excel stores special
formatting information for those cells, overriding the common column formatting style. As a result, the additional
format information that is stored in the worksheet causes the file size to grow. If you limit the amount of additional
formatting in a column, then the resulting XML Spreadsheet file size will not grow dramatically.
1. To format a whole column with the common formatting that applies to all cells in that column, follow these
steps:
a. Click the column heading of the column you want to apply formatting.
b. On the Format menu, click Cells .
c. In the Format Cells dialog box, click the tab for the type of formatting you want to apply, make the
changes to the formatting you want, and then click OK .
2. To apply different formatting to a small number of cells in the column that require extra formatting, follow
these steps:
a. Select the cells in the column that require additional formatting.
b. On the Format menu, click Cells .
c. In the Format Cells dialog box, click the tab for the type of formatting you want to apply, make the
changes to the formatting you want, and then click OK .
Method 2: Use Conditional Formatting
When you use conditional formatting, you can change font attributes (for example font size, bold, italic and color) to
vary with a specified condition.
The format information for conditional formatting is not written on a per cell basis in the resulting XML
Spreadsheet file, and as a result will not dramatically increase the XML Spreadsheet file size.
Misleading labels in the output of the Analysis
ToolPak t-Test tools in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes the misleading labels that exist in the output of each of the three Analysis ToolPak t-Test tools,
and that are common to the output of all three tools.
The reader must also be aware of the fact that the t-Test: Paired Two Sample for Means tool can give incorrect
results.
Microsoft Excel 2004 for Macintosh information
The statistical functions in Excel 2004 for Mac were updated by using the same algorithms that were used to update
the statistical functions in Microsoft Office Excel 2003 and later versions of Excel. Any information in this article that
describes how a function works or how a function was modified for Excel 2003 and later versions of Excel also
applies to Excel 2004 for Mac.

More Information
Problems with misleading labels are illustrated and discussed in this article.
Example of usage
To illustrate the t-Test tools, create a blank Excel worksheet, copy the following table, and then select cell A1 in your
blank Excel worksheet. Then, paste the entries so that the following table fills cells A1:C20 in your worksheet.

200 220

190 210

180 200

170 190

160 180

150 170

t-Test: Two-Sample Assuming Unequal


Variances
Variable 1 Variable 2

Mean 175 195

Variance 350 350

Observations 6 6

Hypothesized Mean Difference 0

df 10

t Stat -1.8516402

P(T<=t) one-tail 0.046896275

t Critical one-tail 1.812461102

P(T<=t) two-tail 0.093792549

t Critical two-tail 2.228138842

NOTE
After you paste this table into your new Excel worksheet, click the Paste Options button, and then click Match
Destination Formatting . With the pasted range still selected, use one of the following procedures, as appropriate for the
version of Excel that you are running:

In Microsoft Office Excel 2007, click the Home tab, click Format in the Cells group, and then click AutoFit
Column Width .
In Excel 2003, point to Column on the Format menu, and then click AutoFit Selection .
Data for the two samples is in cells A1:B6. Cells A8:C20 show the output of one of the three t-Test tools, the two-
sample test with unequal variances. The format of this output is similar for each of the three tools. All the rows in
this table are included for all three tools; output for each of the other two tools includes one additional row (a
different additional row for each of the other two tools). Additional rows in these other output tables are not
important for this discussion.
The focus of this article is to understand the information in rows 16 to 20. In each tool, a t-Statistic value, t, is
computed and shown as "t Stat" in the output tables. Depending on the data, this value, t, can be negative or non-
negative. If you assume equal underlying population means, and if t is less than 0, "P(T <= t) one-tail" gives the
probability that a value of the t-Statistic would be observed that is more negative than t. If t is greater than or equal
to 0, "P(T <= t) one-tail" gives the probability that a value of the t-Statistic would be observed that is more positive
than t. Therefore, if the label is replaced with one that is more accurate, the label would be "P(T > |t|) one tail".
"t Critical one-tail" gives the cutoff value so that the probability that an observation from the t-distribution with df
degrees of freedom is greater than or equal to "t Critical one-tail" is Alpha. The default level of Alpha is 0.05 for
each tool and this can be changed in the input dialog box. The value of t Critical one-tail can also be found by using
the TINV(2*Alpha, df) function in Excel. Because TINV gives the cutoff for a two-tailed t-test, use 2*Alpha instead of
Alpha. If the two-tailed probability of a t value higher in absolute value than this cutoff is 0.10, the one-tailed
probability of a t value higher than this cutoff is 0.05 (as is the one-tailed probability of a t value less than the
negative of this cutoff).
"P(T <= t) two-tail" gives the probability that a value of the t-statistic would be observed that is larger in absolute
value than t. Therefore, if the label is replaced with one that is more accurate, the label would be "P(|T| > |t|) two
tail".
"t Critical two-tail" gives the cutoff value so that the probability of an observed t-Statistic larger in absolute value
than "t Critical two-tail" is Alpha. The value of t Critical two-tail can also be found by using the TINV(Alpha, df)
function in Excel.
Network Mapped Drive Hyperlinks resolve as UNC in
Office Products
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After a user inserts a hyperlink to a file residing on a network mapped drive within an Office product, the
hyperlink's text displays the network mapped drive path, however the link is resolved as the UNC path.
For example, in Excel if you go to Insert, and then click on Hyperlink the user is prompted to select the file. If the
user navigates to a file residing on a Network Mapped Drive, and inserts a hyperlink to that file, the hyperlink will
be created to the file via its UNC path instead of its network mapped drive path. After the link has been inserted, the
user can then hover over the link and see that the full UNC path has been used when creating the link to the file.

Cause
The cause is due to the way Office creates hyperlinks to files. Office products will create links to files using the UNC
path and will not use the network mapped drive location, even if it displays it in the hyperlink text.

Resolution
There is no resolution for this. Microsoft recommends that users insert hyperlinks using the UNC path to prevent
confusion in cases where opening a file via UNC or network mapped drive might make a difference in the expected
behavior in the file.

More Information
An example of where how a file is opened is important can be found listed in this KB article under the section
"Scenarios that may cause links to not work as expected."
328440 Description of link management and storage in Excel
Office 365 users cannot open or synchronize
SharePoint files after the Office 2013: March 12, 2013
update is installed
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Office 365 users may be unable to open, edit, or synchronize files if the following conditions are true:
The user tries to open, edit, or synchronize files by using the Office 2013 rich client.
The files are stored on a server that is running SharePoint.
The Office 2013 update for March 12, 2013 is installed.
In this scenario, users may be prompted for credentials multiple times.

Cause
This issue occurs because of a problem in the Office 2013 update for March 12, 2013.
Note To verify the file versions, and to determine whether this issue applies to your situation, see the "How to
determine whether the update is installed" section in the following article in the Microsoft Knowledge Base:
2768349 Description of the Office 2013 update: March 12, 2013

Resolution
To resolve this issue, use the appropriate method.
MSI installation: Uninstall the Office update for March 12, 2013
To uninstall the Office update for March 12, 2013, follow these steps:
1. Open Control Panel .
2. Click Programs and Features .
3. Click View installed updates .
4. Click Microsoft Office update KB2768349 , and then click Uninstall .
Click-to -Run (C2R ) installation: Run an online repair
To run an online repair, follow these steps:
1. Open Control Panel .
2. Click Programs and Features .
3. Click Microsoft Office 2013 .
4. Click Change , click Online Repair , and then click Repair .
Workaround
To work around this issue, use one of the following methods.
Method 1: Use Office Online
Use Office Online instead of the Office 2013 rich client.
Method 2: Download the file
Download the file from Microsoft SharePoint Online to your computer. Open the file, make the changes that you
want, and then save the file to your computer. Then upload the file to the SharePoint server to replace any earlier
versions of the file.

Status
We are aware of this issue, and we are working to resolve it. This article will be updated when a solution is
available.

References
For more information about Office Online, visit the following Microsoft website:
Office Online

More Information
Still need help? Go to Microsoft Community.
PRB: "Operation must use an updateable query"
When you access Excel through ODBC
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you edit an Excel worksheet through ADO and ODBC, you may receive the following error message if you
use an ADO DataControl object:

[Microsoft][ODBC Excel Driver] Operation must use an updateable query.

If you use a Recordset object that is generated with ADO code, you may receive the following error message when
you edit an Excel worksheet through ADO and ODBC:

Run-time error '-2147467259(80004005)': [Microsoft][ODBC Excel Driver] Operation must use an updateable query.

Cause
This problem occurs if you try to edit a worksheet that is saved or opened as ReadOnly.

NOTE
ReadOnly is the default setting for an ODBC connection to Excel, with or without a data source name (DSN). Therefore, the
user must always change that setting to edit data.

Resolution
To resolve this problem, use the following methods:
Make sure that the LockType property of the Recordset object is not set to ReadOnly.
Make sure that the file that you are trying to open is not saved as ReadOnly.
If you are connecting through a DSN, follow these steps:
1. Open Control Panel, and then click ODBC Data Source Administrator.
2. Double-click your DSN.
3. In the ODBC Microsoft Excel Setup dialog box, click Options.
4. Make sure that the ReadOnly check box is not selected.
If you are using a DSN-less connection, make sure to include the "ReadOnly=0" option in the connection
string. For example:
cn.Open "Driver={Microsoft Excel Driver (*.xls)};DBQ=C:\MyDoc.xls;ReadOnly=0;"

Status
This behavior is by design.

More Information
Steps to Reproduce the Behavior
1. Create a new Standard EXE project in Visual Basic.
2. On the Project menu, click References, and then add a reference to Microsoft ActiveX Data Objects Library.
3. Add a Command button to Form1.
4. Add the following code to Form1:

Dim rs As ADODB.Recordset
Dim cn As ADODB.Connection

Private Sub Form_Load()


Command1.Caption = "Edit"
End Sub

Private Sub Command1_Click()


Dim DocPath As String

DocPath = App.Path & "\Test.xls"

Set cn = New Connection


Set rs = New Recordset

cn.Open "Driver={Microsoft Excel Driver (*.xls)};DBQ=" & DocPath & ";ReadOnly=1"


rs.LockType = adLockOptimistic
rs.Open "TB1", cn
rs.AddNew
rs.Fields(1).Value = "New Value"
rs.Update

rs.Close
cn.Close
Set rs = Nothing
Set cn = Nothing
End Sub

5. Save the application.


6. Create a new Excel worksheet, and then save the worksheet as Test.xls.
7. On the Insert menu, point to Name, and then click Define.
8. Create a new table inside the Excel worksheet, and then name the table TB1.
9. Save the worksheet in the same folder as the Visual Basic application.
10. Press F5 to run the application.

References
For additional information, see the following article:
Office Space: Tips and Tricks for Scripting Microsoft Office Applications
Parts of Excel turn white or gray when you run VBA
code in Excel 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you run Microsoft Visual Basic for Applications (VBA) code in Microsoft Excel 2013, portions of Excel may
appear white or gray, depending on your Office Theme. It stays blank until the code completes. This issue may
occur if the VBA code performs one or more of the following actions in a macro that runs long enough for the user
to see the results before the macro completes:
Repeatedly select cells
Insert sheets
Update or opens task panes
Add a workbook

Cause
This issue is caused by the changes that are made in Microsoft Office 2013 to optimize the new graphics engine.

Workaround
1. Use ScreenUpdatingto disable the screen updates of Excel so you do not see the changes while they are
disabled. This also may improve your macro performance.

Application.ScreenUpdating = False
Workooks.Add
Application.ScreenUpdating = True

2. If you need to see the screen changes, insert a DoEvents command after the line in the code that causes the
screen to appear white. Using DoEvents sparingly will help maintain macro performance.

Workbooks.Add
DoEvents

Status
This is a known limitation in Excel 2013.
NOTE
For all versions of Excel, a similar effect can occur in long running macros when Windows turns the application white and
marks it not responding. This occurs because Excel is not responding to Windows while the macro is running. DoEvents will
also assist in this scenario by allowing Excel to respond to Windows and allow the application screen to recover.
Paste Special option is missing or not working in
Microsoft Office
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

If you have Skype installed, please read: Text has incorrect format when using paste in Microsoft Office. Paste
Special can make the task of pasting text go more smoothly by letting you choose which formatting you want to
keep (source or destination) or by stripping all the formatting and just pasting the text. If you are having issues with
Paste Special, continue on to the resolutions below:

Resolution
To see if Paste Special is enabled:
1. Go to: File > Options > Advanced.
2. Under Cut, copy and paste, ensure Show Paste Options button when content is pasted is checked.
Ensure that all instances of the web browsers that you use are Closed and try to use Paste Special again. Paste
Special will not function if your web browser is causing the conflict. Windows Internet Explorer (8-9) do not conflict
with the Excel 2010 Paste Special option. Third party Add-ins can cause a variety of issues, one of then being,
conflicting with the Paste Special option. To determine if an Add-in is causing the issue:
1. Click Start > All Programs> Microsoft Office.
2. Press and hold the CTRL key, and click Microsoft Excel 2010. You will be asked if you want to open Excel in
the Safe Mode, click Yes.
Note: If you have an icon on your desktop, hold down Ctrl and click on the icon. This works with any
Microsoft Office product.
3. If Paste Special works in the Safe Mode as follows, enable your Add-ins one at a time until you hit that one
that is causing the conflict. Leave that one disabled or uninstall it.
Note: Find out more on Adding or Removing Add-ins. Find out more on Working with Office Safe Modes.
| <|

| |---|---| You can also get help from


the Microsoft Community online community, search for more information on Microsoft Support or Windows Help
and How To, or learn more about Assisted Support options.
Power View sheet is not displayed in a workbook
when you open the workbook in Excel 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You insert a Power View sheet that provides interactive reports for data models into a Microsoft Excel workbook.
You save and close the workbook.
You open the workbook in Microsoft Excel 2013.
In this scenario, a graphic is displayed instead of the Power View sheet in the workbook.

Workaround
To work around this issue, disable hardware acceleration for Microsoft Office applications. To do this, follow these
steps:
1. On the File tab in Excel 2013, click Options .
2. In the Excel Options dialog box, click the Advanced tab.
3. Under the Display heading, select Disable hardware graphics acceleration .
4. Click OK .

More Information
The graphic that is displayed in the workbook is a generic graphic that is displayed when Excel cannot build a Power
View sheet. To identify whether you are experiencing the issue that is described in this article, add another Power
View sheet to the workbook. If both Power View sheets are displayed, you are experiencing the issue that is
described in this article.

Status
This is a confirmed issue in the Power View add-in for Excel for some computer configurations. Microsoft is
currently investigating this issue.
PowerPivot controls disabled with non-default Excel
file format
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Excel, when attempting to use controls on the PowerPivot ribbon, you find that the controls are grayed
out, as in the following figure.

The behavior may appear to be inconsistent between existing files; however, it occurs in any new file you attempt to
create in Excel.

Cause
This behavior can occur if the Save files in this format option is set to a file format other than the default Excel
Workbook, as in the figure below.

Here are some of the formats which may result in this behavior:
XML Spreadsheet 2003
Strict Open XML Spreadsheet
OpenDocument Spreadsheet
The availability of PowerPivot controls is specific to the file type of the active document, depending on whether that
file type supports the PowerPivot features.
New, unsaved documents will enable or disable the PowerPivot controls based on the current Save files in this
format option setting. If the file is later saved as a file type that supports PowerPivot, the controls on the PowerPivot
ribbon will then be enabled.

Resolution
To allow the use of the PowerPivot ribbon controls in new documents, configure the Save files in this format option
to the default setting of Excel Workbook, using the steps below.
1. From the File tab in Excel, select Options.
2. In the Excel Options dialog, select Save.
3. In the Save Workbooks section, select Excel Workbook from the Save files in this format dropdown.
If you are currently working in a file that is not the default format, you may need to Save As an Excel Workbook, or
open a new workbook before the PowerPivot ribbon controls become available.

More Information
The setting for the default Save format is stored in the Windows Registry under the following registry data:
Key: HKEY_CURRENT_USER\Software\Microsoft\Excel\15.0\Options
DWORD: DefaultFormat
Example values:
33 (51) = Excel Workbook (Excel standard default)
2e (46) = XML Spreadsheet 2003
3d (61) = Strict open XML spreadsheet
3c (60) = OpenDocument spreadsheet
How to prevent files from opening automatically in
Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to prevent files from automatically opening when you start Microsoft Excel.

More information
When you start Excel, all the files that are located in the XLStart folder are automatically opened. This behavior
occurs regardless of the kind of file. Additionally, if you specified an alternative startup folder for Excel, every file in
that folder is also automatically opened. To remove an alternative startup folder:
1. Select the File menu and then select Options .
2. Select the Advanced tab and then locate the General section.
3. Clear the box next to "At startup, open all files in:".
Excel might stop responding or take longer to start if either of the following conditions is true:
The files in either startup folder aren't valid Excel workbooks or worksheets.
The files are stored on a network drive that has a slow network connection.
How to prevent files from automatically opening in Excel
Use one of the following methods to prevent files from automatically opening when you start Excel.
Remove files from the XLStart folder and the alternative startup folders
To remove files from the XLStart folder and the alternative startup folders, follow these steps:
1. Select Star t , and then select Run .
2. In the Open box, type one of the following and press Enter:
For Office365 or 2019 32 bit:
C:\Program Files (x86)\Microsoft Office\root\xx\XLSTART
For Office365 or 2019 64 bit:
C:\Program Files\Microsoft Office\root\xx\XLSTART
Where "xx" represents the version that you are using (for example, Office15, Office14, etc.).
Also try the following:
%appdata%\Microsoft\excel\XLSTART
C:\Users\UserName\AppData\Roaming\Microsoft\excel\XLSTART
3. Delete any files in the XLStart folder or move them to another folder.
4. Restart Excel.
Start Excel in safe mode

NOTE
This is only a temporary solution that will not fix the issue. To use this method, it must be done every time that you start
Excel.

Another method for preventing files from automatically opening is to start Excel in safe mode. Starting Excel in safe
mode prevents all Excel add-ins, toolbar customizations, and startup folders from loading when the program is
started.
There are two ways to start Excel in safe mode: the CTRL key and command-line switches.
U si n g t h e C T R L k e y

To start Excel in safe mode, hold down the CTRL key while you start Excel. You will receive the following message:
Excel has detected that you are holding down the CTRL key. Do you want to start Excel in Safe mode? Select Yes to
start in safe mode.
You can then delete files from the alternative startup location as described earlier.
U se C o m m a n d - l i n e sw i t c h e s

In all versions of Excel, you can use a command-line switch to start Excel in safe mode.Both the /safe switch and the
/automation switch can be used for this purpose.

NOTE
The /safe switch starts Excel in safe mode. The /automation switch disables all automatically opened files and auto-run
macros.

To use a command-line switch to start Excel, follow these steps:


1. Select Star t , and then select Run .
2. In the Open box, type either of the following lines (but not both):
excel.exe /safe
excel.exe /automation
3. Select OK .

NOTE
If Microsoft Windows Installer starts when you use one of these command-lines switches, clickCancel to finish starting Excel.

Press the ESCAPE key

NOTE
This is only a temporary solution that will not fix the issue. To use this method, it must be done every time that you start
Excel.

Another method for preventing files from automatically opening is to press the ESCAPE key (but do not press and
hold). When you press ESCAPE after the files start to open, Excel is prevented from opening additional files.
Using this method, you may receive one or both of the following messages:
Would you like to cancel opening all files from your Alternate Startup File Location?
Would you like to cancel opening all files from your XLStart Location?
If you click Yes in either message, Excel starts without opening any additional files from the startup locations.

NOTE
Do not hold the ESCAPE key. If you do this, the messages will be closed before you can click Yes .

References
For more information about Excel startup folders, see the following Microsoft Knowledge Base articles:
Use startup folders in Excel
Description of the startup switches for Excel
Print preview display is missing lines in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Thin lines or lines at certain positions in an Excel spreadsheet are not rendered in the print preview area when the
print scaling is set too small. This problem occurs when you use any printer that uses a PCL driver or when you use
the Microsoft XPS Document Writer or any other XPS printer. This problem does not occur when you use a printer
that uses a PostScript (PS) driver.

More Information
Print preview is implemented by creating and displaying a metafile. If the file has a very small print scaling setting,
such as less than 50 percent, thin lines or lines at certain positions are not rendered in the print preview area. This
is because the preview graphic is too small to display many lines or lines that are too thin.
Copy all range names programmatically in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Office Excel, you can create a Microsoft Visual Basic for Applications (VBA) macro that you can use to
copy all the range names from the active workbook to another workbook.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure. However, they will not modify these examples to provide added functionality
or construct procedures to meet your specific requirements.
To create and use a macro to copy all of the range names from the active workbook to another workbook, use the
steps in the following example:
1. Start Excel, and then in a new workbook, click select cell A1.
2. Perform one of the following actions:
In Microsoft Office Excel 2007, click the Formulas tab, and then click Define Name in the Defined
Names group.
In Microsoft Office Excel 2003 in and earlier versions of Microsoft Excel, point to Name on the Inser t
menu, and then click Define .
3. In the Define Names dialog box, in the Names In workbook box, type Range1, and then click OK .
4. Select cell B1.
5. Perform one of the following actions:
In Excel 2007, click the Formulas tab, and then click Define Name in the Defined Names group.
In Excel 2003 and in earlier versions of Excel, point to Name on the Inser t menu, and then click Define .
6. In the Define Names dialog box, in the Names In workbook box, type Range2, and then click OK .
7. Press ALT+F11 to start the Visual Basic editor.
8. On the Inser t menu, click Module .
9. On the module sheet, type the following code:
Sub Copy_All_Defined_Names()
' Loop through all of the defined names in the active
' workbook.
For Each x In ActiveWorkbook.Names
' Add each defined name from the active workbook to
' the target workbook ("Book2.xls" or "Book2.xlsm").
' "x.value" refers to the cell references the
' defined name points to.
Workbooks("Book2.xls").Names.Add Name:=x.Name, _
RefersTo:=x.Value
Next x
End Sub

10. Press ALT+F11 to return to Excel.


11. Perform one of the following actions:
In Excel 2007, click the Microsoft Office Button , point to Save As , click Excel Macro-Enabled
Workbook , and then save the workbook as Book1.xlsm.
In Excel 2003 and in earlier versions of Excel, click Save on the File menu, and then save the workbook as
Book1.xls.
12. Perform one of the following actions:
In Excel 2007, click the Microsoft Office Button , click New , click Blank Workbook , and then click
Create .
In Excel 2003, click New on the File menu, and then click Blank workbook in the New Workbook task
pane.
In Excel 2002 and in earlier versions of Excel, click New on the File menu, click Workbook , and then click
OK .
13. Perform one of the following actions:
In Excel 2007, click the Microsoft Office Button , point to Save As , click Excel Macro-Enabled
Workbook , and then save the workbook as Book2.xlsm.
In Excel 2003 and in earlier versions of Excel, click Save As on the File menu, and then save the
workbook as Book2.xls.
14. Switch to Book1.

NOTE
You may have to minimize or restore Book2 to see the Book1 button.

15. Perform one of the following actions:


In Excel 2007, click the Developer tab, and then click Macros .

NOTE
If the Developer tab is not displayed, click the Microsoft Office Button , click Excel Options , click
Popular , click to select the Show Developer tab in the Ribbon check box, and then click OK .

In Excel 2003 and in earlier versions of Excel, point to Macro on the Tools menu, and then click
Macros .
16. In the Macro name list, click Copy_All_Defined_Names , and then click Run .
17. Switch to Book2 and note that cell A1 is named Range1, and that cell B1 is named Range2.
Print all embedded charts programmatically on a
worksheet in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you can create a Microsoft Visual Basic for Applications macro that prints all embedded charts in
an Excel worksheet. Each chart is printed on a separate page.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. To create a sample macro that can print all the embedded
charts in a worksheet and print each chart to a separate page, follow these steps:
1. Start Excel, and then open the workbook containing the worksheet with the embedded charts.
2. Press ALT+F11 to start the Visual Basic Editor.
3. On the Insert menu, click Module.
4. In the module sheet, type or paste the following code:

Sub PrintEmbeddedCharts()
Dim ChartList As Integer
Dim X As Integer
' Variable chartlist stores a count of all embedded charts.
ChartList = ActiveSheet.ChartObjects.Count
' Increments the counter variable 'X' in a loop.
For X = 1 To ChartList
' Selects the chart object.
ActiveSheet.ChartObjects(X).Select
' Makes chart active.
ActiveSheet.ChartObjects(X).Activate
' Prints one copy of active chart.
ActiveChart.PrintOut Copies:=1
Next
End Sub

5. On the File menu, click Close and Return to Microsoft Excel .


6. Select the worksheet that contains the embedded charts.
7. on the Tools menu, point to Macro, and then click Macros.
8. In the Macro name list, click PrintEmbeddedCharts, and then click Run.
Save a file to a network drive programmatically in
Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you can save a file to any drive to which you have write and delete privileges. In addition, you
can use a Microsoft Visual Basic for Applications macro to save the active workbook and use a variable for the file
name. You can use variables from the ActiveWorkbook.Nameproperty, from input box data, or from a cell reference.

NOTE
If you use the full path for the file name, Microsoft Excel will know exactly where to save the file. If the path is not given,
Microsoft Excel will save the file to the currently active directory or folder.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
Sample Macro 1
Save the active workbook with a variable to a specified path. To do this, use the following macro:

Sub SaveWithVariable()
Dim MyFile As String

MyFile = ActiveWorkbook.Name
' Do not display the message about overwriting the existing file.
Application.DisplayAlerts = False
' Save the active workbook with the name of the
' active workbook. Save it on the E drive to a folder called
' "User" with a subfolder called "JoeDoe."
ActiveWorkbook.SaveAs Filename:="E:\User\JoeDoe\" & MyFile
' Close the workbook by using the following.
ActiveWorkbook.Close
End Sub

Sample Macro 2
Use a file name stored in a cell and save the file to the network server. To do this, use the following macro:
Sub SaveWithVariableFromCell()
Dim SaveName As String
SaveName = ActiveSheet.Range("A1").Text
ActiveWorkbook.SaveAs Filename:="E:\User\JoeDoe\" & _
SaveName & ".xls"
End Sub
How To Query and Update Excel Data Using ADO
From ASP
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article demonstrates how to query and update information in an Excel spreadsheet using ActiveX Data Objects
(ADO) from an Active Server Pages (ASP) page. The article also describes the limitations that are associated with
this type of application.

IMPORTANT
Though ASP/ADO applications support multi-user access, an Excel spreadsheet does not. Therefore, this method of querying
and updating information does not support multi-user concurrent access.

More Information
To access the data in your Excel spreadsheet for this sample, use the Microsoft ODBC Driver for Excel. Create a table
to access the data by creating a Named Range in your Excel spreadsheet.
Steps to Create Sample Application
Create the Excel file ADOtest.xls with the following data in sheet1:

C O L UM N 1 C O L UM N 2 C O L UM N 3

rr this 15

bb test 20

ee works 25
NOTE
If a column in your Excel spreadsheet contains both text and numbers, the Excel ODBC driver cannot correctly
interpret which data type the column should be. Please make sure that all the cells in a column are of the same data
type. The following three errors can occur if each cell in a column is not of the same type or you have the types mixed
between "text" and "general":
1. Microsoft OLE DB Provider for ODBC Drivers error '80040e21' The request properties can not be supported by
this ODBC Driver.
2. Microsoft OLE DB Provider for ODBC Drivers error '80004005' The query is not updateable because it contains no
searchable columns to use as a hopeful key.
3. Microsoft OLE DB Provider for ODBC Drivers error '80004005' Query based update failed. The row to update
could not be found.

Create a Named Range, myRange1, in your spreadsheet:


1. Highlight the row(s) and column(s) area where your data resides.
2. On the Insert menu, point to Name, and click Define.
3. Enter the name myRange1 for the Named Range name.
4. Click OK.
The Named Range myRange1 contains the following data:

C O L UM N 1 C O L UM N 2 C O L UM N 3

rr this 15

bb test 20

ee works 25

NOTE
ADO assumes that the first row in an Excel query contains the column headings. Therefore, the Named Range
must include the column headings. This is different behavior from DAO.
Column headings cannot be a number. The Excel driver cannot interpret them and, instead, returns a cell reference.
For example, a column heading of "F1" would be misinterpreted.

Create an ODBC System Data Source Name (DSN) pointing to the ADOTest.xls file.
1. From the Control Panel, open the ODBC Administrator.
2. On the System DSN tab, click Add.
3. Select Microsoft Excel Driver (*.xls) and click Finish. If this option does not exist, you need to install the
Microsoft ODBC driver for Excel from Excel setup.
4. Choose ADOExcel for the Data Source Name.
5. Make sure the Version is set to the correct version of Excel.
6. Click "Select Workbook...", browse to the ADOTest.xls file, and click OK.
7. Click the "Options>>" button and clear the "Read Only" check box.
8. Click OK and then click OK again.
Set permissions on the ADOTest.xls file.
If your Active Server Page is accessed anonymously, you need to make sure that the Anonymous Account (IUSR_)
has at least Read/Write (RW) access to the spreadsheet. If you want to delete information from the spreadsheet, you
need to grant the permissions accordingly.
If you are authenticating access to your Active Server Page, you need to ensure that all users accessing your
application have the appropriate permissions.
If you do not set the appropriate permissions on the spreadsheet, you get an error message similar to the
following:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Excel Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is
already opened exclusively by another user, or you need permission to view its data.

1. Create a new ASP page and paste in the following code:

<!-- Begin ASP Source Code -->


<%@ LANGUAGE="VBSCRIPT" %>
<%
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "ADOExcel"

Set objRS = Server.CreateObject("ADODB.Recordset")


objRS.ActiveConnection = objConn
objRS.CursorType = 3 'Static cursor.
objRS.LockType = 2 'Pessimistic Lock.
objRS.Source = "Select * from myRange1"
objRS.Open
%>
<br>
<%
Response.Write("Original Data")

'Printing out original spreadsheet headings and values.

'Note that the first recordset does not have a "value" property
'just a "name" property. This will spit out the column headings.

Response.Write("<TABLE><TR>")
For X = 0 To objRS.Fields.Count - 1
Response.Write("<TD>" & objRS.Fields.Item(X).Name & "</TD>")
Next
Response.Write("</TR>")
objRS.MoveFirst

While Not objRS.EOF


Response.Write("<TR>")
For X = 0 To objRS.Fields.Count - 1
Response.write("<TD>" & objRS.Fields.Item(X).Value)
Next
objRS.MoveNext
Response.Write("</TR>")
Wend
Response.Write("</TABLE>")

'The update is made here

objRS.MoveFirst
objRS.Fields(0).Value = "change"
objRS.Fields(1).Value = "look"
objRS.Fields(2).Value = "30"
objRS.Update

'Printing out spreadsheet headings and values after update.

Response.Write("<br>Data after the update")


Response.Write("<TABLE><TR>")
Response.Write("<TABLE><TR>")
For X = 0 To objRS.Fields.Count - 1
Response.Write("<TD>" & objRS.Fields.Item(X).Name & "</TD>")
Next
Response.Write("</TR>")
objRS.MoveFirst

While Not objRS.EOF


Response.Write("<TR>")
For X = 0 To objRS.Fields.Count - 1
Response.write("<TD>" & objRS.Fields.Item(X).Value)
Next
objRS.MoveNext
Response.Write("</TR>")
Wend
Response.Write("</TABLE>")

'ADO Object clean up.

objRS.Close
Set objRS = Nothing

objConn.Close
Set objConn = Nothing
%>
<!-- End ASP Source Code -->

2. Save and name your Active Server Page and view it in the browser. You will see the following:

Original Data:

|column1|column2|column3|
|------------|------------|------------|
|rr|this|30|
|bb|test|20|
|tt|works|25|

Data after the update:

|column1|column2|column3|
|------------|------------|------------|
|change|look|30|
|bb|test|20|
|tt|works|25|

NOTE
An update was performed on the first row of your Named Range (after the headings).
Recalculation of a worksheet that contains a SUMIF
formula takes longer than expected to finish
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When Microsoft Excel recalculates a worksheet that contains a SUMIF formula, the recalculation takes longer to
finish than expected.
For example, you type a number into a cell in the worksheet. Then, you press TAB. When Excel recalculates the
worksheet, Excel takes longer to move the insertion point to the next cell in the worksheet than expected.

Cause
This issue may occur if the arguments in a SUMIF formula do not contain the same number of cells.
For example, this issue may occur if you use the following SUMIF formula in the worksheet.

=SUMIF($C$1:$F$3000,1,$G$1:$G$3000)

NOTE
The first and third arguments in the formula do not contain the same number of cells (rows and columns).

Resolution
To resolve this issue, use the same number of cells in the first and third arguments of the SUMIF formula.
For example, to resolve this issue in the formula in the "Cause" section, change the formula as shown in the
following example.

=SUMIF($C$1:$C$3000,1,$G$1:$G$3000)

More Information
For more information about how to use the SUMIF formula, click Microsoft Excel Help on the Help menu, type
SUMIF in the Search for box in the Assistance pane, and then click Star t searching to view the topic.
Registry keys that control the File Repair feature in
Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

IMPORTANT
This article contains information about how to modify the registry. Make sure that you back up the registry before you
modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back
up, restore, and modify the registry, see Description of the Microsoft Windows registry.

Summary
Microsoft Excel contains a feature that allows you to recover data from corrupted workbooks. This article describes
how to use the registry to override the default behavior when Excel tries to recover data.

More information
When you open a workbook in Excel, Excel checks for problems in the workbook. If Excel detects a problem in a
workbook, the data recovery process begins automatically.

NOTE
You can also manually start the data recovery process. To do this, click Open on the File menu, click the arrow on the Open
button, and then click Open and Repair .

All the registry values that affect data recovery are in the following registry subkeys, depending on which version
of Excel you are running:
Microsoft Excel 2002
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\Options
Microsoft Office Excel 2003
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\Options
Microsoft Office Excel 2007
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Excel\Options
These subkeys contains three DWORD registry values that you can modify as follows.
NOTE
In these subkeys, 2 is always the default value, and 1 is the only other valid value.

ExtractDataMode
If ExtractDataMode equals 2 (or a value that is not valid), Excel assumes that the structure of the workbook is not
corrupted. Therefore, Excel tries to recover the whole workbook, including formulas, formatting, and Microsoft
Visual Basic for Applications (VBA) projects.
If ExtractDataMode equals 1, Excel assumes that the structure of the workbook is corrupted. Therefore, Excel does
not try to recover anything other than the data in the workbook.
To change the value from 2 to 1, follow these steps.

WARNING
Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method.
These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can
be solved. Modify the registry at your own risk.

1. Start Registry Editor.


2. Locate the following registry subkey, as appropriate for the version of Excel that you are running:
Excel 2002
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\Options
Excel 2003
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\Options
Excel 2007
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Excel\Options
3. In the list of registry entries, double-click ExtractDataMode .
4. Type 1in the Value data field, and then click OK .
ExtractDataFormulas
If ExtractDataFormulas equals 2 (or a value that is not valid), Excel tries to recover formulas and converts a formula
to a value if recovery does not succeed.
If ExtractDataFormulas equals 1, Excel recovers as much of the formula as possible, and substitutes #REF if recovery
does not succeed. This value also affects the default option when you are prompted to recover formulas during the
Open and Repair process.
To change the value from 2 to 1, follow these steps:
1. Start Registry Editor.
2. Locate the following registry subkey, as appropriate for the version of Excel that you are running:
Excel 2002
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\Options
Excel 2003
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\Options
Excel 2007
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Excel\Options
3. In the list of registry entries, double-click ExtractDataFormulas .
4. Type 1in the Value data field, and then click OK .
ExtractDataDisableUI
If ExtractDataDisableUI equals 2 (or a value that is not valid), Excel prompts you with two messages during the
Open and Repair process. The first message prompts you to choose either to repair or to extract data. The second
message prompts you to choose either to convert to values or to recover formulas.
If ExtractDataDisableUI equals 1, Excel does not offer you any options during the Open and Repair process. Excel
opens the file by using the Safe Load process. Data extraction is still enabled through the object model and through
automatic data recovery.
To change the value from 2 to 1, follow these steps:
1. Start Registry Editor.
2. Locate the following registry subkey, as appropriate for the version of Excel that you are running:
Excel 2002
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\Options
Excel 2003
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\Options
Excel 2007
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Excel\Options
3. In the list of registry entries, double-click ExtractDataDisableUI .
4. Type 1in the Value data field, and then click OK .
How to remove smart tags from a workbook in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article explains how to remove smart tags from a workbook in Microsoft Excel.

More Information
To remove a single smart tag in a cell, follow these steps:
1. Position the mouse pointer over the cell until the Smart Tag Actions button appears.
2. Click the arrow on the Smart Tag Actions button, and then click Remove this Smar t Tag .
To remove all smart tags that are associated with a specific recognizer, follow these steps:
1. Start Excel, and then open the workbook from which you want to remove the smart tags.
2. On the Tools menu, click AutoCorrect Options.

NOTE
In Microsoft Office Excel 2007, click the Microsoft Office Button , click Proofing , and then click AutoCorrect
Options .

3. On the Smart Tags tab, click to clear the check boxes of the smart tags recognizers that you want to remove
under Recognizers, and then click OK.
4. If it is necessary, click to clear the Embed smar t tags in this workbook check box, and then click OK.
5. Close and then reopen the workbook for your changes to take effect.
To remove all smart tags in a workbook, follow these steps:
1. Start Excel, and then open the workbook from which you want to remove the smart tags.
2. On the Tools menu, click AutoCorrect Options.

NOTE
In Excel 2007, click the Microsoft Office Button , click Proofing , and then click AutoCorrect Options .

3. On the Smart Tags tab, click to clear the Label data with smar t tags check box.
4. If it is necessary, click to clear the Embed smar t tags in this workbook check box, and then click OK.
5. Close and then reopen the workbook for your changes to take effect.
Smart tags are built into Microsoft Office XP programs to provide easy access to actions that are based on data in a
cell. Smart tags in a cell are indicated by a purple triangle in the lower-right corner.
Excel statistical functions: Representing ties by using
RANK
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses how to use RANK to give an average rank value to tied observations.

More Information
When you convert numeric data to ranks, you may want to represent ties so that the tied observations each receive
an average rank over all such observations instead of the lowest possible rank. The numeric example in this article
illustrates this.
Although the current version of RANK returns the appropriate results for most situations, this article discusses the
situation where a tie occurs. For example, you may want RANK to handle ties if you are using a non-parametric
statistical hypothesis test that involves ranks.
The method that this article describes is also described in the RANK Help file for Microsoft Office Excel 2003 and for
later versions of Excel (but not in earlier RANK Help files). This procedure works equally well for all versions of
Excel. The RANK function itself has not changed.
Syntax

RANK(number, ref, order)

NOTE
Number must have a numeric value; ref must be an array or cell range that contains numeric data values; order is optional.
If you omit order , or assign it a value of 0 (zero), the rank of number is the position of number in ref if ref is ranked in
descending order. If order is assigned any non-zero value, ref is assumed to be ranked in ascending order.

Example of usage
To illustrate this use of RANK, create a blank Excel worksheet, copy the following table, select cell A1 in your blank
Excel worksheet, and then click Paste on the Edit menu so that the entries in the following table fill cells A1:F12 in
your worksheet.

NOTE
In Microsoft Office Excel 2007, the Paste command is in the Clipboard group on the Home tab.
10 =RANK(A1,$A$1: =B1 + =RANK(A1,$A$1: =E1 +
$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A1,$A$1: RANK($A1,$A$1:
$A$12,0) - $A$12,0) -
RANK($A1,$A$1: RANK($A1,$A$1:
$A$12,1))/2 $A$12,1))/2

21 =RANK(A2,$A$1: =B2 + =RANK(A2,$A$1: =E2 +


$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A2,$A$1: RANK($A2,$A$1:
$A$12,0) - $A$12,0) -
RANK($A2,$A$1: RANK($A2,$A$1:
$A$12,1))/2 $A$12,1))/2

21 =RANK(A3,$A$1: =B3 + =RANK(A3,$A$1: =E3 +


$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A3,$A$1: RANK($A3,$A$1:
$A$12,0) - $A$12,0) -
RANK($A3,$A$1: RANK($A3,$A$1:
$A$12,1))/2 $A$12,1))/2

21 =RANK(A4,$A$1: =B4 + =RANK(A4,$A$1: =E4 +


$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A4,$A$1: RANK($A4,$A$1:
$A$12,0) - $A$12,0) -
RANK($A4,$A$1: RANK($A4,$A$1:
$A$12,1))/2 $A$12,1))/2

21 =RANK(A5,$A$1: =B5 + =RANK(A5,$A$1: =E5 +


$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A5,$A$1: RANK($A5,$A$1:
$A$12,0) - $A$12,0) -
RANK($A5,$A$1: RANK($A5,$A$1:
$A$12,1))/2 $A$12,1))/2

33 =RANK(A6,$A$1: =B6 + =RANK(A6,$A$1: =E6 +


$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A6,$A$1: RANK($A6,$A$1:
$A$12,0) - $A$12,0) -
RANK($A6,$A$1: RANK($A6,$A$1:
$A$12,1))/2 $A$12,1))/2

33 =RANK(A7,$A$1: =B7 + =RANK(A7,$A$1: =E7 +


$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A7,$A$1: RANK($A7,$A$1:
$A$12,0) - $A$12,0) -
RANK($A7,$A$1: RANK($A7,$A$1:
$A$12,1))/2 $A$12,1))/2
52 =RANK(A8,$A$1: =B8 + =RANK(A8,$A$1: =E8 +
$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A8,$A$1: RANK($A8,$A$1:
$A$12,0) - $A$12,0) -
RANK($A8,$A$1: RANK($A8,$A$1:
$A$12,1))/2 $A$12,1))/2

52 =RANK(A9,$A$1: =B9 + =RANK(A9,$A$1: =E9 +


$A$12,1) (COUNT($A$1:$A $A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A9,$A$1: RANK($A9,$A$1:
$A$12,0) - $A$12,0) -
RANK($A9,$A$1: RANK($A9,$A$1:
$A$12,1))/2 $A$12,1))/2

52 =RANK(A10,$A$ =B10 + =RANK(A10,$A$ =E10 +


1:$A$12,1) (COUNT($A$1:$A 1:$A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A10,$A$1 RANK($A10,$A$1
:$A$12,0) - :$A$12,0) -
RANK($A10,$A$1 RANK($A10,$A$1
:$A$12,1))/2 :$A$12,1))/2

61 =RANK(A11,$A$ =B11 + =RANK(A11,$A$ =E11 +


1:$A$12,1) (COUNT($A$1:$A 1:$A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A11,$A$1 RANK($A11,$A$1
:$A$12,0) - :$A$12,0) -
RANK($A11,$A$1 RANK($A11,$A$1
:$A$12,1))/2 :$A$12,1))/2

73 =RANK(A12,$A$ =B12 + =RANK(A12,$A$ =E12 +


1:$A$12,1) (COUNT($A$1:$A 1:$A$12,0) (COUNT($A$1:$A
$12) + 1 - $12) + 1 -
RANK($A12,$A$1 RANK($A12,$A$1
:$A$12,0) - :$A$12,0) -
RANK($A12,$A$1 RANK($A12,$A$1
:$A$12,1))/2 :$A$12,1))/2

NOTE
After you paste this table into your new Excel worksheet, click the Paste Options button, and then click Match
Destination Formatting .

In Excel 2003, with the pasted range still selected, point to Column on the Format menu, and then click AutoFit
Selection .
In Excel 2007, with the pasted range still selected, click Format in the Cell group on the Home tab, and then click
AutoFit Column Width .
For some purposes, you may want to use a definition of rank that takes ties into account. To do so, add the
following correction factor to the value that RANK returns. This correction factor is appropriate where rank is
computed in descending order (order = 0 or omitted) or ascending order (order = nonzero value).

(COUNT(ref) + 1 – RANK(number, ref, 0) – RANK(number, ref, 1))/2.


The worksheet illustrates this definition of rank. Data is in cells A1:A12. Ranks that RANK returns in ascending order
are in cells B1:B12. Observations in cells A2:A5 are tied with a common value of 21. This produces a common rank
of 2. There is one lower-ranked observation, 10. These four values of 21 take up ranked positions 2, 3, 4, and 5 and
have an average rank of (2 + 3 + 4 + 5)/4 = 3.5. Similarly, the two observations in cells A6:A7 are each 33, there are
five observations with lower rank. Therefore, these two observations take up ranked positions 6 and 7 and have an
average rank of (6 + 7)/2 = 6.5. Finally, the three observations in cells A8:A10 have a common value, 52. There are
seven observations with lower rank. Therefore, these three observations take up ranked positions 8, 9, and 10 and
have an average rank of (8 + 9 + 10)/3 = 9.
Entries in column C contain the correction factor for tied ranks and show these average ranks that take ties into
account. The values in columns B and C are exactly the same where observations are not tied with other
observations, such as rows 1, 11, and 12.
Cells E1:E12 contain ranks that RANK returns in descending order. There are two entries with lower ranks than the
three entries in cells A8:A10. Cells A8:A10 have a common value, 54. Therefore, these three entries take up ranked
positions 3, 4, and 5 and have an average rank of (3 + 4 + 5)/3 = 4. There are five entries with a lower rank than the
two entries in cells A6:A7. Cells A6:A7 have a common value, 33. Therefore, these two entries take up ranked
positions 6 and 7 and have an average rank of (6 + 7)/2 = 6.5. There are seven entries with lower ranks than the
four entries in cells A2:A5. Cells A2:A5 have a common value, 21. Therefore, these four entries take up ranked
positions 8, 9, 10, 11 and have an average value of (8 + 9 + 10 + 11)/4 = 9.5.
Entries in column F contain the correction factor for tied ranks and show these average ranks that take ties into
account. The values in columns E and F are exactly the same where observations are not tied with other
observations, such as rows 1, 11, and 12.
Conclusions
This article describes and illustrates a correction factor that you can use to account for tied ranks when you rank
data. You can use the correction factor together with the RANK function. The correction factor works equally well
when ranks are in ascending or descending order.
Excel statistical functions: RSQ
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes the RSQ function in Microsoft Office Excel 2003 and in later versions of Excel. This article
discusses how the function is used and compares the results of RSQ in these later versions of Excel with the results
of RSQ in earlier versions of Excel.

More Information
The RSQ(array1, array2) function returns the Square of the Pearson Product-Moment Correlation Coefficient
between two arrays of data.
Syntax

RSQ(array1, array2)

The arguments, array1 and array2, must be either numbers or names, array constants, or references that contain
numbers.
The most common usage of RSQ includes two ranges of cells that contain the data, such as RSQ(A1:A100, B1:B100).
Example of usage
To illustrate the RSQ function, follow these steps:
1. Create a blank Excel worksheet, and then copy the following table.

P O W ER O F 10 TO A DD TO
1 = 3 + 10^$D$2 DATA

2 =4 + 10^$D$2 0

3 =2 + 10^$D$2

4 =5 + 10^$D$2

5 =4+10^$D$2

6 =7+10^$D$2 pre-Excel 2003

=RSQ(A1:A6,B1:B6) when D2 = 7.5

=PEARSON(A1:A6,B1:B6)^ RSQ = PEARSON^2 0.492857142857143


2
P O W ER O F 10 TO A DD TO
1 = 3 + 10^$D$2 DATA

=CORREL(A1:A6,B1:B6)^2 CORREL^2 0.509470304975923

when D2 = 8

RSQ = PEARSON^2 #DIV/0!

CORREL^2 0.509470304975923

2. Select cell A1 in your blank Excel worksheet, and then paste the entries so that the table fills cells A1:D13 in
your worksheet.
3. After you paste the table into your new Excel worksheet, click the Paste Options button, and then click
Match Destination Formatting . With the pasted range still selected, use one of the following procedures,
as appropriate for the version of Excel that you are running:
In Microsoft Office Excel 2007, click the Home tab, click Format in the Cells group, and then click
AutoFit Column Width .
In Excel 2003, point to Column on the Format menu, and then click AutoFit Selection .

NOTE
You may want to format cells B1:B6 as Number with 0 decimal places.

Cells A1:A6 and B1:B6 contain the two data arrays that are used in this example to call RSQ, PEARSON, and CORREL
in cells A8:A10. RSQ is calculated by essentially calculating PEARSON and squaring the result. Because PEARSON
and CORREL both compute the Pearson Product-Moment Correlation Coefficient, their results should agree. RSQ
could have been (but was not) implemented as essentially calculating CORREL and squaring the result.
In versions of Excel that are earlier than Excel 2003, PEARSON may exhibit round-off errors. This behavior leads to
round-off errors in RSQ. The behavior of PEARSON, and therefore of RSQ, has been improved for Excel 2003 and
for later versions of Excel. CORREL has always been implemented by using the improved procedure that is found in
Excel 2003 and in later versions of Excel. Therefore, an alternative to RSQ for an earlier version of Excel is to use
CORREL instead and then to square the result.
In versions of Excel that are earlier than Excel 2003, you can use the worksheet in this article to run an experiment
and to discover when round-off errors occur. If you add a constant to each of the observations in B1:B6, the values
of RSQ, PEARSON^2, and CORREL^2 in cells A7:A9 should not be affected. If you increase the value in D2, a larger
constant is added to B1:B6. If D2 <= 7, there are no round-off errors that appear in A7:A9. Now change the value of
7.25, 7.5, 7.75, and then 8. CORREL^2 in A9 is unaffected, but RSQ and PEARSON^2 ( (these expressions always
agree with each other) show round-off errors in A7:A8. D6:D13 show values of RSQ = PEARSON^2 and CORREL^2
when D2 = 7.5 and 8, respectively.
Note that CORREL is still well-behaved, but round-off errors in PEARSON have become so severe that division by 0
occurs in RSQ and PEARSON^2 when D2 = 8.
Earlier versions of Excel exhibit incorrect answers in these cases because the effects of round-off errors are more
profound with the computational formula that is used by these versions of Excel. Still, the cases that are used in this
experiment may be viewed as extreme.
If you have Excel 2003 or a later version of Excel, you see no changes in values of RSQ and PEARSON^2 if you try
the experiment. However, cells D6:D13 show round-off errors that you would have obtained with earlier versions of
Excel.
Results in earlier versions of Excel
If you name the two data arrays X's and Y's, earlier versions of Excel used a single pass through the data to compute
the sum of squares of X's, the sum of squares of Y's, the sum of X's, the sum of Y's, the sum of XY's, and the count of
the number of observations in each array. These quantities were then combined in the computational formula that
is given in the Help file in earlier versions of Excel. The Help file for RSQ shows the formula for the Pearson Product-
Moment Correlation Coefficient. This result is squared to obtain RSQ.
Results in Excel 2003 and in later versions of Excel
The procedure that is used in Excel 2003 and in later versions of Excel uses a two-pass process through the data.
First, the sums of X's and Y's and the count of the number of observations in each array are computed, and from
these the means (averages) of X and Y observations can be computed. Then, on the second pass, the squared
difference between each X and the X mean is found, and these squared differences are summed. The squared
difference between each Y and the Y mean is found, and these squared differences are summed. Additionally, the
products (X – X mean) * (Y – Y mean) are found for each pair of data points and summed. These three sums are
combined in the formula for PEARSON. Notice that none of the three sums is affected if you add a constant to each
value in the Y array (or in the X array). This behavior occurs because that same value is added to the Y mean (or to
the X mean). In the numeric examples, even with a high power of 10 in cell D12, these three sums are not affected,
and the results of the second pass are independent of the entry in cell D2. Therefore, the results in Excel 2003 and
in later versions of Excel are more stable numerically.
Conclusions
Replacing a one-pass approach by a two-pass approach guarantees better numeric performance of PEARSON, and
therefore RSQ, in Excel 2003 and in later versions of Excel. The results that you obtain in Excel 2003 and in later
versions of Excel will never be less accurate than results that you obtained in earlier versions of Excel.
In most practical examples, you are not likely to see a difference between the results in later versions of Excel and
the results in earlier versions of Excel. This behavior occurs because typical data is unlikely to exhibit the kind of
unusual behavior that this experiment illustrates. Numeric instability is most likely to appear in earlier versions of
Excel when data contains a high number of significant digits combined with relatively little variation between data
values.
The procedure of finding the sum of squared deviations about a sample mean by finding the sample mean, by
computing each squared deviation, and by summing the squared deviations is more accurate than the alternative
procedure. This alternative procedure was frequently named the "calculator formula" because it was suitable for
use of a calculator on a small number of data points. The alternative procedure used the following procedure:
Found the sum of squares of all observations, the sample size, and the sum of all observations
Computed the sum of squares of all observations minus ([sum of all observations]^2)/sample size).
There are many other functions that have been improved for Excel 2003 and for later versions of Excel. These
functions are improved because later versions of Excel replace the one-pass procedure with the two-pass
procedure that finds the sample mean on the first pass and then computes the sum of squared deviations about the
sample mean on the second pass.
The following list is a list of such functions:
VAR
VARP
STDEV
STDEVP
DVAR
DVARP
DSTDEV
DSTDEVP
FORECAST
SLOPE
INTERCEPT
PEARSON
RSQ
STEYX
Similar improvements were made in each of the three Analysis of Variance tools in the Analysis ToolPak.
How to run a macro when certain cells change in
Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you can create a macro that is called only when a value is entered into a cell in a particular sheet
or in any sheet that is currently open.
Note, however, that you should not call macros unnecessarily because they slow down the performance of Excel.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements. In many instances, a macro should run only when a
certain number of cells have values entered into them (referred to as the "key cells" in this document). In order to
prevent a large macro from running every time a value is entered into a cell of a sheet, you must check to see if the
ActiveCell is one of the key cells. To accomplish this, use the Intersect method on the ActiveCell and the range
containing the key cells to verify the ActiveCell is one of the key cells. If the ActiveCell is in the range containing the
key cells, you can call the macro.
To create the Visual Basic macro:
1. Right-click the Sheet1 tab and then click View Code.
The module sheet behind Sheet1 is opened.
2. Type the following code into the module sheet:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range

' The variable KeyCells contains the cells that will


' cause an alert when they are changed.
Set KeyCells = Range("A1:C10")

If Not Application.Intersect(KeyCells, Range(Target.Address)) _


Is Nothing Then

' Display a message when one of the designated cells has been
' changed.
' Place your code here.
MsgBox "Cell " & Target.Address & " has changed."

End If
End Sub

3. Click Close and Return to Microsoft Excel on the File menu.


When you type an entry in cells A1:C10 on Sheet1, a message box is displayed.
"Run-time Error 1004" when you make changes to
legend entries in an chart in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you run a Microsoft Visual Basic for Applications (VBA) macro that uses the LegendEntries method to make
changes to legend entries in a Microsoft Excel chart, you may receive the following error message:
Run-time error '1004': Application or object-defined error

Cause
This behavior occurs when the Excel chart contains more legend entries than there is space available to display the
legend entries on the Excel chart. When this behavior occurs, Microsoft Excel may truncate the legend entries.
Because the LegendEntries method in your VBA macro uses what appears for the legend (in this case, the truncated
legend entries), the error message that is mentioned in the "Symptoms" section of this article occurs when there
are more entries than there is space available to display the legend entries on the Excel chart.

Workaround
Microsoft provides programming examples for illustration only, without warranty either expressed or implied,
including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This
article assumes that you are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality of a particular
procedure, but they will not modify these examples to provide added functionality or construct procedures to meet
your specific needs.
For more information about the support options that are available and about how to contact Microsoft, visit the
following Microsoft Web site:
https://support.microsoft.com
To work around this behavior, create a macro that reduces the font size of the Excel chart legend text before your
VBA macro makes changes to the chart legend and then restore the font size of the chart legend so that it is similar
to the following macro example.

NOTE
You must have an Excel chart on your worksheet for this macro to run correctly.
Sub ResizeLegendEntries()

With Worksheets("Sheet1").ChartObjects(1).Activate
' Store the current font size
fntSZ = ActiveChart.Legend.Font.Size

'Temporarily change the font size.


ActiveChart.Legend.Font.Size = 2

'Place your LegendEntries macro code here to make


'the changes that you want to the chart legend.

' Restore the font size.


ActiveChart.Legend.Font.Size = fntSZ
End With

End Sub
Run-time error-2147467259 (80004005) when you set
a property of a chart
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You have a macro that sets a property of a chart in Microsoft Excel. For example, the macro sets
the MaximumScale, MinimumScale, Title, Axis, or Legendproperty of a chart.
You protect the worksheet. When you do this, you click to select the Edit objects check box in the Protect
Sheet dialog box.
You run the macro.
In this scenario, you receive an error message that resembles one of the following.
Error message 1

Run-time error '-2147467259 (80004005)':

Method 'MaximumScale' of object 'Axis' failed

Error message 2

Run-time error '-2147467259 (80004005)':

Automation error

Unspecified error

Cause
This problem occurs because the Excel object model for the chart is disabled on a protected worksheet.

Workaround
To work around this problem, unprotect the worksheet to enable the macro to run. You can manually unprotect the
worksheet or by using the Unprotect method in the macro.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Sample macro to insert/delete rows or columns on
multiple sheets in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains a sample Microsoft Visual Basic for Applications macro (Sub procedure) that you can use to
insert or delete rows or columns in multiple worksheets in Microsoft Excel.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure. However, they will not modify these examples to provide added functionality
or construct procedures to meet your specific requirements. To insert or delete rows or columns on multiple sheets,
either use a For Each...Next statement to loop through all the required sheets or select the rows or columns before
you perform the insertion or deletion.

NOTE
The following sample macros work only on a contiguous range of columns or rows.

Sample macro using a loop to insert rows in multiple sheets

Sub Insert_Rows_Loop()
Dim CurrentSheet As Object

' Loop through all selected sheets.


For Each CurrentSheet In ActiveWindow.SelectedSheets
' Insert 5 rows at top of each sheet.
CurrentSheet.Range("a1:a5").EntireRow.Insert
Next CurrentSheet
End Sub

Sample macro to select column and insert new column


The following sample macro selects the entire column before it inserts new columns:
Sub Select_Insert_Column()
Dim MyRange as Object
' Store the selected range in a variable.
Set MyRange = Selection
' Select the entire column.
Selection.EntireColumn.Select
' Insert Columns in all selected sheets.
Selection.Insert
' Reselect the previously selected cells.
MyRange.Select
End Sub
Sample user-defined function to hide formula errors
in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Some formulas in Microsoft Excel return error values under certain conditions. For example, when you use a
division formula that multiplies a number by zero, you receive the following error value:
#DIV/0!
Using the sample formula "=100/0", you can work around this behavior by hiding the error value. To do this,
modify the formula as follows:

=IF(ISERROR(100/0),"",100/0)

NOTE
The preceding formula works, but with longer formulas it can become cumbersome.

With the user-defined function that is provided in this article, the workaround formula is as follows:

=IFERROR(100/0,"")

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
How to create the sample function
1. In Excel, open the Microsoft Visual Basic Editor.
To do this in Microsoft Office Excel 2003 and in earlier versions of Excel, point to Macro on the Tools menu,
and then click Visual Basic Editor. Alternatively, press ALT+F11.
To do this in Microsoft Office Excel 2007, click the Developer tab, and then click Visual Basic in the Code
group. Alternatively, press ALT + F11.
NOTE
To show the Developer tab in the Ribbon, click the Microsoft Office Button , click Excel Options , click the
Popular category, click to select the Show Developer tab in the Ribbon check box, and then click OK .

2. Click Module on the Insert menu, and then type the following macro.

Function IfError(formula As Variant, show As String)

On Error GoTo ErrorHandler

If IsError(formula) Then
IfError = show
Else
IfError = formula
End If

Exit Function

ErrorHandler:
Resume Next

End Function

3. On the File menu, click Close and Return to Microsoft Excel .


4. To use the function, click Insert Function on the Insert menu. In the Insert Function dialog box, click User
Defined under Categories, and then click IfError under Select a function. Click OK.
5. Next to Formula, type the formula for which you want to hide the error value. Do not include the equal sign
(=).
6. Next to Show, type what you want to show in place of the error value. If you want to hide the error value,
type double quotes ("").
7. Click OK.
For more information about how to use the sample code in this article, see How to run sample code from
Knowledge Base articles in Office 2000.
SAP add-ins don't display controls after update to
Office 1806 or higher
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You're running Windows 10 with an lower version than 1809, and you update your Microsoft Office instance to
version 1806 or higher.
You install a SAP add-in for Microsoft Office (for Microsoft Excel, PowerPoint, or Word).
In this scenario, the SAP add-in can no longer display some controls in dialog boxes and task panes. If you revert
Office to version 1805, this issue doesn't occur.

Resolution
To resolve the issue, update Office to version 1808, or a later version, and update Windows to version 1809 or a
later version.
Third-par ty disclaimer information
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.

Workaround
Until Office and Windows have been updated to the required versions, you can configure the When using
multiple displays setting in Office to Optimize for compatibility . The issues should not occur in compatibility
mode.
How to save the addresses from a Word mail-merge
label document to Excel
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to save addresses that are contained in a Microsoft Word mail merged label document to
a Microsoft Excel workbook.

More Information
The following steps assume that you already have an existing Word mail merged label document that contains the
addresses that you want to save in an Excel workbook. To save addresses that are contained in a Word mail merged
label document to an Excel workbook, follow these steps, as appropriate for the version of Excel that you are
running.
Microsoft Office Excel 2007
1. Start Microsoft Office Word 2007, and then open the Word document that contains your merged address
labels.
2. Click the Home tab.
3. In the Editing group, click Replace .
4. On the Replace tab, click More .
5. With the insertion point in the Find what box, click Special , and then click Section Break .
You should see ^b in the Find what box.
6. Leave the Replace with box blank, and then click Replace All .
7. Click Close to close the Find and Replace dialog box.
8. Under Table Tools , click the Layout tab.
9. In the Table group, click View Gridlines .
10. Delete all blank columns in your merged address label document.
To do this, click inside a blank column, click Delete in the Rows & Columns group, and then click Delete
Columns .

NOTE
Repeat this step until each blank column is deleted in the address labels table.
11. Replace all paragraph marks with a tab. To do this, follow these steps:
a. Click the Microsoft Office Button , and then click Word Options .
b. Click Display .
c. Click to select the Show all formatting marks check box, and then click OK .
d. Click the Home tab.
e. In the Editing group, click Replace .
f. On the Replace tab, click More .
g. On the Replace tab, delete the contents of the Find what box.
With the insertion point in the Find what box, click Special , and then click Paragraph Mark .
h. Delete the contents of the Replace with box.
With the insertion point in the Replace with box, click Special , and then click Tab Character .
i. Click Replace All .
j. Click Close .
12. Click the Layout tab.
13. With the insertion point in the table, click Conver t to Text in the Data group.
14. In the Conver t Table to Text dialog box, click Paragraph marks , and then click OK .
15. Click the Microsoft Office Button , and then click Save As .
16. In the Save As dialog box, change the Save as type box to Plain Text (*.txt) .
Type a new name for your address list in the File name box, and then click Save .
17. If a File Conversion dialog box appears, click Windows (Default) , click to select the Inser t line breaks
check box, make sure that the End lines with box has CR/LF selected, and then click OK .
18. Close your new file, and then exit Word.
19. Start Excel 2007.
20. Click the Microsoft Office Button , and then click Open .
Change the Files of type box to All Files ( .) , and then open the file that you saved in step 16.
21. When the Text Impor t Wizard starts, accept the default settings, and then click Finish .
Microsoft Office Excel 2003 and earlier versions of Excel
1. Start Word, and then open the Word document that contains your merged address labels.
2. On the Edit menu, click Replace .
3. On the Replace tab, click More .
4. With the insertion point in the Find what box, click Special , and then click Section Break .
You should see ^b in the Find what box.
5. Leave the Replace with box blank, and then click Replace All .
6. Click Close .
7. On the Table menu, click Show Gridlines .
8. Delete all blank columns in your merged address label document.
To do this, click inside a blank column, on the Table menu, point to Select , and then click Column .
9. On the Table menu, point to Delete , and then click Columns .
10. Repeat steps 8 and 9 for each blank column in your merged label document that you want to remove.
11. Replace all paragraph marks with a tab. To do this, follow these steps:
a. On the Tools menu, click Options .
b. On the View tab, click to select the All check box, and then click OK .
c. On the Edit menu, click Replace .
d. Click More to expand the Replace tab.
e. On the Replace tab, delete the contents of the Find what box.
With the insertion point in the Find what box, click Special , and then click Paragraph mark .
f. Delete the contents of the Replace with box.
With the insertion point in the Replace with box, click Special , and then click Tab Character .
g. Click Replace All .
h. In the Find and Replace dialog box, click Close .
12. With the insertion point in your Word table, point to Conver t on the Table menu, and then click Table to
Text .
13. In the Conver t Table to Text dialog box, click Paragraph marks , and then click OK .
14. On the File menu, click Save As .
15. In the Save As dialog box, change the Save as type box to Plain Text (*.txt) (Text Only (*.txt)).
Type a new name for your address list in the File name box, and then click Save .
16. If a File Conversion dialog box appears, click Windows (Default) , click to select the Inser t line breaks
check box, make sure that the End lines with box has CR/LF selected, and then click OK .
17. Close your new file, and then exit Word.
18. Start Excel.
19. On the File menu, click Open .
Change the Files of type box to All Files ( .) , and then open the file that you saved in steps 14, 15, and 16.
20. When the Text Impor t Wizard starts, accept the default settings, and then click Finish .
Security settings for Dynamic Data Exchange in Excel
Trust Center in Office 365
4/1/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Two new security options are now included in the Excel Trust Center in Office 365 under the Security Settings for
Dynamic Data Exchange heading:
Enable Dynamic Data Exchange Server Lookup
Enable Dynamic Data Exchange Server Launch (not recommended)
These new options are intended to help protect users from attackers who use Dynamic Data Exchange (DDE) to
spread malware.

More Information
These new options are located in the Excel Trust Center (File > Options > Trust Center > Trust Center Settings
> External Content ). They're listed as follows.
Enable Dynamic Data Exchange Ser ver Lookup
Select this option if you want to enable DDE server lookup. If this option is selected, DDE servers that are already
running will be visible and usable. By default, this option is selected.
Enable Dynamic Data Exchange Ser ver Launch (not recommended)
Select this option if you want to enable DDE server startup. If this option is selected, Excel starts DDE servers that
are not already running, and enables data to be sent out of Excel. For security, we recommend that you leave this
check box cleared. By default, this option is not selected.
For more information about what DDE is, see About Dynamic Data Exchange.
Set page setup attributes for more than one sheet in
Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, page setup attributes, such as margins, sheet orientation, and print titles, are set for each
worksheet, individually. This article describes three methods that you can use to set some of these attributes
globally.

More information
To set page setup attributes for a group of Excel worksheets, use one of the following methods.
Method 1: Change a group of worksheets
To apply page setup attributes to a group of worksheets in a workbook, follow these steps:
1. Press CTRL and then click each worksheet tab in the workbook that you want to affect.
2. On the File menu, click Page Setup.

NOTE
In Excel 2007, click the dialog box launcher in the Page Setup group in the Page Layout tab.

3. Make the changes that you want in the Page Setup dialog box, and then click OK.
All of the worksheets that you selected have the same page setup attributes.
Method 2: Use a macro
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.You can programmatically change the page setup
attributes in the active workbook and in any other open workbook.

NOTE
These macros use the Orientation property of the PageSetup object. You can modify other page setup attributes, by using
other PageSetup properties, such as LeftMargin, RightMargin, and so on.

To programmatically change the page orientation of all the sheets in the active workbook, use the steps in the
previous example:
1. Start Excel.
2. Enter some data in three worksheets.
3. Press ALT+F11 to start the Visual Basic Editor.
4. On the Insert menu, click Module.
5. Type the following code in the module sheet:

Sub SetAttributes()
For Each xWorksheet In ActiveWorkbook.Worksheets
xWorksheet.PageSetup.Orientation = _
Worksheets("Sheet1").PageSetup.Orientation
Next xWorksheet
End Sub

6. Press ALT+F11 to switch to Excel.


7. Select Sheet1.
8. On the File menu, click Page Setup.

NOTE
In Excel 2007, click the dialog box launcher in the Page Setup group in the Page Layout tab.

9. On the Page tab, under Orientation, click Landscape, and then click OK.
10. On the Tools menu, point to Macro, and then click Macros.

NOTE
In Excel 2007, use the following steps:
1. If the Developer tab is not available, use the following steps: > 1. Click the Microsoft Office Button, and then click
Excel Options.
> 1. In the Popular category, click to select the Show Developer tab in the Ribbon check box under Top options for
working with Excel, and then click OK.
2. On the Developer tab, click the Macros button in the Code group.

11. Click SetAttributes, and then click Run.


All three worksheets show landscape orientation in Print Preview.
To programmatically change the page setup attributes to all pages in the active workbook based upon the page
setup attributes of another open workbook, use the steps in the following example:

NOTE
This is a continuation of the following example.

1. On the File menu, click New.


NOTE
In Excel 2007, click Microsoft Office Button, and then click New.

2. Click Workbook, and then click OK.

NOTE
In Excel 2003, click Blank workbook under New in the New Workbook task pane. In Excel 2007, under Templates,
make sure that Blank and recent is selected, and then double-click Blank Workbook under Blank and recent in the
right pane.

3. Enter data into all of the worksheets in the new workbook.


4. Press ALT+F11 to start the Visual Basic editor.
5. Select the first workbook in the Project Explorer, and then click Module1 under the Modules folder.
6. Replace with the following code into the module1 sheet:

Sub SetWorkbookAttributes()
For Each xWorksheet In ActiveWorkbook.Worksheets
xWorksheet.PageSetup.Orientation = _
ThisWorkbook.Worksheets("Sheet1").PageSetup.Orientation
Next xWorksheet
End Sub

7. Press ALT+F11 to switch back to Excel.


8. On the Tools menu, point to Macro, and then click Macros.

NOTE
In Excel 2007, on the Developer tab, click Macros in the Code group.

9. Click Book1!SetWorkbookAttributes, and then click Run.


The page setup orientation is the same as that of sheet 1 in the first workbook.
If you want to change additional page setup properties for worksheets, you can add additional lines within the For
Each...Next statement in each Sub procedure. The lines should be identical to the example lines provided here,
except that the property (Orientation) can be changed as appropriate (CenterFooter, PaperSize, and so on).
How to set the starting page number in the header
or footer in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The starting page number for a Microsoft Excel document can be changed by clicking the Page Setup command.
Using the following commands in the header or footer prints a starting page number other than 1.

C OMMAND DESC RIP T IO N

&P+## Substitute a number for the number signs (#) to increment the
page numbers by that amount.

&P-## Substitute a number for the number signs (#) to decrement


the page numbers by that amount.

For example, to start page numbering at page 3, type the following in the header or footer section of the Page
Setup dialog box:
"&P+2" (without the quotation marks)

NOTE
You must type a space after the 2 in this example.
How to set up and use the RTD function in Excel
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes the functionality that the RealTimeData (RTD) function provides. Microsoft Office Excel
provides a worksheet function, RealTimeData (RTD). This function enables you to call a Component Object Model
(COM) Automation server to retrieve data in real time.
When you have to create a workbook that includes data that is updated in real time, for example, financial data or
scientific data, you can now use the RTD worksheet function. In earlier versions of Excel, Dynamic Data Exchange
(DDE) is used for that purpose. The RTD function is based on COM technology and provides advantages in
robustness, reliability, and convenience. RTD depends on the availability of an RTD server to make the real-time
data available to Excel. For more information about how to create an RTD server, see the "References" section.
The RTD function retrieves data from an RTD server for use in the workbook. The function result is updated
whenever new data becomes available from the server and the workbook can accept it. The server waits until Excel
is idle before updating. This relieves the developer of having to determine whether Excel is available to accept
updates. The RTD function differs from other functions in this regard because other functions are updated only
when the worksheet is recalculated.
Although the RTD function provides a link to data on a server, it is not the same type of link as references to cells in
other worksheets or workbooks. For example, if you use the RTD function in a workbook, you do not receive the
Links startup message when you open the workbook, nor can you manage the status of an RTD function through
the Edit Links dialog box.
Syntax
The RTD function uses the following syntax
=RTD(RealTimeServerProgID,ServerName,Topic1,[Topic2], ...)
where the function arguments are as follows:
RealTimeServerProgID
A string that represents the Program ID of the RTD server installed on the local system. This is typically a
COM add-in that is registered by a setup procedure or by using RegSvr32. RealTimeServerProgID is a
required argument.
ServerName
A string that represents the name of the server on which the RTD server is to be run. If the RTD server is run
locally, the ServerName should be an empty string ("") or omitted.
Topic1, [Topic2], ...
Strings that determine the data being retrieved. You can use from one to 28 topics, although only one topic is
required.
Using RTD
As an example of the RTD function, consider retrieving information from a server that delivers continuous data for
runners in several simultaneous races. Assume that the server is provided as a Dynamic Link Library (DLL) named
RaceReport.dll, that it is installed on the user's computer, and that it is registered as a COM add-in by its own setup
process. The general form of the RTD function as used with this server might be as follows
=RTD("MyRTDServerProdID","MyServer","RaceNum","RunnerID","StatType")
where the topics RaceNum, RunnerID, and StatType determine the race of interest, the runner whose data is
required, and the type of data for a particular use of the function, respectively.
Here the user might select a cell and type the following formula in it
=RTD("ExcelRTD.RaceReport","","2","16","Time")
to see the current elapsed time for runner number 16 in race number 2. The number of topics and the nature of the
associated data is determined by the developer of the COM server. For example, the race-reporting server might
deliver different data if you use the following RTD function:
=RTD("ExcelRTD.RaceReport","","3","25","Position")
In this case, the data returned indicates the current position of runner number 25 in race number 3.
In this manner, the same function can be used differently throughout the workbook to retrieve different data from
the same server, all of which is updated automatically.
Wrappers to Simplify Use
The RTD function can be used inside user-defined functions (UDFs) in Microsoft Visual Basic for Applications. These
then become wrappers for the RTD function. This approach can be useful in shielding users from the details of the
RTD server name and ProgID, and in enabling them to focus only on the data that is important to them.
For example, in the previous scenario, the user might be provided with two functions: GetTime(RunnerID) and
GetPosition(RunnerID). These functions assume that the user is always dealing with the same server and race
number. Therefore the user only has to specify a runner's ID to receive current data on the runner's elapsed time
and position, respectively.
Calculation
Because RTD updates data when Excel is idle, it continues to receive information if Excel is in manual calculation
mode. In that event, the new data is cached and the current values are used when a manual calculation is
performed.
Security
RTD servers should be digitally signed. If an RTD server is not digitally signed, the server may not load, and a #N/A
will be displayed in the cell(s) referencing the RTD server.
For Microsoft Office Excel 2007, you can review security settings by using the Trust Center. This can be accessed by
from the Trust Center tab in the Excel Options dialog box.
For Microsoft Office Excel 2003 and in Microsoft Excel 2002, the load behavior can be altered by adjusting the
macro security settings in Excel.

References
For more information about RTD and Excel security, click the following article number to view the article in the
Microsoft Knowledge Base:
286259 Security settings and Excel RealTimeData servers
For more information about creating an RTD server, click the following article number to view the article in the
Microsoft Knowledge Base:
285339 How to create a RealTimeData server for Excel
Description of the smart tag functionality in Excel
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes the functionality of the smart tags feature in Microsoft Excel.

More Information
Smart tags are designed to recognize specific data and then offer action options based on the type of data
recognized. The actions are made available with a button that appears near the cell that contains the recognized
data. The button appears when the cell is activated or when you move the mouse pointer over the cell.
How to turn on smart tags
Smart tag functionality is turned off by default. Before you can use smart tag functionality, you must turn on smart
tag recognition. To do this, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007
1. Click the Microsoft Office Button , and then click Excel Options .
2. Click Proofing .
3. Click AutoCorrect Options .
4. In the AutoCorrect dialog box, click the Smar t Tags tab.
5. Click to select the Label data with smar t tags check box.
6. In the Recognizers box, click to select the check boxes next to the specific smart tag recognizers that you want
to turn on, and then click OK .
7. Click OK to close the Excel Options dialog box.
Microsoft Office Excel 2003 and earlier versions of Excel
1. On the Tools menu, click AutoCorrect Options.
2. In the AutoCorrect dialog box, click the Smart Tags tab.
3. Click to select the Label data with smar t tags check box.
4. In the Recognizers box, click to select the check boxes next to the specific smart tag recognizers that you want to
turn on, and then click OK.
Smart tag recognition
A worksheet cell that contains data recognized by a smart tag is marked with a purple cell indicator in the
bottom-right corner of the cell. The smart tag button appears when the cell is selected or when you move the
pointer over the cell. When you click the smart tag button, the actions available from the smart tag are listed. If
the active cell contains a smart tag, and you move the mouse pointer over another cell that contains a smart tag,
two smart tag buttons appear. If a range of cells is selected, the smart tag button appears only for cells that you
move the pointer over.
A cell can contain more than one smart tag.
Excel can only pass the entire contents of a cell to a smart tag. For example, if "I like MSFT" is entered in a cell,
"MSFT" is not recognized as a financial symbol by the MSN MoneyCentral Financial Symbols smart tag.
Excel does support smart tags that span multiple cells.
Smart tag persistence
You can transfer smart tags from one Office program to another Office program by using the Clipboard. If a
smart tag is available in Microsoft Word but not in Excel, you can paste it into Excel, and its actions will be
available. However, the limitations related to the way that the contents of Excel cells are recognized still apply.
Smart tags remain in a cell if any of the following conditions are true:
The formatting of the cell is changed.
Rows or columns are inserted or deleted around the cell.
The cell is moved.
The cell is cut or copied and then pasted.
The cell is auto-filtered.
The cell is rearranged because of a sort operation.
The cell is hidden.
Smart tag are removed from a cell if any of the following conditions are true:
The data in a cell is changed or deleted.
The data in a cell is pasted over.
New data is dragged into a cell.
If a single cell that contains recognized data is pasted into a range of cells, the smart tag is not pasted into
the cells.
When you protect a worksheet, this prevents you from adding or removing smart tags from cells in the
worksheet. However, the smart tags that are already in a protected worksheet perform as expected.
Smart tags can be embedded in a workbook so that they are saved with the file. When you save a workbook
that contains embedded smart tags as a Web page (HTML or MHTML), and then view the Web page in
Microsoft Internet Explorer 5.5 or later, the smart tags are available. Only the custom actions of the smart
tags are listed in the Smart Tag Actions list.
To turn on smart tag embedding, follow these steps, as appropriate for the version of Excel that you are
running.
Excel 2007
1. Click the Microsoft Office Button , and then click Excel Options .
2. Click Proofing .
3. Click AutoCorrect Options .
4. In the AutoCorrect dialog box, click the Smar t Tags tab.
5. Click to select the Embed smar t tags in this workbook check box, and then click OK .
6. Click OK to close the Excel Options dialog box.
Excel 2003 and earlier versions of Excel
1. On the Tools menu, click AutoCorrect Options.
2. In the AutoCorrect dialog box, click the Smart Tags tab.
3. Click to select the Embed smar t tags in this workbook check box.
4. Click OK.
If you invoke a smart tag action, this is not included in the list of changes made when you track changes in a
shared workbook.
Cells in a PivotTable or QueryTable are passed to the recognizers when the PivotTable or the QueryTable is
created or refreshed in the same manner as normal cells.
The smart tag is removed from any cell that changes as a result of a recalculation, and the cell is then re-
evaluated by the smart tag recognizers.
Smart tag limitations
You cannot undo the removal of a smart tag by clicking Undo.
Smart tags are not re-pasted after an undo and redo of a paste operation. If smart tags are turned off, the Redo
command results in no smart tag in the cell. If smart tags are turned on, the cell is passed to the recognizers and
is recognized again.
There is a limit of 65,530 smart tags per worksheet.

References
For more information about smart tags, click the following article number to view the article in the Microsoft
Knowledge Base:
288958 How to remove smart tags from a workbook
How to control the startup message about updating
linked workbooks in Excel
4/10/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This step-by-step article describes how to control the startup message about updating linked workbooks in
Microsoft Office Excel.
When you open a workbook that contains links to cells in other workbooks, you may receive the following
message: This workbook contains links to other data sources. If you update the links, Excel attempts to retrieve the
latest data. If you don't update, Excel uses the previous information. You can click either Update or Don't Update .
By default, Excel displays this message. You can control if it appears, and if Excel updates the links manually or
automatically. To make these changes, use the following methods.

NOTE
Regardless of the options that you choose, Excel still displays a message if the workbook contains links that are not valid
or links that are broken.
To find information about the links in a workbook in Excel 2010 and later versions, select Edit Links in the Queries &
Connections group on the Data tab.

Additionally, the following options apply only when the workbook that contains the basic data is closed. If the
workbook with the basic data is already open when you open the workbook that contains the links, the links are
updated.

Automatic update and no message


To suppress the message and to automatically update the links when you open a workbook in Excel, follow these
steps:
1. Select File > Options > Advanced .
2. Under General , click to clear the Ask to update automatic links check box.

NOTE
When the Ask to update automatic links check box is cleared, the links are automatically updated. Additionally, no
message appears.
This option applies to the current user only and affects every workbook that the current user opens. Other users of the
same workbooks are not affected.
Manual update and no message
If you are sharing this workbook with other people who will not have access to the sources of the updated links,
you can turn off updating and the prompt for updating. To suppress the message and leave the links (not updated)
until you choose to update them, follow these steps:
1. In Excel, select Edit Links in the Queries & Connections group on the Data tab.
2. Click Star tup Prompt .
3. Click the Don't display the aler t and don't update automatic links option.

WARNING
If you choose not to update the links and not to receive the message, users of the workbook will not know that the
data is out of date. This choice affects all users of the workbook. However, this choice applies only to that particular
workbook.

To update the links manually, follow these steps:


1. Select Edit Links in the Queries & Connections group on the Data tab.
2. Select Update Values .
3. Select Close .
Do not display the alert and update links
When the Don't display the aler t and update links option is selected on a workbook, the selection is ignored. If
the person opening the workbook selected the Ask to update automatic links check box, the message appears.
If not, links are automatically updated.
Excel statistical functions: STEYX
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes the STEYX function in Microsoft Office Excel 2003 and in later versions of Excel, illustrates how
the function is used, and compares the results of the function for Excel 2003 and for later versions of Excel with the
results of STEYX in earlier versions of Excel.

More Information
The STEYX(known_y's,known_x's) function returns the standard error of Y given X for a least-squares linear
regression line that is used to predict y values from x values.
Syntax

STEYX(known_y's,known_x's)

The arguments, known_y's and known_x's, must be arrays or cell ranges that contain equal numbers of numeric
data values.
The most common usage of STEYX includes two ranges of cells that contain the data, such as STEYX(A1:A100,
B1:B100).
Example of usage
To illustrate the function STEYX, create a blank Excel worksheet, copy the following table, select cell A1 in your blank
Excel worksheet and then paste the entries so that the table fills cells A1:D12 in your worksheet.

Y - VA L UES X- VA L UES

1 = 3 + 10^$D$3 Power of 10 to add to data

2 =4 + 10^$D$3 0

3 =2 + 10^$D$3

4 =5 + 10^$D$3

5 =4+10^$D$3

6 =7+10^$D$3 pre-Excel 2003

when D3 = 7.5
Y - VA L UES X- VA L UES

=STEYX(A2:A7,B2:B7) 1.48954691097662

when D3 = 8

#DIV/0!

After you paste this table into your new Excel worksheet, click the Paste Options button, and then click Match
Destination Formatting . With the pasted range still selected, use one of the following procedures, as appropriate
for the version of Excel that you are running:
In Microsoft Office Excel 2007, click the Home tab, click Format in the Cells group, and then click AutoFit
Column Width .
In Excel 2003, point to Column on the Format menu, and then click AutoFit Selection .
You may want to format cells B2:B7 as Number with 0 decimal places and cell A9:D9 as Number with 6 decimal
places.
Cells A2:A7 and B2:B7 contain the y-values and x-values that are used to call STEYX in cell A9.
If you have a version of Excel that is earlier than Excel 2003, you should know that STEYX can exhibit round-off
errors. The behavior of STEYX has been improved for Excel 2003 and for later versions of Excel.
If you have an earlier version of Excel, the worksheet gives you a chance to run an experiment and discover when
round-off errors occur. Adding a positive constant to each of the observations in B2:B7 should not affect the value
of STEYX. If you were to plot x,y pairs with x on the horizontal axis and y on the vertical axis, adding a positive
constant to each x value would shift the data to the right. The best fit regression line would still have the same slope
and goodness of fit and should have the same value of STEYX.
Increasing the value in D3 adds a larger constant to B2:B7. If D2 <= 7, then there are no round-off errors that
appear in the first 6 decimal places of STEYX. But then try 7.25, 7.5, 7.75, and 8. D7:D12 show values of STEYX when
D2 = 7.5 and 8 respectively. Note that round-off errors have become so severe that division by 0 occurs when D3 =
8.
Earlier versions of Excel show wrong answers in these cases because the effects of round-off errors are more
profound with the computational formula that is used by these versions. Still, the cases that are used in this
experiment can be viewed as rather extreme.
If you have Excel 2003 or a later version of Excel, you will see no changes in values of STEYX if you try the
experiment that is described earlier. However, cells D7:D12 show round-off errors that you would have obtained by
using earlier versions of Excel.
Results in earlier versions of Excel
If you call the 2 data arrays X's and Y's, earlier versions of Excel used a single pass through the data to compute the
sum of squares of X's, the sum of squares of Y's, the sum of X's, the sum of Y's, the sum of XY's, and the count of the
number of observations in each array. These quantities were then combined into the computational formula that is
provided in the Help file in earlier versions of Excel.
Results in Excel 2003 and in later versions of Excel
The procedure that is used in Excel 2003 and in later versions of Excel uses a two-pass process through the data.
First, the sums of X's and Y's and the count of the number of observations in each array are computed, and from
these, the means (averages) of X and Y observations can be computed. Then, on the second pass,
the squared difference between each X and the X mean is found and these squared differences are summed,
the squared difference between each Y and the Y mean is found and these squared differences are summed, and
the products (X – X mean) * (Y – Y mean) are found for each pair of data points and summed.
STEYX is then computed by using the formula in the Help file for STEYX in Excel 2003 and in later versions of Excel.
Notice that none of these three sums is affected by adding a constant to each X value, because that same value is
added to the X mean. In the numeric examples, even with a high power of 10 in cell D3, these three sums are not
affected, and the results of the second pass are independent of the entry in cell D3. Therefore, the results in Excel
2003 and in later versions of Excel are more stable numerically.
Conclusions
Replacing a one-pass approach by a two-pass approach guarantees better numeric performance of STEYX in Excel
2003 and in later versions of Excel. The results in Excel 2003 and in later versions of Excel will never be less accurate
than the results in earlier versions.
In most practical examples, however, you are not likely to see a difference between the results in later versions of
Excel and the results in earlier versions of Excel. This is because typical data is unlikely to exhibit the kind of unusual
behavior that this experiment illustrates. Numeric instability is most likely to appear in earlier versions of Excel
when data contains a high number of significant digits combined with relatively little variation between data values.
The procedure of finding the sum of squared deviations about a sample mean by
finding the sample mean,
computing each squared deviation, and
summing the squared deviations
is more accurate than the alternative procedure. This procedure is frequently named the "calculator formula"
because it was suitable for use of a calculator on a small number of data points. The calculator formula uses the
following procedures:
Find the sum of squares of all observations, the sample size, and the sum of all observations.
Compute the sum of squares of all observations minus ((sum of all observations)^2)/sample size).
There are many other functions that have been improved for Excel 2003 and for later versions of Excel . These
functions were improved by replacing the one-pass procedure with the two-pass procedure that finds the sample
mean on the first pass and computes the sum of squared deviations about the sample mean on the second pass.
Functions that have been improved in this way for Excel 2003 and for later versions of Excel include the following
functions:
VAR
VARP
STDEV
STDEVP
DVAR
DVARP
DSTDEV
DSTDEVP
FORECAST
SLOPE
INTERCEPT
PEARSON
RSQ
STEYX
Similar improvements were made in each of the three Analysis of Variance tools in the Analysis ToolPak.
You receive a "Too many different cell formats" error
message in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Office Excel 2003, when you format a cell or a range of cells, you receive the following error message:
Too many different cell formats.
Excel encountered an error and had to remove some formatting to avoid corrupting the workbook .
In Microsoft Excel 2013, Microsoft Excel 2010, or Microsoft Excel 2007, files may produce the following error
message:
Excel found unreadable content in the file.
The following scenarios are also associated with styles:
When you open a file, all the formatting is missing.
The file size grows after you copy and paste between workbooks.
When you try to paste text, you receive the following error message:
Microsoft Excel can't paste data
In this scenario, all menu options to paste and the Ctrl+V keyboard shortcut are ignored and produce no
results although the Clipboard is not empty.

Cause
This problem occurs when the workbook contains more than approximately 4,000 different combinations of cell
formats in Excel 2003 or 64,000 different combinations in Excel 2007 and later versions. A combination is defined
as a unique set of formatting elements that are applied to a cell. A combination includes all font formatting (for
example: typeface, font size, italic, bold, and underline), borders (for example: location, weight, and color), cell
patterns, number formatting, alignment, and cell protection.

NOTE
If two or more cells share the same formatting, they use one formatting combination. If there are any differences in
formatting between the cells, each cell uses a different combination.

In Excel, style counts may increase when you copy between workbooks because custom styles are copied.
A workbook that has more than 4,000 styles may open in Excel 2007 and later versions because of the increased
limitation for formatting. However, this can cause an error in Excel 2003.
Resolution
To resolve this problem, use the appropriate method for your situation.
Method 1
To prevent built-in styles from being duplicated when you copy a workbook, make sure that you have the latest
updates for Excel installed from Windows Update.
Method 2
The following Knowledge Base articles discuss how to prevent copying custom styles between workbooks in one
instance of Excel when you move or copy a worksheet.

NOTE
These articles require you to install and add a registry key.

Unused styles are copied from one workbook to another workbook in Excel 2007
Unused styles are copied from one workbook to another in Excel 2010
Method 3
To clean up workbooks that already contain several styles, you can use one of the following third-party tools.
Excel formats (xlsx, xlsm)XLStyles Tool
Binary Excel formats (xls, xlsb), workbooks protected by a password, and encrypted workbooks
Remove Styles Add-in

NOTE
You can also download a copy of XLStyles Tool for Windows 10, Windows 8.1, and Windows 8 from the Microsoft Store.

Method 4
Simplify the formatting of your workbooks. For example, follow these guidelines to simplify formatting:
Use a standard font. By using the same font for all cells, you can reduce the number of formatting
combinations.
If you use borders in a worksheet, use them consistently.

NOTE
The borders between cells overlap. For example, if you apply a border to the right side of a cell, you do not have to
apply a border to the left side of the adjacent cell to the right.

If you apply patterns to cells, remove the patterns. To do this, open the Format Cells dialog box, click the
Patterns tab, and then click No Color .
Use styles to standardize the formatting throughout the workbook.

NOTE
After you simplify or standardize the formatting in the workbook, save, close, and then reopen the workbook before you
apply additional cell formatting.
More Information
In most cases, the current limit of different formatting combinations for a single workbook (4,000 for .xls format
and 64,000 for .xlsx format) is sufficient. This problem is likely to occur only when the workbook contains many
worksheets that use different formatting, or when many cells are formatted differently.
Third-par ty information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
Toolbar missing, or how to reset menus in Excel for
Mac
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
One or more toolbars are missing and cannot be added in Microsoft Excel for Mac.

Cause
There are two possible causes of this behavior:
The oval button in the upper-right corner of the document was clicked. This button "toggles" the display of
toolbars on and off.
There is an issue with Excel preferences.

Resolution
To resolve this issue, use the following methods in order.
Method 1: Make sure that toolbar display is not turned off
1. In the upper-right corner of the Excel window, click the oval button.

NOTE
When this button is clicked, the toolbars are hidden (in any Microsoft Office for Mac application). A second click
causes the toolbars to be displayed.

2. If the toolbars reappear, quit Excel, and then restart Excel to make sure that the appropriate toolbars are
displayed.
If Method 1 did not resolve the problem, try Method 2.
Method 2: Remove the Excel preferences
Step 1: Quit all applications
To quit active applications, follow these steps:
1. On the Apple menu, click Force Quit .
2. Select an application in the "Force Quit Applications" window.

NOTE
You cannot quit Finder .
3. Click Force Quit .
4. Repeate the previous steps until you quit all active applications.

WARNING
When an application is force quit, any unsaved changes to open documents are not saved.

Step 2: Remove the Excel Preferences


To remove the Excel preferences, follow these steps.
1. Quit all Microsoft Office for Mac applications.
2. On the Go menu, click Home .
3. Open Librar y .

NOTE
The Librar y folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open the Preferences folder. Click View , click Arrange by , and then select Name .
5. Look for a file that is named com.microsoft.Excel.plist.
6. If you locate the file, drag the file to the desktop. If you cannot locate the file, the application is using the
default preferences.
7. If you locate the file and move it to the desktop, start Excel, and check whether the problem still occurs. If the
problem still occurs, quit Excel, and restore the file to its original location. Then, go to the next step. If the
problem seems to be resolved, you can move the com.microsoft.Excel.plist file to the trash.
8. Quit all Office for Mac applications.
9. On the Go menu, click Home .
10. Open Librar y .

NOTE
The Librar y folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

11. Open the Preferences folder.


12. Open the Microsoft Folder.
13. Look for a file that is named com.microsoft.Excel.prefs.plist.
14. If you locate the file, move it to the desktop. If cannot locate the file, the application is using the default
preferences.
15. If you locate the file and move it to the desktop, start Excel, and then check whether the problem still occurs.
If the problem still occurs, quit Excel, and restore the file to its original location. Then, go to the next step. If
the problem seems to be resolved, you can move the com.microsoft.Excel.prefs.plist file to the trash.
16. Close all Office applications.
17. On the Go menu, click Home .
18. Open Librar y .

NOTE
The Librar y folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

19. Open the Preferences folder.


20. Open the Microsoft Folder.
21. Open the Office 2008 or Office 2011 folder.
22. Look for a file that is named Excel Toolbars (12) or Microsoft Excel Toolbars.
23. If you locate the file, move it to the desktop. If you cannot locate the file, the application is using the default
preferences.
If you locate the file and move it to the desktop, start Excel, and check whether the problem still occurs. If the
problem still occurs, quit Excel, and restore the file to its original location. If the problem seems to be resolved, you
can move the Excel Toolbars (12) file or the Microsoft Excel Toolbars to the trash.

NOTE
If the problem still occurs after you follow these steps, the problem is not related to these files. If the problem no longer
occurs, one of these files was causing the problem. If this is the case, restore the files to their original location one at a time.
Test the application after you restore each file. Continue to do this until the problem occurs again. When the problem
recurs, you can then assume that it is caused by the last file that you restored. Drag that file to the trash.
Top columns in an Excel spreadsheet pasted into a
PowerPoint presentation cut off
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When editing an Excel spreadsheet embedded into PowerPoint on a Surface Pro attached to an external monitor
when connected through a docking station, the source file is opened instead of the edit window.

Cause
This issue can occur when the scaling and layout of the monitor is different than that in the display setting.

Resolution
This issue can be resolved by following the steps below:
1. Open PowerPoint.
2. Under User Interface Options , select File , then Options , then General , and then Optimize for
Compatibility .
3. Under Display settings , set the scale and layout of all monitors connected to the Surface Pro to 125 .
Methods for transferring data to Excel from Visual
Basic
3/30/2020 • 14 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses numerous methods for transferring data to Microsoft Excel from your Microsoft Visual Basic
application. This article also presents the advantages and the disadvantages for each method so that you can
choose the solution that works best for you.

More Information
The approach most commonly used to transfer data to an Excel workbook is Automation. Automation gives you the
greatest flexibility for specifying the location of your data in the workbook as well as the ability to format the
workbook and make various settings at run time. With Automation, you can use several approaches for transferring
your data:
Transfer data cell by cell
Transfer data in an array to a range of cells
Transfer data in an ADO recordset to a range of cells using the CopyFromRecordset method
Create a QueryTable on an Excel worksheet that contains the result of a query on an ODBC or OLEDB data
source
Transfer data to the clipboard and then paste the clipboard contents into an Excel worksheet
There are also methods that you can use to transfer data to Excel that do not necessarily require Automation. If you
are running an application server-side, this can be a good approach for taking the bulk of processing the data away
from your clients. The following methods can be used to transfer your data without Automation:
Transfer your data to a tab- or comma-delimited text file that Excel can later parse into cells on a worksheet
Transfer your data to a worksheet using ADO
Transfer data to Excel using Dynamic Data Exchange (DDE)
The following sections provide more detail on each of these solutions.
Note When you use Microsoft Office Excel 2007, you can use the new Excel 2007 Workbook (*.xlsx) file format
when you save the workbooks. To do this, locate the following line of code in the following code examples:

oBook.SaveAs "C:\Book1.xls"

Replace this code with with the following line of code:

oBook.SaveAs "C:\Book1.xlsx"
Additionally, the Northwind database is not included in Office 2007 by default. However, you can download the
Northwind database from Microsoft Office Online.
Use Automation to transfer data cell by cell
With Automation, you can transfer data to a worksheet one cell at a time:

Dim oExcel As Object


Dim oBook As Object
Dim oSheet As Object

'Start a new workbook in Excel


Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add

'Add data to cells of the first worksheet in the new workbook


Set oSheet = oBook.Worksheets(1)
oSheet.Range("A1").Value = "Last Name"
oSheet.Range("B1").Value = "First Name"
oSheet.Range("A1:B1").Font.Bold = True
oSheet.Range("A2").Value = "Doe"
oSheet.Range("B2").Value = "John"

'Save the Workbook and Quit Excel


oBook.SaveAs "C:\Book1.xls"
oExcel.Quit

Transferring data cell by cell can be a perfectly acceptable approach if the amount of data is small. You have the
flexibility to place data anywhere in the workbook and can format the cells conditionally at run time. However, this
approach is not recommended if you have a large amount of data to transfer to an Excel workbook. Each Range
object that you acquire at run time results in an interface request so that transferring data in this manner can be
slow. Additionally, Microsoft Windows 95 and Windows 98 have a 64K limitation on interface requests. If you reach
or exceed this 64k limit on interface requests, the Automation server (Excel) might stop responding or you might
receive errors indicating low memory.
Once more, transferring data cell by cell is acceptable only for small amounts of data. If you need to transfer large
data sets to Excel, you should consider one of the solutions presented later.
For more sample code for Automating Excel, see How to automate Microsoft Excel from Visual Basic.
Use automation to transfer an array of data to a range on a worksheet
An array of data can be transferred to a range of multiple cells at once:
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object

'Start a new workbook in Excel


Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add

'Create an array with 3 columns and 100 rows


Dim DataArray(1 To 100, 1 To 3) As Variant
Dim r As Integer
For r = 1 To 100
DataArray(r, 1) = "ORD" & Format(r, "0000")
DataArray(r, 2) = Rnd() * 1000
DataArray(r, 3) = DataArray(r, 2) * 0.7
Next

'Add headers to the worksheet on row 1


Set oSheet = oBook.Worksheets(1)
oSheet.Range("A1:C1").Value = Array("Order ID", "Amount", "Tax")

'Transfer the array to the worksheet starting at cell A2


oSheet.Range("A2").Resize(100, 3).Value = DataArray

'Save the Workbook and Quit Excel


oBook.SaveAs "C:\Book1.xls"
oExcel.Quit

If you transfer your data using an array rather than cell by cell, you can realize an enormous performance gain with
a large amount of data. Consider this line from the code above that transfers data to 300 cells in the worksheet:

oSheet.Range("A2").Resize(100, 3).Value = DataArray

This line represents two interface requests (one for the Range object that the Range method returns and another
for the Range object that the Resize method returns). On the other hand, transferring the data cell by cell would
require requests for 300 interfaces to Range objects. Whenever possible, you can benefit from transferring your
data in bulk and reducing the number of interface requests you make.
Use automation to transfer an ADO recordset to a worksheet range
Excel 2000 introduced the CopyFromRecordset method that allows you to transfer an ADO (or DAO) recordset to a
range on a worksheet. The following code illustrates how you could automate Excel 2000, Excel 2002, or Office
Excel 2003 and transfer the contents of the Orders table in the Northwind Sample Database using the
CopyFromRecordset method.
'Create a Recordset from all the records in the Orders table
Dim sNWind As String
Dim conn As New ADODB.Connection
Dim rs As ADODB.Recordset
sNWind = _
"C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb" conn.Open
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ sNWind & ";"
conn.CursorLocation = adUseClient
Set rs = conn.Execute("Orders", , adCmdTable)

'Create a new workbook in Excel


Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add
Set oSheet = oBook.Worksheets(1)

'Transfer the data to Excel


oSheet.Range("A1").CopyFromRecordset rs

'Save the Workbook and Quit Excel


oBook.SaveAs "C:\Book1.xls"
oExcel.Quit
'Close the connection
rs.Close
conn.Close

Note If you use the Office 2007 version of the Northwind database, you must replace the following line of code in
the code example:

conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ sNWind & ";"

Replace this line of code with the following line of code:

conn.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & _ sNWind & ";"

Excel 97 also provides a CopyFromRecordset method but you can use it only with a DAO recordset.
CopyFromRecordset with Excel 97 does not support ADO.
For more information about using ADO and the CopyFromRecordset method, please see the following article in the
Microsoft Knowledge Base:
246335 How to transfer data from an ADO recordset to Excel with automation
Use automation to create a QueryTable on a worksheet
A QueryTable object represents a table built from data returned from an external data source. While automating
Microsoft Excel, you can create a QueryTable by simply providing a connection string to an OLEDB or an ODBC data
source along with an SQL string. Excel assumes the responsibility for generating the recordset and inserting it into
the worksheet at the location you specify. Using QueryTables offers several advantages over the
CopyFromRecordset method:
Excel handles the creation of the recordset and its placement into the worksheet.
The query can be saved with the QueryTable so that it can be refreshed at a later time to obtain an updated
recordset.
When a new QueryTable is added to your worksheet, you can specify that data already existing in cells on the
worksheet be shifted to accommodate the new data (see the RefreshStyle property for details).
The following code demonstrates how you could automate Excel 2000, Excel 2002, or Office Excel 2003 to create a
new QueryTable in an Excel worksheet using data from the Northwind Sample Database:

'Create a new workbook in Excel


Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add
Set oSheet = oBook.Worksheets(1)

'Create the QueryTable


Dim sNWind As String
sNWind = _
"C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb"
Dim oQryTable As Object
Set oQryTable = oSheet.QueryTables.Add( _
"OLEDB;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
sNWind & ";", oSheet.Range("A1"), "Select * from Orders") oQryTable.RefreshStyle = xlInsertEntireRows
oQryTable.Refresh False

'Save the Workbook and Quit Excel


oBook.SaveAs "C:\Book1.xls"
oExcel.Quit

Use the clipboard


The Windows Clipboard can also be used as a mechanism for transferring data to a worksheet. To paste data into
multiple cells on a worksheet, you can copy a string where columns are delimited by tab characters and rows are
delimited by carriage returns. The following code illustrates how Visual Basic can use its Clipboard object to
transfer data to Excel:

'Copy a string to the clipboard


Dim sData As String
sData = "FirstName" & vbTab & "LastName" & vbTab & "Birthdate" & vbCr _ & "Bill" & vbTab & "Brown" &
vbTab & "2/5/85" & vbCr _
& "Joe" & vbTab & "Thomas" & vbTab & "1/1/91"
Clipboard.Clear
Clipboard.SetText sData

'Create a new workbook in Excel


Dim oExcel As Object
Dim oBook As Object
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add

'Paste the data


oBook.Worksheets(1).Range("A1").Select
oBook.Worksheets(1).Paste

'Save the Workbook and Quit Excel


oBook.SaveAs "C:\Book1.xls"
oExcel.Quit

Create a delimited text file that Excel can parse into rows and columns
Excel can open tab- or comma-delimited files and correctly parse the data into cells. You can take advantage of this
feature when you want to transfer a large amount of data to a worksheet while using little, if any, Automation. This
might be a good approach for a client-server application because the text file can be generated server-side. You can
then open the text file at the client, using Automation where it is appropriate.
The following code illustrates how you can create a comma-delimited text file from an ADO recordset:
'Create a Recordset from all the records in the Orders table
Dim sNWind As String
Dim conn As New ADODB.Connection
Dim rs As ADODB.Recordset
Dim sData As String
sNWind = _
"C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb" conn.Open
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ sNWind & ";"
conn.CursorLocation = adUseClient
Set rs = conn.Execute("Orders", , adCmdTable)

'Save the recordset as a tab-delimited file


sData = rs.GetString(adClipString, , vbTab, vbCr, vbNullString)
Open "C:\Test.txt" For Output As #1
Print #1, sData
Close #1

'Close the connection


rs.Close
conn.Close

'Open the new text file in Excel


Shell "C:\Program Files\Microsoft Office\Office\Excel.exe " & _ Chr(34) & "C:\Test.txt" & Chr(34),
vbMaximizedFocus

Note If you use the Office 2007 version of the Northwind database, you must replace the following line of code in
the code example:

conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _


sNWind & ";"

Replace this line of code with the following line of code:

conn.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & _


sNWind & ";"

If your text file has a .CSV extension, Excel opens the file without displaying the Text Import Wizard and
automatically assumes that the file is comma-delimited. Similarly, if your file has a .TXT extension, Excel
automatically parse the file using tab delimiters.
In the previous code sample, Excel was launched using the Shell statement and the name of the file was used as a
command line argument. No Automation was used in the previous sample. However, if so desired, you could use a
minimal amount of Automation to open the text file and save it in the Excel workbook format:

'Create a new instance of Excel


Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
Set oExcel = CreateObject("Excel.Application")

'Open the text file


Set oBook = oExcel.Workbooks.Open("C:\Test.txt")

'Save as Excel workbook and Quit Excel


oBook.SaveAs "C:\Book1.xls", xlWorkbookNormal
oExcel.Quit

Transfer data to a worksheet by using ADO


Using the Microsoft Jet OLE DB Provider, you can add records to a table in an existing Excel workbook. A "table" in
Excel is merely a range with a defined name. The first row of the range must contain the headers (or field names)
and all subsequent rows contain the records. The following steps illustrate how you can create a workbook with an
empty table named MyTable.
Ex c e l 9 7, Ex c e l 2 0 0 0 , a n d Ex c e l 2 0 0 3

1. Start a new workbook in Excel.


2. Add the following headers to cells A1:B1 of Sheet1:
A1: FirstName B1: LastName
3. Format cell B1 as right-aligned.
4. Select A1:B1.
5. On the Insert menu, choose Names and then select Define. Enter the name MyTable and click OK.
6. Save the new workbook as C:\Book1.xls and quit Excel.
To add records to MyTable using ADO, you can use code similar to the following:

'Create a new connection object for Book1.xls


Dim conn As New ADODB.Connection
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\Book1.xls;Extended Properties=Excel 8.0;"
conn.Execute "Insert into MyTable (FirstName, LastName)" & _
" values ('Bill', 'Brown')"
conn.Execute "Insert into MyTable (FirstName, LastName)" & _
" values ('Joe', 'Thomas')"
conn.Close

Ex c e l 2 0 0 7

1. In Excel 2007, start a new workbook.


2. Add the following headers to cells A1:B1 of Sheet1:
A1: FirstName B1: LastName
3. Format cell B1 as right-aligned.
4. Select A1:B1.
5. On the Ribbon, click the Formulas tab, and then click Define Name . Type the name MyTable, and then click
OK .
6. Save the new workbook as C:\Book1.xlsx, and then quit Excel.
To add records to the MyTable table by using ADO, use code that resembles the following code example.

'Create a new connection object for Book1.xls


Dim conn As New ADODB.Connection
conn.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=C:\Book1.xlsx;Extended Properties=Excel 12.0;"
conn.Execute "Insert into MyTable (FirstName, LastName)" & _
" values ('Scott', 'Brown')"
conn.Execute "Insert into MyTable (FirstName, LastName)" & _
" values ('Jane', 'Dow')"
conn.Close

When you add records to the table in this manner, the formatting in the workbook is maintained. In the previous
example, new fields added to column B are formatted with right alignment. Each record that is added to a row
borrows the format from the row above it.
You should note that when a record is added to a cell or cells in the worksheet, it overwrites any data previously in
those cells; in other words, rows in the worksheet are not "pushed down" when new records are added. You should
keep this in mind when designing the layout of data on your worksheets.

NOTE
The method to update data in an Excel worksheet by using ADO or by using DAO does not work in Visual Basic for
Application environment within Access after you install Office 2003 Service Pack 2 (SP2) or after you install the update for
Access 2002 that is included in Microsoft Knowledge Base article 904018. The method works well in Visual Basic for
Application environment from other Office applications, such as Word, Excel, and Outlook.

For more information, click the following article numbers to view the article in the Microsoft Knowledge Base:
904953 You cannot change, add, or delete data in tables that are linked to an Excel workbook in Office Access 2003
or in Access 2002
For additional information on using ADO to access an Excel workbook, see How To Query and Update Excel Data
Using ADO From ASP.
Use DDE to transfer data to Excel
DDE is an alternative to Automation as a means for communicating with Excel and transferring data; however, with
the advent of Automation and COM, DDE is no longer the preferred method for communicating with other
applications and should only be used when there is no other solution available to you.
To transfer data to Excel using DDE, you can use the LinkPoke method to poke data to a specific range of cell(s), or
you use the LinkExecute method to send commands that Excel will execute.
The following code example illustrates how to establish a DDE conversation with Excel so that you can poke data to
cells on a worksheet and execute commands. Using this sample, for a DDE conversation to be successfully
established to the LinkTopic Excel|MyBook.xls, a workbook with the name MyBook.xls must already be opened in a
running instance of Excel.

NOTE
When you use Excel 2007, you can use the new .xlsx file format to save the workbooks. Make sure that you update the file
name in the following code example.

Note In this example, Text1 represents a Text Box control on a Visual Basic form:

'Initiate a DDE communication with Excel


Text1.LinkMode = 0
Text1.LinkTopic = "Excel|MyBook.xls"
Text1.LinkItem = "R1C1:R2C3"
Text1.LinkMode = 1

'Poke the text in Text1 to the R1C1:R2C3 in MyBook.xls


Text1.Text = "one" & vbTab & "two" & vbTab & "three" & vbCr & _
"four" & vbTab & "five" & vbTab & "six"
Text1.LinkPoke

'Execute commands to select cell A1 (same as R1C1) and change the font format
Text1.LinkExecute "[SELECT(""R1C1"")]"
Text1.LinkExecute "[FONT.PROPERTIES(""Times New Roman"",""Bold"",10)]"

'Terminate the DDE communication


Text1.LinkMode = 0

When using LinkPoke with Excel, you specify the range in row-column (R1C1) notation for the LinkItem. If you are
poking data to multiple cells, you can use a string where the columns are delimited by tabs and rows are delimited
by carriage returns.
When you use LinkExecute to ask Excel to carry out a command, you must give Excel the command in the syntax of
the Excel Macro Language (XLM). The XLM documentation is not included with Excel versions 97 and later. DDE is
not a recommended solution for communicating with Excel. Automation provides the greatest flexibility and gives
you more access to the new features that Excel has to offer.
How to troubleshoot "available resources" errors in
Excel
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you work with a Microsoft Excel file, you receive one of the following messages:

Excel cannot complete this task with available resources. Choose less data or close other applications.

Out of Memory

Not enough System Resources to Display Completely

There isn't enough memory to complete this action. Try using less data or closing other applications. To
increase memory availability, consider:
- Using a 64-bit version of Microsoft Excel.
- Adding memory to your device.

Cause
The above memory error messages can be very generic and don't always identify the real cause of the issue.
However, if your file is large or contains a large amount of features, it is possible you are running low on available
memory resources.
Before we explore the more common reasons for the memory errors, it good to understand Excel's limitations.
Please see the following resources for more information:
Excel specifications and limits
Excel 2010 Performance: Performance and Limit Improvements
Memory usage in the 32-bit edition of Excel 2013 and 2016
If you are not hitting a resource limitation, these are the most common resolutions.

Resolution
Follow the provided methods in this article to resolve the available resource error message in Excel. If you have
previously tried one of these methods and it did not help, go to another method from this list:
Method 1: Contents of the spreadsheet
The first thing to determine is if the error is specific to one workbook (or others created from the same template).
Typical actions that cause memory error messages are:
Inserting a row or column
Sorting
Performing calculations
Copy and pasting
Opening or closing the workbook
Running VBA
If you are seeing the error when performing any of the above actions, it's time to look to determine what is going
on in your file. These will be addressed in the sections below.
Calculations
If you are inserting rows and columns, performing calculations, or copying and pasting and receive the message, it
can be tied to formulas having to recalculate.
Consider this scenario:
You have a spreadsheet with 1 million formulas on a sheet and you insert a new column. This will force Excel to
recalculate all the formulas in the spreadsheet adjusting for the new column that you inserted. It is very possible,
depending on the complexity of your spreadsheet, bitness of Excel, and how the spreadsheet is built, and what
formulas are used, that you receive the out of resources error.
The following articles address how to optimize performance with calculations:
Excel 2010 Performance: Tips for Optimizing Performance Obstructions
Excel 2010 Performance: Improving Calculation Performance
Other Spreadsheet Elements
Other areas that can cause the memory issues are excess shapes, complex PivotTables, macros, and complex charts
with many data points. The following article walks through identifying and fixing these issues.
Top 10 List of Performance Issues in Excel Workbooks
Custom Views in a Shared Workbook
If you are using the feature Shared Workbook. (Review Ribbon>Share Workbook) Cleaning out the Custom Views
may help with available memory. To do this;
1. On the View Ribbon
2. Custom Views on the dialog choose Delete
Deleting Custom Views doesn't delete anything in the spreadsheet, it does delete the print areas, and filters. These
can easily be reapplied.
If your issue is not resolved after you clean up the file, go to method 2.
Method 2: Verify/install the latest updates
You might have to set Windows Update to automatically download and install recommended updates. Installing
any important, recommended, and optional updates can frequently correct problems by replacing out-of-date files
and fixing vulnerabilities. To install the latest Office updates, click the link specific to your version of Windows and
follow the steps in that article.
Operating system updates:
Install Windows updates
Office updates:
For more information about Office updates, see Office downloads & updates.
If your issue is not resolved after you install the updates, go to method 3.
Method 3: Add-ins interfering
Check the Add-ins that are running, and try disabling them to see if Excel is working properly. Follow the directions
in the following article to disable the add-ins.
View, manage, and install add-ins in Office programs
If you find that Excel is no longer giving you the error after you remove the add-ins, then it is recommended to
contact the manufacturer of the add-in for support.
If your issue is not resolved after you remove the add-ins, go to method 4.
Method 4: Test disabling Preview/Details Pane in Windows 7
If you are running Windows 7, try disabling the preview and details panes in Windows. You will have to disable
them in three locations.
Windows Explorer:
1. Right click on Start button
2. Click Open Windows Explorer
3. Click Organize | Layout
4. Uncheck Details Pane and Preview Pane
Excel:
1. Click File | Open
2. Click Organize | Layout
3. Uncheck Details Pane and Preview Pane Outlook:
4. Open a new e-mail
5. In the "Include" group on the Ribbon, click Attach File
6. Click Organize | Layout
7. Uncheck Details Pane and Preview Pane
If your issue is not resolved after you turn off preview and details panes, go to method 5.
Method 5: Test a different Default Printer
When Excel launches, it uses the default printer to help render the file. Try testing with the "Microsoft XPS
Document Writer" as the default printer and see if we continue to get the error. To do this;
1. Close Excel
2. Open the printer and faxes window (XP) or Devices and Printers (Vista, 7, 8, 10)
3. Right click the "Microsoft XPS Document Writer" printer
4. Click Set as Default
If your issue is not resolved after you change your default printer, go to method 6.
Method 6: Test without Antivirus
Antivirus can sometimes cause problems by continuously trying to scan the Excel file or something in the file. Many
times the memory error will be random and will be found with any spreadsheet. Test this by shutting off the
antivirus temporarily, or by not having Excel files scanned. In some cases the AV will need to be removed.
If your issue is not resolved after you turn off antivirus, go to method 7.
Method 7: Test with 64 bit version of Excel
Working with large Excel files can use the memory available to the 32 bit Excel application. In any 32 bit application
there is a 2 GB limitation.
If your processes need to use more than 2 GB's, then you need to carefully consider moving to Microsoft Excel 64
bit version. The 64 bit version will allow all available physical RAM on the machine to be used. If you are interested
in researching 64 bit versions, see 64-bit editions of Office 2013.
If your issue is not resolved after testing on 64 bit, go to method 8.
Method 8: Other applications are consuming the computer's memory and not enough is being allocated to Excel
Does the message clear up for some time after you reboot or shut off some of your applications? That's probably a
good sign this is your issue, follow the steps to shut down some of the extra applications running on your
computer.
How to perform a clean boot in Windows

More Information
Additional article
Excel cannot complete this task with available resources error, Excel 2010
If the information in this article did not help resolve the error in Excel, select one of the following options:
More Microsoft online articles: Perform a search to find more online articles about this specific error
Help from the Microsoft Community online: Visit the Microsoft Community and post your question about this
error
Contact Microsoft support: Find the phone number to contact Microsoft Support
How to turn off Function Argument ToolTips in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, you can complete functions with the aid of the ToolTip feature. This feature displays ToolTips by
default when you begin to type a formula in the formula bar. These ToolTips also make it easier to obtain additional
help for a given function by allowing you to click the function name in the ToolTip and jump directly to its
associated Help topic.
This article explains how to turn off these function ToolTips in Microsoft Excel 2002 and in later versions of Excel.
When you do this, you can type the function in the formula bar without assistance. .
How to turn off function argument ToolTips in Microsoft Excel 2002 and in Microsoft Excel 2003
To do this, follow these steps:
1. On the Tools menu, click Options .
2. In the Options dialog box, click the General tab.
3. Click to clear the Function tooltips check box, and then click OK .
How to turn off function argument ToolTips in Microsoft Office Excel 2007
When you begin to type a formula into a cell in Excel 2007, the Formula AutoComplete function provides a drop-
down list of formulas. After you have typed a formula into a cell and you begin to type an argument for the
formula, the function ScreenTips function provides a list of required and optional arguments for the formula.
This section describes how to turn off the Formula AutoComplete function and the function ScreenTips function.
To turn off the Formula AutoComplete function, follow these steps:
1. Click the Microsoft Office Button , click Excel Options , and then click Formulas .
2. Click to clear the Formula AutoComplete check box.
To turn off the function ScreenTips function, follow these steps:
1. Click the Microsoft Office Button , click Excel Options , and then click Advanced .
2. In the Display area, click to clear the Show function ScreenTips check box.
"Unable to cast COM object..." when exporting to
Excel from Team Explorer 2008
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Action
Using Team Explorer 2008 you try to open a work item or collection of work items in Microsoft Excel via the menu
item "Open Selection in Microsoft Excel" or "Open in Microsoft Excel".

Result
You receive the following error message:

Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type


'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM
component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following
error: The interface is unknown. (Exception from HRESULT: 0x800706B5).

Resolution
You may be able to resolve this error message by resetting the Visual Studio 2008 environment:
1. Open a command prompt and CD to %programfiles%\Microsoft Visual Studio 9\Common7\IDE
(path assumes you have Visual Studio 2008 installed in the default location; adjust accordingly).
2. Execute the following command:
devenv.exe /ResetUserData
An unexpected value is returned when you use the
DAYS360 function in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use the DAYS360 function to calculate the number of days between two dates, an unexpected value is
returned. For example, when you use the DAYS360 function with a start date of February 28 and with an end date
of March 28, a value of 28 days is returned. You expect a value of 30 days to be returned for every full month.

Cause
This behavior may occur if you use the U.S. method, also known as the NASD method, with the DAYS360 function.

NOTE
By default, the U.S. method is used in the DAYS360 function. If you do not specify a method, the default method is used.

Workaround
To work around this behavior, use the European method with the DAYS360 function. To use the European method
with the DAYS360 function, use the following syntax:
=DAYS360(cell number of star t date ,cell number of end date ,TRUE)

More Information
Steps to reproduce the behavior
1. In cell A1, type 2/28/2006, and then press ENTER.
2. In cell A2, type 3/28/2006, and then press ENTER.
3. In cell A3, type =DAYS360(A1,A2), and then press ENTER.
Results: A value of 28 is returned in cell A3.

References
For more information about the DAYS360 function in Microsoft Office Excel 2003, click Microsoft Excel Help on
the Help menu, type DAYS360 in the Search for box in the Assistance pane, and then click Star t searching to
view the topic.
For more information about the DAYS360 function in Microsoft Excel 2002 or in Microsoft Excel 2000, click
Microsoft Excel Help on the Help menu, type DAYS360 in the Office Assistant or the Answer Wizard, and then
click Search to view the topic.
For more information about the DAYS360 function in Microsoft Excel 97, click the Index tab in Microsoft Excel
Help , type DAYS360, and then double-click the selected text to view the "DAYS360 worksheet function" topic.
Using a worksheet function in a Visual Basic macro in
Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
You can call most built-in Microsoft Excel worksheet functions directly from a Microsoft Visual Basic for Applications
macro. This article describes how to use a built-in worksheet function in a macro.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
Using a Worksheet Function
You can use most built-in worksheet functions in a macro by calling the function as a method of the Application
object or the WorksheetFunction object. For example, to successfully call the ACOS worksheet function, you can use
the following line of code in a macro:

X = WorksheetFunction.Acos(-1)

NOTE
If you attempt to use a built-in worksheet function without qualifying the function with the Application or WorksheetFunction
object, you may receive the following error message:
Sub or Function Not Defined

Visual Basic for Applications provides many functions that are equivalent to the built-in worksheet functions in
Microsoft Excel. However, not all of the built-in worksheet functions will work with the Application or
WorksheetFunction objects. You cannot use a built-in worksheet function in a macro by calling the function as a
method of the Application object or the WorksheetFunction object if there is an equivalent function in Visual Basic.

References
For additional information about the worksheet functions that are notsupported with the Application or
WorksheetFunction objects, see Not All Worksheet Functions Supported As Methods of Application Object.
How to use cell references and defined names in
criteria in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, criteria can be set by typing the exact value that is desired in the criteria cells, or by using cell
references or defined names.
To use the value of cell D1 as the criteria, type the following formula in the criteria cell:
=$D$1
To use the value of a defined name, such as "CritVar", type the following formula in the criteria cell:
=CritVar
To use the operators, such as less than (<) and greater than (>), the operator must be concatenated with the
formula. For example, to specify a match of greater than the value in cell D1, type the following formula in the
criteria cell:
=">"&$D$1
To specify a match of greater than or equal to a cell defined as "GVAR", type the following formula in the criteria
cell:
=">="&GVAR

More Information
Quotation marks must be used. Otherwise, Excel interprets the information as "greater than "$D$1"" where "$D$1"
is a text string. The same applies for a defined name.
How to use defined names to automatically update a
chart range in Excel
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
To set up a chart that is automatically updated as you add new information to an existing chart range in Microsoft
Excel, create defined names that dynamically change as you add or remove data.

More Information
This section includes two methods for using defined names to automatically update the chart range.
Method 1: Use OFFSET with a defined name
To use this method, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007, 2010 and 2013
1. In a new worksheet, type the following data:

A1: Month B1: Sales


A2: Jan B2: 10
A3: Feb B3: 20
A4: Mar B4: 30

2. On the Formulas tab, click Define Name in the Defined Names group.
3. In the Name box, type Date.
4. In the Refers to box, type "=OFFSET($A$2,0,0,COUNTA($A:$A)-1)", and then click OK .
5. On the Formulas tab, click Define Name in the Defined Names group.
6. In the Name box, type Sales.
7. In the Refers to box, type "=OFFSET($B$2,0,0,COUNTA($B:$B)-1)", and then click OK .
8. Clear cell B2, and then type "=RAND()*0+10"

NOTE
This formula uses the volatile RAND function. The formula automatically updates the OFFSET formula that is used in
the defined name "Sales" when you enter new data into column B. The value 10, which is used in this formula, is the
original value of cell B2.

9. Select cells A1:B4.


10. On the Inser t tab, click a chart, and then click a chart type.
11. Click the Design tab, click the Select Data in the Data group.
12. Under Legend Entries (Series) , click Edit .
13. In the Series values box, type =Sheet1!Sales , and then click OK .
14. Under Horizontal (Categor y) Axis Labels , click Edit .
15. In the Axis label range box, type =Sheet1!Date , and then click OK .
Microsoft Office Excel 2003 and earlier versions of Excel
1. In a new worksheet, type the following data:

A1: Month B1: Sales


A2: Jan B2: 10
A3: Feb B3: 20
A4: Mar B4: 30

2. On the Insert menu, point to Name, and then click Define.


3. In the Names in workbook box, type Date.
4. In the Refers to box, type "=OFFSET($A$2,0,0,COUNTA($A:$A)-1)"
5. Click Add.
6. In the Names in workbook box, type Sales.
7. In the Refers to box, type "=OFFSET($B$2,0,0,COUNT($B$2:$B$200)-1)"
8. Click Add , and then click OK .
9. Clear cell B2, and then type "=RAND()*0+10"

NOTE
This formula uses the volatile RAND function. The formula automatically updates the OFFSET formula that is used in
the defined name "Sales" when you enter new data into column B. The value 10, which is used in this formula, is the
original value of cell B2.

10. Select $A$1:$B$4.


11. Create the chart, and then add the defined names in the chart. To do this, follow these steps, as appropriate
for the version of Excel that you are running.
Microsoft Excel 97 through Excel 2003
1. On the Insert menu, click Chart to start the Chart Wizard.
2. Click a chart type, and then click Next.
3. Click the Series tab. In the Series list, click Sales.
4. In the Categor y (X) axis labels box, replace the cell reference with the defined name Date.
For example, the formula might be similar to the following:
=Sheet1!Date
5. In the Values box, replace the cell reference with the defined name Sales.
For example, the formula might be similar to the following:
=Sheet1!Sales
6. Click Next.
7. Make any changes you want in step 3 of the Chart Wizard and click Next.
8. Specify the chart location and click Finish.
Microsoft Excel 5.0 or Microsoft Excel 7.0
1. On the Insert menu, point to Chart, and click As New Sheet to start the Chart Wizard.
2. Click Next.
3. Click a chart type, and then click Next.
4. Click a chart subtype, and then click Next.
5. Click Columns for Data Series In and type 1 for Use First 1 Columns for Categor y (x) Axis Labels .
Click Next.
6. Click the titles that you want to display and click Finish.
The chart appears on a new chart.
7. Select the data series. On the Format menu, click Select Data Series.
8. Click the X Values tab. In the X Values box, replace the cell reference with the defined name Date.
For example, the formula might be similar to the following:
=Sheet1!Date
9. Click the Name And Values tab. In the Y Values box, replace the cell reference with the defined name Sales.
For example, the formula might be similar to the following:
=Sheet1!Sales
10. Click OK.
Method 2: Use a database, OFFSET, and defined names in Excel 2003 and in earlier versions of Excel
You can also define your data as a database and create defined names for each chart data series. To use this
method, follow these steps:
1. In a new worksheet, type the following data:

A1: Month B1: Sales


A2: Jan B2: 10
A3: Feb B3: 20
A4: Mar B4: 30

2. Select the range A1:B4, and then click Set Database on the Data menu.
3. On the Formula menu, click Define Name.
4. In the Name box, type Date.
5. In the Refers to box, type "=OFFSET(Database,1,0,ROWS(Database)-1,1)"
6. Click Add.
7. In the Name box, type Sales.
8. In the Refers to box, type "=OFFSET(Database,1,1,ROWS(Database)-1,1)"
9. Click Add , and then click OK .
10. Select $A$1:$B$4
11. Repeat step 10 from method 1 to create the chart and add the defined names to the chart.
As long as the data that you want to appear in your chart is defined as a database, the chart is updated
automatically as you add new data.

NOTE
If you are creating a series chart that plots every value in an adjacent block of cells in single column, and the block of cells
starts with the first row, you can use either of the following formulas in the Refers to box for the defined name:
=INDIRECT("Sheet1!$a$1:$a"&COUNT(Sheet1!$A:$A))
=Sheet1!$A$1:OFFSET(Sheet1!$A$1,COUNT(Sheet1!$A:$A),0)

To use a block of cells that start with a cell on a row other than the first row, reference that row in the first cell
reference and add the starting row number to the count to find the last row number. To plot adjacent nonnumeric
entries (for example, labels), use COUNTA instead of COUNT.
How to use Draw Border tools and Draw Border Grid
tools to apply and remove Excel cell borders
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This step-by-step article shows an example of how you can use the Draw Border tools and the Draw Border Grid
tools in Microsoft Excel.
Excel provides a method to add or to remove borders around and between cells. Instead of selecting cells first and
then formatting, you can choose the formatting tool that you want to use, and then apply the format to one or
more cells.
Microsoft Office Excel 2007
To try an example that uses the Draw Border tools and the Draw Border Grid tools, follow these steps:
1. Start Excel.
2. In the Font group on the Home tab, click the arrow next to the Borders button, point to Line Style and
then click the double line style.
3. In the Font group on the Home tab, click the arrow next to the Borders button, and then click Draw
Border .
4. Click and then drag the border tool over the range B3:D14.
A double-line border surrounds the range B3:D14.
5. In the Font group on the Home tab, click the arrow next to the Borders button, and then click Erase
Border .
6. Click and then drag the erasing tool over the range of B3:D7.
Notice that the border is removed from the range B3:B7.
7. In the Font group on the Home tab, click the arrow next to the Borders button, point to Line Color , and
then click Red .
8. In the Font group on the Home tab, click the arrow next to the Borders button, and then click Draw
Border Grid .
9. Drag the mouse pointer over the range B8:D14.
There is a red double-line border around each cell in the range B8:D14.
Microsoft Office Excel 2003 and Microsoft Excel 2002
To try an example that uses the Draw Border tools and the Draw Border Grid tools, follow these steps:
1. Start Excel.
2. On the Formatting toolbar, click the arrow next to the Borders button.
3. Click Draw Borders to display the Borders toolbar.
4. Click the arrow next to the Line Style box, and then select the double line.
5. Click and then drag the border tool over the range B3:D14.
A double-line border surrounds the range B3:D14.
6. On the Borders toolbar, click Erase Border .
7. Click and then drag the erasing tool over the range of B3:D7.
Notice that the border is removed from the range B3:B7.
8. Click the arrow next to the Draw Border button, and then click Draw Border Grid .
9. On the Borders toolbar, click the Line Color button, and then click Red .
10. Drag the mouse pointer over the range B8:D14.
There is a red double-line border around each cell in the range B8:D14.
How to use the INDIRECT function to create
references in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, the INDIRECT worksheet function returns the contents of the specified reference and displays its
contents. You can use the INDIRECT worksheet function to create linked references to other workbooks. You can
reference each attribute of the reference (workbook name, worksheet name, and cell reference) individually by
using the INDIRECT function to create a user-defined dynamic reference with worksheet cell references as inputs.

More Information
NOTE
The INDIRECT function only returns the result of a reference to an open file. If a workbook that the INDIRECT function is
indirectly referencing is closed, the function returns a #REF! error.

To create a reference to a workbook using three different cell inputs as references for the workbook, worksheet, and
cell link, follow the steps in the following examples.
Example 1
1. Start Excel.
2. In Book1, Sheet1, cell A1 type This is a test.
3. In Microsoft Office Excel 2003 and in earlier versions of Excel, click New on the File menu, click Workbook ,
and then click OK . In Microsoft Office Excel 2007, click the Microsoft Office Button, Click New, and then click
Create. In Microsoft Office Excel 2010, click the File Menu, click New , and then click Create .
4. In Book2, Sheet1, cell A1 type Book1.
5. In Book2, Sheet1, cell A2 type Sheet1.
6. In Book2, Sheet1, cell A3 type A1.
7. Save both workbooks.
8. In Excel 2003 and in earlier versions of Excel, type the following formula in Book2, Sheet1, cell B1:
=INDIRECT("'["&A1&".xls]"&A2&"'!"&A3)
In Excel 2007, type the following formula:
=INDIRECT("'["&A1&".xlsx]"&A2&"'!"&A3)
The formula returns "This is a test."
Example 2
In Excel 2003 and in earlier versions of Excel, you can replace the formula in Example 1 with multiple INDIRECT
statements, as in the following formula:
=INDIRECT("'["&INDIRECT("A1")&".xls]"&INDIRECT("A2")&"'!"&INDIRECT("A3"))
In Excel 2007 and Excel 2010, type the following formula:
=INDIRECT("'["&INDIRECT("A1")&".xlsx]"&INDIRECT("A2")&"'!"&INDIRECT("A3"))

NOTE
The difference in how Excel references the cells. Example 1 references cells A1, A2, and A3 without using quotation marks,
while Example 2 references the cells using quotation marks around the references.

The INDIRECT function references cells without using quotation marks. This function evaluates the result of the cell
reference. For example, if cell A1 contains the text "B1," and B1 contains the word "TEST," the formula
=INDIRECT(A1) returns the result "TEST."
However, referencing a cell with quotation marks returns the result of the cell contents. In the example in the
previous sentence, the formula returns the text string "B1" instead of the contents of cell B1.
Use the left, right, mid, and len functions in Visual
Basic for Applications in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains examples of how to manipulate text strings using the Left, Right, Mid, and Len functions in
Microsoft Visual Basic for Applications in Microsoft Excel.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure. However, they will not modify these examples to provide added functionality
or construct procedures to meet your specific requirements.
To following procedure demonstrates the use of the Left, Right, Mid, and Len functions of Microsoft Visual Basic for
Applications in Microsoft Excel:
1. Create a new, blank Excel workbook.
2. Open the Visual Basic Editor by pressing ALT+F11.
3. On the Insert menu, click Module.
4. Type the following macro in the new module sheet.
Sub String_Len()
' Sets MyString.
MyString = InputBox("Enter some text.")
' Displays length of string.
MsgBox Prompt:="The length of the string is " & _
Len(MyString) & " characters."
End Sub

Sub String_Left()
' Sets MyString.
MyString = InputBox("Enter some text.")
StringLen = Len(MyString)
Pos = InputBox("Please enter a number from 1 to " & StringLen)
' Takes the left number of specified characters.
Result = Left(MyString, Pos)
' Displays the result.
MsgBox Prompt:="The left " & Pos & " characters of """ & _
MyString & """ are: " & _
Chr(13) & Result
End Sub

Sub String_Right()
' Sets MyString.
MyString = InputBox("Enter some text.")
StringLen = Len(MyString)
Pos = InputBox("Please enter a number from 1 to " & StringLen)
' Takes the right number of specified digits.
Result = Right(MyString, Pos)
' Displays the result.
MsgBox Prompt:="The right " & Pos & " characters of """ & _
MyString & """ are: " & _
Chr(13) & Result
End Sub

Sub String_Mid()
' Sets MyString.
MyString = InputBox("Enter some text.")
' Sets starting position.
StartPos = InputBox _
("Give me a starting position (1 to " _
& Len(MyString) & ")")
' Determines length of string of text.
StringLen = Len(MyString) - StartPos + 1
' Sets number of characters.
NumChars = InputBox _
("How many characters would you like? (From 1 to " & _
StringLen & ")")
MsgBox prompt:="The result is: " & _
Mid(MyString, StartPos, NumChars)
End Sub

To see an example of the Left, Right, Mid, and Len functions, use one of the following procedures, as appropriate for
the version of Excel that you are running:
In Microsoft Office Excel 2007, click the Developer tab, click Macros in the Code group, select the macro for
the function that you want, and then click Run
In Microsoft Office Excel 2003 and in earlier versions of Excel, click Macros on the Tools menu, select the macro
for the function that you want, and then click Run .

References
For more information about these functions, type the following text on a module sheet:
Len
Right
Left
Mid
Highlight the function about which you want more information, and then press F1.
How to use a logical AND or OR in a SUM+IF
statement in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel, when you use the logical functions AND and/or OR inside a SUM+IF statement to test a range
for more than one condition, it may not work as expected. A nested IF statement provides this functionality;
however, this article discusses a second, easier method that uses the following formulas.
For AND Conditions

=SUM(IF(Test1*Test2*...*Testn))

For OR Conditions

=SUM(IF(Test1+Test2+...+Testn))

More Information
Use a SUM+IF statement to count the number of cells in a range that pass a given test or to sum those values in a
range for which corresponding values in another (or the same) range meet the specified criteria. This behaves
similarly to the DSUM function in Microsoft Excel.
Example
This example counts the number of values in the range A1:A10 that fall between 1 and 10, inclusively.
To accomplish this, you can use the following nested IF statement:

=SUM(IF(A1:A10>=1,IF(A1:A10<=10,1,0)))

The following method also works and is much easier to read if you are conducting multiple tests:

=SUM(IF((A1:A10>=1)*(A1:A10<=10),1,0))

The following method counts the number of dates that fall between two given dates:

=SUM(IF((A1:A10>=DATEVALUE("1/10/99"))*(A1:A10<=DATEVALUE("2/10/99")),1,0))
NOTE
You must enter these formulas as array formulas by pressing CTRL+SHIFT+ENTER simultaneously. On the Macintosh,
press COMMAND+RETURN instead.
Arrays cannot refer to entire columns.

With this method, you are multiplying the results of one logical test by another logical test to return TRUEs and
FALSEs to the SUM function. You can equate these to:

TRUE*TRUE=1
TRUE*FALSE=0
FALSE*TRUE=0
FALSE*FALSE=0

The method shown above counts the number of cells in the range A1:A10 for which both tests evaluate to TRUE. To
sum values in corresponding cells (for example, B1:B10), modify the formula as shown below:

=SUM(IF((A1:A10>=1)*(A1:A10<=10),B1:B10,0))

You can implement an OR in a SUM+IF statement similarly. To do this, modify the formula shown above by
replacing the multiplication sign (*) with a plus sign (+). This gives the following generic formula:

=SUM(IF((Test1)+(Test2)+...+(Testn),1,0))

References
For more information about how to calculate a value based on a condition, click Microsoft Excel Help on the Help
menu, type about calculating a value based on a condition in the Office Assistant or the Answer Wizard, and then
click Search to view the topic.
Use a macro to apply cell shading format to every
other row in a selected range in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Excel automatically formats new data that you type at the end of a list to match the previous rows. You
can also format a list programmatically. This article contains a sample Microsoft Visual Basic for Applications
procedure to shade every other row in a selection.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
To see the patterns available in Microsoft Office Excel 2003 and in earlier versions, click Cells on the Format menu,
and then click the Patterns tab.
To see the patterns available in Microsoft Office Excel 2007, follow these steps:
1. On the Home tab, click Format in the Cells group . Then, click Format Cells..
2. In the Format Cells dialog box, click the Fill tab.
The Pattern drop-down list displays the available patterns. The pattern that is used in the following macro, referred
to by its constant name, xlGray16, is the fifth one from the right in the first row.
The following macro sets the pattern in every other row of the current selection to xlGray16.
Sample Visual Basic Procedure

Sub ShadeEveryOtherRow()
Dim Counter As Integer

'For every row in the current selection...


For Counter = 1 To Selection.Rows.Count
'If the row is an odd number (within the selection)...
If Counter Mod 2 = 1 Then
'Set the pattern to xlGray16.
Selection.Rows(Counter).Interior.Pattern = xlGray16
End If
Next

End Sub
NOTE
This macro runs only on the rows of the selected range. If you add any new rows of data after you run the macro, you must
run the macro again with all the new rows of data selected.

This process can also be done manually by using conditional formatting.


For additional information about how to format every other row by using conditional formatting, see Apply
shading to alternate rows in a worksheet.
You can also format a list by using the AutoFormat menu command. In Excel 2003 and in Microsoft Excel 2002,
the AutoFormat menu command is on the Format menu. In Excel 2007, you have to add the AutoFormat menu
command to the Quick Access Toolbar. To do this, follow these steps:
1. Click Microsoft Office Button , and then click Excel Options .
2. Click Customize .
3. Click to select the All Commands under the Choose commands from .
4. Click AutoFormat , click Add , and then click OK .
Use the OnEntry macro to create a running total in a
cell comment in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft Excel you can avoid circular references when you create a running total by storing the result in a non-
calculating part of a worksheet. This article contains a sample Microsoft Visual Basic for Applications procedure that
does this by storing a running total in a cell comment.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
To Create a Running Total in a Cell
1. Open a new workbook in Microsoft Excel.
2. Start the Visual Basic Editor (press ALT+F11).
3. On the Inser t menu, click Module .
4. Type the following macros into this module:
' The Auto_Open name forces this macro to run every time
' the workbook containing this macro is opened.

Sub Auto_Open()
' Every time a cell's value is changed,
' the RunningTotal macro runs.
Application.OnEntry = "RunningTotal"
End Sub

'----------------------------------------------------------
' This macro runs each time the value of a cell changes.
' It adds the current value of the cell to the value of the
' cell comment. Then it stores the new total in the cell comment.
Sub RunningTotal()

On Error GoTo errorhandler ' Skip cells that have no comment.

With Application.Caller

' Checks to see if the cell is a running total by


' checking to see if the first 4 characters of the cell
' comment are "RT= ". NOTE: there is a space after the equal
' sign.
If Left(.Comment.Text, 4) = "RT= " Then

' Change the cell's value to the new value in the cell
' plus the old total stored in the cell comment.
RT = .Value + Right(.Comment.Text, Len(.Comment.Text) - 4)
.Value = RT

' Store the new total in the cell note.


.Comment.Text Text:="RT= " & RT
End If
End With

Exit Sub ' Skip over the errorhandler routine.

errorhandler: ' End the procedure if no comment in the cell.


Exit Sub

End Sub

'--------------------------------------------------------------
' This macro sets up a cell to be a running total cell.
Sub SetComment()
With ActiveCell
' Set comment to indicate that a running total is present.
' If the ActiveCell is empty, multiplying by 1 will
' return a 0.
.AddComment
.Comment.Text Text:="RT= " & (ActiveCell * 1)
End With
End Sub

5. After typing the macros, click Close and Return to Microsoft Excel on the File menu.
6. Save and close your the workbook, and then re-open it.
The Auto_Open macro that you typed is run when you open the workbook.
7. Select cell C3.
This is the cell that will contain a comment with the running total.
8. Follow these steps to run the SetComment macro:
a. On the Tools menu, point to Macro, and then click Macros.
b. In the Macro dialog box, click SetComment, and then click Run.
An Example of Using the Running Total
To use the running total, follow these steps:
1. Type the number 10 in cell C3.
2. Select cell C3 and notice the comment displays "RT= 10" (without the quotation marks).
3. Type the number 7 in cell C3.
4. Select cell C3 and notice the comment displays "RT= 17" (without the quotation marks).
To Remove the Running Total
To remove the running total, follow these steps:
1. Select the cell that contains the running total that you want removed.
2. Right-click the cell and click Delete Comment on the shortcut menu.
Use Saved property to determine if a workbook has
changed
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
You can determine if changes have been made to a workbook by checking the Saved property of the workbook.
The Saved property returns a True or False value depending on whether changes have been made to the workbook.

NOTE
It is possible to set the Saved property to True or False. The "More Information" section of this article contains sample macros
that demonstrate the use of the Saved property.

Various conditions in your worksheet, such as the presence of volatile functions, may affect the Saved property.

More information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
Example 1: Macro to Display Message If Active Workbook Has Unsaved Changes

Sub TestForUnsavedChanges()
If ActiveWorkbook.Saved = False Then
MsgBox "This workbook contains unsaved changes."
End If
End Sub

Example 2: Macro to Close Workbook and Discard Changes


This macro closes the workbook that contains the sample code and discards any changes to the workbook by
setting the Saved property to True:

Sub CloseWithoutChanges()
ThisWorkbook.Saved = True
ThisWorkbook.Close
End Sub

Example 3: Another Macro to Close Workbook and Discard Changes


Sub CloseWithoutChanges()
ThisWorkbook.Close SaveChanges:=False
End Sub

References
For more information about how to use the sample code in this article, see How to run sample code from
Knowledge Base articles in Office 2000.
Use shared workbooks with different versions of Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This step-by-step article explains how to share a Microsoft Excel workbook with other users.
If you want several users to work in the same Excel workbook simultaneously, you can save the workbook as a
shared workbook. Users can then enter data, insert rows and columns, add and change formulas, and change
formatting.

NOTE
It is not possible to open shared workbooks that are created in Microsoft Excel 95 in later versions of Excel and still maintain
their shared status.

Set up a shared workbook


To make changes to a shared workbook that was created in Microsoft Excel 97 or a later version of Excel, you must
use Excel 97 or a later version of Excel.
Specifically, even if a shared workbook that was created in Excel 97 or a later version of Excel is saved as an Excel 95
workbook, the workbook cannot be shared. If a workbook that was created in Excel 95 is shared, it is a read-only
workbook when it is opened in Excel 97 or a later version of Excel.
To set up a shared workbook, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Office Excel 2007
1. Click the Review tab.
2. Click Share Workbook in the Changes group.
3. On the Editing tab, click to select the Allow changes by more than one user at the same time. This also
allows workbook merging check box, and then click OK .
4. In the Save As dialog box, save the shared workbook on a network location where other users can gain access
to it.
Microsoft Office Excel 2003 and earlier versions of Excel
1. On the Tools menu, click Share Workbook, and then click the Editing tab.
2. Click to select the Allow changes by more than one user at the same time check box, and then click OK.
3. Save the workbook when you are prompted.
4. On the File menu, click Save As, and then save the shared workbook on a network location where other users
can gain access to it.
Use startup folders in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

For a Microsoft Excel 2001 for Mac version of this article, see 259921.

Summary
This step-by-step article describes how to use the Microsoft Excel startup folders. Excel uses startup folders in two
ways:
To load Excel workbooks at startup.
As a reference location for templates.
The actual startup folder locations vary, depending on which version of Excel you use.
Folders that Excel uses at startup
If you install Excel in the default location, Excel opens files from the following paths:
In Microsoft Office Excel 2003, the path is C:\Program Files\Microsoft Office\Office11\Xlstart
In Microsoft Office Excel 2007, the path is C:\Program Files\Microsoft Office\Office12\Xlstart
C:\Documents and Settings\User_name\Application Data\Microsoft\Excel\XLSTART
In this path, User_name is your logon user name.
The folder that is specified in the At star tup, open all files in box.

NOTE
To find the At star tup, open all files in box in Excel 2003, click Options on the Tools menu, and then click
the General tab.
To find the At star tup, open all files in box in Excel 2007, click the Microsoft Office Button , click Excel
Options , and then click Advanced . The At star tup, open all files in box is under General.

Accepted file types during Excel startup


You typically use startup folders to load Excel templates and add-ins. You can also use startup folders to load
workbooks. When you load the following types of files from a startup folder, the files have the important
characteristics that are described in the following list.
Templates
If you save a workbook named Book.xlt, and then put it in a startup folder location, that workbook is the default
workbook when you start Excel or open a new workbook.
To use additional templates, you must save them in the following folder:
C:\Program Files\Microsoft Office\Templates\1033
To use the templates in Excel 2003, follow these steps:
1. On the File menu, click New .
2. In the New Workbook task pane, click On my computer under Templates .
3. In the Templates dialog box, double-click the template for the type of workbook that you want to create on the
Spreadsheet Solutions tab.
To use the templates in Excel 2007, follow these steps:
1. Click the Microsoft Office Button , and then click New .
2. Under Templates , click Installed Templates .
3. Under Installed Templates , click the template that you want, and then click Create .
Add-ins
Add-ins (.xla files) that you put in a startup folder do not typically appear when you start Excel. The add-ins are
loaded in memory. The add-ins run any auto macros.
You can use these add-ins by whatever method the add-in provides (for example, a command on a menu or a
button on a toolbar).
Workbooks
Workbooks (.xls files) that you put in a startup folder are loaded and appear when you start Excel, unless the
workbook is saved in a hidden state.
For example, the personal macro workbook Personal.xls is a global macro workbook that Excel typically loads from
the XLStart folder in a hidden state.
Incorrect use of the alternative startup file location
When you use the alternative startup file location, you must specify a file path where there are recognizable file
types (such as templates, add-ins, and workbooks).
If Excel finds unrecognizable file types in a startup folder, you may receive an error message. The most common
error message is:
This file is not a recognizable format.
Use the default file location
In addition to the alternative startup file location, the default file location can be set by using the Default file
location box on the General tab in the Options dialog box in Excel 2003.
The default file location differs from a startup folder. It can set the folder location that you want Excel to point to
when you open or save a file by using the File menu.

NOTE
In Excel 2007, to see the default file location, follow these steps:
1. Click the Microsoft Office Button , and then click Excel Options .
2. Click Save .
3. The Default file location box is under Save workbooks .
How to use the "Insert Options" button in Excel
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article explains the functionality of the Insert Options button in the Microsoft Excel user interface (UI).

More Information
The Insert Options button may become available when you insert cells, rows, and columns into your worksheet.
The button appears on the UI only when one or more of the following conditions are true:
The row or any cell in the row above or below the inserted row has formatting different from the default.
The column or any cell in the column to the left or right of the inserted column has formatting different from the
default.
Any cell above, below, to the right, or to the left of the inserted cell or cells has formatting different from the
default.
Note The button does not appear when you insert copied cells.
The button appears just below and to the right of the inserted selection. When you insert rows and columns, the
button may also appear below and to the right of the row or column heading.
When you click the button, you are presented with a list of options that you can apply to the inserted selection.
Cell options
Cell insert options appear when you insert a cell or a range of cells into an area on your worksheet. The exact set of
options depends on whether you choose to shift existing cells vertically or horizontally when you perform the
insertion. For example, the following set of options is available if you shift cells horizontally (to the right):
Format Same as Left : Applies formatting to the inserted cells to match the format of the cells to the left.
Format Same as Right : Applies formatting to the inserted cells to match the format of the cells to the right.
Clear Formatting: Clears all formatting from the inserted cells.
When you shift cells down, the words Left and Right in the preceding options are replaced with Above and Below.
Column options
The Insert Column options reflect the fact that when you insert a column, the existing columns are shifted to the
right. The button offers the same options as the cell options.
Row options
When you insert a row or a set of rows, the existing rows below the insertion point are shifted down, and you
receive the following set of options:
Format Same as Above: Applies formatting to the inserted row to match the format of the rows above.
Format Same as Below: Applies formatting to the inserted row to match the format of the rows below.
Clear Formatting: Clears all formatting.
Turning off Insert Options
To do this, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Excel 2010 or Excel 2013
1. Click the File tab, and then click Excel Options .
2. Click the Advanced tab.
3. Click to clear the Show Inser t Options buttons check box in the Cut, copy, and paste section, and then click
OK .
Microsoft Office Excel 2007
1. Click the Microsoft Office Button , and then click Excel Options .
2. Click the Advanced tab.
3. Click to clear the Show Inser t Options buttons check box in the Cut, copy, and paste section, and then click
OK .
Microsoft Office Excel 2003
1. On the Tools menu, click Options .
2. Click the Edit tab.
3. Click to clear the Show Inser t Options buttons check box.
4. Click OK .

References
For additional information about other option buttons, see the following articles:
Description of the smart tag functionality in Excel
Add or remove AutoCorrect entries in Word
Fill data automatically in worksheet cells
Copy cell data and paste attributes only
Detect errors in formulas
How to use the AutoRepublish feature in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This step-by-step article explains how to use the AutoRepublish feature in Microsoft Excel. This feature lets you
automatically update a Web page as the workbook from which it was created is updated.
AutoRepublish is an automatic link from a Web page to an Excel workbook. When AutoRepublish is enabled, the
Web page is automatically updated every time that the workbook from which it was created is saved.
How to enable AutoRepublish
To enable the AutoRepublish feature, follow these steps, as appropriate for the version of Excel that you are running.
Microsoft Excel 2002 and Microsoft Office Excel 2003
1. Start Excel, and then open or create the workbook that you want to save as a Web page.
2. Click Save as Web Page .
3. Click Publish.
4. In the File name box, type the path and the file name that you want.
5. Click to select the AutoRepublish ever y time this workbook is saved check box, and then click Publish.
Microsoft Office Excel 2007
1. Start Excel, and then open or create the workbook that you want to save as a Web page.

2. Click the , and then click Save As .


3. In Save as type list, click Web Page .
4. In the File name box, type the path and the file name that you want.
5. Click Publish .
6. Click to select the AutoRepublish ever y time this workbook is saved check box, and then click Publish .
Troubleshooting
You know that AutoRepublish is working if you receive a confirmation message that resembles the following
message the next time that you save the workbook after publishing:
This workbook contains items that are automatically republished to Web pages each time the workbook is saved.
Disable the AutoRepublish feature while this workbook is open
Enable the AutoRepublish feature You may also receive this confirmation message if the workbook that you
are saving contains a chart sheet, Microsoft Excel 4 macro sheets, or Microsoft Excel 5 dialog sheets.
If you click Enable the AutoRepublish feature , a warning message appears in a generic Excel warning message
box or error message box. The warning states that the workbook contains a chart sheet, Excel 4 macro sheets, or
Excel 5 dialog sheets. For more information about the warning and what, if anything, your options are in this case,
click Help on the warning message.
How to use the IF worksheet function to suppress the
#DIV/0! error value in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

For a Microsoft Excel 2000 version of this article, see Hide error values and error indicators in cells.

Summary
When you divide by 0 (zero) or a blank cell, Microsoft Excel displays the error value "#DIV/0!" as the result of the
calculation. This article shows you how to use the IF worksheet function to suppress the #DIV/0! error value.

More information
To keep #DIV/0! from appearing, use the following formula in place of the standard division formula:

=IF(denominator=0,"",numerator/denominator)

Numerator refers to the cell to be divided. Denominator refers to the cell that is the divisor.
This formula checks to see if the denominator equals zero (or is blank); if so, it displays a blank cell. For example, if
you want to divide cell A1 by cell A2 and put the result in cell A3, the formula in cell A3 would be:

$A$3: =IF(A2=0,"",A1/A2)

Cell A3 will appear blank if cell A2 is blank or contains a zero. Otherwise, A3 will contain the result of the expression
A1/A2.
To display other information in the cell if the divisor is blank or zero, type the necessary information in the formula
where the "" (quotation marks) appear. If you want to display text, type it between these quotation marks. If you
want to display anything else (values), type it instead of the quotation marks.

NOTE
If the denominator is a nonzero value, the division is calculated.

References
For more information, see How to create a conditional format to hide errors in Excel.
VBA code writes to cells slowly when many ActiveX
controls are invisible in Excel 2016
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You are working in Excel for Office 365, Excel 2016 or a later version.
A worksheet contains many ActiveX controls that are set to be invisible.
You have VBA code that writes many formulas to cells.
In this scenario, Excel writes to the cells very slowly when you run the VBA code.
Example
1. In an Excel 2016 worksheet, create 105 ActiveX controls as option buttons.
2. Set the Visible property of the option buttons to False .
3. Run the following VBA code:

For row = 1 To 20000

For col = 1 To 5
Cells(row, col).Formula = "=Func()"
Next
Next

You notice that this code runs much slower than it does in earlier versions of Excel.

Cause
This issue occurs because of a design change in Excel. Because of this change, the following behavior occurs when
VBA code writes a formula to a cell:
Excel makes invisible ActiveX controls visible.
The VBA code writes a formula to a cell.
Excel makes the ActiveX controls invisible again.

Workaround
To work around this issue, use one of the following methods:
Review the code and architecture, and reassess whether you require as many ActiveX controls as you have.
Replace the ActiveX controls with Form Controls in affected workbooks.
Temporarily make the ActiveX controls visible when the code runs.

Status
Microsoft has confirmed that this is an issue in the products that are listed in the "Applies to" section.
Excel workbook is not activated when you run a
macro that calls the Workbook.Activate method
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you run a macro that calls the Workbook.Activate method in a Microsoft Excel 2013 workbook, the
workbook is not activated if the ScreenUpdating property is set to False.

Workaround
To work around this issue, set the ScreenUpdating property to True before you call the Activate method. You can set
it back to False, as needed, after the Activate method runs, as in the following code example:

Application.ScreenUpdating = True
Workbooks(1).Activate
Application.ScreenUpdating = False

NOTE
This code may introduce a screen flash and may alter the content that's displayed for Excel while the macro runs.

More Information
In Excel 2013, the single document interface (SDI) feature was introduced. Excel 2013 workbooks are now top-level
windows in Windows. In this configuration, Windows handles the activation of windows instead of Excel managing
the child windows as it does in earlier versions of the program.
In the scenario that's described in the "Symptoms" section, Excel requests that Windows activate the workbook, but
the workbook's window does not meet the Windows activation requirements.
Workbook loads slowly the first time that it is opened
in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you open a file in Microsoft Excel for the first time, the file may take more time than usual to load.
Also, when you close the file, you may receive the following prompt:

Do you want to save the changes you made to <Filename>?

Note In this message, Filename represents the name of the file that you are closing.
Microsoft Excel recalculates formulas when it opens files that were last saved by an earlier version of Excel.

Cause
This problem occurs because a file is completely recalculated the first time that you open it if the file was last saved
in a previous version of Excel.
Starting in Microsoft Excel 2000, Excel forces a complete recalculation of all workbooks that are opened if they were
previously saved in an earlier version of Excel, regardless of the link-update status. To fully recalculate the
workbook, Excel forces updates of all external references as well, even if you choose not to update when you are
prompted to. This process occurs because Excel is updating the workbook calculation chain to the current version.

Resolution
After you save the workbook in the later version of Excel, the workbook will take less time to open on subsequent
tries.

References
For more information about Excel fully recalculating workbooks when they are opened for the first time, click
Microsoft Excel Help on the Help menu, type About the way Excel recalculates workbooks that were created in
earlier versions in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Excel workbooks may not open after MS16-088 is
installed
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
The Microsoft Excel team has made a change in the behavior of certain file types to increase security. This change is
included in the July 2016 security updates (MS16-088).
Previously, when you tried to open an HTML or XLA/XLAM file from an untrusted location, Excel opened the
workbook without using Protected View security. After the security updates are installed, Excel no longer opens the
workbook because these files are incompatible with Protected View. There is no warning or other indication that the
file was not opened.

Resolution
To resolve this issue, install the latest update for your version of Microsoft Office.
Office 365 subscription (Click-to -Run)
Install the latest updates (this includes Current Channel, First Release Deferred Channel, and Deferred Channel).
For more information about how to obtain the latest Office updates, see the following TechNet topic:
Overview of the update process for Microsoft 365 Apps for enterprise
Windows Installer version (MSI )
See the following Microsoft Knowledge Base article for your version of Office to download the update from the
Microsoft Download Center:
Office 2016 https://support.microsoft.com/kb/3115438
Office 2013 https://support.microsoft.com/kb/3115455
Office 2010 https://support.microsoft.com/kb/3115476

NOTE
These updates will also be published to Windows Update and Windows Server Update Services (WSUS) in mid-August. These
services provide files that are updated automatically, based on the Windows Update settings for the computer.

More Information
Protected View
After you install the latest Office update, Excel will open workbooks in Protected View to provide an additional layer
of security. If you trust the source of the workbook, you can then enable editing. The behavior of .xla and .xlam files
will remain the same.
Other methods
To open files directly without using Protected View, use one of the following methods.
Unblock access for individual files
To unblock access for individual files that you know are safe, follow these steps:
1. Right-click the file, and then select Proper ties .
2. On the General tab, select Unblock .
3. Click OK .
Trusted Locations
To use the existing Trusted Locations capabilities of Excel 2016, Excel 2013, and Excel 2010, follow these steps:
1. Access the Trusted Locations feature. To do this, select File > Options > Trust Center > Trust Center
Settings > Trusted Locations .
2. Save the HTML file to a trusted location on the local computer. (Excel provides a set of default trust locations.) If
there is no trusted local folder location listed, select Add new location , and add the location in the Trusted
Location dialog box.
The following guidelines apply to the Trusted Locations feature:
If the HTML document is in a trusted location, the Knowledge Base fix is not applied (that is, the unsafe HTML file
is not blocked).
To help prevent Internet Explorer from tagging files as untrusted, add the source website from which you
download the files as a trusted sites in the browser. To do this, select Tools > Internet Options > Security >
Trusted sites .
Using Trusted Locations can unblock you. However, it also creates some risks. This is because files of any file type
that are listed in Trusted Locations are fully trusted. An attacker who can add files to the trusted location can
easily exploit users who open such documents. Therefore, you should be especially cautious when you specify a
custom folder as a trusted location.

NOTE
In case your HTML contains one or more input tags you may see File is corrupt error. We are working on getting a full
resolution in future updates.

Additional information
Click the following links for version-specific information about the Trusted Locations feature and Protected View
settings.
Office 2016
Office Trusted Locations: https://technet.microsoft.com/library/cc179039(v=office.16).aspx
Protected View settings: https://technet.microsoft.com/library/ee857087(v=office.16).aspx
Office 2013
Office Trusted Locations: https://technet.microsoft.com/library/cc179039(v=office.15).aspx
Protected View settings: https://technet.microsoft.com/library/ee857087(v=office.15).aspx
Office 2010
Office Trusted Locations: https://technet.microsoft.com/library/cc179039(v=office.14).aspx
Protected View settings: https://technet.microsoft.com/library/ee857087(v=office.14).aspx
A worksheet is printed at a different size than you
expect when printing the worksheet in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you print a Microsoft Excel worksheet, the printed text may appear to be a slightly different size than
expected. The number of rows printed per page may not be the same as expected, or the margins may not appear
to be the same width that you set.

Cause
This behavior can occur because Excel automatically detects the size of the paper that is in the printer, by reading
the paper size selection in the printer driver.
Excel can detect whether the printer contains A4-sized paper or letter-sized paper by reading the settings from the
printer driver. When you print a worksheet, if the paper size stated by the printer driver does not match the paper
size that is actually in the printer, Excel adjusts the printer output to match the reported paper size. The printed
worksheet appears differently than in Print Preview.

Resolution
To resolve this behavior, check the paper size in the printer properties, and then ensure that the printer actually
contains paper of that size. Because Excel determines the paper size in the printer by reading the settings in the
printer driver, it is very important that the paper size settings in the printer driver match the actual size of the paper
that the printer is using.

More Information
To view the selected paper size in the printer properties, follow these steps:
1. Click Start, point to Settings, and then click Printers.

NOTE
On a computer that is running Windows Vista, click Star t , click Control Panel, and then click Printers .

2. In the Printers dialog box, right-click the printer that you want.
3. On the shortcut menu, click Printing Preferences.
4. On the Paper/Quality tab, click Advanced, and then note the paper size that is selected.
To select or clear the automatic worksheet resizing option, follow these steps, as appropriate for the version of Excel
that you are running.
Microsoft Excel 2002 or Microsoft Office Excel 2003
1. On the Tools menu, click Options.
2. In the Options dialog box, click the International tab.
3. Under Printing, click to select or to clear the Allow A4/Letter paper resizing check box, and then click OK.
Microsoft Office Excel 2007
1. Click the Microsoft Office Button , and then click Excel Options .
2. Click the the Advanced tab.
3. Under the General section, click to select or to clear the Scale content to A4 or 8.5x11" paper sizes check
box, and then click OK .
Wrap text does not adjust row height in Excel
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Excel, if you manually modify the height of a row and then format a cell in that row to wrap text, Excel
does not change the height of the row to fit all the text in the cell.

Cause
This behavior occurs if you have manually modified the height of the row.

Workaround
To adjust the height of the row to fit all the text in a cell, follow these steps:
1. Select the row you want to adjust the height.
2. In Microsoft Office Excel 2003 and in earlier versions of Excel, point to Row on the Format menu, and then
click AutoFit .
In Microsoft Office Excel 2007 and later versions, click the Home tab, click Format in the Cells group, and
then click AutoFit Row Height .
If your Excel sheet contains merged cells, visit the following Microsoft website:
You cannot use the AutoFit feature for rows or columns that contain merged cells in Excel

Status
This behavior is by design.
Disabling code-behind prompt for InfoPath forms
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When a domain-trusted InfoPath form with code behind is launched, a dialog appears and prompt for confirmation
before the code runs. This prompt interferes with automated solutions, such as a server-side process that prints
InfoPath forms.

Cause
The confirmation prompt for code behind was added in KB 3162075 (May 2018), to address a security vulnerability.

Resolution
A new registry key setting has been added in build 15.0.5093.1000 which allows customers to opt out of the
security vulnerability prompt and revert to the old behavior, where no dialog will appear for domain-trusted
InfoPath forms.
The registry key is at this location:

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\InfoPath\Security\AllowFormCodeExec

When the key's value is 0 (the default value), the dialog will appear to prompt for confirmation before running
code-behind InfoPath forms in domain-trusted solutions. Changing this key to a non-zero value will prevent the
dialog from appearing.

More information
Still need help? Go to Microsoft Community.
Generated .PDB file name does not match InfoPath
form name
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When a form is created in InfoPath Designer 2013 and then saved as an .XSN file which contains non-ASCII
characters in the file name, the generated .PDB file does not match the .XSN file name. If you then attempt to debug
the form with Visual Studio, Visual Studio is not able to find symbol definitions for the form. One symptom of this
problem is that breakpoints set in Visual Studio are not triggered.

Cause
InfoPath uses URLs to access files, but non-ASCII characters are not directly supported in URL strings. Non-ASCII
characters must be encoded or replaced with ASCII characters to convert the .XSN filename to a .PDB filename, and
this step causes the .PDB file name to differ from the form name as stored in the .XSN filename. Consequently,
Visual Studio fails to load the .PDB file because it expects to find that information in a file with the same name as
the .XSN file.

Resolution
We recommend that you avoid using non-ASCII characters in InfoPath form names.
InfoPath 2013 crashes when you connect to an Access
database
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

This article was written by Warren Rath, Support Escalation Engineer.

Symptoms
Assume that you have a Microsoft InfoPath form that connects to an Access database. After you move to Office
2016 and Access 2016 is installed, InfoPath 2013 crashes when you connect to the Access database.

Workaround
To work around this issue, do the following steps:
1. Install the Windows Installer version of Office 2013 or Click to Run (C2R) version of Office 2016.
2. Run the Access application before you use the InfoPath form.
Error message when starting a Microsoft Office third-
party add-in that relies on .NET binaries
5/4/2020 • 2 minutes to read • Edit Online

Symptoms
You receive one of the following kinds of error messages when attempting to start a third-party Office add-in that
relies on .NET framework Office binaries:
"Access Denied"
"File not found or no read permission"
"Could not load file or assembly…"

Cause
Devices affected by this issue were sold with Windows 10 RS5 , release 17763 , which came bundled with
Centennial Office, a version of Office once available through the Windows Store. Even if Centennial Office has never
been activated, Windows Store continues to update the associated installation packages on the affected device, a
process which changes and severely restricts permissions on .DLLs located in subfolders of the Office Primary
Interop Assembly (PIA) library folder, C:\Windows\assembly\GAC_MSIL.
The restricted permissions on the PIA files prevent many third-party add-ins from operating. The most common
add-ins affected are those for Excel, which often use files in the folder:

C:\Windows\assembly\GAC_MSIL\Policy.14.0.Microsoft.Office.Interop.Excel\15.0.0.0__71e9bce111e9429c

If the Centennial Office package files are not completely removed from the affected computer, the issue will reoccur
when Centennial Office receives an update from the Microsoft Store.

Resolution
Users should run the Online Repair tool on the affected device. The Online Repair Tool will remove the Centennial
Office packages and reestablish the permissions on the affected PIA files.

More information
Still need help? Go to Microsoft Community.
Error 1935 when you try to install Microsoft Office
2010 or 2007
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Resolution
If you see "Error 1935. An error occurred during the installation of assembly component" when you install Office
2010 or 2007 or one of the Office stand-alone products like Excel, restart the computer and try to run setup again
as a quick first step.
If the error still appears after restarting the computer, try these other methods to fix the problem:
Run the System Update Readiness tool

IMPORTANT
The System Update Readiness tool can only be used on Windows 7 or Windows Vista operating systems. If you have
Windows XP, try one of the other methods in this article.

Select and download the System Update Readiness tool for your version of Windows:
Download for the 32-bit version of Windows 7
Download for the 64-bit version of Windows 7
Download for the 32-bit version of Windows Vista
Download for the 64-bit version of Windows Vista
Repair or update Microsoft .NET Framework components
First, check installed programs to see if the latest version of .NET Framework is installed. To do this, follow these
steps:
1. Click Start (or Start > Run in Windows XP).
2. Type appwiz.cpl, and then press Enter.
3. Look for Microsoft .NET Framework 4 Client Profile in the list of installed programs. See image.
If you find Microsoft .NET Framework 4 Client Profile, follow these steps to repair it:
1. Close all applications.
2. Click Start (or Start > Run in Windows XP).
3. Type appwiz.cpl, and then press Enter.
4. Click Microsoft .NET Framework 4 Client Profile and click Uninstall/Change (or Change/Remove in Windows
XP). See image.

5. Choose the option to Repair .NET Framework 4 Client Profile to its original state, and then click Next. See
image.

6. When the repair is complete, click Finish, and then click Restart Nowto restart the computer.
If you can't find Microsoft .NET Framework 4 Client Profile, download and install it to update the computer. You can
download the file from:
Microsoft .NET Framework 4 (Web Installer)
Try to install Microsoft Office again. If error 1935 continues to occur, follow the steps to uninstall and reinstall .NET
Framework from the computer.
Uninstall and reinstall Microsoft .NET Framework components
Uninstall and reinstall Microsoft .NET Framework components IMPORTANT The .NET Framework Setup Cleanup
Utility provided here should only be used only after you've tried the previous options.
To uninstall .NET Framework components from the computer follow these steps:
1. Create a temporary folder on your desktop.
2. Visit the .NET Framework Cleanup Tool User's Guide blog and download the dotnetfx_cleanup_tool.zip file.
3. When prompted, click Open, and then click Extract Now. Extract the files to the folder you created.
4. Find cleanup_tool.exe in the folder you created and double-click it.
5. In the "Do you want to run the .NET Framework Setup Cleanup Utility?" message, click Yes.
6. Click Yes to accept the license agreement.
7. In the Product to cleanup window, choose a .NET Framework version that you want to remove.

NOTE
You can't remove .NET Framework versions that are part of the Windows operating system. If you have Windows 7,
you can't remove .NET Framework versions 3.5 or lower. If you have Windows Vista, you can't remove .NET
Framework versions 3.0 or lower. If you have Windows XP, you can't remove .NET Framework versions 2.0 or lower.

8. Click Cleanup Now.


9. Restart the computer once the .NET Framework component is removed.
10. Download and install the following components, one at a time, based on your operating system:
.NET Framework 1.1 - For Windows XP only.
.NET Framework 1.1 SP1 - For Windows XP only.
.NET Framework 3.5 SP1 - For Windows XP, Windows Vista, and Windows 7.
.NET Framework 4.0 - For Windows XP, Windows Vista, and Windows 7.
11. Restart the computer, and run Windows Update to install updates.
Need More Help?
Get help from the Microsoft Community online community, search for more information on Microsoft Support or
Office Help and How To, or learn more about Assisted Support options.

More Information
If error 1935 happens when you install Office 2010 Service Pack 1 (SP1), follow the steps in the Description of
Office 2010 update: September 13, 2011 knowledge base article.
For related information about the 1935 error, read Error 1935 during install of the .NET Framework.
You may experience error 1935 when you install Office 2010 Service Pack 2 (SP2). As Office 2010 includes .NET
Programmability Support, this issue may be caused by the interference between Windows Installer (msiexec.exe)
and Windows Search (SearchIndexer.exe) or another module in the assembly file copy process. This issue may also
occur when you apply other updates, for example, a hotfix for Microsoft .NET Framework components. To work
around this issue, use one of the following steps:
Method 1: Retry installation of Office 2010 SP2
Method 2: Stop Windows Search Service, and apply Office 2010 SP2
To stop Windows Search Service, follow these steps:
1. Click Start, type services.msc in the Search programs and filestext box, and then click services.msc in
the search results.
2. In the list of services, right-click Windows Search, and then click Stop.
Method 3: Perform a clean startup, and apply Office 2010 SP2
Method 4: Install all available updates by using Microsoft Update and apply Office 2010 SP2
"Something went wrong 30016-4" error when you try
to uninstall Microsoft 365 Apps for enterprise
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to uninstall Microsoft 365 Apps for enterprise from a computer, you receive the following error
message:

Something went wrong 30016-4

Cause
This issue occurs if the %temp% drive is mapped to a drive other than %ProgramFiles%.

Resolution
To fix this issue, completely remove Office from the computer. For the easiest way to do this, follow the guidance at
Uninstall Office 2013, Office 2016, or Office 365 from a PC.
How to install Office 2019 installation files not found
in VLSC
3/31/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Office files can be downloaded separately.

More information
IMPORTANT
The steps below apply only to the following programs:
Office Professional Plus 2019
Office Standard 2019
Visio Professional 2019
Visio Standard 2019
Project Professional 2019
Project Standard 2019

Follow the steps below to download and install your Office 2019 software or application:

NOTE
The screenshots below are examples that may not match your own experience.

1. Browse to https://www.microsoft.com/download/details.aspx?id=49117 and select Download .


2. Select the arrow next to the Save As option.

3. Create a new folder and save the file to this folder. (The name of the folder is irrelevant. For instance, create a
folder on your Desktop named "Office".)

NOTE
This folder should be a shared location that is accessible for installation to other devices.

4. Double click the .EXE file (or select Run , if the dialog box is still open). If asked, select Yes .
5. A pop up window will display the Microsoft Software License Terms. Check the box and select Continue.

NOTE
You might be requested to select a location where you want the files saved. If so, select the folder that you created.

6. Open your browser and go to https://config.office.com.


7. Under Create a new configuration , select Create .

8. Under Products and releases , select 64-bit.

NOTE
For more information, see Choose between the 64-bit or 32-bit version of Office.
9. Then, select the product or app that you want to deploy and select Next .
10. Choose your Language and then select Next .

11. Under Installation options , select the options that match your needs (or do nothing) and select Next .
12. Under Update and Upgrade , select the options that match your needs (or do nothing) and then select

Next .
13. Select the Multiple Activation Key (MAK) option. Enter the volume license key specific to the software,
move the Autoactivate slider to On , and then select Next .

NOTE
If your organization uses Key Management Service (KMS) activation, select KMS Client Key instead.
14. Enter your name or the name of your company or organization and then select Next .

15. Under Application preferences , select Finish .

16. Select Expor t in the upper-right corner of the page.


17. In the File Name text box, type "Configuration" (if it does not already show this) and then select Save as to
save it to the folder you created.

NOTE
Make a note of this location as it will be needed for the following steps.

18. Open an elevated Command Prompt. (Select the Windows button, type "CMD", right-click Command
Prompt , and select Run as administrator .)

19. Type "cd "(c+d+space bar). Copy the file path of the location where you downloaded the file and paste it in
the command prompt window.
20. Select Enter . The Command Prompt Line is now updated to the location where the files were downloaded:

NOTE
This will vary depending on where you created the folder for the downloaded file.

21. Copy and paste the following command in the Command Prompt window and select Enter :

Setup /configure configuration.xml


22. The Office installation will start.

How to Activate Microsoft Office 2019 using a product key


If automatic activation did not work, you can manually activate your software by following the steps below:
1. Open a Word, Excel, or PowerPoint file. Select File .

2. Select Help or Account .


3. Select Change Product Key .

4. Enter the product key in the field box and then select Install .

The Office installation will begin.


How to install and activate Office Professional Plus
2013 on a terminal server
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how Microsoft Developer Network (MSDN) and TechNet subscription customers can install
and activate Microsoft Office Professional Plus 2013 on a terminal server.
When you download Office Professional Plus 2013 from MSDN or TechNet on a terminal server, and then you try
to install Office Professional Plus 2013 on a terminal server, you receive the following error message:
Setup is unable to proceed due to the following error(s): This copy of Microsoft Office 2013 cannot
be used on a computer running Terminal Ser vices. To use Office 2013 on a computer running
Terminal Ser vices, you must use a Volume License edition of Office.

More Information
You should not receive an error message in this scenario. To work around this issue, follow these steps:
1. Click OK after you receive the error message.
2. When you are prompted to enter a product key, enter an Office Professional Plus 2013 key that is provided
through MSDN or TechNet.
3. After the product key is validated, follow the instructions to install Office Professional Plus 2013.
4. Verify the activation status. To do this, follow these steps:
a. Open an Office Professional Plus 2013 application.
b. Click the FILE tab, and then click Account.
c. Verify the activation status.
Notes
Office 2013 Professional Plus keys that MSDN and TechNet provide support Terminal Server.
For more information about how to install and activate Office Professional Plus 2013 on a terminal server,
go to the following TechNet blog entry:
How to install the MSDN/TechNet copy of Microsoft Office 2013 on a Windows Server that is running
Remote Desktop
How to use a setup log to troubleshoot setup
problems in Office
3/30/2020 • 12 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This step-by-step article describes how to use the Microsoft Office installation log files to troubleshoot Office Setup
issues.
Occasionally a problem occurs with Office Setup and you may not receive an error message. Even if you receive an
error message, you may have to use an installation log file as one of your tools to determine the issue.
This article discusses several techniques to interpret the information in Office installation log files. The topics are
listed in the order that you want to use each technique. This article does not cover every situation that you may
experience, but it discusses several examples where the Setup issue is resolved by interpreting a Setup log file.
Many articles in the Microsoft Knowledge Base that relate to installation errors also include sections of log files that
help you confirm that the article describes the same issue that you are experiencing.
How to create a log file
Office Setup automatically creates log files in your \Temp folder. The logs will be stored under %temp% for Sign-in
or Activation issues. For installation or patching issues, they use the system account, so you will also want to collect
the logs from %windir%\temp. For more information, see How to enable Microsoft 365 Apps for enterprise ULS
logging.

LO G F IL E F O R LO G F IL E N A M E

Setup.exe Microsoft Office Setup(####).txt

Windows Installer (System Files Update) Microsoft Office Setup(####)_Task(0001).txt

Windows Installer (Office installation) Microsoft Office Setup(####)_Task(0002).txt

The #### characters in the log file names are numbers that start with 0001. They increment by one each time that
you run Setup. Therefore, the log file that has the highest number is the log file for the most recent time that you
ran Setup.

NOTE
You may have only a Microsoft Windows Installer log file for the Office installation. In this situation, the Windows Installer log
file for the Office installation has Task(0001) appended to the log file instead of Task(0002).

How to interpret log files


Depending on the problem that you are experiencing, you may have to view the Setup log file or the Windows
Installer log file for the Office installation.
Setup log files
The log file for the Setup.exe file is very short because the number of tasks that Setup.exe performs is limited to
tasks like the following:
Read the Setup.ini file.
Parse the command line for properties and switches that have to be passed to the Windows Installer. A common
mistake is to include the following on a command line:Transform=path *transform file name*.mst Using this on
the command line does not produce an error message during the installation, but the transform will not be
applied to the installation. The correct command line is:Transforms=path *transform file name*.mstThe
Setup.exe log file contains the command line that you specified for the installation so that you must check the
log file for typographical errors such as the one that is shown in the previous example (the letter "s" is missing
from the end of "Transform" in the first command line).
Verify that the correct operating system and service pack are being used.
Check the version of the Msi.dll file.
Start the Instmsi(w).exe file to install the Windows Installer.
Check for installed beta versions of Office.
Check the version of the Tahoma and TahomaBD fonts.
By default, Setup creates a local installation source in Office, but only when you install Office from the CD or a
compressed CD image. If sufficient hard disk space exists on the local computer, Setup caches the whole
installation source by default. Windows Installer uses this local installation source to install Office, and the local
source remains available for repairing, reinstalling, or updating Office later. Users can install features on demand
or run Setup in maintenance mode to add new features. Because Setup creates the local installation source by
default, you do not have to set any additional options. Setup creates the local installation source in the following
hidden folder on users' computers:
drive \Msocache\Downloadcode
By default, Setup caches the whole source in Office. If the user's computer does not have sufficient disk space, Setup
caches installation file for only the selected features. Setup retains the local installation source after the installation
is complete.
The following information may be contained in the Setup log:
Listing of files to be copied to the \MSOCACHE folder: Files to Download:

File: FILES\WINDOWS\INF\AER_1033.ADM (DW20.ADM_1033)


File: FILES\PFILES\COMMON\MSSHARED\DW\DW20.EXE (DW20.EXE_0001)
File: FILES\PFILES\COMMON\MSSHARED\DW\DWDCW20.DLL (DWDCW20.DLL)
File: FILES\PFILES\COMMON\MSSHARED\DW\1033\DWINTL20.DLL (DWINTL20.DLL_0001_1033)
File: FILES\PFILES\COMMON\MSSHARED\DW\DWTRIG20.EXE (DWTRIG20.EXE)
File: FILES\PFILES\MSOFFICE\OFFICE11\OCLEAN.DLL (OCLEAN.DLL_1033)
File: FILES\PFILES\MSOFFICE\OFFICE11\OCLNCORE.OPC (OCLNCORE.OPC_1033)
File: FILES\PFILES\MSOFFICE\OFFICE11\OCLNCUST.OPC (OCLNCUST.OPC_1033)
File: FILES\PFILES\MSOFFICE\OFFICE11\1033\OCLNINTL.OPC (OCLNINTL.OPC_1033)
File: FILES\PFILES\MSOFFICE\OFFICE11\OFFCLN.EXE (OFFCLN.EXE_1033)
File: FILES\SETUP\OSE.EXE (OSE.EXE)
File: PRO11.MSI (PRO11.MSI)
File: FILES\PFILES\MSOFFICE\OFFICE11\1033\PSS10O.CHM (PSS10O.CHM_1033)
File: FILES\PFILES\MSOFFICE\OFFICE11\1033\PSS10R.CHM (PSS10R.CHM_1033)
File: FILES\PFILES\MSOFFICE\OFFICE11\1033\SETUP.CHM (SETUP.CHM_1033)
File: SKU011.XML (SKU011.XML_0002_1033)
File: A2561405.CAB (A2561405.CAB)
File: A3561405.CAB (A3561405.CAB)
File: A4561405.CAB (A4561405.CAB)
File: AV561403.CAB (AV561403.CAB)
File: CC561401.CAB (CC561401.CAB)
Confirmation of Local Install Source settings:

Using Local Cache Drive of already installed product: C:\.


Found enough space on drive "C:\" to cache all feature cabinets.
(CDCACHE=AUTO) - There is enough space to cache some or all of the image. Drive for this download is C:\

Confirmation of completed task:

Package was: E:\5614.0_o11pro_CBXS_ENG\PRO11.MSI.


Setting Package to: C:\MSOCache\All Users\90000409-6000-11D3-8CFE-0150048383C9\PRO11.MSI.
Done with CD Caching, cached MSI to: C:\MSOCache\All Users\90000409-6000-11D3-8CFE-
0150048383C9\PRO11.MSI

If you suspect problems with the command-line properties and switches that you are using, these items are also
listed in the Setup log file. For example, if you use the following command line to run Setup:

f:\Setup.exe companyname="my company" /qb

The following text is included in the Setup log:

Launch Setup
9/22/03 1:49:46 PM
companyname="my company" /qb
Detected Windows Info:
PlatformId = 2
MajorVersion = 4
MinorVersion = 0
Setup path: \\server\share\2003_Admin\SETUP.EXE
Adding property...companyname="my company"

Recognized command line switch: /qb -and-Office-specific properties added: companyname="my company"
General properties added: LAUNCHEDFROMSETUP=1 SETUPEXEPATH=\\server\share\2003_Admin\
Writing Task:
D:\WINNT\System32\msiexec.exe
/I \\server\share\2003_Admin\PRO11.MSI
METRICSSOURCE="\\server\share\2003_Admin companyname=""my company"" /qb"
companyname="my company" LAUNCHEDFROMSETUP=1
SETUPEXEPATH=\\server\share\2003_Admin\ /qb

NOTE
Setup.exe does not actually use these command-line switches and properties; it just passes them to the Msiexec.exe file (the
Windows Installer).

If the log file for Setup.exe ends in text that is similar to the following (return code: 1603), there was a problem with
the Windows Installer portion of the installation:

9/22/03 3:34:27 PM Chained install return code: 1603


Shutting down chained setup processing.
Set Verbose logging for subsequent setup.

***** Setup exits


9/22/03 3:34:27 PM
(return = 1603)

In this case, you must review the Windows Installer log files for the Office installation.
Windows Installer log files
The Windows Installer log files are significantly larger than the Setup log file and can appear to be unreadable at
first. However, the following guidelines can help you narrow down the issue:
If you receive an error message during Setup, search for the error number in the log file. For example, if you
receive "Error 1327" during Setup, search for "1327" in the log. You may find text that is similar to the
following:

MSI (c) (41:90): Note: 1: 1327 2: C:\


Error 1327. Invalid Drive: C:\

MSI (c) (41:90): Product: System Files Update -- Error 1327. Invalid Drive: C:\

Action ended 15:34:26: CostFinalize. Return value 3.

The key text in these log entries is "Invalid Drive". The problem in this case is that you used a utility like Disk
Administrator to change the drive letter of the location where Windows is installed. Although the drive letter
was changed, some registry keys still refer to the original drive letter.
If the Microsoft Knowledge Base does not have an article that matches your specific error message, follow
these steps to diagnose the issue:
1. Search the log file for the error number.
2. Read each line up from the line with the error number. Typically you see a line that failed, with the
ultimate result being a Setup error.
For example, a log file was searched for "error 2737". The following text was located at or above the
line with the 2737 error:

MSI (c) (B7:A7): Note: 1: 2737 2: CheckCAServer 3:


c:\windows\TEMP\MSI82D6.TMP 4: CheckCAServer
Info 2898. An internal error has occurred. (Tahoma8 Tahoma 1
)
Error 2737. An internal error has occurred. (CheckCAServer

c:\windows\TEMP\MSI82D6.TMP CheckCAServer )
MSI (c) (B7:A7): Product: Microsoft Office Professional 2003 -- Error 2737. An

internal error has occurred. (CheckCAServer c:\windows\TEMP\MSI82D6.TMP

CheckCAServer )

Action ended 9:58:55: CheckCAServer. Return value 3.

Looking at this text, you see that Setup failed on the call to CheckCAServer.
All log files contain one or more errors that typically can be ignored. The following errors may appear in any
log file and typically do not indicate a Setup problem:
Info 2898. An internal error has occurred. Contact your Information Technology depar tment for
assistance.
Info 2743. An internal error has occurred. Contact your Information Technology depar tment for
assistance. Info 2726. An internal error has occurred. Contact your Information Technology
depar tment for assistance.
One thing to search for is the string "Note". In one case where Setup failed with a 2755 error, the actual
resolution for the case was derived from the Note several lines above the error:
MSI (s) (EC:BC): Note: 1: 2336 2: 5 3: C:\WINNT\Installer\
MSI (s) (EC:BC): MainEngineThread is returning 1632
MSI (c) (F8:F4): Note: 1: 2755 2: 1632 3: \\server\share\2003_Admin\PRO11.MSI
Error 2755. An internal error has occurred. (1632 \\server\share\2003_Admin\PRO11.MSI
) Contact your
Information Technology department for assistance. In this example, the following two lines indicate a
problem with permissions on the \Winnt\Installer folder:MSI (s) (EC:BC): Note: 1: 2336 2: 5 3:
C:\WINNT\Installer\
MSI (s) (EC:BC): MainEngineThread is returning 1632

After the permissions were corrected on this folder, the 2755 error did not occur.
Note The line that contains "1632" is the determining factor that this issue deals with permissions.
Note In log entries that contain "Note", the four-digit number that follows "Note" can be mapped directly to
the Windows Installer errors that are listed in the Knowledge Base articles cited earlier in this article.
Another string to search for in the log file is "Return Value 3". If you do not have or remember an error
number, but you locate "Return Value 3" in the log file, this is clearly the area where it is best to focus your
troubleshooting. When an action is performed during Setup, the action is noted in the log files. When that
action is complete, a return value is subsequently noted. If the return value is 1, the action was successful;
however, if the action failed, the return value will be 3.

Action start 9:56:45: SetW2kMill_WFP.


Action ended 9:56:45: SetW2kMill_WFP. Return value 1.
MSI (c) (B7:A7): Doing action: CheckCAServer
Action start 9:56:45: CheckCAServer.
MSI (c) (B7:A7): Creating MSIHANDLE (3) of type 790542 for thread -183129
MSI (c) (B7:A7): Closing MSIHANDLE (3) of type 790542 for thread -183129
MSI (c) (B7:A7): Note: 1: 2737 2: CheckCAServer 3:
c:\windows\TEMP\MSI82D6.TMP 4: CheckCAServer
Info 2898. An internal error has occurred. (Tahoma8 Tahoma 1
)
Error 2737. An internal error has occurred. (CheckCAServer
c:\windows\TEMP\MSI82D6.TMP CheckCAServer )
MSI (c) (B7:A7): Product: Microsoft Office Standard 2003 -- Error 2737. An
internal error has occurred. (CheckCAServer c:\windows\TEMP\MSI82D6.TMP
CheckCAServer )

Action ended 9:58:55: CheckCAServer. Return value 3.

In this case, the SetW2kMill_WFP action succeeds, because the return value is 1. However, the next action,
CheckCAServer, fails because its return value is 3.
Sometimes when you review a log file, you do not find "Note", "Return Value 3", or an error number. Instead,
you may see text that is similar to the following:

MSI (c) (A5:65): Looking for file transform: c:\test.mst


MSI (c) (A5:65): Note: 1: 2203 2: c:\test.mst 3: -2147287038
MSI (c) (A5:65): Couldn't find cached transform c:\test.mst. Looking for it at the source.
MSI (c) (A5:65): Looking for file transform: \\server\share\2003_ADMIN\test.mst
MSI (c) (A5:65): Note: 1: 2203 2: \\server\share\2003_ADMIN\test.mst 3: -2147287038
MSI (c) (A5:65): Note: 1: 2729
1: 2203 2: \\server\share\2003_ADMIN\test.mst 3: -2147287038
Error applying transforms. Verify that the specified transform paths are valid.
\\server\share\2003_ADMIN\test.mst
MSI (c) (A5:65): MainEngineThread is returning 1624

In this case, Setup is having a problem applying a transform, because the transform cannot be located on the
specified path (C:\test.mst). Therefore, Setup also tries to locate the transform on the root of the Office
source location. When the transform cannot be located in either place, the installation stops.
Verbose log files
All the techniques that are listed in the "Windows Installer Log Files" section can be used on verbose log files.
However, verbose logging increases Setup times. Only use verbose logging if you are having Setup problems that
cannot be diagnosed with a default log file.
Generating a Verbose Log File
On the initial install of Office, verbose logging is not used but if a Setup failure occurs, the second try to
install will generate a verbose log file. However, the logging options that are used for these verbose log files
are not all the options that are available to the Windows Installer. If you want to create a more detailed
Windows Installer log file with all the logging options, you can use the *v parameter combination for the /L
switch.
Note You can create a verbose log file while you perform an administrative installation of Office by using a
command line that is similar to the following:
path \setup.exe /a path \Pro11.msi /L*v C:\Verboselog.txt
Diagnosing When Setup Stops Responding
At times, Office Setup stops responding (hangs), and you do not receive any error message. The best thing to
do in this situation is to restart your computer, and run Office Setup again with complete verbose logging
turned on (with one additional option). To do this, start Office Setup. To do so, follow these steps:
1. Click Star t , and then click Run .
2. In the Open box, type the following command line, and then click OK :path \Setup.exe /L*v!
C:\Verboselog.txtNote that Path is the full path of your Office source location.
Typically, 19 lines of logging information are cached in memory before being written to the verbose log file.
If you do not use the ! option for the /L (logging) switch, you may lose some of the cached information or all
the cached information if Setup stops. If you use the ! option, the most you lose is one line, because the !
option forces Setup to write logging information to the log file one line at a time (there is no caching of
information).
After you create the verbose log file, scroll to the end and look at the last one or two lines. These lines tell
you what Setup was trying to do when it stopped. For example, you may see text that is similar to the
following:

ComponentRegister(ComponentId={71CE92CC2CB71D119A12000A9CE1A22A},
KeyPath=C:\Program Files\Common Files\Microsoft Shared\Web
Components\11\1033\OWCDCH11.CHM,State=3,,Disk=1,SharedDllRefCount=0)
1: {90170409-6000-11D3-8CFE-0050048383C9} 2:
{71CE92CC2CB71D119A12000A9CE1A22A} 3: C:\Program Files\Common
Files\Microsoft Shared\Web Components\11\1033\OWCDCH11.CHM

This indicates a problem with the registration (in the Windows registry) of the component
(71CE92CC2CB71D119A12000A9CE1A22A), whose key path is OWCDCH11.CHM.
The resolution for this particular issue is to repair the Windows registry before you run Office Setup again.
In another case, you may see text that is similar to the following in your log file:

MSI (c) (EB:1F): Doing action: OPCRemove


Action start 11:42:57: OPCRemove.
MSI (c) (EB:1F): Creating MSIHANDLE (504) of type 790542 for thread -194273
This indicates a problem with an Office Removal Wizard operation. This problem may occur when Office
Setup is having a problem removing your earlier version of Microsoft Office. Try to remove the earlier
version of Office, and then run Office 2003 Setup again.
Note Office Setup uses the following prefixes for custom actions. If the log file indicates a problem with a
custom action, these prefixes indicate where to start your troubleshooting.
OLCA: Outlook Custom Action
OPC: Office Removal Wizard
CAG, CaMMC: Associated with Clip Art
IE: Internet Explorer
The Document Information Panel (DIP) is deprecated
in Office 2016 applications
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The Document Information Panel (DIP) is deprecated in Microsoft Office 2016 applications. However, you can
select FILE > Info > Show All Properties to view and edit document properties in the Properties section. Some
document library property types, such as lookups, require additional SharePoint data and can't be edited directly in
the Properties section. These properties are displayed together with a Show Details button. You can click Show
Details to edit these properties in the metadata web dialog box. This dialog box is the same as the metadata web
dialog box in the Microsoft SharePoint web user interface.

NOTE
Missing required fields are enclosed by a red frame.
How to enable Office Professional Plus 2010 to run on
a terminal server
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how Microsoft Developer Network (MSDN) and Microsoft TechNet subscription customers
can enable Microsoft Office Professional Plus 2010 to run on a server on which Office 2010 was installed and
activated and on which the Terminal Services (Remote Desktop Services) server role was later added.

Introduction
Consider the following scenario:
You install Office Professional Plus 2010 by using an MSDN or TechNet subscription.
You successfully activate Office Professional Plus 2010.
You want to use Windows Server 2008 Terminal Services to let users use Office Professional Plus 2010
applications from their workstations.
In this scenario, you must install an additional product key for Office Professional Plus 2010.

NOTE
If the Terminal Services (Remote Desktop Services) role is already enabled on the server, OEM keys are not valid, and you
must use the special Terminal Services product key to install Office 2010 on the server as retail.

More Information
How to install an additional product key for Office Professional Plus 2010 to enable Terminal Services
To install an additional product key to enable Terminal Services, use one of the following methods.
Method 1
1. If you are an MSDN subscriber, you should go to your MSDN Subscriptions Product Keys page by clicking
the following link: https://msdn.microsoft.com/subscriptions/securedownloads/cc137106.aspx
If you are a TechNet subscriber, you should go to your TechNet Subscriptions Product Keys page by clicking
the following link: https://technet.microsoft.com/subscriptions/securedownloads/cc137106.aspx
2. Start the update of the current installation of Office Professional Plus 2010. To do this, follow these steps:
a. Close all open Office 2010 applications.
b. Click Star t , and then click Control Panel .
c. If you are using Windows Server 2003, click Add or Remove Programs .
If you are using Windows Server 2008 or Windows Server 2008 R2, click Program and Features .
d. In the list of programs that are installed, click Microsoft Office Professional Plus 2010 , and then
click Change .
3. In the Microsoft Office Professional Plus 2010 dialog box, click the Enter a Product Key option, and
then click Continue .

4. Install the Terminal Services product key that you obtained from your MSDN or TechNet subscription. To do
this, follow these steps:
a. Make sure that the computer is connected to the Internet.
b. Enter the product key, click to select the Attempt to automatically activate my product online check
box, and then click Continue .
c. Click Install Now .
d. When a dialog box appears that informs you that the configuration is successful, click Close .
5. Complete the activation. To do this, follow these steps:
a. Start an Office 2010 application.
b. Follow the instructions to complete the activation.
6. Verify the activation status. To do this, follow these steps:
a. Restart the Office 2010 application.
b. In the Office 2010 application, click the File tab, and then click Help .
c. Notice the activation status.
Method 2
1. Follow step 1 of Method 1 to obtain the Terminal Service enablement for the Office 2010 product key from
your MSDN or TechNet subscription.
2. Open a Command Prompt window.
To do this if you are using Windows Server 2003, click Star t , click Run , type cmd, and then click OK .
To do this if you are using Windows Server 2008 or Windows Server 2008 R2, follow these steps:
a. Click Star t , type cmd in the Search box, right-click cmd.exe , and then click Run as administrator .
b. In the User Account Control dialog box, click Yes .
3. Install the additional product key, and then activate Office Professional Plus 2010.
To do this if you are using the x86 version of Office Professional Plus 2010 on an x64 version of the
Windows operating system, follow these steps:
a. At the command prompt, run the following command:

cscript "%ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs" /inpkey: <Product_Key>

NOTE
In this command, the placeholder <Product_Key > represents the product key that you want to install.

b. Run the following command:

cscript "%ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs" /act

In other situations, follow these steps:


a. At the command prompt, run the following command:

cscript "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /inpkey: <Product_Key>

b. Run the following command:

cscript "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /act


Description of Office features that are intended to
enable collaboration and that are not intended to
increase security
3/30/2020 • 9 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Office products include features that enable specific collaboration scenarios and features that are
designed to help make your documents and files more secure. Features that enable collaboration scenarios
function correctly in collaboration environments that do not include users who have malicious intent.
When you use a feature that is designed to enable a collaboration scenario but is not designed to help make your
document or file more secure, for example you use the Password to Modify feature, the feature is functioning as
intended even when a user with malicious intent bypasses the feature. This behavior occurs because the feature
was never designed to help protect your document or file from a user with malicious intent.
The Security tab of the Options dialog box in Office applications contains both types of features. Not all features
that are found on the Security tab are designed to help make your documents and files more secure.
The following are examples of Office features that enable specific collaboration scenarios:
Password to Modify When you do not want others to modify the formatting of your Microsoft Word
document, Microsoft Excel document, or Microsoft PowerPoint presentation, you may choose to use the
Password to Modify feature.
Note When you use the Password to Modify feature, you only set a guideline for others to follow. When you
are using the Password to Modify feature, someone else may be able to obtain your password.
Hidden Cells and Locked Cells When you have a cell that you do not want others to see or to modify, you can
hide or lock the cell. You can use hidden or locked cells in Excel to present data more clearly. You may choose
to hide a cell that contains a formula when you think it will confuse others, or you may choose to lock a cell
when you do not want others to modify the cell.
Note When you hide or lock a cell, you only set a guideline for others to follow. Hidden cells and locked cells
are not designed to allow your files to be more secure. Hidden cells can be unhidden by other users.
The following are examples of Office features that are designed to help make your documents and files more
secure:
Password to Open (Using RC4 Level Advanced Encryption )
You can use a strong password with the Password to Open feature in conjunction with RC4 level advanced
encryption to require a user to enter a password to open an Office file.
Note The Password to Open feature uses advanced encryption. Encryption is a standard method of securing
the content of a file. There are several encryption methods that are available for use with Word files, Excel
files, or PowerPoint presentations. Microsoft Office Outlook 2003 allows for encryption also, but also
implements it by using different methods.
For more information about strong passwords, see the "Information About Strong Passwords" section of this
article.
Digitally Signed VBA Macro Projects You can use digitally signed Microsoft Office Visual Basic for
Applications (VBA) macro projects. When you add a digital signature to a VBA macro project, you are
supplying a verifiable signature that can vouch for the authenticity and the integrity of the VBA macro
project.
For more information about digitally signed macros, see Code Signing Office XP Visual Basic for Applications
Macro Projects.
The "More Information" section contains additional information about Office features that are intended to enable
specific collaboration scenarios.

More Information
The following table contains a description of Office features that are intended to enable specific collaboration
scenarios but are not intended to help make your documents and files more secure:

DESC RIP T IO N O F F EAT URES T H AT EN A B L E C O L L A B O RAT IO N A P P L IES TO

Password to Modify: Use the Password to Modify feature to Excel, Word, PowerPoint
require other users to enter a password to modify a Microsoft
document. To access the Password to Modify feature in Word,
click Options , and then click the Security tab. Warning
When you are using the Password to Modify feature, a
malicious user may still be able to gain access to your
password. For example, if you save a word (.doc) file by using
the Password to Modify feature enabled in Rich Tech Format
(.rtf) a malicious user may be able to gain access to your
password.

Protect Document: Use the Protect Document feature when Word


you want to deter users from making unauthorized changes
to specific elements of a document. To protect a Word
document, click Tools , and then click Protect Document .
Warning This method is not the most effective method to
help protect the whole document because Word does not use
encryption when you protect only select elements. For
example, field codes can be viewed in a text editor such as
Notepad even if forms or sections of a document are
protected.

Protect Workbook or Protect and Share Workbook: Use the Excel


Protect Workbook feature or the Protect and Share
Workbook feature when you want to deter users from
making unauthorized changes to specific elements of a
workbook. To protect a document, click Tools , and then click
Protection . Under Protection , click either Protect
Workbook or Protect and Share Workbook . Warning
This method is not the most effective method to help protect
the whole document because Excel does not use encryption
when you protect only select elements.
DESC RIP T IO N O F F EAT URES T H AT EN A B L E C O L L A B O RAT IO N A P P L IES TO

Hidden Cells and Locked Cells (used with Protect Sheet Excel
feature): Use the hidden cells feature or the locked cells feature
in conjunction with the Protect Sheet feature to hide or to lock
cells in an Excel worksheet. To use this feature, on a protected
worksheet, click Format , click Cells , click the Protection tab,
and then click Locked or Hidden . Warning This method is
not the most effective method to help protect a workbook
because Excel does not use encryption when you protect only
specific elements of a workbook. For example, hidden cells on
a protected worksheet can be viewed if a user copies across a
range on the protected worksheet that includes the hidden
cells, opens a new workbook, pastes, and then uses the
Unhide command to display the cells.

Protect Form (in Microsoft Word): Use the Protect forms Word
feature to protect a Word form with a password. This feature
helps prevent trustworthy users from making changes to a
form. To protect a Word form, click Tools , click Protect
Document , click Forms , and then enter a password.
Warning This method is not the most effective method to
help protect the whole document because Word does not use
encryption when you protect only select elements of a
document. When you are using the Protect form feature with
a password, a malicious user may still be able to gain access to
your password.

Protect Form (in Microsoft Outlook): Use the protect forms


feature to protect an Outlook form with a password. This
feature helps prevent trustworthy users from making changes
to a form. To protect an Outlook form, open the form, click

Tools , click Design This Form , click Protect Form Design Outlook
on the Properties page, and then enter a password. Warning
This method is not the most effective method to help protect
your form content because Outlook does not use encryption
when you protect a form. When you are using the Protect
Form Design feature with a password, a malicious user may
still be able to gain access to your form content.

Set Database Password: Use this feature to require a password Access


when you are accessing a Microsoft Access database (.mdb)
file. To use this feature, open an .mdb file with exclusive access
to the file, click Security , and then click Set Database
Password . Warning This feature is not intended to hide the
contents of an .mdb file. This feature is intended to make sure
that the contents of a file are not modified and helps to
provide guidelines for users to follow. A malicious user may
still be able to access information that is contained in an .mdb
file that has been password protected.

Embed Links: Use this feature by creating an embedded link in Access, Excel, Front Page
an Office document or an Access database (.mdb) file that links
to an external data sources. Warning A link to an external
data source may leave a password embedded in the Office file.
DESC RIP T IO N O F F EAT URES T H AT EN A B L E C O L L A B O RAT IO N A P P L IES TO

Hidden Text: Use this feature to hide text in a Word document Word
when you do not want others to see or modify the text. To use
this feature, with your text selected, click Format , click Font ,
and then click Hidden . Warning Hidden text is not
enforceable in Word.

E-Mail Flags: Use this feature to add a Do not For ward flag Outlook
to an e-mail message in Outlook. To use this feature, open an
e-mail message in Outlook, and then click the Message Flag
icon. In the Flag for Follow Up dialog box, click Do not
For ward . Warning Flags are not enforceable in Outlook,
rather they are a suggestion for the recipient. The recipient
can ignore a Warning Flag and forward the e-mail.

Make MDE/ADE File: Use this feature to remove the VBA Access
source code from a Microsoft Access database (.mdb) file or
from a Microsoft Access project (.adp) file. To use this feature,
in Access open an .mdb or an .adp file, click Tools , click
Database Utilities , and then click Make MDE File .
Warning This feature is not intended to prevent changes to
the .mde file or to the .ade file. This feature is intended to
protect intellectual property that is contained in VBA source
code by allowing files to be distributed that do not contain the
VBA source code. A malicious user may still be able to make
some design changes to an .mde or an .ade file.

Information About Strong Passwords


To reduce the chances of someone guessing your password, use only strong passwords.
For a password to be a strong password, it should meet all the following criteria:
Be at least seven characters long. Longer passwords are more secure.
Include both upper and lowercase letters, numbers, and a symbol character between the second and sixth
position.
Look similar to random collection of characters.
Have no repeated characters.
Have no characters that are consecutive, for example, 1234, abcd, or qwerty.
Do not use numbers or symbols instead of similar letters--for example, $ for S, or 1 for l.
Do not use any part of your user name for logging on to the Internet or a network.
Not be a common word, a common name, or a word that a person might guess like your own name. When a
malicious user tries to bypass a password, they may use a tool that tries a number of common words to try and
guess your password.
Use a strong password that you can remember so that you do not have to write it down. If you must write down
a password to remember it, store the password in a secure place.

References
For more information about features that enable specific collaboration scenarios and features that are designed to
help make your documents and files more secure in PowerPoint, see How password protection works with
PowerPoint Show (*.pps) files.
Incompatibilities between Office programs and
Adobe Acrobat PDFMaker Office COM Addin
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
If you have the Adobe Acrobat PDFMaker Office COM add-in installed on your computer and your Office programs
are crashing or not responding, this might mean that the version of PDFMaker you have installed is incompatible
with your version of Office.

More information
To verify that the PDFMaker add-in is installed on your computer, do the following:
Office 2010: Open any Office application, and then select File > Add-Ins .
Office 2013 and later versions, select File > Options > Add-Ins . Next to Manage COM Add-ins select Go .
You will see a dialog box that resembles the following screenshot:

To resolve this issue, use one of the following methods:


Method 1: Upgrade your Adobe product

NOTE
Fees may apply when you upgrade your Adobe product.

See Compatible web browsers and PDFMaker applications to determine which version of the Adobe Acrobat
PDFMaker Office COM add-in is compatible with your Office version. If your version isn't compatible, try to
upgrade your Adobe product to a later version that's compatible with your Office version.
If you're an advanced user and want to check the PDFMOfficeAddin.dll version compatibility, see the following table.

SUP P O RT ED P DF M A K ER A DD- IN VERSIO N S ( C H EC K


O F F IC E VERSIO N P DF M O F F IC EA DDIN . DL L VERSIO N )

2010 (32-bit) 10.x and later

2010 (64-bit) 10.1 and later

2013 (32-bit) 11.0.1 and later

2013 (64-bit) 11.0.1 and later

2016 (32-bit) 11.0.16 and later

2016 (64-bit) 11.0.16 and later

Method 2: Use the Fix-it to automatically disable Acrobat PDFMaker Office COM add-in
You can run the following Fix-it, which will automatically disable the add-in for you.

IMPORTANT
To download the troubleshooter, select the Download button. In the File Download dialog box, select Run or Open , and
then follow the steps in the easy fix wizard.

This wizard may be in English only. However, the automatic fix also works for other language versions of
Windows.
If you're not on the computer that has the problem, save the easy fix solution to a flash drive or a CD, and then
run it on the computer that has the problem.
For a Windows 10, Windows 8.1, or Windows 8-based computer
select the Download button to disable the PDFMaker add-in.
For a Windows 7, Windows Vista, Windows XP, Windows Server 2008, or Windows Server 2003-based computer
Select the Download button to disable the PDFMaker add-in.
Method 3: Manually disable Acrobat PDFMaker Office COM Add-in
If you have administrative permissions, you can also disable the add-in by following these steps in each Office
program:
1. Open the Office program, and then select File > Options > Add-ins.
2. In the Manage drop-down list, select COM Add-Ins, and then select Go.
3. Clear the Acrobat PDFMaker Office COM Addin check box, as follows (Office 2010 screen shot), and then select
OK.

If you cannot disable the add-in by following these steps, use one of the following methods.
IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

First, exit the Office program that you're having issues with when the PDFMaker add-in is loaded, and then use one
of the following methods to start Registry Editor.
Windows 8
From the Start screen, type CMD. In the results pane, swipe down on Command Prompt to reveal the charm bar,
then select Run as administrator on the charm bar. If you are using a mouse, right-click the Command Prompt
to reveal the charm bar.
Windows 7, Windows Vista, or Windows XP
1. Select Star t > All Programs > Accessories .
2. Right-click the Command Prompt , and then select Run as administrator .
Select the Office program that you're having problems with, and then use the appropriate method, as follows, to
manually disable the PDFMaker add-in.
Access, Excel, Word, PowerPoint, or Publisher

NOTE
The <Office program> placeholder represents the name of the Office program that you're having issues with when the
PDFMaker add-in was installed.

1. Locate and select the following registry key:


HKEY_CURRENT_USER\software\microsoft\office\<Office program>\addins\Pdfmaker.OfficeAddin
a. If the PDFmaker.Addin key exists, modify the Load Behavior value under the key to 0, and then go to
step 2.
b. If the PDFmaker.Addin key does not exist, go to step 2.
2. Repeat step 1 with each of the following registry keys:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\<Office program>\Addins\PDFMaker.OfficeAddin
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\<Office
program>\Addins\PDFMaker.OfficeAddin
3. Exit Registry Editor, and then start the Office program.
Outlook
1. Locate and select the following registry key:
HKEY_CURRENT_USER\software\microsoft\office\Outlook\addins\PdfmOutlook.PDFMOutlook
a. If the PdfmOutlook.PDFMOutlook key exists, modify the Load Behavior value under the key to 0, and
then go to step 2.
b. If the PdfmOutlook.PDFMOutlook key does not exist, go to step 2.
2. Repeat step 1 with each of the following registry keys:
HKEY_LOCAL_MACHINE\software\microsoft\office\Outlook\addins\PdfmOutlook.PDFMOutlook
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\Outlook\Addins\PdfmOutlook.PDFMOutlook
3. Exit Registry Editor, and then start Outlook.
Visio
1. Find and select the following key in the registry:
HKEY_CURRENT_USER\software\microsoft\Visio\addins\PDFMVisio.PDFMVisioCOMAddin
a. If the PDFMVisio.PDFMVisioCOMAddin exists, modify the Load Behavior value under the key to 0, and
then go to step 2.
b. If the PDFMVisio.PDFMVisioCOMAddin key does not exist, go to step 2.

NOTE
This registry path does not include the \Office subkey as do the registry paths used by other Office programs.

2. Repeat step 1 with each of the following registry keys:


HKEY_LOCAL_MACHINE\software\microsoft\Visio\addins\PDFMVisio.PDFMVisioCOMAddin
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Visio\addins\PDFMVisio.PDFMVisioCOMAddin
3. Exit the Registry Editor and open Visio.
Third-party information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.

Other resources
I get a "stopped working" error when I start Office applications on my PC
How to troubleshoot crashing and not responding issues with Excel
Description of the numbering scheme for product
code GUIDs in Office 2016
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

For a description of the numbering scheme for product code GUIDs in Office 2013, see Description of the
numbering scheme for product code GUIDs in Office 2013.

Summary
This article describes how to read the product GUIDs in the Windows registry to determine information about the
Microsoft Office 2016 suite, programs, or utilities that you are using. GUIDs contain information about the release
type, the release build, and the language of an Office 2016 suite or program.

NOTE
GUIDs are created only when a user installs a Windows Installer (MSI) version of the Office 2016 suite or of an Office 2016
program. GUIDs are not created when a user installs a Click-to-Run version of the Office 2016 suite or of an Office 2016
program.

More Information
When you install the Office 2016 suite or one of the stand-alone Office 2016 programs, one or more product code
GUIDs are created in the following registry subkey:
HKEY_LOCAL_MACHINE \Software\Microsoft\Windows\CurrentVersion\Uninstall
If you install a 32-bit version of Office 2016 on a 64-bit version of Windows, the GUIDs are created in the following
registry subkey:
HKEY_LOCAL_MACHINE \Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Each GUID uses the following format:
{BRMMmmmm-PPPP-LLLL-p000-D000000FF1CE}
The following table describes the characters of the GUID.

C H A RA C T ERS DEF IN IT IO N H EXA DEC IM A L VA L UES

B Release build 0-9, A-F

R Release type 0-9, A-F

MM Major version 0-9


C H A RA C T ERS DEF IN IT IO N H EXA DEC IM A L VA L UES

mmmm Minor version 0-9

PPPP Product ID 0-9, A-F

LLLL Language identifier 0-9, A-F

p 0 for x86, 1 for x64 0-1

000 Reserved for future use, currently 0 0

D 1 for debug, 0 for ship 0-1

000000FF1CE Office Family ID 0-9

To view the GUIDs for the Office 2016 suites and programs that are installed on a computer, follow these steps:
1. Click Star t , click Run , type regedit, and then click OK .
2. Locate the following registry subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
The names of the GUIDs start with a brace ({ ). Therefore, GUIDs are the first items that are listed under Uninstall.

VA L UE N A M E DESC RIP T IO N

DisplayName The product name that appears in the Add or Remove


Programs dialog box

InstallDate The date on which the product was installed

Product ID The product ID

InstallSource The installation source

RegCompany The registered company

RegOwner The registered user name

Release build
The release build values specify the level of the release, such as a beta build or a release-to-manufacturing (RTM)
build. The following table contains more information about the release build values.

VA L UE N A M E REL EA SE

0 Any release before Beta 1

1 Beta 1

2 Beta 2

3 Release Candidate 0 (RC0)


VA L UE N A M E REL EA SE

4 Release Candidate 1 (RC1)/OEM Preview release

5-8 Reserved values

9 RTM. This is the first build that is shipped (the initial release).

A Service Pack 1 (SP1). This value is not used if the product code
is not changed after the RTM build.

B Service Pack 2 (SP2). This value is not used if the product code
is not changed after the RTM build.

C Service Pack 3 (SP3). This value is not used if the product code
is not changed after the RTM build.

D-F Reserved values

Release type
The release type specifies the audience for a 2016 Office suite, such as enterprise or retail. The following table
contains more information about the 2016 Office suite release types.

VA L UE REL EA SE T Y P E

0 Volume license

1 Retail/OEM

2 Trial

5 Download

Product ID
The product ID is the version of the Office 2016 suite or program, such as Office Professional 2016 or Office
Standard 2016. The following table contains more information about the Office 2016 product IDs.

P RO DUC T ID SK U

0011 Microsoft Office Professional Plus 2016

0012 Microsoft Office Standard 2016

0015 Microsoft Access 2016

0016 Microsoft Excel 2016

0018 Microsoft PowerPoint 2016

0019 Microsoft Publisher 2016

001A Microsoft Outlook 2016


P RO DUC T ID SK U

001B Microsoft Word 2016

001F Microsoft Office Proofing Tools Kit Compilation 2016

003A Microsoft Project Standard 2016

003B Microsoft Project Professional 2016

0051 Microsoft Visio Professional 2016

0053 Microsoft Visio Standard 2016

00A1 Microsoft OneNote 2016

00BA Microsoft Office OneDrive for Business 2016

110D Microsoft Office SharePoint Server 2016

012B Microsoft Skype for Business 2016

Language identifier
The language identifier (LCID) varies from language to language. Because the LCID is stored in the GUID in a
hexadecimal format, you may have to convert the LCID value to a decimal value to determine the language. For
example, a hexadecimal value of 0409 converts to a decimal value of 1033. This value represents English.
For more information about language identifiers in Office 2016 suites and programs, see Language identifiers and
Option State Id values in Office 2013.
Sample GUID
Assume that the first 16 digits of a GUID are "90160000-0011-0407." This example GUID was created by the initial
release build (9) of a Retail or OEM edition (1), build 15.0000, of Microsoft Office Professional Plus 2016 (0011).
The language of the product is German. In this case, the hexadecimal value 0407 converts to the decimal value
1031. This value represents German.
Description of the numbering scheme for product
code GUIDs in Office 2013
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to read the product GUIDs in the Windows registry to determine information about the
Microsoft Office 2013 suite, programs, or utilities that you are using. GUIDs contain information about the release
type, the release version, and the language of an Office 2013 suite or program.
Note GUIDs are created only when a user installs a Windows Installer (MSI) version of the Office 2013 suite or of
an Office 2013 program. GUIDs are not created when a user installs a Click-to-Run version of the Office 2013 suite
or of an Office 2013 program.

More Information
When you install the Office 2013 suite or one of the stand-alone Office 2013 programs, one or more product
codes, or GUIDs, are created in the following registry subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
If you install a 32-bit version of Office 2013 on a 64-bit version of Windows, the GUIDs are created in the following
registry subkey:
HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Each GUID uses the following format:
{BRMMmmmm-PPPP-LLLL-p000-D000000FF1CE}
The following table describes the characters of the GUID.
|Characters|Definition|Hexadecimal values| |--|--|--| |B|Release version|0-9, A-F| |R|Release type|0-9, A-F| |MM|Major
version|0-9| |mmmm|Minor version|0-9| |PPPP|Product ID|0-9, A-F| |LLLL|Language identifier|0-9, A-F| |p|0 for x86,
1 for x64|0-1| |000|Reserved for future use, currently 0|0| |D|1 for debug, 0 for ship|0-1| |000000FF1CE|Office
Family ID|0-9| To view the GUIDs for the Office 2013 suites and programs that are installed on a computer, follow
these steps:
1. Click Star t , click Run , type regedit, and then click OK .
2. Locate the following subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall The names of the
GUIDs start with a brace ({ ). Therefore, GUIDs are the first items that are listed under Uninstall .
Each GUID data pane contains multiple values, including the values that are described in the following table.
VA L UE N A M E DESC RIP T IO N

DisplayName The product name that appears in the Add or Remove


Programs dialog box

InstallDate The date that the product was installed

Product ID The product ID

InstallSource The installation source

RegCompany The registered company

RegOwner The registered user name

Release version
The release version values specify the level of the release, such as a beta version or a release to manufacturing
(RTM) version. The following table contains more information about the release version values.

VA L UE N A M E REL EA SE

0 Any release before Beta 1

1 Beta 1

2 Beta 2

3 Release Candidate 0 (RC0)

4 Release Candidate 1 (RC1)/OEM Preview release

5-8 Reserved values

9 RTM. This is the first version that is shipped (the initial release).

A Service Pack 1 (SP1). This value is not used if the product code
is not changed after the RTM version

B Service Pack 2 (SP2). This value is not used if the product code
is not changed after the RTM version

C Service Pack 3 (SP3). This value is not used if the product code
is not changed after the RTM version

D-F Reserved values

Release type
The release type specifies the audience for a 2013 Office suite, such as enterprise or retail. The following table
contains more information about the 2013 Office suite release types.
VA L UE REL EA SE T Y P E

0 Volume license

1 Retail/OEM

2 Trial

5 Download

Product ID
The product ID is the version of the Office 2013 suite or program, such as Office Professional 2013 or Office
Standard 2013. The following table contains more information about the Office 2013 product IDs.

P RO DUC T ID SK U

0011 Microsoft Office Professional Plus 2013

0012 Microsoft Office Standard 2013

0013 Microsoft Office Home and Business 2013

0014 Microsoft Office Professional 2013

0015 Microsoft Access 2013

0016 Microsoft Excel 2013

0017 Microsoft SharePoint Designer 2013

0018 Microsoft PowerPoint 2013

0019 Microsoft Publisher 2013

001A Microsoft Outlook 2013

001B Microsoft Word 2013

001C Microsoft Access Runtime 2013

001F Microsoft Office Proofing Tools Kit Compilation 2013

002F Microsoft Office Home and Student 2013

003A Microsoft Project Standard 2013

003B Microsoft Project Professional 2013

0044 Microsoft InfoPath 2013

0051 Microsoft Visio Professional 2013


P RO DUC T ID SK U

0053 Microsoft Visio Standard 2013

00A1 Microsoft OneNote 2013

00BA Microsoft Office SharePoint Workspace 2013

110D Microsoft Office SharePoint Server 2013

110F Microsoft Project Server 2013

012B Microsoft Lync 2013

Language identifier
The language identifier (LCID) varies from language to language. Because the LCID is stored in the GUID in a
hexadecimal format, you may have to convert the LCID value to a decimal value to determine the language. For
example, a hexadecimal value of 0409 converts to a decimal value of 1033. This value represents English.
For more information about language identifiers in Office 2013 suites and programs, go to the following Microsoft
website: Language identifiers and OptionState Id values in Office 2013
Sample GUID
Assume that the first 16 digits of a GUID are "91150000-0011-0407." This example GUID was created by the initial
release version (9) of a Retail or OEM edition (1), version 15.0000, of Microsoft Office Professional Plus 2013
(0011). The language of the product is German. In this case, the hexadecimal value 0407 converts to the decimal
value 1031. This value represents German.
Microsoft Update and Windows Update offer updates
for Office programs that you do not have installed
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you visit the Microsoft Update Web site or start Windows Update to scan for updates for the Microsoft Office
programs, Microsoft Update or Windows Update may offer updates to programs that you do not have installed on
your computer.
For example, you may be offered an update for an Office product even though you do not have the specific Office
product installed.
In addition, you may be offered an Office security update even though the associated security bulletin indicates that
the Office products that you do have installed are not affected.
To look for updates for Office, do one of the following:
On Windows 7, on Windows Vista or on a Windows Server 2008 client, click Star t , point to All Programs and
then click Windows Update .
On Windows XP or on a Windows Server 2003 client, see Windows Update: FAQ.

Cause
Scenario 1
This behavior may occur when you upgrade the Microsoft Office programs from one Office version to another.
In this scenario, some components may be left on the computer from the earlier version. For example, by default, if
you install Microsoft Office 2003 Professional Enterprise, Microsoft InfoPath is installed.
When you upgrade to Microsoft Office Professional 2007, the earlier version of Microsoft InfoPath may be left on
the computer because InfoPath is not upgraded by Office Professional 2007. Additionally, InfoPath is not removed
by the upgrade.
Therefore, some Microsoft Office components are left on the computer. When you visit Microsoft Update or
Windows Update and scan for updates, the components from the earlier version may be found, and any updates
for that version may be offered to you to install.
Scenario 2
This behavior may occur when updates become available for components that may not be installed. Additionally,
this behavior may occur when users choose not to install certain components.
The Microsoft Update or Windows Update detection program checks for installed products. The program makes
recommendations for updates for any part of all installed Office products. For example, the English version of
Microsoft Office only installs the English language proofing tools unless you have customized your installation.
When you visit Microsoft Update or Windows Update, and then you scan for updates, the update for the French
language proofing tool is recommended if there is an update to the French proofing tool. This recommendation is
made regardless of whether the French proofing tool is installed.
Scenario 3
This behavior may occur when you install Microsoft Office products that use shared components.
For example, if you install Project 2007 but not the 2007 Microsoft Office system, you may still be offered an
update for the 2007 Microsoft Office system, because Office updates target every product in which a component
was included. This maintains consistency for shared files across Office products. For example, depending on the
version of Office, the files MSO.DLL and OGL.DLL are shared across Office products. When an update applies to
MSO.DLL or OGL.DLL, all Office products with either of these shared components will be offered the update. For
security updates, you may have a product indicated in the security bulletin as not affected. However, you will still be
offered the update because the product includes the affected shared component.

Resolution
Resolution for Scenario 1
To resolve the issue that is described in Scenario 1, remove the earlier Office components that you do not want on
your computer. To do this, follow these steps:
1. Exit all Office programs.
2. Click Star t , and then click Control Panel .
3. Click Add or Remove Programs .
4. In the Currently installed programs list, click the earlier version of the Office program that you no longer
want on the computer, and then click Remove .
Resolution for Scenario 2 and Scenario 3
To resolve the issue that was described in Scenario 2 and in Scenario 3, use one of the following methods:
Method 1: Install the recommended update
Install the recommended update even if the feature is not being used.
Method 2: Only install the updates that you want
To prevent the update from installing on your computer, click to clear the check box for the update on the Microsoft
Update or Windows Update detection results list. Only install the updates that you want. The next time that you visit
Microsoft Update or Windows Update, the update that you chose not to install will be recommended again.

NOTE
If you apply a security update for a component that is not installed but that is included with your version of the Microsoft
Office suite or another Microsoft Office product, there is no adverse effect on the security or performance of the system.
How to use Office 2013 suites and programs (MSI
deployment) on a computer running another version
of Office
3/30/2020 • 10 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

For a Microsoft Office 2010 version of this article, see 2121447.


For a Microsoft Office 365 client version of this article, see Install and use different versions of Office on the same
PC.

Introduction
This article contains information about how to use Microsoft Office 2013 suites and programs on a computer that
is running another version of Office. This article also provides advice to help prevent conflicts between different
versions of Office.

More Information
You can install and use more than one version of Office on a single computer. For example, you can install and use
both Office 2013 and Office 2010 on the same computer. However, we do not recommend this.

NOTE
We do not support the use of multiple versions of Office on versions of Windows that have Terminal Services enabled. If you
want to run multiple versions of Office on Windows, you should disable Terminal Services.

Virtualization
To avoid the issues that are discussed in this article, one or more Office products can be deployed in a virtualized
environment by using one of the following solutions.
Windows Vir tual PC and Windows 7
Windows Virtual PC is a free download for Windows 7 that can be used to install multiple versions of Office on the
same Windows 7 computer without conflicts.
For more information about Windows Virtual PC, see Install and use different versions of Office on the same PC.
Remote Desktop Services or Terminal Services
Remote Desktop Services or Terminal Services can be used to host the installation on a server to which clients can
connect to provide a complete Windows environment.
For more information Remote Desktop Services, visit https://technet.microsoft.com/library/bb897474.aspx.
Application Virtualization
Microsoft Application Virtualization (App-V) can enable incompatible applications to run on the same instance of
the operating system. The applications are centrally managed services that are never installed, minimize conflicts,
and that are streamed on-demand to end-users.
For more information about the Office 2013 Resource Kit, go to the following Microsoft TechNet website:
Office 2013 Resource Kit
Windows 8 and Hyper-V
Because Hyper-V is included with Windows 8, you do not have to download and install it.
For more information about Hyper-V in Windows 8 and Windows Server 2012, go to the following Microsoft
TechNet websites:
Client Hyper-V
Overview of Hyper-V
Installation order
If you want to install and use more than one version of Office on the same computer without virtualization, use the
following order.

VERSIO N IN STA L L AT IO N O RDER

Microsoft Office 2003 First

Microsoft Office 2007 Second

Microsoft Office 2010 suites and programs (32-bit versions Third


only)

Microsoft Office 2013 suites and programs (32-bit versions Fourth


only)

You must install the earliest version of Office first. For example, if you want to use both Office 2007 and Office 2013
programs on the same computer, install Office 2007 first. You must use this order because of how registry keys,
shared programs, file name extensions, and other settings are managed for each version of the Office suites and
programs.

NOTE
This installation order also applies to Office stand-alone products, such as Visio.
Office 2003 is not supported on Windows 8
If you uninstall one of the versions of Office, you may have to reinstall the remaining versions of Office in this order for
them to work correctly.
You must follow this installation order when you apply Office updates (such as .msp files). This is because, when an update
is applied, the targeted Office product is repaired. Applying an update to an older version of Office may cause later
versions of Office to function incorrectly. You must apply updates to the earliest version of Office first, and then either
repair or apply updates to the later versions of Office in chronological order.

Installation types
You can install Office 2013 suites or programs by using either the traditional MSI or Click-to-Run (C2R) deployment
methods. Even though you may be able to install Office 2013 by using both methods, we do not support the
coexistence of an Office 2013 MSI and Office 2013 Click-to-Run installation on the same computer.
Office 2013 suites and products 64-bit version
To install and use more than one 64-bit version of Office on the same computer without using virtualization, install
them in the following order:

VERSIO N IN STA L L AT IO N O RDER

Microsoft Office 2010 64-bit First

Microsoft Office 2013 64-bit Second

You cannot run the 64-bit version of any Office 2013 suite or program when a 32-bit version of Office is installed
on the same computer. The Setup program will detect that you have previous 32-bit versions of Office programs on
your computer, and require them to be removed before you can install Office 2013 64-bit.
Note This statement applies to the MSI, Click-to-Run (C2R), and App-V deployment types.
Office Bin folder location
When you install Office 2013 suites or programs, the Setup program uses the Program Files\Microsoft Office folder
as the default folder on a 32-bit version of Windows, or the Program Files (x86)\Microsoft Office folder as the
default folder on a 64-bit version of Windows. The Office Bin default folder in these versions of windows
are Program Files\Microsoft Office\Office15 and Program Files (x86)\Microsoft Office\Office15 respectively. The
Office Bin folder is the folder in which the Office executable files are installed. This location provides a better user
experience for those who want to use multiple versions of Office on the same computer. Be aware that you cannot
change the name of the Office Bin folder.
Start menu shortcuts
You can use the Office Customization Tool to specify a different location for the Office 2007, Office 2010, and Office
2013 shortcuts. To access the Office Customization Tool, run the setup /admincommand in the root directory of the
Office 2013 CD at a command prompt:
Note The Office Customization Tool is available only for non-retail versions of Office 2007, Office 2010, and Office
2013.
For more information about the Office Customization Tool, go to the following Microsoft TechNet website:
Office Customization Tool (OCT) reference for Office 2013
Multiple versions of Outlook
Outlook 2013 cannot coexist with any earlier version of Outlook. When you install Outlook 2013, the Setup
program removes any earlier versions of Outlook that are installed. The Setup program removes these versions of
Outlook even if you select the Keep these programs check box in the Removing Previous Versions dialog box.
Microsoft Office Groove 2007 and Microsoft SharePoint Workspace 2010
Microsoft SharePoint Workspace 2010 cannot coexist with Microsoft Office Groove 2007. When you install
SharePoint Workspace 2010, the Setup program removes Groove 2007. The Setup program removes Groove 2007
even if you select the Keep these programs check box in the Removing Previous Versions dialog box.
Multiple versions of Word
If you have two versions of Word installed on the same computer, you experience a delay when you start Word
2010. This behavior occurs because Word 2010 automatically registers itself on the computer.
You can bypass this registration to enable Word 2010 to start faster. However, we do not recommend this because
Word may not function correctly if it cannot register itself.
IMPORTANT
This section, method, or task contains steps that tell you how to change the registry. However, serious problems might occur
if you change the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you change it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

To disable the automatic registration of Word 2010, follow these steps:


1. Start Registry Editor.
In Windows 7 or Windows Vista, click Start, type regedit in the Start Search box, and then press Enter.
If you are prompted for an administrator password or for confirmation, type the password or provide
confirmation.
In Windows XP, click Start, click Run, type regedit in the Open box, and then click OK.
2. Locate and then click to select the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options
3. After you select the subkey that is specified in step 3, point to New on the Edit menu, and then click DWORD
Value.
4. Type NoReReg, and then press Enter.
5. Right-click NoReReg, and then click Modify.
6. In the Valuedata box, type 1, and then click OK.
7. On the File menu, click Exit to close Registry Editor.

NOTE
In order to disable the registration in other versions of Word, this registry key must be created for each version. To do this,
replace the version number in the path with the appropriate version of Word.

Office files in Microsoft Windows Explorer


When you double-click an Office file in Windows Explorer to open the file, the following rules apply. These rules
also apply when you double-click the Office file in the Recent Documents folder in Windows.
If a version of the program in which the file was created is running on the computer, the file is opened in that
version.
For Access and for Word, if no version of the program in which the file was created is running on the computer,
the file is opened in the version of the program that was most recently started.
To associate files with the programs that are included with a particular version of Office, run the Office Setup
program, and then click Repair Office . When you do this, the file associations for that version of Office are
registered.

NOTE
You cannot use this method to register file associations in Word or in Access. If you install a software update for a version of
Office, the software update repairs that version of Office. You may have to repair some or all Office products after you install a
software update to restore the file associations. For more information about how to repair Office 2013 features, see Repair an
Office application.
Windows 8 steps to repair or remove Office 2013:
Repair your Office programs
1. From the Windows 8 Start screen, type Control Panel .
2. Click or tap Control Panel .
3. Under Programs , click or tap on Uninstall a program .
4. Click or tap the Office program that you want to repair, and then click or tap Change .
5. Click or tap Repair > Continue . You might have to restart your computer after the repair is completed.
Uninstall Office
1. From the Windows 8 Start screen, type Control Panel .
2. Click or tap on Control Panel .
3. Under Programs , click or tap on Uninstall a program .
4. Select the Office version that you want to uninstall.
5. Click or tap Uninstall > Continue . You might have to restart your computer after the removal is completed.
Office OLE objects in other programs
If you insert an Office object into another program on a computer that is running multiple versions of Office, the
latest version of the program is used. For example, if you insert a Microsoft Excel worksheet object into a Word
document, the latest versions of Word and of Excel are used. This may cause problems if you share the container
file with users who are not using Office 2010 programs.
Shared programs
If you install the different versions of Office in the order that is described in the "Installation order" section, you
should not experience any problems when you use shared programs such as Equation Editor and Clip Gallery.
However, the Object dialog box may display more than one entry for each shared program. This behavior occurs
because multiple versions of the shared program are installed on the computer.
Windows Installer messages in Word
If you have multiple versions of Word installed on the computer, the Windows Installer may start when you start
Word 2013. Additionally, a message that states that the Windows Installer is preparing to install Word may be
displayed before Word starts. This occurs when the version of Word that you start is not the one that is registered.
The repair operation can take several minutes to finish.
Windows Installer messages in Access
When you start a version of Access on a computer that has multiple versions of Access installed, the Windows
Installer may start, and a message that states that the Windows Installer is preparing to install Access may be
displayed before Access starts.
Every time that you start Access 2003, Access 2007, or Access 2010 after you use Access 2013, the Windows
Installer repair operation registers that version of Access. Similarly, the Windows Installer repair operation registers
Access 2010 every time that you start it after you use an earlier version of Access. This does not occur when you
start Access 2002, nor does it occur when you start the same version of Access again.
"No default mail client" error when sending files from
Office programs
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you attempt to send a file from Microsoft Excel, Microsoft Word, or Microsoft PowerPoint using email, you
receive the following error:

Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please
run Microsoft Outlook and set it as the default mail client.

Cause
This problem occurs when the following registry data is present on your computer:
32-bit versions of Microsoft Office on 32-bit versions of Windows, or 64-bit versions of Microsoft Office on
64-bit versions of Windows
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging
Subsystem\MSMapiApps
REG_SZ: Version
Data value:
32-bit versions of Microsoft Office on 64-bit versions of Windows
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows Messaging
Subsystem\MSMapiApps
REG_SZ: Version
Data value:
NOTE : If you do not find the Version value with no data associated with it, or the Version value does not exist at
all under this registry path, then there is a different cause of the error. Please search the Microsoft Knowledge Base
for additional causes of this error.

Resolution
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows. To resolve this problem, delete
the Version value from under the \MSMapiApps key using the following steps:

32-bit versions of Microsoft Office on 32-bit versions of Windows, or 64-bit versions of Microsoft Office on
64-bit versions of Windows
1. Start Registry Editor.
2. Locate and select the following key in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging
Subsystem\MSMapiApps
3. Right-click the REG_SZ value called Version under the MSMapiApps key and select Rename .
4. Rename the Version value to Version_Renamed .
5. Exit Registry Editor.
32-bit versions of Microsoft Office on 64-bit versions of Windows
1. Start Registry Editor.
2. Locate and select the following key in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows Messaging
Subsystem\MSMapiApps 3. Right-click the REG_SZ value called Version under the MSMapiApps key and
select Rename .
4. Rename the Version value to Version_Renamed
5. Exit Registry Editor.
"Your system is low on virtual memory" error
message when you try to start an Office program
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you start any of the Microsoft Office 2010, 2007, or 2003 programs, you may receive an error message that
is similar to the following error message:

Your system is low on virtual memory. To ensure that Windows runs properly, increase the size of your virtual
memory paging file. For more information, see Help.

If you click OK , you may receive the following error message:

Your system is low on virtual memory. Windows is increasing the size of your virtual memory paging file. During
this process, memory requests for some applications may be denied. For more information, see Help.

Cause
This behavior may occur if you try to start any of the programs included in Office on a computer where the paging
file value setting is too low.

Resolution
To resolve this behavior, increase the size of the paging file. To do so, follow these steps as appropriate for your
operating system.
Note Microsoft Office 2010 and Office 2007 require Windows XP or later.
Windows 2000
1. Right-click My Computer and then click Proper ties .
2. In the System Proper ties dialog box, click Advanced
3. Click Performance Options .
4. In the Vir tual memor y pane, click Change to increase the paging file.
Windows 2000 requires an Initial value of 126 MB for debugging.
5. After you change the setting, click Set , and then click OK .
6. In the System Control Panel Applet dialog box, click OK to the following message:
The changes you have made require you to restart your computer before they can take effect.
7. Click OK to close the Performance Options dialog box, and then click OK to close the System Proper ties
dialog box.
8. When you are prompted to restart your computer, click Yes .
Windows XP
1. Click Star t , right-click My Computer , and then click Proper ties .
2. In the System Proper ties dialog box, click the Advanced tab.
3. In the Performance pane, click Settings .
4. In the Performance Options dialog box, click the Advanced tab.
5. In the Vir tual memor y pane, click Change .
6. Change the Initial size value and the Maximum size value to a higher value, click Set , and then click OK .
7. Click OK to close the Performance Options dialog box, and then click OK to close the System Proper ties
dialog box.

More Information
With virtual memory, the computer can use hard disk space as random access memory (RAM). The computer uses
virtual memory to augment the ordinary RAM that is installed on the computer. If you reduce the size of the paging
file, the Office program may not start correctly or may not start at all. This behavior may occur even if the computer
has lots of RAM. For additional information, see Tips to free up drive space on your PC.
Did this fix the problem?
Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is not
fixed, you can contact support.
Office applications crash when you open an IRM
document if HTTPS proxy is enabled
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You do one of the following:
Start an Office 2016 or Office 2013 application
Open an information rights management (IRM)–protected document or email message
Try to protect a document or email message by using IRM
Sign in to an Office 2016 or Office 2013 application
In this situation, the relevant Office application crashes.

Cause
Windows verifies that the data sent by the Azure RMS service is valid and is coming from RMS. If Windows is
configured to use a proxy server for HTTPS connections, this validation process may fail and cause Office
applications to crash.

Resolution
This issue is fixed in the following updates:
Office 2013 MSI: April 4, 2017, update for Office 2013 (KB 3172523)
Office 2016 MSI: April 4, 2017, update for Office 2016 (KB 3178666)
Office 2013 Click-to-Run: Build 15.0. 4919.1002 or a later build
Office 2016 Click-to-Run: Build 16.0.8067.2115 or a later build

Workaround
To work around this issue, temporarily disable Azure RMS server certification validation by configuring a registry
key as follows.
Impor tant Follow the steps in this section carefully. Serious problems might occur if you modify the registry
incorrectly. Before you modify it, back up the registry for restoration in case problems occur.
Notes
Setting this registry key disables the additional security validation that makes sure that the Azure RMS server's
certificate is chained to the Microsoft Trusted Root Certificate.
Setting this registry key does not affect the primary security validation (whether the Azure RMS server's
certificate is valid, expired, and chained to a trusted root).
1. Exit all Office applications.
2. Start Registry Editor:
In Windows 10, go to Star t , enter **regedit **in the **Search **box, and then select regedit.exe in the
search results.
In Windows 7, click Star t , enter regedit in the Search programs and files box, and
then click regedit.exe in the search results.
In Windows 8 or Windows 8.1, move the mouse pointer to the upper-right corner, select Search , type
**regedit **in the search box, and then select regedit.exe in the search results.
3. Locate and then select one of the following subkeys, depending on your version of Office and Windows:
32-bit Office
32-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSIPC\RMSOServerVerification
64-bit Windows
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSIPC\RMSOServerVerificati
on
64-bit Office
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSIPC\RMSOServerVerification
4. On the Edit menu, point to New , and then select DWORD Value .
5. Enter NoValidation , and then press Enter.
6. In the Details pane, press and hold (or right-click) NoValidation , and then select Modify .
7. In the Value data box, enter 1 , and then select OK .
8. Exit Registry Editor.

More Information
This issue occurs in installations of Office 2013 (Word 2013, Excel 2013, PowerPoint 2013, and Outlook 2013) and
Office 2016 (Word 2016, Excel 2016, PowerPoint 2016, Visio 2016, and Outlook 2016) that have the msipc.dll file
(version 1.0.2284.0 or 1.0.2236.0 ). You may have the affected msipc.dll file in the following situations:
If you have the February 7, 2017, update for Office 2013 (KB3115489) installed.
If you have the February 7, 2017, update for Office 2016 (KB3114389) installed.
If you have Office subscription build 16.0.7571.2072 or a later version.
Cannot change the number of places to list in Recent
Places in Word 2010, in Excel 2010, or in PowerPoint
2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you view the list of Recent Places in Backstage view in Microsoft Word 2010, in Microsoft Excel 2010, or in
Microsoft PowerPoint 2010, you cannot change the number of places to list in Recent Places.
Note To access Backstage view, click the File tab.

Workaround
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

To work around this issue, you must change the registry to indicate the number of places to list in Recent Places.
To do this, follow these steps:
1. Exit all Office programs.
2. Click Star t , click Run , type regedit, and then click OK .
3. Locate and then click to select one of the following registry subkeys:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Place MRU
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Place MRU
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\PowerPoint\Place MRU
4. After you select the subkey that is specified in step 3, right-click Max Display , and then click Modify .
5. Click Decimal , and in the Value data box, type a number to represent the number of places that you want
to list in Recent Places, and then click OK .
Note By default, Max Display is set to 25.
6. Repeat steps 3 through 5 for each Office program for which you want to change the number of places that
you want to list in Recent Places.
7. On the File menu, click Exit to exit Registry Editor.
Did this fix the problem?
Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is not
fixed, you can contact support.

More Information
For more information about Backstage view, see Changes in Word 2010.
You cannot embed an Adobe OpenType font in a
document in an Office program
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to embed fonts in a Microsoft Office document, Adobe OpenType fonts that have the .otf extension
are not embedded.

Cause
This issue occurs because the programs that are listed in the "Applies to" section do not embed fonts that have the
.otf extension. The programs that are listed in the "Applies to" section only embed fonts that have the .ttf extension.

Workaround
To work around this issue, use only fonts that have the .ttf extension in documents in which you intend to embed
the fonts.

More Information
The Adobe OpenType format is an extension of the TrueType SFNT format that supports Adobe PostScript font data
and new typographic features. Adobe OpenType fonts that contain PostScript data have an .otf extension. However,
TrueType-based OpenType fonts have a .ttf extension.
For more information about Adobe's OpenType fonts, visit the following Adobe Web site:
https://www.adobe.com/type/opentype/index.html
Microsoft provides third-party contact information to help you find technical support. This contact information may
change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.

References
For more information about fonts, visit the following Microsoft Web site:
Microsoft Typography
You receive the error message "You cannot install the
64-bit version of Office 2010 because you have 32-bit
Office products installed"
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to install the 64-bit version of a Microsoft Office 2010 suite or the 64-bit version of a Microsoft
Office 2010 product, you receive the following error message at the beginning of the installation process:

You cannot install the 64-bit version of Office 2010 because you have 32-bit Office products installed. These
32-bit products are not supported with 64-bit installations:

<products>

If you want to install 64-bit Office 2010, you must uninstall all 32-bit Office products first, and then run
setup.exe in the x64 folder. If you want to install 32-bit Office 2010, close this Setup program, and then
either go to the x86 folder at the root of your CD or DVD and run setup.exe, or get the 32-bit Office 2010 from
the same place you purchased 64-bit Office 2010.

The placeholder <products > represents any version of Microsoft Office and also any component that you
downloaded separately from the Microsoft Download Center that applies to Microsoft Office. See the "More
Information" section for a list of these products.

Cause
The 64-bit version of Office 2010 is incompatible with the 32-bit version of Office 2010 products or with the 32-bit
version of Office 2010 components that are listed in the "More Information" section.
Additionally, you cannot install 64-bit versions of Office 2010 products and 32-bit versions of Office 2010 products
on the same computer. For example, if you install the 32-bit version of Microsoft Office Professional 2010 and then
try to install the 64-bit version of Microsoft Project Professional 2010, you receive the error message that is
mentioned in the "Symptoms" section.

Resolution
To install the 64-bit version of Office 2010, you must uninstall the products that are listed in the error message.
Note the products that are listed in the error message, and then follow these steps for your version of Windows.
(The product names that appear in the error message are the same product names that appear in the Programs
Control Panel that you will use to uninstall them.)
To remove Office, see Uninstall Office from a PC.
You can also use the following instructions to remove a single component.
Windows Vista or Windows 7
1. While the error message is displayed on your screen, note the names of the products that are listed.
2. Click Star t , and then click Control Panel .
3. Under Programs , click Uninstall a Program .
4. Locate one of the products that you noted in step 1, right-click the product name, and then select Uninstall .
5. Repeat step 3 until you have uninstalled all the products that you noted in step 1.
After you remove all previous 32-bit versions, you can try to install the 64-bit version of Office 2010.
Known issues with this resolution
Restart of your computer is requested during Uninstall
You may receive a message to restart your computer, depending on the product that you are uninstalling. When
this message is displayed, you must restart the computer to finish the uninstallation process. If you do not restart
your computer, you may receive different error messages when you try to install Office later.
Application compatibility and the 64-bit version of Office
We strongly recommend that customers use the 32-bit version of Office 2010 even on 64-bit versions of Windows
because of application compatibility. If you have add-ins on your computer, especially if you sync your mobile
phone together with Microsoft Outlook, check with the add-in manufacturer to see whether a 64-bit version of the
add-in is available before you install the 64-bit version of Office 2010.
For more information about the differences between the 32-bit and 64-bit versions of Office, visit the following
websites:
Choose between the 64-bit or 32-bit version of Office
64-bit editions of Office 2013
Compatibility Between the 32-bit and 64-bit Versions of Office 2010
Microsoft does provide 32-bit and 64-bit versions of the following components for Office 2010. You can install the
64-bit versions of these components to work with the 64-bit version of Office 2010.
Microsoft Access Database Engine 2010
Microsoft Access Runtime 2010

More Information
The following list includes those products that may be displayed in the error message and that must be removed in
order to install the 64-bit version of Office 2010.
Microsoft Office 2010 products and components
32-bit versions of Microsoft Office 2010 suites
Microsoft Office Home and Business 2010
Microsoft Office Home and Student 2010
Microsoft Office Standard 2010
Microsoft Office Small Business Basics 2010
Microsoft Office Professional 2010
Microsoft Office Professional Plus 2010
32-bit versions of Microsoft Office 2010 individual products
Microsoft Access 2010
Microsoft Excel 2010
Microsoft Office Groove 2010
Microsoft InfoPath 2010
Microsoft OneNote 2010
Microsoft Outlook 2010
Microsoft PowerPoint 2010
Microsoft Project Standard 2010
Microsoft Project Professional 2010
Microsoft Publisher 2010
Microsoft SharePoint Designer 2010
Microsoft Visio Standard 2010
Microsoft Visio Professional 2010
Microsoft Visio Premium 2010
Note: Microsoft Office Groove 2010 may be displayed in the error message but is not listed among the programs in
Control Panel. You must uninstall Microsoft SharePoint Workspace 2010 in Control Panel to remove Microsoft
Office Groove 2010 from the error message.
32-bit versions of Microsoft Office 2010 components
Microsoft Access Runtime 2010
Microsoft Access Database Engine 2010
You can't install Office Starter 2010 on Windows 8
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you upgrade a Windows 7 PC that came with Microsoft Office Starter 2010 to Windows 8, a compatibility
error will occur when you click Use to install Office Starter 2010:
"This program has compatibility issues."
NOTE The compatibility problem does not occur if you select the Activate or Purchase options.

Resolution
In order to use Microsoft Office Starter 2010 in Windows 8, you must first install and update it in Windows 7.

WARNING
The resolution provided will remove all personal files and settings from your PC. Please create a back-up of your files and
programs before you follow these steps.

1. Use the recovery method your PC manufacturer provided to restore your PC back to Windows 7.
2. Find and double-click the shortcut called Microsoft Office 2010 in the Windows Start menu.
3. Click the Use button, and then click Open .
4. Once the install is complete, download and install this required Click-to-Run update.
5. You can now upgrade your Windows 7 PC to Windows 8.
You cannot use the "Convert bibliography to static
text" option in Word 2007 and Word 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You cannot use the Conver t bibliography to static text option in Microsoft Office Word 2007 or Word 2010.

Workaround
To work around this issue, you must select the text of the bibliography, and then click Conver t bibliography to
static text .

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information
Steps to reproduce the problem
1. Create a new blank document in Word 2007 or Word 2010.
2. Type =rand(3) in the new document, and then press ENTER.
3. Click the References tab, click Inser t Citation in the Citations & Bibliography group, and then click
Add New Source to add a new source.
Repeat this procedure to add three sources throughout the document.
4. In the Citations & Bibliography group, click Bibliography , and then select a standard bibliography in the
list.
5. In the inserted bibliography, select Conver t bibliography to static text in the Bibliographies list.
Notice that the bibliography is not converted to static text.
"Compile Error: Procedure too large" when you try to
run a VBA macro in a 32-bit version of an Office 2010
program
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to run a Visual Basic for Applications (VBA) macro in a 32-bit version of a Microsoft Office 2010
program, you receive the following error message:
"Compile Error: Procedure too large"

Cause
This issue may occur because the VBA macro was created by using a 64-bit version of an Office 2010 program.

Workaround
To resolve this issue, create the VBA macro by using a 32-bit version of an Office 2010 program.

More Information
The 64-bit versions of the Office 2010 program enable you to write a VBA macro that can become too large to use
on other computers that are running 32-bit versions of Office programs. This includes 32-bit versions of Office
2010 or earlier versions of Office. A VBA macro that was created for a 32-bit version of an Office application can
run on the same 64-bit version of an Office 2010 program and most VBA macros written for the 64-bit version of a
program will run on the 32-bit version of the program. However, a macro that is too large will fail together with the
Visual Basic for Applications error message that is mentioned in the "Symptoms" section.
As a macro developer, you have to be aware that Visual Basic for Applications 7.0 only guarantees compatibility
when the macro is moved from a 32-bit version of an Office 2010 program to a 64-bit version of an Office 2010
program. There is no compatibility when you move from a 64-bit version of an Office 2010 program to a 32-bit
version of an Office 2010 program. This means that a macro created on a 32-bit version of Office 2010 can run on
a 64-bit version of Office 2010, but macros created on a 64-bit version of Office 2010 may run, but are not
guaranteed to run, on a 32-bit version of Office 2010. Developers who create Office 2010 macros should develop
them on 32-bit versions of Office 2010 to achieve full compatibility on both 32-bit and 64-bit versions of Office
2010.
Links in Office take at least 60 seconds to open AD FS
sites
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you access Active Directory Federation Services (AD FS) sites through hyperlinks in Microsoft Office
applications, the sites take a minimum of 60 seconds to open.

Cause
This issue occurs because the following conditions are true:
AD FS doesn't know how to handle a HEAD request that it receives from an Office application.
AD FS tries to respond by returning an error message. However, the AD FS protocol rejects it because the HEAD
response can't contain a request body.

Resolution
The following resolution is applicable to only AD FS 4.0 and later versions.

IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

To fix this issue, add the following registry key on affected client computers.
Subkey: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity

DWORD: ReplaceHLinkHEADRequestWithGET
Value: 1 (Hexadecimal for Base )
Connection to a network document is lost in the 2007
Office system or in Office 2010 after the computer
resumes from standby
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. You access a Microsoft Office 2010 document that is located on a network share.
Your computer enters standby. Then, you resume the computer from standby. In this scenario, you receive an error
message. Error messages resemble those below.

Word error: Word cannot establish a network connection with this document after the system resumed from suspend
mode. Save the document into a different file to keep any changes.

Excel error: The file '<file name>' may have been changed by another user since you last saved it. In that
case, what do you want to do? Save a copy or Overwrite changes.

PowerPoint error: The file you were working with was modified during suspend mode, and the original version is
no longer available. <file path and name.ppt> must be re-saved.

Additionally, you cannot update the document and then save it back to the network share when the network
location is available.

Resolution
Registry key information

IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

Steps to resolve this issue in Office 2010


Install hotfix package 2413659, and then configure the NetworkAvailableTimeInSeconds registry entry to enable
the hotfix package. To do this, follow these steps:
1. Install the hotfix package that is described in the following Knowledge Base article:
2413659 Description of the Word 2010 hotfix package (Mso-x-none.msp, Word-x-none.msp): October 26,
2010
2. Configure the NetworkAvailableTimeInSeconds registry entry.
To do this, follow these steps:
a. Click Star t , click Run , type regeditin the Open box, and then click OK .
b. Locate and then select the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options
c. On the Edit menu, point to New , and then click Dword Value .
d. Type NetworkAvailableTimeInSeconds, and then press Enter.
e. Right-click NetworkAvailableTimeInSeconds , and then click Modify .
f. In the Value data box, click Decimal , type a number value, and then click OK .
Note This registry subkey sets the time, in seconds, that Word waits for the network to resume. For
example, if you type 15 for the number value, Word waits 15 seconds for the network to resume. You
might have to do some tests in your own environment to determine an appropriate value. You may
have to try multiple numbers.
g. Locate and then select the following registry subkey.
HKEY_CURRENT_USER\Software\Microsoft\office\14.0\common\Internet
h. Repeat step 2C through step 2F again. Reuse the same value that you used previously.
i. Exit Registry Editor.
If these steps do not resolve the issue, see the Additional troubleshooting section.

Additional troubleshooting
If you continue to experience the issue after you apply the appropriate hotfix and configure the
NetworkAvailableTimeInSeconds registry subkey, you may have to collect additional information to correctly
enable the hotfix on your system.
To collect the additional information, follow these steps:
1. Click Star t , click Run , type regeditin the Open box, and then click OK .
2. Locate and then select the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\TrustCenter
3. On the Edit menu, point to New , and then click Dword Value .
4. Type EnableLogging, and then press Enter.
5. Right-click EnableLogging , and then click Modify .
6. In the Value data box, type 1 , and then click OK .
Note This registry subkey creates a log file that can be found in the following folder:
C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\OFFICE\TCDiag
7. Exit Registry Editor.
8. Reproduce the problem.
9. Locate and open the log file that is created.
10. Analyze the file. To do this, follow these steps:
a. Open the WDTCD.LOG file that is generated in step 6.
b. Search for the entry HrBindShellPistm:, and then note the error code such as, for example, 80070035.
c. Revert every pair of two digits from this error code by writing them down from right to left. For example,
revert 80 07 00 35 to 35 00 07 80 .
11. Click Star t , click Run , type regeditin the Open box, and then click OK .
12. Locate and then select the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Internet
13. On the Edit menu, point to New , and then click Binar y Value .
14. Type ResumeErrorCodes, and then press Enter.
15. Right-click ResumeErrorCodes , and then click Modify .
16. In the Value data box, type the value that you retrieved from the log file in step 10C, and then click OK .
17. In some cases, multiple, different error codes may be observed from step 9. In this case, convert all error
codes as described in step 10C, and append them all serially to the ResumeErrorCodes registry entry.
18. Exit Registry Editor.
NOTE : To resolve the Word error, you may have to remove the NetworkAvailableTimeInSecondsentry added
to:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options
Did this fix the problem?
Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is not
fixed, you can contact support.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Document files in the Office Document Cache are not
deleted when you run the Windows Disk Cleanup
utility on a computer that is running a 64-bit version
of Windows
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You have a 32-bit version of Microsoft Office installed on a computer that is running a 64-bit version of
Windows.
You try to clean up the Office temporary files from the Office Document Cache when you run the Windows Disk
Cleanup utility to free up disk space.
In this scenario, the Office temporary files are not deleted.

Cause
This issue occurs because the 32-bit version of the Disk Cleanup Wizard Handler for the Office Document Cache
does not run on a 64-bit version of Windows. The 32-bit version of Office 2010 does not install a 64-bit version of
the Disk Cleanup Wizard Handler.

Workaround
To work around this issue, manually delete the cached files. To do this, follow these steps:
1. Click Star t , click All Programs , click Microsoft Office , click Microsoft Office 2010 Tools , and then click
Microsoft Office 2010 Upload Center .
2. In Upload Center, click Settings .
3. Under Cached Settings , click Delete cached files .
4. When you are prompted, click Delete cached information .

More Information
The Disk Cleanup Wizard Handler for the Office Document Cache is available in the Windows Disk Cleanup utility.
This handler enables the Windows Disk Cleanup utility to delete files from the Office Document Cache that are not
pending upload in order to free up disk space.
To enable the Disk Cleanup Wizard Handler for the Office Document Cache, follow these steps:
1. Start the Disk Cleanup Wizard. To do this, click Star t , click All Programs , click Accessories , click System
Tools , and then click Disk Cleanup .
2. Select the drive that you want to clean up, and then click OK .
3. Under Files to delete , click to select the Microsoft Office Temporar y Files check box.
The Dsofile.dll files lets you edit Office document
properties when you do not have Office installed
3/30/2020 • 8 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The Dsofile.dll sample file is an in-process ActiveX component for programmers that use Microsoft Visual Basic
.NET or the Microsoft .NET Framework. You can use this in your custom applications to read and to edit the OLE
document properties that are associated with Microsoft Office files, such as the following:
Microsoft Excel workbooks
Microsoft PowerPoint presentations
Microsoft Word documents
Microsoft Project projects
Microsoft Visio drawings
Other files that are saved in the OLE Structured Storage format
The Dsofile.dll sample file is written in Microsoft Visual C++. The Dsofile.dll sample file demonstrates how to use
the OLE32 IPropertyStorage interface to access the extended properties of OLE structured storage files. The
component converts the data to Automation friendly data types for easier use by high level programming
languages such as Visual Basic 6.0, Visual Basic .NET, and C#. The Dsofile.dll sample file is given with full source
code and includes sample clients written in Visual Basic 6.0 and Visual Basic .NET 2003 (7.1).

More Information
Download sample ActiveX Component
The following files are available for download from the Microsoft Download Center:
Download the DsoFileSetup_KB224351_x86.exe package now.
You have a royalty-free right to use, to modify, to reproduce, and to distribute the Dsofile.dll sample file component
and the C++ source code files in any way you find useful. This is provided that you agree that Microsoft has no
warranty, no obligations, and no liability for their use or for the information provided within. The component and
source code is provided free of charge for educational purposes only and is considered a sample. If you want to use
the component, or any part thereof, in a production solution, you are responsible for reviewing, for modifying, for
testing, and for supporting the component yourself.

WARNING
The Dsofile.dll, the source code, and the associated samples are provided "as is" without warranty of any kind, either
expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular
purpose. Use at your own risk.
Note To read and to edit Office 2007 documents by using this sample, you must install the Office 2007
Compatibility Pack. For more information, see the "Resources" section.
Information about OLE document properties
Every OLE compound document can store additional information about the document in persistent property sets.
These are collectively called the "Document Summary Properties." These property sets are managed by
"COM/OLE" so that third-party clients can read this information without the aid of the main application that is
responsible for the file.
To help developers that are interested in reading document properties, we have provided the following two
interfaces to manage property sets:
IPropertySetStorage
IPropertyStorage
However, some high-level programming languages may have trouble using these interfaces because the interfaces
are not Automation-compatible. To resolve this problem, developers can use an ActiveX DLL, such the "DsoFile
sample" to read and to write the most common properties that are used in OLE compound documents. This applies
particularly those that are used by Microsoft Office applications.
Use the DsoFile component from your custom application
The Dsofile.dll sample file reads and writes to both the standard properties and the custom properties from any
"OLE Structured Storage" file. This includes, but is not limited to, the following:
Word documents
Excel workbooks
PowerPoint presentations
Because of the size and the speed of the Dsofile.dll sample file, the DLL can be much more efficient than trying to
Automate Office to read document properties.
To use the component, set a reference to the Dsofile type library that is named "DSO OLE Document Properties
Reader 2.1." The component can be used for both late calls and early bound calls. the Dsofile.dll sample file has only
one object that can be created. That object is named DSOFile.OleDocumentProperties. The
DSOFile.OleDocumentProperties object provides access to the OLE document properties of a file you load by using
the Open method. All properties are read in and cached on open. All properties are then made available through
the OleDocumentProperties object for editing. The properties are only written back to the file when you call Save.
When you are done editing a file, call Close to release the file lock.
The standard OLE properties and the standard Office Summary properties can be obtained from the
SummaryProperties property. Custom properties are listed in the CustomProperties collection. Each custom
property has a unique name. Each custom property is accessible in the collection by that name. You can add or
remove individual properties. Also, you can enumerate through the entire collection by using the "For Each" syntax
in Visual Basic .NET.
When the Open method is called, the OleDocumentProperties object that is named Dsofile tries to open the
document for both read access and write access. If the file has been marked read-only or if the files is located on an
NTFS share that only provides Read access, the call may fail. You may receive the following error message:
"Error 70: Permission denied"
If you want to open the file for read access only , pass True for the ReadOnly parameter on the Open method.
Additionally, you can pass the dsoOptionOpenReadOnlyIfNoWriteAccess flag if you want Dsofile to try to open the
file for editing. However, if Dsofile cannot gain access because file is read-only or is locked by another process, open
a read-only copy. Then, you can verify whether the document is opened read-only by using the IsReadOnly
property.
Once a property has been changed or modified, you can use the IsDirty property to verify whether the property set
has to be saved. Changes that are made are not written to the file until Save is called. If you do not call Save, your
changes are lost on Close.
In addition to the standard Automation error messages, Dsofile can return one of the following custom error
messages when something goes wrong:
"Error -2147217151 (&H80041101): You must open a document to perform the action requested."
"Error -2147217150 (&H80041102): You must close the current document before opening a new one in the same
object."
"Error -2147217149 (&H80041103): The document is in use by another program and cannot be opened for read-
write access."
"Error -2147217148 (&H80041104): The document is not an OLE file, and does not support extended document
properties."
"Error -2147217147 (&H80041105): The command is not available because document was opened in read-only
mode."
"Error -2147217146 (&H80041106): The command is available for OLE Structured Storage files only."
"Error -2147217145 (&H80041107): The object is not connected to the document (it was removed or the
document was closed)."
"Error -2147217144 (&H80041108): Cannot access property because the set it belongs to does not exist."
"Error -2147217143 (&H80041109): The property requested does not exist in the collection."
"Error -2147217142 (&H8004110A): An item by that name already exists in the collection."
Unicode Property Sets
OLE Property Sets can store strings in either Unicode format or in Multi-Byte Character String (MBCS) format with
a specified code page. Dsofile can read and write to either type of property set. By default, Dsofile selects Unicode
when Dsofile creates new sets, such as when adding properties to a file that has none. If you want Dsofile to create
the set by using MBCS format for strings, you can pass the dsoOptionUseMBCStringsForNewSets flag in the Open
method.
Because existing property sets may use MBCS format, Dsofile has to store strings in the same format during a save.
If you try to add a string that is unable to map into the code page for the property set, the operation may fail.
Therefore, limit your strings to characters that you know exist in the code page of the system that made the file.
Alternatively, make sure that all property sets are in Unicode format before you edit those properties.
Note Dsofile does not convert an existing MBCS property set to Unicode. You have to modify the sample if you
want to add this ability.
Steps to set up and test the DLL
The self-extracting setup installs and registers the DsoFile.dll component in a location that you want. The self-
extracting setup also installs two Visual Basic .NET test applications that demonstrate how to use the component
and all the source code.
If you move the DLL to another location or to another computer, you have to re-register the DLL before you can use
it again. To do this, type regsvr32 [filepath]\dsofile.dll in the Run dialog box on the Start menu.
To run the sample, follow these steps:
For a Visual Basic 6.0 demonstration
1. Open the Visual Basic 6.0 sample project that is named as follows:
.\Source\Vb6Demo\PropDemo.vbp
2. Make sure that Dsofile.dll has been correctly referenced. To do this, select References on the Project menu.
Verify whether a reference is set for DSO OLE Document Properties Reader 2.1.
3. Press F5 to run the project.
4. When you are prompted to open a compound document file, select an appropriate file and notice that its
document properties appear.
For a Visual Basic 2003 (7.1) or for a Visual Basic 2005 (8.0) demonstration
1. Open the Visual Basic 7.1 project that is named as follows:
.\Source\Vb7Demo\FilePropDemoVB7.sln
You can open this project in either Visual Basic 7.1 in Visual Studio .NET 2003 or in Visual Basic 8.0 in Visual
Studio 2005.
2. If you are prompted to automatically convert the solution to 8.0 format, click Yes , and follow the wizard to
convert the project.
3. Press F5 to compile and to run the Visual Basic project.
4. When the form appears, click Open .
5. Select an appropriate Office file and click OK .
Notice that the document properties of the Office file appear in the dialog box. You can edit the document
properties.
"Error 1919. Error configuring ODBC data source"
when you run the Setup program for Office
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you run the Setup program for any of the programs listed in the "Applies to" section, you may receive the
following error message:

Error 1919. Error configuring ODBC data source: MS Access Database. ODBC error 6: Component not found in the
registry. Verify that the file MS Access Database exists and that you can access it.

If you click Ignore , you may receive the following error message:

Error 1919. Error configuring ODBC data source: Excel Files. ODBC error 0: Verify that the file Excel Files
exists and that you can access it.

You may also receive any one of the following error messages:

Error 1919. Error configuring ODBC data source: MS Access Database. ODBC error 0: Verify that the file MS
Access Database exists and that you can access it.

Error 1919. Error configuring ODBC data source: Visual FoxPro Database. ODBC error 0: Verify that the file
Visual FoxPro Database exists and that you can access it.

Error 1919. Error configuring ODBC data source: Visual FoxPro Tables. ODBC error 0: Verify that the file Visual
FoxPro Tables exists and that you can access it.

Error 1919. Error configuring ODBC data source: dBASE Files. ODBC error 6: Verify that the file dBASE Files
exists and that you can access it.

Cause
These problems may occur if the Windows Registry is missing some registry keys.

Resolution
To resolve this problem, replace the missing registry keys. To do this, use one of the following methods.
Method 1: Install MDAC 2.8
To install MDAC 2.8, visit the following MSDN Web site: https://msdn2.microsoft.com/en-us/data/aa937712.aspx
For more information about MDAC 2.8, including installation and removal instructions, see Microsoft Data Access
Components (MDAC) Installation.
After you have installed MDAC 2.8, you must restart the computer and log on with administrative credentials.
Note MDAC 2.8 is also installed when you install Microsoft Windows XP Service Pack 2 (SP2). If the operating
system is Windows XP, you may choose to install Windows XP SP2 instead of following the previous steps.
Method 2: Reset the registry keys by using the Mdac.inf file
Use Mdac.inf to reset the registry keys.
Note This program may prompt you for your Windows CD to obtain new files.
Do one of the following as appropriate for your operating system and if you have the Windows CD.
For the retail editions of Microsoft Windows XP and Microsoft Windows Server 2003
1. Click Star t , click Run , type path\inf in the Open box, and then click OK .
In this example, path is the path of your Windows folder. For example, type C:\Windows\Inf or C:\Winnt. By
default, C:\Windows is the folder where Windows XP is installed. By default, C:\Winnt is the folder where
Windows XP is installed if you upgraded Windows 2000 to Windows XP.
2. On the Tools menu, click Folder Options .
3. On the View tab, in the Advanced Settings box, click Show hidden files and folders , and then click OK .
4. Right-click Mdac.inf , and then click Install .
5. If you are prompted for your Windows CD, insert the Windows CD in the CD-ROM drive or DVD-ROM drive.
6. Click the I386 folder on your hard disk (typically, C:\I386), and then click OK .
Note If the I386 folder is a subfolder of the Windows folder, on some computers, you cannot select it. In this
case, type the full path in the Copy files from box (for example, type C:\Windows\I386 or C:\Winnt\I386),
and then click OK .
7. Restart the computer.
For original equipment manufacturer (OEM) Editions of Windows XP

IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

Step 1: Modify the registry keys


1. Locate the I386 folder on your hard disk, and then make a note of its path.
2. Click Star t , and then click Run .
3. In the Open box, type regedit, and then click OK .
4. In Registry Editor, locate and then click the following key:
HKEY_Local_Machine\Software\Microsoft\Windows\CurrentVersion\Setup
5. Right-click the Installation Sources entry, and then click Modify .
6. In the Value data box, change the value to the path of the I386 folder on your hard disk, and then click OK .
7. Repeat steps 5 and 6 for each of the following entries:
SourcePath
ServicePackSourcePath
8. Quit Registry Editor.
Step 2: Install Mdac.inf
1. Click Star t , click Run , type C:\Winnt\Inf in the Open box, and then click OK .
2. On the Tools menu, click Folder Options .
3. On the View tab in the Advanced Settings box, click Show hidden files and folders , and then click OK .
4. Right-click Mdac.inf , and then click Install .
5. If you are prompted for your Windows CD, insert the Windows CD in the CD-ROM drive or DVD-ROM drive.
6. Click the I386 folder on your hard disk (typically, C:\I386), and then click OK .
Notes
If you do not have the CD for your current Windows installation, click Browse , and then locate and select
the I386 folder.
If the I386 folder is a subfolder of the Windows folder, on some computers, you cannot select it.
In this case, type the full path in the Copy files from box (for example, type C:\Windows\I386 or
C:\Winnt\I386), and then click OK .
7. Restart your computer.
Method 3: Import the registry keys from another computer on the network
Note When you import the registry keys from another computer, make sure that the source computer and
destination computer run the same operating system. For example, if you are using this method on a computer that
is running Windows XP, locate a computer that runs Windows XP that you can use to export the registry keys.

IMPORTANT
Essential information required for user successImportant This section, method, or task contains steps that tell you how to
modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that
you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the
registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and
restore the registry in Windows.

Part 1: Export the keys from the registry on the "source" computer
1. On a computer that is not missing the keys (the "source" computer), click Star t , click Run , type regedit in the
Open box, and then click OK .
2. Locate and then click the following registry key:
HKEY_CURRENT_USER\Software\ODBC
3. On the File menu, click Expor t .
4. In the Save in box, specify a location to temporarily save the registration file (.reg file).
In the File name box, type a file name, and then click Save .
5. Locate and then click the following key:
HKEY_LOCAL_MACHINE\Software\ODBC
6. Repeat steps 4 and 5 to export this key.
Part 2: Import the keys to the registry of the "destination" computer
1. Copy the exported .reg files from the source computer to a temporary location on the computer that is missing
the keys (the "destination" computer).
2. Click Star t , click Run , type regedit in the Open box, and then click OK .
3. On the Registr y menu, click Impor t Registr y File .
4. Locate and then click one of the .reg files that you copied in step 1, and then click Open .
5. Repeat steps 4 and 5 for the other .reg file.

Workaround
You may be able to work around this problem by clicking Retr y several times when you receive these error
messages. However, this work around may not work in the long term.
Error message when you try to move mailboxes to or
from Office 365 in a hybrid deployment: "Exception
has been thrown by the target"
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

NOTE
The Hybrid Configuration wizard that's included in the Exchange Management Console in Microsoft Exchange Server 2010 is
no longer supported. Therefore, you should no longer use the old Hybrid Configuration wizard. Instead, use the Office 365
Hybrid Configuration wizard that's available at https://aka.ms/HybridWizard. For more information, see Office 365 Hybrid
Configuration wizard for Exchange 2010.

Problem
You have a hybrid deployment of Microsoft Exchange Online in Microsoft Office 365 and your on-premises
Microsoft Exchange Server environment. When you try to move mailboxes to or from Office 365, you receive the
following error message:
"Exception has been thrown by the target of an invocation."
You were previously able to successfully move mailboxes to or from Office 365 and your on-premises Exchange
Server environment. You experience this symptom only after you upgrade the on-premises environment from
Exchange Server 2010 Service Pack 1 (SP1) to Exchange Server 2010 Service Pack 2 (SP2) or later.

Cause
This issue occurs if the Web.config file was overwritten during the upgrade from Exchange Server 2010 Service
SP1 to Exchange Server 2010 SP2 or later. Remote mailbox moves require the Mailbox Replication Proxy
(MRSProxy) service endpoint to be enabled on the Client Access server. In Exchange Server 2010 SP1 and Exchange
Server 2010, the MRSProxy setting is configured in the Web.config file.
In Exchange Server 2010 SP2 or later, the MRSProxy settings are stored in Active Directory and are configured by
using the Set-WebServicesVirtualDirectoryWindows PowerShell cmdlet.
Note There are several possible causes of this error message. This article discusses one scenario that may cause
this error message.

Solution
Use the Set-WebServicesVirtualDirectory cmdlet to re-enable MRSProxy on every Client Access server in the on-
premises environment through which you want to let remote move requests pass. To do this, follow these steps:
1. Open the Exchange Management Shell.
2. Make sure that the MRSProxyEnabled parameter on the server is set to false.
To do this, run the following cmdlet:
Get-WebServicesVirtualDirectory-Identity "Server\EWS(default Web site)"
3. Enable the MRSProxy service. To do this, run the following cmdlet:
Set-WebServicesVirtualDirectory-Identity "Server\EWS(default Web site)" –MRSProxyEnabled $true

More information
After you enable MRSProxy on the servers, you may have to correctly publish the endpoint through your firewall.
For more information about how to do this, see the following article:
Configure Forefront TMG for a hybrid environment
For more information about how to troubleshoot the error message that is mentioned in the "Symptoms" section,
see the following Microsoft Knowledge Base article:
2626696 "Exception has been thrown by the target" error in a hybrid deployment of Office 365 and your on-
premises environment
If you experience issues when you move mailboxes to Exchange Online in Office 365, you can run the Troubleshoot
Office 365 Mailbox Migration tool. This diagnostic is an automated troubleshooting tool. If you're experiencing a
known issue, you receive a message that states what went wrong. The message includes a link to an article that
contains the solution. Currently, the tool is supported only in Internet Explorer.
Still need help? Go to Microsoft Community or the Exchange TechNet Forums.
Frequently asked questions about the Office
Activation Wizard
3/30/2020 • 8 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article contains some of the most frequently asked questions about the Microsoft Office Activation Wizard.This
article only pertains to Retail versions of Office 2010 suite or program.
Note Activation is now required for Office 2010 Volume License suites and programs. For further information on
Volume License activation in Office, see Volume activation of Office 2013.
Microsoft Office 2010 and the Microsoft 2007 Office system include an Activation Wizard. To fully use a retail
version of an Office 2010 suite or program or an 2007 Office system suite or program, you must activate it. If you
do not activate the product after you install it, the Office 2010 programs and the 2007 Office system programs can
be started only in reduced-functionality mode. In reduced-functionality mode, Office 2010 programs and 2007
Office system programs function more like viewers. In other words, you cannot save changes to documents or
create new documents. Additional functionality may be reduced. No existing Office 2010 files or 2007 Office
system files are damaged when a product runs in reduced-functionality mode.

More Information
Q1: What is product activation?
A1: Microsoft asks that you activate your product to make sure that your installation is performed with a genuine
Microsoft product. Product activation is an anti-piracy technology that is designed to make sure that the product is
legitimately licensed. When you activate a product, no personal information is sent to Microsoft.
Q2: Who must activate their retail copy of an Office 2010 suite or program?
A2: Product activation is required for all licenses that are purchased through retail distribution. If you purchased a
new computer from a computer manufacturer, you may have to activate the Microsoft software that is installed on
the computer. However, some computer manufacturers may activate the Microsoft software in the factory.
Q3: How does product activation work?
A3: Product activation checks that the product key has not been used on more personal computers than are
permitted by the Microsoft Software License Terms. You can activate your product either over the Internet or by
telephone. If you activate a product by telephone, you provide an installation ID code. In return, you receive a
confirmation ID number. A Microsoft customer service representative activates the product by telephone. This
process takes several minutes. If you want to activate your product over the Internet, the process is performed
automatically. The only information that you must provide is the name of your country and your region.
Note If you are activating the Product Trial Program version, you can activate the product only over the Internet.
Q4: How do I activate my product?
A4: You can access the Office 2010 Activation Wizard in two ways:
The Office 2010 Activation Wizard appears when you start an Office program that has not been activated.
On the File menu, click Help, and look for the section under the Microsoft Office logo. If "Product is not
activated" text appears, click Change.
You can access the 2007 Office system Activation Wizard in two ways:
The 2007 Office system Activation Wizard appears when you start an Office program that has not been
activated.
Click the Microsoft Office Button , click Program_Name Options , click Resources , and then click Activate .

Q5: What happens during product activation?


A5: During product activation, the Office Activation Wizard creates a hardware identification that represents the
configuration of your computer at the time of activation. This hardware identification is not unique. It does not
include any personal information, any information about software or data that may reside on your computer, or any
information about the specific make or model of your computer. The hardware identification identifies only the
computer. Additionally, the computer identification is used only for activation.
During product activation, you may also provide your personal contact information if you want to register the
product with Microsoft.
The Office Activation Wizard can detect and tolerate changes to the configuration of your computer. Minor
hardware upgrades do not require reactivation, but if you make major changes to the computer over time, you may
have to reactivate the product.
Q6: How does product activation protect customer privacy?
A6: Microsoft highly values respecting and protecting customers' private information. If you do not register the
product, none of the information that is collected during product activation will be used to personally identify you.
To view the Microsoft privacy policy, use one of the following methods.
Office 2010 programs
1. Start the Office 2010 program.
2. On the File menu, click Help .

3. Under the Tools for Working with Office heading, click Options.
4. In the navigation pane, click Trust Center.

5. Click the "Show the Microsoft programprivacy statement" link.


In Access 2007, Excel 2007, PowerPoint 2007, and Word 2007
1. Start the 2007 Office system program.
2. Click the Microsoft Office Button , and then click Program_Name Options .

3. Click Trust Center in the navigation pane, and then click one of the following:
Show the Microsoft Application privacy statement
Microsoft Office Online privacy statement

All other 2007 Office system programs


1. Start the 2007 Office system program.
2. On the Tools menu, click Trust Center .
3. Click Privacy Options in the navigation pane, and then click Read our privacy statement .

Q7: Is product activation the same as registration?


A7: No. Product activation differs from product registration. You can voluntarily register your product by providing
your name and contact information during product activation. Register the product if you want to receive future
communications about product updates, service releases, and special offers.
Q8: How do I know whether my product is activated?
A8: The Office Activation Wizard does not run if you already activated your product. If the product was already
activated, you receive the following message when you run the Office Activation Wizard: The product has already
been activated.
In Office 2010, you can check the activation status by clicking Help on the File menu. On the right side of the dialog
box, under the Microsoft Office logo,you see a message that says "Product activated" or "Product requires
activation."
Q9: Does the product stop working if I do not activate it?
A9: No. When the full functionality of the program and the number of program starts are exhausted, the product
runs in reduced-functionality mode.
Q10: What is reduced-functionality mode?
A10: In reduced-functionality mode, programs function similarly to viewers. When a program runs in reduced-
functionality mode, many commands are unavailable (dimmed). Therefore, you cannot access those functionalities.
Some limitations of reduced-functionality mode include the following:
You cannot create new documents.
You can view existing documents, but you cannot edit them.
You can print documents, but you cannot save them.
No existing Office files are damaged. Additionally, you can easily stop Office from running in reduced-
functionality mode. To do this, follow the instructions on the screens that appear.
Q11: How do I update information that relates to product activation?
A11: To make sure that the information that you provide to Microsoft in the Office Activation Wizard is correct, you
can contact Microsoft any time to review and update the information. In some Office products, you can use the
Office Activation Wizard to update your information over the Internet or by telephone. If these options are
unavailable to you, you can update or change any information that you provided. To do this, send your product ID
and a description of the changes that you want made to the following address:
Microsoft
Attn: Microsoft Product Activation
One Microsoft Way
Redmond, Washington 98052-6399
Microsoft will update your information to reflect any changes that you want made. You must provide your product
ID so that Microsoft can accurately identify your activation record.
Note To find the product ID, click About Program_Name on the Help menu in an Office program. In Access 2007,
Excel 2007, PowerPoint 2007, and Word 2007, follow these steps:
1. Click the Office Button , and then click the Program_Name Options button.

2. Click the Resources option in the navigation pane, and then click the About button beside the about
Microsoft Office Program_Name 2007 label.
Q12: Why do I receive notifications to activate my product?
A12: If you do not activate an Office product, you receive a reminder to activate your product every time that you
start the program.
The reminder helps make sure that you are aware that license activation is required and that you can complete the
product activation process before the program enters reduced-functionality mode.
Q13: Is there more than one kind of product license?
A13: Yes, the following license types are available:
Perpetual
Subscription
Product Trial Program
Q14: What is a perpetual license?
A14: A perpetual license lets you use the 2007 Office system programs and the Office 2010 programs as long as
you own the product.
Q15: What is a subscription license?
A15: A subscription license lets you use the 2007 Office system programs and Office 2010 programs for a
determined time.
Q16: What is a Product Trial Program license?
A16: A Product Trial Program license lets you use the 2007 Office system and Office 2010 on a trial basis for one
month.
Q17: How many times can I skip activation?
A17: For Product Trial Program license products, the Office programs run in reduced-functionality mode the first
time that the programs start. For perpetual license products, you can skip product activation 25 times. If you do not
activate the product in the allocated number of program starts, the 2007 Office system programs and the Office
2010 programs start to run in reduced-functionality mode.
Q18: How many installations can be performed with one license agreement? Can I install the product on my
portable computer and on my desktop computer? How many times can I reinstall the product and still be able to
activate it?
A18: The goal of product activation is to reduce a form of piracy known as "casual copying" or "softlifting." Casual
copying is a form of piracy that is characterized by the sharing of software between people in a way that infringes
on the Microsoft Software License Terms. For example, Windows XP is primarily licensed for use on a single
computer and cannot be installed on other computers without buying additional licenses. If someone were to
obtain a copy of Windows XP and load it on his or her computer, and then share it with a second person who
loaded it on his or her computer, they would be guilty of casual copying.
Most licenses allow for software to be re-installed and activated on the same computer an unlimited number of
times. To make sure that you are using your license correctly, please see your Microsoft Software License Terms or
product use rights for more information on a specific product.

References
For more information about Office Activation, visit the following Microsoft website:
Uninstall Office from a PC
Using product keys with Office
Information about Office Click-to-Run installations
and about related anti-malware applications
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
For Microsoft Office 2010, Microsoft is offering a new way to download and install its Office 2010 products. This
technology is called Click-to-Run, and this article discusses Click-to-Run and how it interacts with some anti-
malware applications.

More Information
What is Click-to-Run?
Click-to-Run is a new way to deliver and update Microsoft Office to broadband customers. Click-to-Run uses
Microsoft virtualization and streaming technologies.
How does Click-to-Run work?
Click-to-Run products use streaming. Think of this in the same way that you think about streaming video. You can
watch the first part of the video before the whole file is downloaded. Similarly, with Click-to-Run, you can start
using Office before the whole suite or product has been downloaded. While you are using your application, the rest
of Office is being downloaded quietly in the background.
Another aspect of Office Click-to-Run is the unique way that Office is stored after it is downloaded onto your
computer. Click-to-Run uses Microsoft virtualization technology to contain Office 2010 inside a virtualized
application space. This virtual "bubble" separates Office from the regular file system and applications on your hard
disk. This lets Office 2010 Click-to-Run coexist side-by-side with any existing version of Office that is already
installed on your computer. There are also other benefits to Office Click-to-Run. For more information, visit the
following Microsoft blog site:
Click-to-Run: Delivering Office in the 21st Century
Why does a drive Q or a drive R appear in My Computer after I use Click-to-Run to install Office?
Drive Q (or sometimes drive R) appears when users install an Office 2010 product or suite that is deployed through
Click-to-Run. These products require the installation of a virtual file system on a logical drive, and that is why users
see drive Q or drive R.
What products use Click-to-Run?
Click-to-Run delivery is available for Office Home & Student 2010 and for Office Home & Business 2010 when you
download directly from Microsoft. Click-to-Run is also used for Office Starter 2010.
Office Click-to -Run and anti-malware applications
Click-to-Run anti-malware software compatibility
The drive Q implementation (or drive R on some systems) is not yet completely compatible with some existing anti-
malware solutions. Until all anti-malware vendors distribute versions of their software that are compatible with
Microsoft virtualization technology, some anti-malware applications may not detect or clean malware that has
penetrated the virtual environment of Office 2010 suites that were installed by using Click-to-Run.
Does Click-to-Run present a security risk to users who have used Click-to-Run to obtain Office 2010?
The Microsoft Office Click-to-Run implementation, based on Microsoft virtualization technology, is compliant with
Microsoft's strict security standards. Users are no more vulnerable than if they did not have a Click-to-Run Office
product. Click-to-Run has passed third-party penetration tests and has completed extensive security reviews.
That said, users will have a drive Q or drive R configuration that is incompatible with some anti-malware solutions.
Therefore, malware may hide undetected on drive Q or drive R, but only if the user's computer is already exploited.
Microsoft is not aware of any instance of this scenario, but it is considered possible.
What can users do to protect against malware until their anti-malware vendors release an update that is compatible
with Microsoft virtualization technology?
Users should run their existing anti-malware software. They are no more vulnerable than if they did not have a
Click-to-Run Office product installed. If the installation of Office is experiencing problems, users can perform a
repair of Office. This procedure removes any non-Microsoft content and restores Office to its original installation
state. Microsoft also recommends that users contact their anti-malware vendors for specific help with malware
concerns.
What if my anti-malware vendor doesn't have a solution for detecting and cleaning malware on drive Q or drive R?
Anti-malware vendors should contact Microsoft.
An overview of Microsoft Office Click-to-Run for
Office 2010
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft is offering a new way to download and install products of Microsoft Office 2010. This technology is called
Microsoft Office Click-to-Run, and this article discusses how Office Click-to-Run works and lists some frequently
asked questions (FAQ).

More Information
Introduction to Office Click-to-Run
Office Click-to-Run is a new way for broadband customers to obtain Microsoft Office and to update Office 2010.
Office Click-to-Run uses the virtualization and streaming technologies of Microsoft.
Office Click-to-Run Technology
Office Click-to-Run products use streaming technology that is similar to watching a video on the web. When you
watch a video on the web, you can watch the first part of the video before the whole file is downloaded. Similarly,
you can start using Office 2010 before the whole suite or product is downloaded when you use Office Click-to-Run.
Therefore, the rest of Office 2010 is being downloaded in the background quietly while you use one part of Office
2010.
Office Click-to-Run products also use Microsoft virtualization technology that stores Office 2010 in virtualized
application space. This virtual space separates Office 2010 from the regular file system and from the other
applications on your computer. This separation lets Office 2010 coexist together with any existing version of Office
that is already installed on your computer. There are also other benefits to Office Click-to-Run. For more
information, visit the following Microsoft blog website:
https://blogs.technet.com/office2010/archive/2009/11/06/click-to-run-delivering-office-in-the-21st-century.aspx
Office Click-to-Run products
To download Office Click-to-Run for Microsoft Office Home and Student 2010 and for Microsoft Office Home and
Business 2010, download the installation files from Microsoft directly.
Note The Office Click-to-Run technology is also used in Microsoft Office Starter 2010.
Frequently asked questions (FAQ )
When you try to install a product of Office 2010 by using Office Click-to-Run, the user encounters the following
error:
"This product must be installed to Q:. Ensure that Q: is unused and try again"
This error means that the Q: drive letter is already being used by something else on your computer. However, the
installation of Office Click-to-Run requires this drive letter for Office 2010.
How to resolve this error in Office Starter 2010
If the Q: drive letter is not available, the installation does not install Office Starter2010.
To resolve this error, determine which application or which hardware uses the Q: drive letter, and then move it off
the Q:drive by referring to the documentation from the manufacturer or to a support channel of the manufacturer
for help. After the Q: drive is made available, the installation does not display the error.
How to resolve this error in Office Home and Student 2010 or in Office Home and Business 2010
In order to successfully use the Office Click-to-Run version of Office Home and Business 2010 or of Office Home
and Student 2010, use one of the following methods:
Determine which application or which hardware uses the Q: drive letter, and then move it off the Q: drive by
referring to the documentation from the manufacturer or to a support channel of the manufacturer for help.
After the Q: drive is made available, the installation does not display the error.
Download a version of Office 2010 that is not an Office Click-to-Run product. To do this, visit the site where you
purchased Office 2010, and sign in by using your Live ID. Then, click My Account at the top of the home page
to access your Office 2010 downloads. Click Download for the suite that you purchased, and then click
Advanced Options under Download Now . A version of Office 2010 is listed that is not an Office Click-to-Run
product and that does not require the Q: drive to be available.
Why do I receive the "This product must be installed to Q:. Ensure that Q: is unused and try again" error when I try
to use Office Starter To-Go on my computer?
This error means that the Q: drive letter is already being used by something else on your computer. However, the
installation of Office Click-to-Run requires this drive letter for Office 2010. If the Q: drive letter cannot be made
available, you cannot use Office Starter To-Go on your computer.
Why do I have a "Q:" drive when I use Office Starter To-Go?
Office Starter To-Go uses the Office Click-to-Run technology that must use a virtual application drive. This virtual
application drive is why you have the Q: drive.
What is the "Q:" drive?
Office 2010 Click-to-Run suite such as Office Starter 2010, Office Starter To-Go, Office Home and Student 2010, and
Office Home and Business 2010 are based on some application virtualization technology. The Q: drive is the virtual
file system drive where virtualized applications are located in the file system namespace. This Q:drive is not a
typical drive. The Q: drive has no space that the user can access directly and is inaccessible from Windows Explorer
or My Computer.
Are my Office documents also stored in this "Q:" drive?
By default, Office saves your documents in the My Documents folder.
Caution We strongly recommend that you do not save any Office documents on the Q:drive for the following
reasons:
The Q:drive cannot be accessed from Windows Explorer directly.
If the Office installation files have to be repaired, the Q: drive may be removed and recreated. Therefore, any
Office documents that are stored on the Q: drive are lost.
Can I hide or delete the "Q:" drive?
No. Any access to hide or to delete the Q: drive is removed.
Can I rename the "Q:" drive?
Yes. Right-click the drive, click Rename, and then type the new name for the drive.
Why is my backup program giving me errors when it tries to access the "Q:" drive?
The Q:drive is inaccessible. This limited access protects the integrity of the installation files for Office 2010. For Help
in resolving the errors from your backup program, see the documentation from the manufacturer or to the support
channel of the manufacturer.
I cannot access the "Q:" drive in My Computer, but I can access it from the "Save" dialog box inside my Office
applications. Why?
When you run an Office Click-to-Run application, the application requires access to the virtual file system. This
required access by the application is why you can access the Q: drive from the Save dialog box.
Caution We strongly recommend that you do not save any Office documents on the Q:drive for the following
reasons:
The Q:drive cannot be accessed from Windows Explorer directly.
If the Office installation files have to be repaired, the Q: drive may be removed and recreated. Therefore, any
Office documents that are stored on the Q: drive are lost.
If I do save any documents or e-mails to the "Q:" drive, then why are they inaccessible from My Computer?
The Q: drive is inaccessible from My Computer. This limited access protects the integrity of the installation files for
Office 2010.
Caution We strongly recommend that you do not save any Office documents on the Q:drive for the following
reasons:
The Q:drive cannot be accessed from Windows Explorer directly.
If the Office installation files have to be repaired, the Q: drive may be removed and recreated. Therefore, any
Office documents that are stored on the Q: drive are lost.
Can I install other applications to the "Q:" drive?
The Q:drive is inaccessible to external applications. This limited access protects the integrity of the installation files
for Office 2010.
What if Office Click-to-Run does not meet my needs? How can I obtain the traditional MSI-based installation for
Office Home and Student 2010 or Office Home and Business 2010?
If Office Click-to-Run does not meet your needs, you can uninstall it, and obtain the MSI-based Office product. To do
this, follow these steps:
1. Uninstall the Office Click-to-Run version of Office 2010 by using Control Panel.
2. Visit the site where you purchased Office 2010, and sign in by using your Live ID.
3. Then, click My Account at the top of the home page to access your Office 2010 downloads.
4. Click Download for the suite you purchased, and then click Advanced Options under Download Now. A version
of Office 2010 is listed that is not an Office Click-to-Run product and that does not require the Q: drive to be
available.
You are redirected to a logon page or an error page,
or you are prompted for authentication information
when you click a hyperlink to a SSO Web site in an
Office document
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you click a hyperlink in a Microsoft Office document, you may experience the following behavior before you
can open the page that you requested:
You are redirected to a logon page or an error page
You are prompted for authentication information.
Typically, this behavior occurs when the following conditions are true:
You open the Office document in edit mode outside the Web browser.
The Web site in the hyperlink uses a Single Sign-On (SSO) authentication system that relies on HTTP session
cookies for client identification. Even if you have already provided user credentials, you are prompted to
provide the user credentials again.

Cause
Office lets you edit and author documents on a Web site if the server supports Web authoring and collaboration.
First, Office tries to communicate with the Web server. Then Office tries to directly bind to the resource by using the
Microsoft Hyperlink Library (Hlink.dll) and the URLMON API.
When Office sends the Web page request, you may be redirected to the Web site logon page for the SSO system.
This behavior occurs because the Office session is independent of the Web browser session in which you may have
already provided user credentials.
Because the sessions are independent, session cookies are not shared. If the SSO system exclusively relies on
session cookie information, the SSO system may not appear to work because the same user moves from more than
one session. This behavior is a fundamental design limitation of an SSO system when the SSO system is not
designed to support SSO authentication across more than one browser or Web-aware application on the client
desktop. Because Office is a fully Web-aware application, the issue may appear unique to Office applications if they
are the only Web-aware clients that are installed by the client. However, the root cause of this issue is not limited to
Microsoft Office, and this problem may occur when you use third-party software.

Workaround
The problem is a limitation of the SSO system that is used by the Web server. However, you may be able to reduce
the current effects for your SSO-protected Web site by using one of the following methods.
Hyperlinks from Internet Explorer to Office
If this issue occurs when hyperlinks on a Web page open an Office file and the Web page is hosted in Internet
Explorer, you can avoid this issue by explicitly marking the content as a read-only download instead of as an inline
navigation.
To do this, add a custom HTTP header to the GET response for the Office file contents. Add the "Content-Disposition:
Attachment" header. When a GET response contains this header, Internet Explorer prompts the user to open or save
the download. If the user chooses to open the download, the file opens from the Internet Explorer Temporary File
cache read-only. The user may choose to modify and save the file locally. However, the user will not be able to save
the file to the server or collaborate with Web services for the Web site. Therefore, this solution only works if you
intend to make the file read-only.
You can set the "Content-Disposition" header by using code in Microsoft Active Server Pages (ASP), in Microsoft
ASP.NET, or in ISAPI when you work with dynamically generated content. If the content is static, you can configure
the header for a given file or folder by using IIS Manager and the IIS metabase.For more information about the
Content-Disposition HTTP header, click the following article number to view the article in the Microsoft Knowledge
Base:
260519 How to raise a "File Download" dialog box for a known MIME type
Hyperlinks from Office to Internet Explorer or to another Web browser
If this issue occurs when you click hyperlinks in Office documents that either directly open HTML Web content or
are redirected to HTML content, client users can avoid the problem by enabling a registry key to send the hyperlink
navigation to the browser instead of directly binding to the hyperlink from Office. For more information, see Error
message when clicking hyperlink in Office: "Cannot locate the Internet server or proxy server".
Note Regardless of the version of Office that you have installed, add the registry key in the exact location that is
specified in Microsoft Knowledge Base article 218153.
When you use this registry setting, the HLINK component that is used by Office opens the hyperlink in the default
Web browser. This registry setting affects all HLINK clients, not just Office. Therefore, use this registry key carefully.

More Information
To fully resolve this issue, we encourage SSO providers to develop a system that could allow for Web authoring and
a client that uses multiple sessions. This configuration adds complexity to the SSO system. However, this
configuration also offers clients the most usability options. Microsoft is currently working with key SSO providers
for a long-term solution.
Additionally, Microsoft is investigating how end users use Office to better predict and manage the following
scenarios:
The user intends to open a hyperlink in read-only mode. In this scenario, the hyperlink is opened in browse
mode.
The user wants to modify the content. In this scenario, a new session is required for authoring and collaboration.
These configuration changes may reduce the effect of the issue that is described in the "Symptoms" section. These
changes may also add flexibility for the user when the user visits an SSO site that does not support configurations
that include multiple-session clients.
If you are an SSO designer or developer, you can add support for multiple-session clients. For example, you may
use the following methods:
Use persistent cookie information and session cookie information to identify when a single client has
crossed sessions between applications on the desktop. Then, provide Web responses either to transfer the
client back into single session or to authenticate the new session.
Use a client-side component to create an integrated authentication system. Use this integrated
authentication system to authenticate all processes that are started under the same user authentication
token.
Use certificates or another security-enhanced but persistent identification method to authenticate the client.
For an HTTP request that may be a multiple-session client request, issue a client-side redirect response
instead of a server-side redirect response. For example, send an HTTP script or a META REFRESH tag instead
of an HTTP 302 response. This change forces the client back into the default Web browser of the user.
Therefore, the default browser session can handle the call and can keep the call in a single, read-only session.
This method does not allow for authoring. However, this method makes it clear that the SSO system does
not handle multiple-session clients and wants the client to stay in the default browser session only.
The exact approach to this configuration change depends on your design goals and the level of integration that you
want to have with the client desktop.
Loss of image quality after you save in Word, Excel,
or PowerPoint 2007
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After saving a document, spreadsheet, or presentation which contains an image, a loss of image quality such as blur
may occur.

Cause
This issue occurs because PowerPoint, Excel, and Word perform a basic compression of images on save.

Resolution
It is not possible to recover pictures that have already been compressed. For future saves, compression can be
disabled on a per-file basis using the following steps:
1. Click the Office Button, and then click Save As .
2. Click Tools , and then click Compress Pictures .
3. Click Options.
4. Click to clear the Automatically perform basic compression on save check box.
5. Click OK .
6. In the Compress Pictures dialog box, click Cancel .
Note : Clicking OK on this dialog will not prevent the issue from occurring.
You can also modify the following registry setting to prevent basic compression from occurring by default.

IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.
WARNING
Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system.
Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry
Editor at your own risk.

1. Quit all applications.


2. Start the registry editor. To do this, click Star t , click Run , type regedit in the Open box, and then click OK .
3. Browse to the following registry key:
for PowerPoint:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\PowerPoint\Options
for Word:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Options
for Excel:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Options
4. Create a new DWORD value named AutomaticPictureCompressionDefault .
5. Make sure the value for the registry key is set to 0 .
6. Close the registry editor.
How to manage templates in 2007 Office programs
and in 2010 Office programs
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article describes the different types and locations of templates in 2007 Microsoft Office programs and in 2010
Office programs. Additionally, this article contains information about registry settings that control where you find
custom templates.

More Information
2007 Office programs and 2010 Office programs save all new custom templates that you create. A Microsoft Office
program looks in one of the following locations for the templates that belong to that program:
The user templates file location
The workgroup templates file location
The advertised and installed templates file location
The non-file-based templates file location
User templates file location
Newly created or newly modified templates are saved in a folder in your profile directory. The folders that are
under your profile contain your configuration preferences and options. These folders contain everything that is
needed for a roaming user profile.
By default, user templates files are stored in the following location:
In Windows XPC:\Documents and Settings\ user name \Application Data\Microsoft\Templates
In Windows Vista or in Windows 7C:\Users\ user name \AppData\Roaming\Microsoft\Templates
Note You can change the location of user templates files.
How to change the location in which templates are saved
You can use Microsoft Office Word to change the location in which your new templates are saved. To do this, follow
these steps.
Note If you use Word 2007 or Word 2010 to change the location in which your new templates are saved, you also
change the location in which all 2007 Office program templates or all 2010 Office program templates are saved.
1. Start Word.
2. If you are using Word 2007, click the Microsoft Office Button , and then click Word Options .
If you are using Word 2010, choose Options from the Filemenu.
3. Click Advanced .
4. Under General , click File Locations .
5. Click User templates , and then click Modify .
6. In the Modify Location dialog box, change the setting in the Folder name list or the Look in list to the
folder in which you want to save your new templates. Then, click OK .
7. Click OK or Close to close the Options dialog box.
The changed path is noted in the Windows registry. The path is used the next time that you want to save a new
template. For more information, see the "Changes in the Windows registry settings for the user templates file
location and for the workgroup templates file location" section.
Note Your network administrator can change the location in which your new templates are saved by using the
policy templates that are included with the 2007 Microsoft Office Resource Kit. For more information, contact your
network administrator.
You can also create custom tabs that appear in the Templates dialog box by creating a new folder in the Templates
folder in your profile. Tabs that have the same name as a new folder appear in the Templates dialog box. These
tabs let you categorize your new templates even more.
The template options are available when you click the Microsoft Office Button , and then click New in Office
2007 or from New under the File menu in Office 2010.
Note There are more templates available in the Microsoft Office Online area.
Note Microsoft Office Publisher 2007 and Microsoft Office SharePoint Designer 2007 do not use the same user
interface as the previously listed 2007 Office programs.
In Publisher 2007 or Publisher 2010
On the File menu, click New , and then click one of the publication types.
In SharePoint Designer 2007
On the File menu, click New , and then click one of the templates.
Workgroup templates file location
The templates that are saved in this location are basically the same as the templates that are saved in your user
templates file location. However, the location is typically a shared folder on a network drive.
Note Your network administrator may set a shared location as a source from which to provide templates that are
used throughout your workgroup or company. The workgroup template file location typically is a read-only shared
folder.
In addition to looking in your default user templates file location for existing templates, 2007 and 2010 Office
programs look in the workgroup templates file location for more templates.
For more information about the workgroup templates file location and about how to share a template with your
workgroup or your company, contact your network administrator.
Advertised and installed templates file location
Advertised templates are the templates that are included with Office programs. These templates appear in
the Templates dialog box. Depending on the type of Office installation, you may not have all the templates
installed on the computer. However, each Office program displays the templates as they are available in
the Templates dialog box.
When you select a template, the Office program determines whether the template is installed. If the template is
installed, a new document that is based on the template opens. If the template is advertised but is not installed, the
program prompts you to install the template.
You can remove installed templates for Publisher 2007 by starting the 2007 Office installation program. Then, set
the template group to Installed on First Use . This effectively removes the templates from the computer. Then, the
templates become advertised templates again. Microsoft Office Access 2007 does not allow for templates to be
advertised. However, templates can be set to Not Available in Access 2007. The other 2007 Office programs do
not list templates as a separate component.
By default, all templates that are installed with Microsoft Office are installed in the following folder:
C:\Program Files\Microsoft Office\Templates\ Language ID Number
Note The Language ID Number is a four-digit code that represents the language types that are currently
installed. For example, the English (US) version of Office installs a 1033 folder. The Arabic version installs a 1025
folder. The German version installs a 1031 folder. 2007 Office programs support many other languages.
Additionally, you can have multiple languages installed at the same time. Therefore, you may have a Templates
folder that contains several language ID folders.
Non-file -based templates file location
Office programs use non-file-based templates to create new workbooks, documents, databases, and slides. As the
name suggests, there is no physical template from which these special files are created. Each Office program has
the necessary information to create a new file of the correct type.
For example, if the Word global template (Normal.dotm) is used to create a blank document, Word uses its
internally stored settings to create a new blank document.
Changes in the Windows registry settings for the user templates file location and for the workgroup templates
file location

IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

Office programs use two registry keys to record the user templates file location and the workgroup templates file
location. Both settings are recorded in the following registry key:
Office 2007:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\General
Office 2010:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\General
The user templates location is stored in the UserTemplates string value.
The workgroup templates location is stored in the SharedTemplates string value.
These string values do not exist until you make a change to the default locations for your custom templates. By
default, all Office programs look for their installed templates. Therefore, no string value is required for Office
programs.
If you change the user templates file location to the default location as described in the "User templates file
location" section, the UserTemplates string value is deleted from the registry. However, if you change the
workgroup templates file location to the default location, the SharedTemplates string value is retained in the
registry.
Error messages opening Office documents when fonts
are missing from the machine
4/15/2020 • 2 minutes to read • Edit Online

Symptoms
When opening a document in Microsoft Word, you receive one of the following error messages:

There is insufficient memory or disk space. Word cannot display the requested font.

Not enough system resources to display completely.

NOTE
Error messages also occur in other Office applications (such as Microsoft Excel, or Microsoft PowerPoint).

The permissions of the Fonts folder may be different from the default permissions (see the following screenshot
for the default permissions). To check the default permissions, open a Command Prompt window and run the
icacls C:\Windows\Fonts command.

Cause
When upgrading from Windows 7, Windows 8, or Windows 8.1 to Windows 10, certain fonts aren't available with
the default post-upgrade. To reduce the operating system footprint, improve performance, and optimize disk space
usage, many of the fonts included with prior versions of Windows were moved to the optional features of Windows
10. If you install a fresh instance of Windows 10 or upgrade an older version of Windows to Windows 10, these
optional features aren't enabled by default. As a result, fonts appear to be missing from the system.
If permissions for the C:\Windows\Fonts folder were changed or are different from the default permissions, they
will persist after the upgrade, causing the issue.
Resolution
If you have documents created using the missing fonts, they might display differently on Windows 10.
For example, if you have an English or a Roman Alphabet Language version of Windows 10 installed, you might
notice that the following fonts are missing:
Gautami
Meiryo
Narkism/Batang
BatangChe
Dotum
DotumChe
Gulim
GulimChe
Gungsuh
GungsuhChe
If you want to use these fonts, enable the optional feature to add them to your system. Be aware that this is a
permanent change in behavior for Windows 10.
For more information, see How to install fonts that are missing after upgrading to Windows 10.

More Information
Issue outside of Office applications
When this issue occurs in Office applications, you will also see the following behavior of the Font dropdown menu
in WordPad.

References
Third-party installed font does not appear in the font list in Word for Mac
Overview of fonts and how to troubleshoot font problems in Microsoft Word
Block untrusted fonts in an enterprise
No Office entitlement found on device
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

You start up the Office on a new device and you get a message that "Office isn't entitled on this device" along with
the option to try Office, enter a product key or purchase Office.

Cause
This may or may not be an error depending on whether Office was entitled to come on the device. PC
manufacturers have the option to check for an entitlement for devices that come with Office and for ones that don't
but might have it added later. The message will inform you that your device has been checked and there's no record
of Office coming with the device.

Resolution
If Office wasn't supposed to come with your device, you can either get a trial or purchase Office. If you've purchased
Office online or at a retail store, you can also enter that product key.
An Office 365 Subscription is included with certain devices. These are typically small screen touch devices and it's
usually marked on the box. If you feel that there's an error and your device should have come with Office, you will
need to contact support.
Office 2010 Installation failure: "...encountered an
error during setup" CAQuietExec wevtutil.exe
BCSEvents.man
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
User is attempting to install Office 2010 Professional Plus on a Dell machine with Windows 7 OS. Setup halts
during installation with in the following error, and Office is not installed:
"Microsoft Office Professional Plus 2010 encountered an error during setup."
If verbose logging is enabled, the user will see in the following error:

Error: Failed to install product: C:\MSOCache\All Users\{91140000-0011-0000-0000-0000000FF1CE}-C\ProPlusrWW.msi


ErrorCode: 1603(0x643).

Cause
This error may occur on computers with versions of the Dell OpenManage Client Instrumentation utility installed
that are older than version 7.8.0.914.
The root cause of the issue is that the permissions on the following folders have been changed:
C:\Windows\System32\winevt
C:\Windows\System32\winevt\Logs

Resolution
To resolve this issue, the NT Authority\Local Service account must be granted Full Control permissions on the
%windir%\System32\winevt\Logs directory. Installing the 7.8.0.914 version of the Dell OpenManage Client utility
does not resolve the issue if an earlier version had been previously installed.
Permissions can be set using command lines similar to the following:

%windir%\system32\icacls.exe %windir%\system32\winevt\ /grant "nt service\trustedinstaller":F /grant "nt


service\local service":F /grant administrators:F /grant system:F /T >%temp%\icacls.log

%windir%\system32\icacls.exe %windir%\system32\winevt\logs /grant "Authenticated Users":M /T >%temp%\icacls.log

Dell has published a new version of Dell Client Manager which resolves this issue. The version of Dell Client
Manager that resolves this issue is available for download from Dell at:
https://support.us.dell.com/support/downloads/download.aspx?
c=us&l=en&s=gen&releaseid=R264538&formatcnt=0&libid=0&typeid=-1&dateid=-1&formatid=-1&source=-
1&fileid=388850
The user should download this fix, restart their system and relaunch the install of Office 2010.

More Information
Installation log files may contain lines similar to the following:

-----------------------------------------
CAQuietExec: "wevtutil.exe" im "C:\Program Files\Microsoft
Office\Office14\BCSEvents.man"
MSI (s) (84!D8) [10:46:27:870]: Closing MSIHANDLE (7325) of type 790531 for thread
1752
MSI (s) (84!D8) [10:46:27:886]: Creating MSIHANDLE (7326) of type 790531 for thread
1752
CAQuietExec: The publishers and channels are installed successfully. However, we
can't enable one or more publishers and channels. Access is denied.
MSI (s) (84!D8) [10:46:27:886]: Closing MSIHANDLE (7326) of type 790531 for thread
1752
MSI (s) (84!D8) [10:46:27:886]: Creating MSIHANDLE (7327) of type 790531 for thread
1752
CAQuietExec: Error 0x80070005: Command line returned an error.
MSI (s) (84!D8) [10:46:27:886]: Closing MSIHANDLE (7327) of type 790531 for thread
1752
CAQuietExec: Error 0x80070005: CAQuietExec Failed
-----------------------------------------
"The installation of Microsoft Office 2010 requires that
MSXML version 6.10.1129.0 be installed on your
computer" when you install Office 2010 on a Windows
7-based computer
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you install Office 2010 on a Windows 7-based computer, you may receive the following error message:

Setup is unable to proceed due to the following error(s): The installation of Microsoft Office 2010 requires
that MSXML version 6.10.1129.0 be installed on your computer. Install the component and re-run the setup.

Cause
This issue occurs when incorrect permissions are set on a registry entry.

Resolution
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

To resolve this issue, follow these steps:


1. Click Star t , click Run , type regedit, and then click OK .
2. Locate HKEY_CLASSES_ROOT\TypeLib\{F5078F18-C551-11D3-89B9-0000F81FE221}\6.0\0\win32.
3. Right-click win32 , and then Click Permissions .
4. Give yourself Full Controlto the key.
5. Double-click the (Default) value under win32 , and then change its value from
%SystemRoot%\System32\msxml6.dllto C:\Windows\System32\msxml6.dll.
6. Install Office 2010 again.
The 2010 Office suite Setup program will not restart
after an initial installation is interrupted
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. When you install a Microsoft Office suite or an Office program, the installation
process is interrupted. Additionally, the Setup program is prevented from rolling back the Office installation. In this
scenario, when you try to install the same Office suite or the Office program again, you receive the following error
message: Microsoft Office suite_name encountered an error during setup.

Cause
This problem may occur if the Rgstrtn.lck file is not removed from the computer. If this file is present when you try
to install the same Office suite or the Office program that you previously tried to install, the Setup program detects
the file. Then, the Setup program stops the installation.

Workaround
To work around this problem, delete the Rgstrtn.lck file. To do this, follow the steps, as appropriate for the operating
system that you are using.

WARNING
If you install another Microsoft program after you receive the error message that is mentioned in the "Symptoms" section,
you may experience problems with the program's Help system if you follow these steps. If you installed another Microsoft
program after you receive the error message that is mentioned in the "Symptoms" section, uninstall the program before you
follow these steps.

To work around this problem, delete the Rgstrtn.lck file. To do this, follow the steps, as appropriate for the operating
system that you are using.
In Windows XP
1. Click Star t , click Run , type cmd, and then click OK .
2. Type cd "%allusersprofile%\Application Data\Microsoft Help", and then press ENTER.
3. Type attrib -h rgstrtn.lck, and then press ENTER.
4. Type del rgstrtn.lck, and then press ENTER.
5. Type dir /b /od /ad, and then press ENTER.
6. Type rd /q /s "<folder names>", and then press ENTER.
Note The <folder names> are the folder names that are listed after you run the command in step 5. There
should be a space between each folder-name. For example: rd /q /s "foldername1" "foldername2"
"foldername3".
7. Type exit, and then press ENTER.
In Windows Vista and Windows 7
1. Click Star t , and then type cmd in the Star t Search box, and then click OK.
2. Type cd "%allusersprofile%\Microsoft Help", and then press ENTER,
3. Type attrib -h rgstrtn.lck, and then press ENTER.
4. Type del rgstrtn.lck, and then press ENTER.
5. Type dir /b /od /ad, and then press ENTER.
6. Type rd /q /s "<folder names>",and then press ENTER.
Note The <folder names> are the folder names that are listed after you run the command in step 5. There
should be a space between each folder-name. For example: rd /q /s "foldername1" "foldername2"
"foldername3"
7. Type exit, and then press ENTER.
After you perform these steps, you can try to install the Office suite or the Office program that you tried to install
earlier.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Office programs may crash with the SendToBluetooth
add-in installed
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Resolution
If you have the WIDCOMM SendToBluetoothadd-in installed, your Office programs might be crashing due to an
incompatibility issue between the add-in and other Microsoft Office programs.
Note: This add-in is installed by default on many OEM images of Windows.
Here's how you can check to see if the add-in is the cause of your Office programs crashing:
First, open the Event Viewer
For a Windows 10, Windows 8.1 and Windows 8
1. From the Startscreen, type View event logsin the search box.
2. Select View event logs.
Windows 7 and Vista
1. Click Start.
2. In the Search box, type Event Viewer, and then, in the list of results, double-click Event Viewer.
Windows XP
1. Click Start>Control Panel>Performance and Maintenance, and then click Administrative Tools, and then double-
click Computer Management.
2. In the console tree, expand Event Viewer.
Now, check for the following events
Event ID: 1000
Faulting module name: msctf.dll
Event ID: 1000
Faulting module name: ntdll.dll
Note: Even if you do not see an Event 1000with either of these two dlls listed, you may still be encountering crashes
due to this add-in.
Method 1: Try to update the SendToBluetooth add-inYou might be able to find an update to the Bluetooth add-
in here:
[https://www.broadcom.com/support/bluetooth/update.phpEnter
If you weren't able to update the add-in, you can continue to Method 2 to disable the SendToBluetooth add-in.
Method 2: Manually disable the SendToBluetooth add-in
Important:This article contains information about how to modify the registry. Make sure that you back up the
registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more
information about how to back up, restore, and modify the registry, click the following article number to view the
article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows
Warning: Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using
another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee
that these problems can be solved. Modify the registry at your own risk.
Before you start the steps below, make sure you close all of your Office programs.
1. Open the Registry, here's how:
Windows 10, Windows 8.1 and Windows 8: Press Windows Key + R to open a Run dialog box. Type
regedit.exeand then select OK.
Windows 7 or Vista: Click Start, type regedit.exein the search box, and then select Enter.
2. Select the Office program that is crashing and locate and then select the key listed for it:
Click for a list of Office programs
Word
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Word\Addins
Note: If you are using a 32-bit version of Office on a 64-bit version of Windows, you will need to select the
following key:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\Word\AddinsOutlook
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins
Note: If you are using a 32-bit version of Office on a 64-bit version of Windows, you will need to select the
following key:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\Outlook\AddinsExcel
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Excel\Addins
Note: If you are using a 32-bit version of Office on a 64-bit version of Windows, you will need to select the
following key:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\Excel\AddinsPowerPoint
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\PowerPoint\Addins
Note: If you are using a 32-bit version of Office on a 64-bit version of Windows, you will need to select the
following key:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\PowerPoint\AddinsOneNote
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\OneNote\Addins
Note: If you are using a 32-bit version of Office on a 64-bit version of Windows, you will need to select the
following key:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\OneNote\AddinsVisio
HKEY_LOCAL_MACHINE\Software\Microsoft\Visio\Addins
Note: If you are using a 32-bit version of Office on a 64-bit version of Windows, you will need to select the
following key:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Visio\Addins
3. Expand the \Addins subkeyto display all of the add-ins registered at the Machine level.
4. If listed, select the subkey for the SendToBluetooth add-in called BtOfficeAddin.BtOfficeIntegration.1.
5. Right-click the LoadBehavior value and then click Modify.
6. Change the Value data to 0, and then click OK and then close the Registry Editor.
7. Start your Office program that was crashing to determine if the registry change has improved the stability of the
program.

More Information
Disclaimer: The third-party products that this article discusses are manufactured by companies that are
independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability
of these products.
You must accept the Office End User License
Agreement every time that you start an Office
program
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Every time that you start a Microsoft Office program, such as Microsoft Office Word, the End User License
Agreement dialog box appears. If you click I Accept , the End User License Agreement dialog box disappears
and then reappears. If you click I Accept again, the End User License Agreement dialog box disappears, and the
Office program functions as expected.
This behavior occurs for every Office program that you start.

Cause
This behavior occurs if your user account does not have permissions to modify the Microsoft Windows Registry.

Resolution
To resolve this behavior, follow these steps:
1. Log on to the computer by using a user account that has administrative credentials.
2. Start an Office program, such as Word. The End User License Agreement dialog box appears.
Note For Windows Vista, click Star t , click All Programs , click Microsoft Office , right-click an Office
program, click Run as administrator , and then click Continue .
3. Click I Accept .
4. Exit the Office program that you just started.
5. Repeat step 2 to step 4 for the other Office programs that still prompt you with the EULA.

Workaround
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.
To work around this behavior, follow these steps:
1. Log on to the computer by using an Administrator user account.
2. If you are using Microsoft Windows XP, click Star t , click Run , type regedit, and then click OK .
Note In Windows Vista and Windows 7, you may receive a User Account Control (UAC) dialog box. You
must click Continue to open Registry Editor.
3. Locate and then right-click the following registry subkey as appropriate.
On 32-bit versions of Windows:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\14.0
On 64-bit versions of Windows:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\14.0
4. Click Permissions .

5. Click Users (Computer_name\Users) , and then click to select the Allow check box for the Full Control
permission.

6. Click OK , and then quit Registry Editor.


7. Start an Office program, and then accept the End User License Agreement.
8. Repeat steps 2 through 4, and then remove the Full Control permission that you gave to Users
(Computer_name\Users) in step 5. To do this, locate Users (Computer_name\Users) , and then click to
clear the Allow check box for the Full Control permission.
9. Click OK, and then exit Registry Editor.
Office files that have RMS protection seem to crash
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a Microsoft Office document that has Information Rights Management (IRM) protection, the
document seems to crash and does not respond. This behavior occurs after you install either of the following:
2687297 Description of the Office 2010 hotfix package (Mso-x-none.msp): June 26, 2012
2553260 MS12-057: Description of the security update for Office 2010 (MSO): August 14, 2012

Resolution
ImportantThis section, method, or task contains steps that tell you how to modify the registry. However, serious
problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a
problem occurs. For more information about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in WindowsTo resolve this issue, follow these steps:
1. Delete all files in the following folder:
%localAppData%\Microsoft\DRM\
2. Close all Office programs.
3. Click Star t , click Run , in the Open box, type regedit, and then click OK .
4. Locate the following subkey and remove the CachedCorpLicenseServer value from the subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\DRM
5. Delete all entries under the following subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\DRM\Ser viceLocations

More Information
For an automated solution, execute a batch file to update your system automatically.
Note We recommend that you back up the registry before you follow these steps:
1. Start Notepad, and paste the following in a new text file:
del %localAppData%\Microsoft\DRM*.* /q /f /s
reg delete hkcu\Software\Microsoft\Office\14.0\Common\DRM /v
CachedCorpLicenseServer /f
reg delete
hkcu\Software\Microsoft\Office\14.0\Common\DRM\ServiceLocations /f
2. Save the file, and change the file name extension from .txt to .bat.
3. Run the .bat file that you created in step 2. To do this, double-click the file to run it.

Status
Microsoft has confirmed that this is an issue in the Microsoft products that are listed in the "Applies to" section.
Error 1401, 1402 or 1406 when you install an Office
program or open an Office program or document
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you install a Microsoft Office program, you may receive one of the following error messages during or at the
end of the installation process:
"Error 1401: Setup cannot create Registry Key"
"Error 1402: Setup cannot open Registry Key"
"Error 1406: Setup cannot write the value to the registry key"
The error message that you receive lists the registry subkey that is causing the error to occur.
After the installation, you may receive the following error message when you try to start your Office program:

Microsoft program has not been installed for the current user. Please run setup to install the application.

Note The program placeholder represents the name of the Office program that you are trying to start.

Resolution
To resolve this issue, use one of the following methods.
Method 1
Set the permission for the Ever yone group of the registry subkeys that are listed in the error message to Full
Control. To do this, use the easy fix solution and follow the steps in How do I restore security settings to the default
settings.
Method 2
Disable the third-party application. For example, to disable WebRoot Spysweeper, follow these steps:
1. Right-click the WebRoot Spysweeper icon that is located in the notification area, at the far right of the taskbar.
2. Left-click the Shut Down option.
3. In the Office installation Error 1406 dialog box, click Retr y .
4. When the Office setup is completed, restart the computer, and then re-enable WebRoot Spysweeper.
Method 3
Take the system into a "clean boot" state, and then run Office setup. This disables the third-party applications. The
third-party application that is denying access to the registry subkey can no longer deny access. For more
information about how to take the system into a "clean boot" state, view How to perform a clean boot in Windows.
Method 4
Some activation problems indicate that the license file is corrupted. If the license file is corrupted, you cannot
resolve the problem by removing and then reinstalling the Office product. The license file is not removed when you
remove the Office product. Additionally, the license file is not overwritten when you reinstall the Office product. If
the license file is corrupted, use one of the following methods to delete the license file.
Note This method applies only to Office 2007, Office 2003 and Office XP. Office 2010 does not use the OPA
licensing file.
Delete the license file manually
Easy fix 50302
For Windows 7 or Windows Vista
1. Log on to the computer by using an Administrator user account.
2. Start Microsoft Windows Explorer.
3. On the Organize menu, click Folder and search options .
4. Click the View tab.
5. Under Hidden files and folders , click Show hidden files, folders, and drives .
6. Click to clear the Hide extensions for known file types check box.
7. Click to clear the Hide protected operating system file (Recommended) check box, and then click OK.
8. On the Warning dialog box, click Yes .
9. Open the following folder: C:\Users\All Users\Microsoft\Office\Data\
10. If you are running Office 2007, right-click Opa12.dat or if you are running Office 2003, right-click Data.dat ,
and then click Proper ties .
11. Click the Security tab.
12. Click Advanced .
13. Click the Permissions tab.
14. Click to select Ever yone in the Permission entries list, and then click Edit .
15. Click to select the Full Control check box.
16. Click OK four times. If these steps do not resolve this issue, delete the Opa12.dat, the Opa11.dat file or the
Data.dat file from the following folder, and then restart an Office 2007 program, an Office 2003 program or
an Office XP program
C:\Users\All Users\Microsoft\Office\Data
For Windows XP or Windows Server 2003
1. Log on to the computer by using an Administrator user account.
2. Start Microsoft Windows Explorer.
3. On the Tools menu, click Folder Options .
4. Click the View tab.
5. Under Hidden files and folders , click Show hidden files and folders .
6. Click to clear the Hide extensions for known file types check box, and then click OK .
7. Open the following folder: C:\Documents and Settings\All Users\Application Data\Microsoft\Office\Data\
8. If you are running Office 2007, right-click Opa12.dat , and then click Proper ties . If you are running Office
2003, right-click Opa11.dat , and then click Proper ties . If you are running Office XP, right-click Data.dat ,
and then click Proper ties .
9. Click the Security tab.
10. Click Advanced .
11. Click the Permissions tab.
12. Click to select Ever yone in the Permission entries list, and then click Edit .
13. Click to select the Full Control check box.
14. Click OK three times. If these steps do not resolve this issue, delete the Opa11.dat file or the Data.dat file
from the following folder, and then restart an Office 2003 program or an Office XP program:
C:\Documents and Settings\All Users\Application Data\Microsoft\Office\Data
This issue may occur if one of the following scenarios is true:
The user who is installing the program, or the user who is opening the program or file does not have sufficient
permissions to modify sections of the registry that is required to perform the action. The permission for the
Everyone group of the registry subkey noted in the error message is not set to Full Control.
There is a third-party application on the system that is denying the required access to the registry subkey. In
most cases, this behavior is caused by WebRoot Spysweeper.
The nonadministrative user accounts on the computer do not have permission to modify specific files that are
used by the Office 2003 Setup program or the Office XP Setup program. These files are used by the Office 2003
Setup program or the Office XP Setup program to register different accounts for access to the Office programs.
This issue may occur if a Group Policy high-security template was applied to the computer and if the high-
security template restricts access to the following file:
For Windows XP or Windows Server 2003
Office 2007 C:\Documents and Settings\All Users\Application
Data\Microsoft\Office\Data\Opa12.dat
Office 2003 C:\Documents and Settings\All Users\Application
Data\Microsoft\Office\Data\Opa11.dat
Office XP C:\Documents and Settings\All Users\Application Data\Microsoft\Office\Data\Data.dat
For Windows Vista or Windows 7
Office 2007 C:\Users\All Users\Microsoft\Office\Data\Opa12.dat
Office 2003 C:\Users\All Users\Microsoft\Office\Data\Opa11.dat
Office XP C:\Users\All Users\Microsoft\Office\Data\Data.dat
If the non-administrative user accounts cannot modify this file, users cannot start any Office 2007 programs, 2003
programs or Office XP programs on the computer. The Opa12.dat, the Opa11.dat file and the Data.dat file are
hardware specific. Additionally, these files are compiled during installation of Office.
Microsoft Office stops responding when you try to
open or save a file
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
If you perform one of the following procedures in one of the Microsoft Office programs that are listed at the end of
this article, the program may stop responding (hang) for a long time:
You click the Save in list in the Save As dialog box.
You click the Look in list in the Open dialog box.
If you click Cancel or try to close the dialog box, the program still does not respond.

Cause
This problem may occur if any one of the following conditions is true:
When the computer is connected to one or more mapped network shares that are nonexistent or that are
currently offline.
When one or more mapped drives are persistent, and the drive is in a domain that is not trusted.
When the mapped drive is located on a slow or a down-level computer. A down-level computer is when the
operating system of the computer has an earlier version of Microsoft Windows than the computer that you are
using).
When a mapped drive is connected across a Wide Area Network (WAN).
When a drive is an inaccessible removable drive.

Resolution
To resolve this issue, you must disconnect all network drives that are have any one of the conditions that are stated
in the "Cause" section. To do this, follow these steps.
Note Because there are several versions of Microsoft Windows, the following steps may be different on your
computer. If they are, see the product documentation to complete these steps.
1. Right-click My Computer, and then click Disconnect Network Drive .
2. In the Disconnect Network Drive dialog box, click the letter of the drive that you want to disconnect, and then
click OK.
3. Repeat steps 1 and 2 until all offline network drives are disconnected. If you are not sure about a particular
drive, follow these steps:
a. Click Start, and then click Run.
b. In the Open box, type the following, and then press ENTER\computer name\share name
Where computer name is the name of the server that is sharing the resource, and share name is
the name of the shared resource that you want to use.
If the resource is not available, you receive an error message that is similar to the following:
The network name cannot be found.
Alternatively, you can try to view the contents of the drive in the Windows Explorer.

Workaround
To work around this behavior, use one of the following methods.
Method 1: Do not use persistent connections
When you connect a mapped drive, click to clear the Reconnect at logon check box. By clearing this check box,
the mapped drive will not be connected the next time that you log on to the computer. See the "More Information"
section for more information about how to map a network drive.
Method 2: Use a user logon script
If you can, use a logon script to connect a user to the appropriate servers every time that the user logs on. Make
sure that the script maps the drive in a non persistent state. If the drive is not available as the logon script runs, the
drive is not mapped. This behavior prevents the issue.
Method 3: Use server mirroring
If the connection is over a Wide Area Network (WAN), consider implementing server mirroring. Server mirroring
duplicates a distant server locally. Then, map your drive to the local, duplicate server. Doing this can reduce the wait
time by connecting to a local server.
Method 4: Use a shortcut to the network location
Use a shortcut on the Microsoft Windows desktop or in My Network Places to connect to the network location that
you want.

More Information
Each location in a list is checked to make sure that it is available and that you have access permissions when you
perform both the following procedures in Microsoft Office programs:
You try to open or to save a file.
You access the Look in or the Save In list.
If any mapped drive is in a state that is documented in the "Cause" section, it takes some time for the condition to
be detected and resolved by the Office program. To avoid this behavior, you should disconnect that mapped drive.
You can look for the availability of the drive at any time in Windows Explorer. If the drive is available, map the
network drive again later.
To map a drive to a resource that is online again, follow these steps:
1. Right-click My Computer, and then click Map Network Drive .
2. In the Drive box, click the drive letter that you want to use for the network drive.
3. In the Folder box, type the following \computer name\share name
Where computer name is the name of the server that is sharing the resource, and share name is the
name of the shared resource that you want to use.
4. To make the mapped drive non persistent, click to clear the Reconnect at logon check box.
5. Click Finish.
If you are trying to connect to resources on other networks, contact the network administrator. Network drives that
no longer exist, that are no longer shared, or inaccessible removable drives should be permanently disconnected to
avoid affecting the performance of Office products.
How to prevent Office 2010 from disabling printers
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article introduces a method to prevent Microsoft Office 2010 from disabling printers when Office 2010 detects
the problems with printers.

More Information
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

If Office 2010 detects there is a problem with a printer, some printing features or the printer may be disabled. In
this case, you cannot use the disabled printers to print documents anymore.
To prevent Office 2010 from disabling printers, set the DisablePrintFeaturesOnCrash registry entry. To do this,
follow these steps:
1. Start Registry Editor.
2. Click Star t , type regedit in the Star t Search box, and then press ENTER .
Note If you are prompted for an administrator password or for confirmation, type the password or provide
confirmationI.
3. Locate and then click the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\General
4. On the Edit menu, point to New , and then click DWORD Value .
5. Type DisablePrintFeaturesOnCrash , and then press ENTER .
6. Right-click DisablePrintFeaturesOnCrash , and then click Modify .
7. In the Value data box, type 0, and then click OK .
8. Exit Registry Editor.
Administrator can deploy the Print ticket safe mode Group Policy setting to prevent Office 2010 from disabling
printers. The Print ticket safe mode Group Policy setting is included in Office 2010 Administrative Template file. To
obtain Office 2010 Administrative Template file, visit the following Microsoft website:
Download the Office 2010 Administrative Template file
For more information about new printing functionalities in Microsoft Office, visit the following Microsoft website:
Improved End-User Experience
For more information about resolving this problem without using group policy, visit the following Microsoft
website:
My Print button and some printer settings aren't available
Saving Office documents to a network server is slow
when using EFS
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that you use the Encrypting File System (EFS) to help secure the Temporary Internet Files folder. You save
Microsoft Office documents to a remote server than can support encryption, but the server is not configured to do
remote encryption. In this situation, it takes longer than expected to save the documents.

Cause
When you save documents, the Office applications (Excel, Word, and PowerPoint) create a temporary file in secure
subfolders named "Content.MSO" and "Content.Word" in the Temporary Internet Files folder. If the subfolder is
encrypted by using EFS, the file that is then copied to the server will have the encrypted attribute applied to it also.
If the server supports encryption but is not configured to do it, multiple attempts to keep the file encrypted occur,
and this slows the save process.

Resolution
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

To work around this issue, use one of the following methods:


Remove the encryption from the "Content.MSO" and "Content.Word" subfolders in the Temporary Internet
Files folder.
Disable EFS encryption support on the server by changing the following registry entry:
PATH: HKLM\SYSTEM\CurrentControlSet\Control\FileSystemValue
DWORD: NtfsDisableEncryption
VALUE: 1
Note A value of 0 means encryption is enabled, while a value of 1 means encryption is disabled.
Enable delegated authentication for the server. This allows the server to impersonate the client, and to then
create a profile that has the certificate for encryption on the server. For information about how to do this,
seeEnabling delegated authentication.
Save the file locally, then drag the file to the desired network location.
More Information
By default, the "Content.MSO" and "Content.Word" subfolders are used by Excel, Word, and PowerPoint. They are
hidden, system-protected subfolders of the Temporary Internet Files folder, as seen in the following example path:
C:\User\<user name >\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.MSO
In Windows 8, the Temporary Internet Files folder is now known as the "INetCache" folder. Therefore, the path to the
"Content.MSO" subfolder would be as follows:
C:\Users\<user name >\AppData\Local\Microsoft\Windows\INetCache\Content.MSO
In the Research pane in an Office application, a
service is listed two times, or a service returns no
result
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In a Microsoft Office application, you encounter the following issues.
Issue 1
When you view the list of available services in the Research pane, some services are listed two times.
Issue 2
When you try to query a service in the Research pane, the service returns no result.

Resolution
fix Issue 1
If you want to remove the duplicate services from the list of available services, use one of the following methods:
Click the Get updates to your ser vice link at the bottom of the Research pane, and then follow the
instructions. This update process deletes the unnecessary registry subkeys from your computer.
For Office 2010, Remove the following registry subkeys:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{5ECE69BA-86F3-43f1-B120-E16447CBD2F7}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{65D2E288-904F-44b2-B48E-7EC277110D14}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{89B7F815-F3B1-4e57-8AFE-31FE4F5A05F4}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{818435D0-0F60-401d-A48D-C677372AA835}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{F7779C45-973D-45e7-BEB5-E76F40BD0F78}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{D446B35F-9661-4f71-A8FC-2D7D616EA293}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{585D6C55-32A2-4e14-B287-5B0BA7088E00}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{367320E9-4519-4da9-B378-7D558B634090}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{367320E9-4519-4da9-B378-7D558B634090}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{454B7253-3F40-4ff6-9C2C-14DDA1204C4C}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{F6898356-C963-4ada-9221-213AE4DF445D}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{AE88164D-E0DF-4bc6-9B31-4399E9B4E5C5}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{3025A91E-BDA1-4afc-93A0-C8FFA8ED2003}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{C8AB1768-BC24-4789-B87B-33ABA88A8975}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{ECBB7553-2128-4f1c-AAFA-C2F1D6C901BD}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{76848043-AC37-46a4-9654-C87D1B32E406}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{367320E9-4519-4da9-B378-7D558B634090}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{9F872FAC-E33A-47c8-AD04-3B1CEB171DC5}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{DFB0BD92-AC11-4e6f-BDA7-A416B6DA7414}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{ED0B84FD-3B80-47df-AFA9-8B54E8BFEA2F}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{AA117635-24C0-496c-BB57-5D6C9D59D642}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{211A92DA-DED2-4661-AE87-2922D1E2B469}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{E448A4AB-4ACF-4ccf-A365-F6A63BF534C5}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{C4377FE1-C723-41ce-9762-BA586264C55D}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{3512B6DB-8584-4c67-B0DF-EDD2336DB9F9}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{D7AA4AAD-77E7-4395-ACD0-9BC433D7AD65}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{F0E4682C-D691-4aa1-889F-42695D10AB3C}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{7BDFFF98-CE78-44db-AFA2-E346A772AEEC}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{F2E268F1-CE89-462f-AFBD-FD9BD89EAA1F}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{713E807F-7120-4875-919B-96BAA6ED8623}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{E475B1FE-0503-4930-8363-2677B46620C1}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{482E0230-8560-41fe-8584-07B3959847DA}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{934E2429-BC83-4ffb-B3A2-6761EC6870DE}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{5B6013C8-5C36-47d4-9AC0-22DBC558E5CB}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{2EF9BA38-C64D-4d08-8287-EB9B2F34D0E9}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{431EDE57-B54B-49fb-A944-76201F746749}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{67D50A84-401A-42c1-801A-029435E34615}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{FBEEEE40-FB96-4a4b-9D02-D293FF69FC07}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{C8DF8ECA-78C5-4073-88D0-A24585AB987A}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{A9167F26-9553-416d-B94E-1F6D9A2EEC3C}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{DA0B6D82-B161-4190-8878-AA5D07F94C9F}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{E13847DA-E186-427a-94D0-AA01163D80CE}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{6AEF5596-203D-4817-A17B-8A4810BF5D33}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{05EA20D9-18DC-4446-A9F8-F6C5161357CE}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{19BC3378-2319-4C50-990A-17600534DFF9}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{B5D49EBC-FE1A-445B-9517-A83E91E2D73A}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{C41C2E15-6852-4EA4-82D2-12E88D3E1E9F}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{8D650B1E-285A-4868-8AA6-B089C994ABE5 }
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{8B0C3669-CA5C-42AD-8FF7-B05E7ADE2242}
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Research\Sources{88686849-
2DD9-474D-9300-778E3336FA5D}\{C8ED648C-A5ED-4402-A55D-921D1CF1079A}
For Office 2013, remove all of the subkeys under the following registry entry:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Research\Sources\{88686849-2DD9-
474D-9300-778E3336FA5D}\
If you do not want to update the registry or you cannot update the registry, disable the service so that it
does not appear in the list in the Research pane. To do this, click the Research options link at the bottom of
the Research pane, and then click to clear the check box that is next to the service name.
fix Issue 2
If the Research pane is not showing any available services and research sites, make sure you are connected to the
internet, and then follow these steps:
lick the Research options link at the bottom of the Research pane.
Select Update/Remove.
lick Update
When the services have been updated, select Close.
lick the check box of the service name you want to add

Did this fix the problem?


Check whether the problem is fixed by viewing the list of available services or by querying the service in the
Research pane. If the problem is fixed, you are finished with this article. If the problem is not fixed, you can contact
us by clicking the following link:
Contact support
How to set the default font for Word, Excel, and
PowerPoint
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change, read this
blog post.

This article provides detailed steps for administrators to set the default font for Microsoft Office applications, such as
Microsoft Word, Microsoft Excel, and Microsoft PowerPoint.

Set the default font for Word


NOTE
There are no direct Group Policy Objects (GPOs) to set the default font in Word (for both Office 365 and 2016).

1. Create a blank file that is configured by using the font and styles that you want to set as the default.
2. Select File > Save As .
3. Select the .dotm file name extension.
4. Save the file to %Appdata%\Microsoft\Templates .
5. Replace the Normal.dotm file.
6. After the Normal.dotm file is created on the administrator's computer, you can deploy the same file to the
%Appdata%\Microsoft\Template location on users' computers.
For more information, see Change the default settings for new documents.

Set the default font for Excel


Set a cloud policy (for Office 365):
1. Create a font policy from Policy Management.
2. Apply the cloud policy to a security group that target users are members of.

Set a GPO (for Excel 2016):


P O L IC Y REGIST DEFA UL P O SSIB
SET T IN RY T LE
G IN F O R SET T IN SET T IN SUP P O
F IL E NAME P O L IC Y C AT EG M AT IO G GS RT ED H EL P
NAME SC O P E PAT H O RY N PA RT ON T EXT

excel16. Font User Micros General Name, [] At least Specifie


HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\options!font
admx oft Size Windo s the
Excel Arial, ws "Standa
2016\E 10 Server rd font"
xcel 2008 font
Option R2 or name
s\Gener Windo and
al ws 7 size.

Set the default font for PowerPoint (for both Office 365 and Office 2016)
To set default font for PowerPoint, set a default theme, and save it as a .potx file.

NOTE
Setting the default template requires the following items:
The correct file name: Default Theme.potx
The correct location: %appdata%\Microsoft\Template\Document Themes

To set the default theme, follow these steps:


1. Start PowerPoint.
2. Open an existing PowerPoint template that you have configured by using the font and styles that you want to set as
the default.
3. Select File > Save As .
4. Select PowerPoint Template (*.potx) in the file type list. This automatically changes the folder location to Custom
Office Templates (a personal template folder).

NOTE
Don't save it here because this enables you to view your template under Custom Office Templates .

5. Select More options to opens a file name dialog box, replace the whole file name with
%appdata%\Microsoft\Templates\ , and then press Enter.
6. In the Templates folder, open the Document Themes folder. If you see a Default Theme.potx file existing in the
folder, you can also make a backup of the file. To do this, select the file, press Ctrl+C, and then press Ctrl+V.
7. Enter the name "Default Theme " to manually name the file, and then save it. If a Default Theme.potx file exists, you
can also select the Default Theme.potx file, and then select Save to overwrite it.
8. Close PowerPoint, and then select File > New . Now, you see the default template that's displayed as an option.

For more information, see Change the default font in PowerPoint.


Some settings for the Visual Basic Editor that you
enabled in an earlier version of an Office application
are disabled in Office 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. You create a file in a 2007 Microsoft Office application or in an earlier version of
the application. You notice that some settings for the Microsoft Visual Basic Editor are enabled in the application,
such as the Require Variable Declaration option and the Compile on Demand option. When you open the file in a
Microsoft Office 2010 application, these settings are disabled.

Cause
This problem occurs because Visual Basic for Applications (VBA) is upgraded to version 7.0 in Microsoft Office
2010. Therefore, the registry entries that correspond to the settings for the Visual Basic editor are located under a
different subkey. In Office 2010, the registry entries are located under the following subkey:
HKEY_CURRENT_USER\Software\Microsoft\VBA\7.0\Common
In earlier versions of Office, the registry entries are located at the following subkey:
HKEY_CURRENT_USER\Software\Microsoft\VBA\6.0\Common

Workaround
To work around this problem, enable the settings manually. To do this, use one of the following methods:
Method 1
1. Start an Office 2010 application.
2. On the Developer tab, click Visual Basic .
If you start Microsoft Access 2010, click Visual Basic on the Database Tools tab.
3. On the Tools menu, click Options .
4. In the Options dialog box, select any option that you want to enable, and then click OK .
Method 2
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

1. Click Star t , click Run , type regedit, and then click OK .


2. Locate the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\VBA\6.0\Common
3. On the File menu, click Expor t .
4. In the Expor t Registr y File dialog box, select a path and a name for the exported file.
5. Make sure that the Selected branch option is enabled, and then click Save .
6. Open the exported file in Notepad.
7. Locate the following string:
[HKEY_CURRENT_USER\Software\Microsoft\VBA\6.0\Common]
Then, change this string to the following:
[HKEY_CURRENT_USER\Software\Microsoft\VBA\7.0\Common]
8. Save and then close the file in Notepad.
9. In Registry Editor, click Impor t on the File menu.
10. In the Expor t Registr y File dialog box, select the file that you just saved, and then click Open .
11. Click OK .

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information
To make the Developer tab appear in the ribbon of certain Microsoft Office 2010 applications, follow these steps:
1. On the File tab, click Options .
2. On the Customize Ribbon tab, click to select the Developer check box under the Customize the Ribbon
section, and then click OK .
Information about the ability to uninstall Office
updates
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains more information about the following topics that are related to the removal of Office updates:
The requirements to remove Office updates by using the Add or Remove Programs tool.
How to determine whether an Office update can be removed by using the Add or Remove Programs tool.
Known issue that may occur when you try to remove Office updates.
How to remove an update by using a Microsoft Windows Installer command.
Note Some Office updates cannot be removed. Some examples include the following:
Service packs
Office server product updates
Some updates to Office shared components. In this case, the Microsoft Knowledge Base article that describes the
update notes that the update cannot be removed.

More Information
The requirements to remove Office updates by using the Add or Remove Programs tool
The computer that is running Microsoft Office must meet the following prerequisites to use the Add or Remove
Programs tool to remove Office updates:
Microsoft Windows Installer version 3.0 or version 3.1 must be installed before you install the removable
Office update.
Notes
Microsoft Windows Installer version 3.1 is preferred.
For more information about how to obtain Windows Installer 3.1 (v2), see Windows Installer 3.1 v2
(3.1.4000.2435) is available.
Windows XP Service Pack 2 (SP2) already includes Microsoft Windows Installer 3.0.3790.2180.
Additionally, the 2007 Microsoft Office suites require Windows XP SP2.
Windows Server 2003 Service Pack 1 (SP1) already includes Microsoft Windows Installer
3.1.4000.1830.
Windows Vista and Windows Server 2008 already includes Microsoft Windows Installer 4.00.6001.0
The computer must be running Windows Vista, Windows XP SP2, Windows Server 2008, or Windows Server
2003 SP1.
Note When you install either of these service packs, the Add or Remove Programs tool is updated to display
Windows Installer updates under the product name.
Removing an Office XP update requires the original installation source to be available. Removing an Office
2003 update requires the original installation source to be available if the Local Installation Source feature in
Office 2003 Setup is not used.
How to determine whether an Office update can be removed by using the Add or Remove Programs tool
Windows XP and Windows Ser ver 2003
To determine whether an Office update can be removed by using the Add or Remove Programs tool, follow these
steps:
1. Click Star t , click Run , type appwiz.cpl in the Open box, and then click OK .
2. In the left column, click Change or Remove Programs .
3. Click to select the Show Updates check box.
4. In the Currently installed programs and updates list, click the update that you want to remove.
If the Remove button is available, you can remove the Office update.
Windows Vista and Windows Ser ver 2008
To determine whether you can use the Add or Remove Programs tool to remove an Office update, follow these
steps:
1. Click Star t , type appwiz.cpl in the Star t Search box, and then press ENTER.
2. Under Tasks , click View installed updates .
3. Locate and select the update in the list.
4. If the update can be removed, the Uninstall option will be available in the toolbar.
Known issue that may occur when you try to remove Office updates
The computer meets the prerequisites, but you cannot remove an update.
This issue may occur if the computer did not meet the prerequisites at the time that the update was installed. The
computer must be running Windows Installer version 3.0 or version 3.1 before you install the removable update.
How to remove an update by using a Windows Installer
There are some cases in which you do not have the option to remove an update when you use the Add or Remove
Programs tool.
If this issue occurs, you can remove the update by using Windows Installer 3.1. The Windows Installer 3.1
redistributable system component will install on the following operating systems:
Microsoft Windows 2000 Service Pack 3 (SP3) and Microsoft Windows 2000 Service Pack 4 (SP4)
Windows XP original release version, Windows XP Service Pack 1 (SP1), and Windows XP SP2
Windows Server 2003 original release version
Note Windows Server 2003 SP1 already includes Windows Installer 3.1.
For more information about how to obtain Windows Installer 3.1 (v2), seeWindows Installer 3.1 v2 (3.1.4000.2435)
is available.
Command syntax
With Windows Installer 3.1, you can remove an update by typing a command in the Run dialog box. For example,
to remove an update, click Star t , click Run , type the following command in the Open box, and then click OK :
msiexec /package {product_code } /uninstall "full_path_to_.msp_file " /qb
Notes
When you try to remove an Office update, you may be prompted for your Office source CD-ROM.
The following explains the placeholders for this command:
The product_code placeholder represents the product code GUID that is associated with the Office
product that you installed an update for.
The full_path_to_.msp_file placeholder represents the full path of the update package (.msp file).
The following explains the parameters for this command:
The /qb switch. If you use the /qb switch, you are prompted if an update is not removable. If you use the
/passive switch, you are not prompted if an update is not removable. If you use the /qb switch and if an
update is not removable, you receive the following message:Uninstallation of the patch package is not
supported.
For example, to remove an update where the product code is "{0C9840E7-7F0B-C648-10F0-4641926FE463}", and
the path of the .msp file is "C:\Update\file name.msp", you would type the following in the Run dialog box:
msiexec /package {0C9840E7-7F0B-C648-10F0-4641926FE463} /uninstall "c:\update\file name.msp" /qb
To obtain the full path of the .msp file, follow these steps:
1. Locate the .exe file that you used to install the Office update. If you do not have the file saved to the hard disk
drive, download and then save the Office update to a folder on the computer.
2. Use a file extraction utility, such as WinZip, to extract the files from the .exe update file.
One of the files that is extracted should be a .msp file. This is the file that you must point to when you run the
command to remove the Office update.
Note Instead of the full path of the .msp file, you can also specify the patch GUID. For example, to remove an
update where the product code is "{0C9840E7-7F0B-C648-10F0-4641926FE463}", and the patch GUID is "
{EB8C947C-78B2-85A0-644D-86CEEF8E07C0}", you would type the following in the Run dialog box:
msiexec /package {0C9840E7-7F0B-C648-10F0-4641926FE463} /uninstall {EB8C947C-78B2-85A0-644D-
86CEEF8E07C0} /qb
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.

References
For more information about how to remove Office updates that are installed by using Windows Installer version 3.0
or version 3.1, see Uninstalling Patches.
Unable to create DSN for Microsoft Office System
Driver on 64-bit versions of Windows
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When attempting to create ODBC connections that utilize the Microsoft Office System Driver, such as connections
to Access or Excel, on a 64-bit Operating system like Windows 7, the drivers are not visible. They are not visible in
the standard ODBC Administrator dialog that is launched from the Administrative Tools dialog in the Control Panel.

Cause
This occurs when the 32-bit version of Office or the 32-bit Office System Drivers are installed on a 64-bit version of
Windows. In 64-bit versions of Windows, there is a separate ODBC Administrator specifically used to manage 32-
bit drivers and DSNs.

Resolution
To locate the 32-bit Office System drivers, use the appropriate version of the ODBC Administrator tool. If you build
and then run an application as a 32-bit application on a 64-bit operating system, you must create the ODBC data
source by using the ODBC Administrator tool in %windir%\SysWOW64\odbcad32.exe. For example, the default
location on a Windows 7 64-bit machine is "C:\Windows\SysWOW64\odbcad32.exe".

More Information
On a 64-Bit Windows operating system, there are two versions of the ODBC Administrator tool. The 64-bit ODBC
Administrator tool is the default dialog that is launched from the control panel and is used to manage the 64-bit
drivers and DSNs on the machine. The second ODBC Administrator tool to manage the 32-bit drivers and DSNs on
the machine can be launched from the SysWow64 folder.
To determine whether Office 2010 64-bit or 32-bit is installed, take the following steps:
1. Open an Office application like Excel.
2. Click on the File tab in the upper left corner.
3. Select Help on the left-hand side
4. Underneath "About Microsoft Excel" you will see a version number and in parentheses 32-bit or 64-bit will be
listed.
Note : All Office versions prior to Office 2010 can only be installed as 32-bit applications.
Here is a table that shows which ODBC Administrator Tool to use:
W IN DO W S O S O F F IC E VERSIO N DATA SO URC E A DM IN IST RATO R TO O L

Windows 64-bit Office 2010 64-bit 64-bit ODBC Administrator tool


%systemdrive%\Windows\System32\od
bcad32.exe, or Control Panel\System
and Security\Administrative Tools\Data
Sources (ODBC)

Windows 64-bit Office 2010, 2007, or 2003 32-bit 32-bit ODBC Administrator tool
%windir%\SysWOW64\odbcad32.exe

Windows 32-bit Office 2010, 2007, or 2003 32-bit 32-bit ODBC Administrator tool
%systemdrive%\Windows\System32\od
bcad32.exe, or Control Panel\System
and Security\Administrative Tools\Data
Sources (ODBC)

For more information about known issues with using the 32-bit and 64-bit ODBC Administrator tool view the
following article:
942976 The 32-bit version of the ODBC Administrator tool and the 64-bit version of the ODBC Administrator tool
display both the 32-bit user DSNs and the 64-bit user DSNs in a 64-bit version of the Windows operating system
For more information on the 2010 Office System Drivers view the following article:
Microsoft Access Database Engine 2010 Redistributable
GetObject and CreateObject behavior of Office
automation servers
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses the different behaviors that occur when you use the GetObject and CreateObject functions
with various versions of Microsoft Office applications.
GetObject and CreateObject are functions that are provided by Microsoft Visual Basic and Microsoft Visual Basic for
Applications (VBA). However, the information is also applicable to Microsoft Visual C++ if you treat references to
GetObject as calls to the GetActiveObject API, and references to CreateObject as calls to the CoCreateInstanceAPI.

More Information
GetObject
GetObject is used to attach to a running instance of an automation server. There are a few different ways to call
GetObject, but the syntax that is recommended for the Microsoft Office applications is as follows:

set xlApp = GetObject(, "Excel.Application")

If an instance of Microsoft Excel is running when this code is executed, you have access to the running instance's
object model through the xlApp variable. If no instance is running, you receive the following trappable run-time
error message:

Run-time error '429':


ActiveX component can't create object

If multiple instances of Microsoft Excel are running, GetObject attaches to the instance that is launched first. If you
then close the first instance, another call to GetObject attaches to the second instance that was launched, and so
forth.
You can attach to a specific instance if you know the name of an open document in that instance. For example, if an
instance of Excel is running with an open workbook named Book2, the following code attaches successfully to that
instance even if it is not the earliest instance that was launched:

Set xlApp = GetObject("Book2").Application

CreateObject
CreateObject is used to start a new instance of an Automation server. For example:
set xlApp = CreateObject("Excel.Application")

Depending on whether the server is designed as SingleUse or MultiUse, another server process may or may not be
launched. This might be an important distinction for deciding whether you should forcibly shut down an
Automation instance. For example, with a MultiUse server, if an instance is already running before you attach to it,
then you might want to avoid shutting down the server programmatically when you are done automating it.
The following table serves as a helpful reference when implementing a solution with Microsoft Office. It lists
behaviors and attributes of the various versions and applications of Microsoft Office, such as whether the server
defaults to being visible when launched, if it is SingleUse or MultiUse, if it has a UserControl property, if it has a
Quit method, and the class name for its main window.

HAS HAS
A P P L IC AT IO N ( S) VISIB L E IN STA N C IN G USERC O N T RO L Q UITC L A SSN A M E

Excel 97, 2000, No SingleUse Yes Yes XlMain


2002, 2003,
2007

Word 97, 2000, No SingleUse Yes Yes OpusApp


2002, 2003,
2007

PowerPoint 97 No MultiUse No Yes PP97FrameClass

PowerPoint 2000 No MultiUse No Yes PP9FrameClass

PowerPoint 2002 No MultiUse No Yes PP10FrameClass

PowerPoint 2003 No MultiUse No Yes PP11FrameClass

PowerPoint 2007 No MultiUse No Yes PP12FrameClass

Access 97 Yes SingleUse Yes Yes OMain

Access 2000, No SingleUse Yes Yes OMain


2002, 2003,
2007

Project 98, 2000 No MultiUse Yes Yes JWinproj-


WhimperMainCla
ss

The main window class name is helpful for calling the FindWindow API when you want to find out conveniently if
any instance is already running. The UserControl property is a boolean property that indicates whether the server
application automatically shuts down when its last reference is released (set to nothing). The Quit method allows
you to override the UserControl property in cases where it is necessary (such as when an instance does not shut
down after the last reference is released).
In general, Microsoft recommends that you use a new instance of an Office application instead of attaching to an
instance that the user may be using. It is best create an instance by using the Application ProgID, and then open or
create new objects from there. Other ProgIDs, such as Excel.Sheet and Word.Document, and so forth, are intended
for use in OLE (Object linking and Embedding) and may give inconsistent results when used with CreateObject. By
using the Application ProgID, you avoid potential issues by explicitly starting the server for Automation (not
Embedding).
When you are finished with the Automation server, release all your references to it and call its Quit method (if
available) so that the server shuts down as expected. If you want to configure an instance through Automation and
then leave it open for the user to use, you need to set the UserControl property to TRUE and then release all your
references. The server then stays running (because the UserControl property is TRUE) and shuts down
appropriately when the user closes the application (because there are no outstanding references).
Note For Word, the UserControl property is read-only. It cannot be set to True or False. Word always remains
running when the last reference is released.
Office 2010 Help Files: Win32API_PtrSafe with 64-bit
Support
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The file Win32_PtrSafe.txt contains Windows API Declarations and Constants for Visual Basic (Updated for the 64-
bit version of Microsoft Office 2010) provides declarations for Microsoft Visual Basic programmers who want to
call Windows API routines. This file updates and replaces Win32API.txt to include calls to the 64-bit version of
Microsoft Office 2010.

More Information
Versions of Microsoft® Office and Microsoft Visual Basic® for Applications (VBA) prior to Microsoft Office 2010
and Visual Basic for Applications 7.0 (VBA 7) included the file, Win32API.txt, which facilitated making calls to the
Microsoft Windows API. With the addition of 64-bit support in Microsoft Office 2010, an update to this file is
needed to support 64-bit API calls. Win32API_PtrSafe.txt is a new version of Win32API.txt that supports API calls on
both 32-bit and 64-bit versions of Windows.
Win32API_PtrSafe.txt contains the following:
· 32-bit (x86) and 64-bit (x64) compatible Declare statements for the Windows API functions that were
included in the original Win32API.txt file.
· Global constant declarations for the constants that the provided Declare statements use.
· Type declarations for the user-defined types (structures) that the provided Declare statements use.
You can download Win32API_PtrSafe.txt by accessing the file Office2010Win32API_PtrSafe.exe from the web page
at Office 2010 Help Files: Win32API_PtrSafe with 64-bit Support.
The instructions of installing this download are included on the web page at the link above, or by pasting the
following address in your browser:
Office 2010 Help Files: Win32API_PtrSafe with 64-bit Support
The download "Office2010Win32API_PtrSafe.exe" installs "Win32API_PtrSafe.txt", "Using Win32API_PtrSave.xps"
and "UsingWin32API_PtrSafe.docx." The latter two files contain important information about using the contents of
Win32API_PtrSafe.txt when writing VBA code.
For additional information about how to download Microsoft Support files, see Receive Remote Assistance Support
from Microsoft.
"The Windows Installer service could not be
accessed" when you try to install Office
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to install Microsoft Office, you may receive an error message that is similar to the following:
"The Windows Installer Service could not be accessed."

Cause
This problem may occur if the Windows Installer files are damaged or missing.

Resolution
To resolve this problem, use one of the following methods.
Method 1: Use the Msconfig tool to confirm that the installer service is running
1. Click Star t , and then click Run . (The screen shot for this step is listed below).

2. In the Open box, type msconfig, and then click OK . (The screen shot for this step is listed below).

3. On the Ser vices tab, click to select the check box that is next to Windows Installer . (The screen shot for
this step is listed below).
4. Click OK , and then click Restar t to restart the computer. (The screen shot for this step is listed below).

5. Install Office again. When you are prompted to enter the product key, type the product key, and then click
Next .
Office will be installed, and you will not be prompted for the product key when the programs start.
Method 2: Re -register Windows Installer

IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

Note Because there are several versions of Microsoft Windows, the following steps may be different on your
computer. If they are, see your product documentation to complete these steps.
To re-register Windows Installer, follow these steps.
Note If you cannot complete the following steps, go to method 3.
1. Click Star t , and then click Search . (The screen shot for this step is listed below).
2. Click All files and folders . (The screen shot for this step is listed below).

3. In the File name box, type Msiexec.exe, and then click Search . (The screen shot for this step is listed below).

4. After the search is complete, make a note of the location of the Msiexec.exe file. The location of the file
should be similar to the following example: C:\Windows\System32 (The screen shot for this step is listed
below).
5. On the File menu, click Close to close the Search dialog box. (The screen shot for this step is listed below).

6. Click Star t , and then click Run . (The screen shot for this step is listed below).

7. In the Open box, type regedit, and then click OK . (The screen shot for this step is listed below).

8. Locate and then click the following registry key:


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Ser vices\MSISer ver (The screen shot for this
step is listed below).
9. In the right pane of the Registry Editor window, double-click ImagePath . (The screen shot for this step is
listed below).

10. In the Edit String dialog box that appears, make sure that the string in the Value data box contains the
correct path for the Msiexec.exe file that you determined in step 4.
Note The following is an example of the correct path, where drive is the drive where Windows is installed:
drive :\Windows\System32\msiexec.exe /V
If the Value data box does not contain the correct path, make changes to correct the path, and then click OK
to close the Edit String dialog box. (The screen shot for this step is listed below).

11. On the File menu, click Exit to quit Registry Editor. (The screen shot for this step is listed below).

12. Start your computer in Safe mode, and then register the Msiexec.exe file. To do this, follow these steps:
a. Shut down your computer, and then restart your computer.
b. Restart your computer and press the F8 key on your keyboard. On a computer that is configured for
booting to multiple operating systems, press the F8 key when you see the Boot menu.
c. Use the ARROW keys to select Safe Mode , and then press ENTER.
d. If the Boot menu appears again, and the words "Safe Mode" appear in blue at the bottom, select the
installation that you want to start, and then press ENTER.
e. Log on to the computer.
f. Click Star t , click Run , type msiexec /regserver in the Open box, and then click OK . (The screen shot
for this step is listed below).

13. Shut down your computer, and then restart your computer normally.
If you still cannot install Microsoft Office successfully and you receive an error message that is similar to the
message listed in the "Symptoms" section, go to Method 3.
Method 3: Try the methods that are listed in Microsoft Knowledge Base Article 319624
Try the methods that are listed in the following Microsoft Knowledge Base article:
319624 "Windows Installer Service could not be accessed" error message when installing application
Method 4: Reinstall Windows Installer
Note This method applies to Microsoft Windows 95, Microsoft Windows 98, Microsoft Windows Millennium
Edition (Me), and Microsoft Windows NT 4.0. For Microsoft Windows 2000, Microsoft Windows XP, and Microsoft
Windows Server 2003, either reapply the latest service pack or repair the operating system.
To reinstall the Windows Installer, follow these steps.
1. Click Star t , and then click Run . (The screen shot for this step is listed below).

2. In the Open box, type cmd, and then click OK . (The screen shot for this step is listed below).

3. At the command prompt, type the following lines. Press ENTER after you type each line.
cd %windir%\system32
(The screen shot for this step is listed below).

ren msi.dll msi.old


(The screen shot for this step is listed below).

ren msiexec.exe msiexec.old


(The screen shot for this step is listed below).
ren msihnd.dll msihnd.old
(The screen shot for this step is listed below).

4. At the command prompt, type exit, and then press ENTER. (The screen shot for this step is listed below).
5. Restart your computer.
6. Update the Windows Installer files to the latest version. To do so, visit one of the following Microsoft Web
sites, and then download and install Windows Installer 2.0.
Note Windows Installer 2.0 is included with Microsoft Windows XP. You do not have to perform this step if
you are using Windows XP.
7. After the installation of the Windows Installer is complete, shut down and restart your computer normally
before you install Microsoft Office.

More Information
For more information about how to restart Windows in Safe mode, see Advanced startup options (including safe
mode).
"wkresources" files in Trash after using or starting
Office for Mac applications
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The file "wkresources" gets created and moved to Trash-Recovered Files every time you open Office for Mac 2011
document or application.

More Information
Click Help then type recovered files to review the information why recovered files are created. From Mac OS Help
Topic:
If the Trash contains folders of recovered files
One or more Recovered files folders may appear in Trash after restarting your computer.
The recovered files are temporary files used by Mac OS X applications. Usually temporary files are deleted by an
application when it no longer needs them. If an application quits unexpectedly, the temporary files may not be
deleted by the application. When you restart your computer, Mac OS X moves these temporarily files to the Trash.
You can retrieved usefully files by dragging them out of the Trash. In most cases, however, the temporary files are
not important and it is safe to empty your Trash.
Cannot pass the Welcome Screen in Office for Mac
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you start any Office for Mac application such as Microsoft Word for Mac, PowerPoint for Mac, Excel for Mac
or Outlook for Mac, the Welcome screen does not have any buttons such as OK or Close to continue.

Cause
The screen resolution is too low and the Close button is on the bottom.

Resolution
Increase the screen resolution to be able to see the Close button. You can also press the Return or Enter key on the
right hand side of your keyboard.
Increase screen resolution
1. Click Apple
2. Click System Preferences.
3. Open Display.
4. Change to a higher resolution. For example, change to 1280x800 or 1680x1050.

NOTE
The highest resolution depends on what your monitor supports. Some monitors are only capable of displaying
1024X768.

5. Close the window.


Office files in SharePoint fail to open from an Office
2016 client
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
An error occurs when you try to open a Microsoft Office file from SharePoint by using an Office 2016 client, such as
Word, Excel, or PowerPoint. You may receive one of the following error messages, depending on the version of
Office or SharePoint and the method that's used to open the file:

There are network issues stopping us from opening your document. Please try again later.

Cannot download the information you requested.

Sorry, we couldn't open <DocumentLocation>

Sorry, we can't open <DocumentLocation> because the server isn't responding.

Additionally, you may see one of the following error messages when you try to sign in Office. Or, if you have
successfully signed in to Office, you may still see the error message in an Office application:
Account Error
There are problems with your account. To fix them, please sign in again.

Account Error
Sorry, we can't get to your account right now. To fix this, please sign in again.

No Internet Connection
Connect to the Internet to add or manage services.

This feature has been disabled by your administrator.

We are unable to connect right now. Please check your network and try again later.

No Internet Connection
It looks like you are not connected to the Internet. You may not be able to access these folders until you go
online.
Cause
Network List Ser vice is stopped and disabled on the client computer.

Resolution
Enable and start Network List Ser vice on the client computer. To do this, follow these steps:
1. Click Start, type "ser vices.msc " (without quotation marks) in the Start Search box and press Enter.
2. Double-click Network List Ser vice .
3. Right-click the service, and then click Star t .
Known issues with Office for Mac on MacOS 10.7
(Lion) and Higher
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses known issues that may occur with Office for Mac applications on MacOS 10.7 (Lion).

NOTE
Microsoft has been working with Apple from the early days of MacOS 10.7 (Lion). Through this partnership, many issues
were addressed leading up to the Lion release. Microsoft will continue to work closely with Apple to address problems that
may occur with Office for Mac 2008 and 2011 and Lion OS.
Sync services are not available with OSX versions 10.8 (Mountain Lion) or higher.

More information
There are two major Office for Mac issues Microsoft is aware of running on Lion:
1. Communicator for Mac crashes when you send an IM or start an audio/visual call.

NOTE
Microsoft will resolve this issue in an upcoming update to Communicator for Mac.

2. Office for Mac 2004 will not run on Lion.

NOTE
Previous MacOS versions supported Rosetta, an Apple Mac OSX bridge technology that enabled applications such as
Office for Mac 2004 to run on the latest chip architecture for Mac. Because Lion no longer supports Rosetta,
applications that relied on it will no longer function under the new MacOS.

Here is a list of other known issues that Microsoft is currently investigating. These issues will likely only be
encountered in specific situations or configurations:
Excel 2008 or 2011
Excel may crash when you move a sheet from one workbook to another workbook.
Excel 2011: MSQuery for English will work on Lion. However, it will not work on other language versions of Excel
2011 on Lion.
Excel 2008: MSQuery will not work on any version of Excel 2008 on Lion.
The date format may display the year as 2 digits instead of 4 digits.
Word 2008 or 2011
The date format may display the year as 2 digits insead of 4 digits.
PowerPoint 2008 or 2011
Pressing the Command and Tab keys to open another application while in Presenter View may crash PowerPoint.
Switching out of or quitting Slide Show in full-screen mode may result in inconsistent window behavior.
You may be prompted to save your presentations when switching windows.
Entourage 2008 or Outlook 2011
You may be unable to import messages from Lion Mail.
Office 2008 or 2011
Reference tools may have redraw problems and links may not work.
Chart data labels may not be visible.
Equation editor may not function correctly.
Web Applications
May not correctly open the file in the rich client application. The following workaround will work with Safari or
Firefox:
1. Quit Safari or Firefox.
2. On the Go menu, click Applications .
3. Select Safari or Firefox.
4. On the File menu, click Get Info .
5. Select the check box for Open in 32-bit mode .
6. Quit and open Safari or Firefox.
Office 2016 for Mac 64-bit upgrade
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Existing Office 2016 for Mac customers will be seamlessly upgraded to 64-bit versions of Word, Excel, PowerPoint,
Outlook, and OneNote as part of the August product release (version 15.25). This affects customers of all license
types: Retail, Office 365 Consumer, Office 365 Commercial, and Volume License installations.

Deployment options for the 64-bit update


AutoUpdate (MAU )
Customers who use Microsoft AutoUpdate (MAU) to keep their Office applications up-to-date will see a "regular"
monthly update notification when their selected channel is upgraded to 64-bit builds. Depending on which version
is installed on the local computer, MAU will offer either a delta or full update. The update package size does not
change between 32-bit and 64-bit versions. Also, MAU can deliver a delta update when applicable to update a user
from 32-bit to 64-bit applications. Therefore, customers won't experience a sharp increase in download activity. For
the release to the Production channel, customers will see "(64-bit)" in the update title to make them aware that this
is a 64-bit update.
For information about how to use the MAU, see Check for Office for Mac updates automatically.

Manual updates
The August release of Office for Mac is available for manual download. The following file provides a 64-bit package
to replace existing 32-bit applications with 64-bit variants during installation:
Download the Microsoft Office 2016 for Mac August update package now.
Virus-scan claim
Microsoft scanned this file for viruses, using the most current virus-detection software that was available on the
date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized
changes to it.
Volume License Service Center
Volume License customers typically get their Office 2016 software from the Volume License Service Center (VLSC).
These builds are refreshed infrequently and are typically aligned with new language editions. The VLSC will
continue to offer 32-bit installers (15.23) until November 2016. However, all updater packages that are released
after August will be based on 64-bit builds. Therefore, a VLSC customer who updates either manually or through
AutoUpdate will be transitioned to 64-bit builds.

More Information
64-bit only
The Mac operating system has been 64-bit for several years. Unlike for Windows, there's no choice between
running a 32-bit or 64-bit version of the Mac operating system. Similarly, we won't offer a choice between 32-bit
and 64-bit versions of Office 2016 for Mac. After each "channel" is transitioned per the rollout schedule, only 64-bit
builds will be available.
Effect on third-party applications and add-ins
The transition to 64-bit Office for Mac was announced on the Office developer blog in April 2016. This website is
the primary reference for third-party vendors to understand the change and the effect on their products. IT Pros
will want to understand which compiled add-ins are deployed to the users whom they manage so that they can
assess the effect of the upgrade. The following Microsoft Office website summarizes the issues that affect the more
common add-ins that are used together with Office 2016 for Mac:
What to try if you can't install or activate Office for Mac
Tools for inspecting product architecture
To verify the architecture of an Office application (that is, to understand whether you have a 32-bit or 64-bit build),
start the application, open the Activity Monitor, and then enable the Kind column.

You can also use the file command in a terminal session to inspect the binary. For this use, type file -N <path of
binary>. This method can be used with for any binary file, including third-party add-ins.

The file command returns one of three values.


RET URN VA L UE M EA N IN G

Mach-O 64-bit executable x86_64 64-bit binary

Mach-O executable i386 32-bit binary

Mach-O 64-bit executable x86_64 FAT binary (compatible with both 32-bit and 64-bit processes)

Mach-O executable i386 FAT binary (compatible with both 32-bit and 64-bit processes)

Options for reverting to 32-bit installations


There may be situations in which the customer has to change code that's not 64-bit ready. If customers can't
immediately move forward to 64-bit builds, we will make available a one-time 32-bit update for the 15.25 release
in addition to the default 64-bit updates. The 32-bit updates will be available only for manual download from the
Office CDN.
The latest 32-bit release of Office 2016 for Mac (15.25.160818) can be downloaded from
https://go.microsoft.com/fwlink/?LinkId=823192.
Customers who manually install the 32-bit release won't be offered the 64-bit version of 15.25 through MAU.
However, MAU will offer the 64-bit version of 15.26 in September 2016. Therefore, customers have a limited time
to remain on 32-bit builds.
If a customer has already upgraded to the 64-bit update of Office for Mac 15.25 and wants to revert to the 32-bit
version, follow these steps:
1. Exit all open Office 2016 applications.
2. Start Safari, and then browse to https://go.microsoft.com/fwlink/?LinkId=823192 to start the download of the
32-bit installer.
3. Double-click the downloaded package, and then follow the instructions.
The 64-bit installation has a build date of 160817. The 32-bit version has a build date of 160818.
Office 2016 for Mac 16.x prompts you for
authentication when you open a URL
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you install or upgrade to Microsoft Office 2016 for Mac version 16.9 and later versions, you experience one of
the following issues in Microsoft Excel, Microsoft Word, or Microsoft PowerPoint:
You are prompted for authentication.
The Office application stops responding.
Certain Office features are missing because the relevant online service can't be accessed.
Note These issues occur when you use a proxy server in your environment.

Cause
This problem occurs because of one or more of the following situations:
An Office file contains an embedded URL that triggers a SafeLink check. SafeLink is run to verify that it's safe to
open the target content before it's handed to the local browser.
Office tries to connect to an online endpoint for an Office service.
Office 2016 for Mac 16.9 and later versions use a new user agent string in the HTTP request that starts with
"Microsoft Office".
When the user agent is blocked by the proxy server, you experience the issues that are mentioned in the
"Symptoms" section.

Resolution
To fix this issue, add Microsoft Office to the exception list of the proxy server.
"Office 365 Enterprise E3 setup is incomplete" error in
Office 365 for Mac
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
If Microsoft Office for Mac is installed by some method other than directly from the Office 365 portal, you receive
the following error message even though Office is installed successfully:
"Office 365 Enterprise E3 setup is incomplete."

Cause
This behavior is by design. The message can be safely ignored.

Resolution
To prevent this message from appearing, remove Office, and then reinstall it from the Office 365 portal.

More Information
Still need help? Go to Microsoft Community.
PowerPoint for Mac closes or quit unexpectedly when
you start it or open a new presentation
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you start Microsoft PowerPoint for Mac, or when you try to open a new presentation, you experience one of
the following conditions:
The program closes unexpectedly.
Error message:

The application Microsoft Powerpoint quit unexpectedly. Mac OS X and other applications are not
affected. Click relaunch to launch the application again. Click report to see more details or send a
report to Apple.

Resolution
To resolve this problem, follow these steps.
Microsoft PowerPoint 2008 or later
Step 1: Remove Powerpoint Preferences
1. Quit all Microsoft Office for Mac programs.
2. On the Go menu, click Home .
3. Open Library.

NOTE
The Library folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open Preferences.
5. Drag com.microsoft.powerpoint.plist to the desktop. If you cannot locate the file, PowerPoint is using the
default preferences. Go to step 7.
6. Open PowerPoint, and check whether the problem still occurs. If the problem still occurs, quit PowerPoint,
restore the file to its original location, and go to the next step. If the problem is resolved,
drag com.microsoft.powerpoint.plist to the Trash .
7. Quit all Microsoft Office for Mac programs.
8. On the Go menu, click Home .
9. Open Library.

NOTE
The Library folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

10. Open Preferences.


11. Open Microsoft, and then drag com.microsoft.powerpoint.prefs.plist to the desktop. If you cannot locate the
file, PowerPoint is using the default preferences. Go to step 13.
12. Open PowerPoint, and check whether the problem still occurs. If the problem still occurs, quit PowerPoint,
restore the file to its original location, and go to the next step. If the problem is resolved, drag
com.microsoft.powerpoint.prefs.plist to the Trash .
13. Quit all Microsoft Office for Mac programs.
14. On the Go menu, click Home .
15. Open Library.

NOTE
The Library folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key whil you click the Go
menu.

16. Open Preferences.


17. Open Microsoft, and then Office 2008 (or Office 2011).
18. Drag PowerPoint Toolbars (12) or Microsoft PowerPoint Toolbars to the desktop.
If you cannot locate the file, PowerPoint is using the default preferences. Go to "Step 2: Try PowerPoint in Safe
Mode Boot."
19. Open PowerPoint, and check whether the problem still occurs. If the problem still occurs, quit PowerPoint,
restore the file to its original location, and go to "Step 2: Try PowerPoint in Safe Mode Boot." If the problem is
resolved, drag PowerPoint Toolbars (12) or Microsoft PowerPoint Toolbars to the Trash .
Step 2: Try Powerpoint in Safe Mode Boot
Restart your computer in the Safe Mode. For more information about how to restart your computer in
the Safe Mode, click the following article number to view the article in the Microsoft Knowledge Base
2398596 How to use a "clean startup" to determine whether background programs are interfering with Office for
Mac
Once in safe mode, test Powerpoint. If the issue continues to occur, proceed to next step.
Step 3: Remove and then reinstall Office
For information how to remove and then reinstall Office, see the following article:
Troubleshoot Office 2011 for Mac issues by completely uninstalling before you reinstall
If the issue continues to occur in Safe mode, proceed to Step 3.
Step 4: Use the "Repair Disk Permissions" option
You can use the Repair Disk Permissions option to troubleshoot permissions problems in Mac OS X 10.2 or later
versions. To use the Repair Disk Permissions option, follow these steps:
1. On the Go menu, click Utilities .
2. Start the Disk Utility program.
3. Click the primary hard disk drive for your computer.
4. Click the First Aid tab.
5. Click Repair Disk Permissions .

NOTE
Disk Utility program only repairs software that is installed by Apple. This utility also repairs folders, such as the Applications
folder. However, this utility does not repair software that is in your home folder.

Microsoft PowerPoint 2004


1. Quit all Microsoft Office for Mac programs.
2. On the Go menu, click Home .
3. Open Library, and then open Preferences.
4. Drag com.microsoft.powerpoint.plist to the desktop.
If you cannot locate the file, PowerPoint is using the default preferences. Go to step 6.
5. Open PowerPoint, and check whether the problem still occurs. If the problem still occurs, quit PowerPoint,
restore the file to its original location, and go to the next step. If the problem is resolved, drag
com.microsoft.powerpoint.plist to the Trash .
6. Quit all Microsoft Office for Mac programs.
7. On the Go menu, click Home .
8. Open Library, and then open Preferences.
9. Open Microsoft, and then drag com.microsoft.powerpoint.prefs.plist to the desktop.
If you cannot locate the file, PowerPoint is using the default preferences. Go to step 11.
10. Open PowerPoint, and check whether the problem still occurs. If the problem still occurs, quit PowerPoint,
restore the file to its original location, and go to the next step. If the problem is resolved, drag
com.microsoft.powerpoint.prefs.plist to the Trash .
11. Quit all Microsoft Office for Mac programs.
12. On the Go menu, click Home .
13. Open Library, and then open Preferences.
14. Open Microsoft, and then drag PowerPoint Toolbars (11) to the desktop.
If you cannot locate the file, PowerPoint is using the default preferences. The problem is not related to the
preference files.
15. Open PowerPoint, and check whether the problem still occurs. If the problem still occurs, quit PowerPoint,
and then restore the file to its original location. The problem is not related to the preference files. If the
problem is resolved, drag PowerPoint Toolbars (11) to the Trash .
Third-party disclaimer information
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
The information and the solution in this document represent the current view of Microsoft Corporation on these
issues as of the date of publication. This solution is available through Microsoft or through a third-party provider.
Microsoft does not specifically recommend any third-party provider or third-party solution that this article might
describe. There might also be other third-party providers or third-party solutions that this article does not describe.
Because Microsoft must respond to changing market conditions, this information should not be interpreted to be a
commitment by Microsoft. Microsoft cannot guarantee or endorse the accuracy of any information or of any
solution that is presented by Microsoft or by any mentioned third-party provider.
The "Open new side note" icon is missing from the
Windows notification area in OneNote
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you start Microsoft Windows, the Microsoft Office OneNote Open new side note icon may be missing
from the Windows notification area.

Cause
This problem may occur if one of the following conditions is true:
You removed and reinstalled OneNote .
-or-
You removed the Open new side note icon in the Windows notification area.
-or-
On Windows 7, click the Show hidden icons arrow in the notification area to see the OneNoteicon.

Resolution
To resolve this problem, follow these steps:
1. Start OneNote.
2. In OneNote 2007 or earlier, on the Tools menu, click Options .
In OneNote 2010 or later, choose Optionsfrom the Filemenu.
3. For OneNote 2007 or earlier, in the Categor y list, click Other .
For OneNote 2010 or later in the Categorylist, click Display.
4. Click to clear the Place OneNote icon in the notification area of the taskbar check box if it is selected,
and then click OK .
5. Quit and then restart OneNote.
6. In OneNote 2007 or earlier on the Toolsmenu, click Options.
In OneNote 2010 or later choose Optionsfrom the Filemenu.
7. For OneNote 2007 or earlier in the Categorylist, click Other.
For OneNote 2010 or later in the Categorylist, click Display.
8. Click to select the Place OneNote icon in the notification area of the taskbar check box, and then click
OK .
Impor tant The Microsoft Office OneNote 2003 Quick Launch shortcut is required for the correct operation
of the quick launch functionality of Side Note. If the Microsoft Office OneNote 2003 Quick Launch shortcut is
missing from the Star tup folder (click Star t , point to All Programs , and then point to Star tup ), run Detect and
Repair to complete the restoration of the quick launch functionality of Side Note. To do this, follow these steps as
appropriate for your situation:
1. Start OneNote 2003.
2. On the Help menu, click Detect and Repair .
3. In the Detect and Repair dialog box, click to select the Restore my shor tcuts while repairing check box (if
it is not selected), and then click Star t .
Note In OneNote 2007 or 2010, the OneNote Screen Clipper and Launchershortcut is automatically added to the
Startup folder when you click to select the Place OneNote icon in the notification area of the taskbarcheck box in
step 8.
"0xE40200B4" and "0x800700DF" errors when you
sync a notebook in OneNote
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft SharePoint with the OneNote 2016 desktop client, you can't sync a notebook by selecting View Sync
Status > Sync All . Additionally, you receive error messages that mention the "0xE40200B4" and "0x800700DF"
error codes.

Resolution
WARNING
Follow the steps in this section carefully. Serious problems can occur if you modify the registry incorrectly. Before you modify
it, back up the registry for restoration in case problems occur.

1. Right-click the notebook that's opened in OneNote 2016, and then select View Notebook Sync status.
2. Verify that the error code is 0xE40200B4.
3. Locate the affected section, and then try to do a forced sync. To do this, point to the unsynchronized page,
and select the page to give it focuses and force the sync.
4. Determine whether any notebook section exceeds 50 MB. (Each section is a separate .one file.)
5. If a section exceeds 50 MB, locate any file that was saved in SharePoint and exceeds 50 MB, and try to copy
and paste the file to your local computer.

NOTE
Before you copy the file, open the SharePoint site in Windows Explorer view (Explorer web client view). For more
information about how to do this, see Open in Explorer or View with File Explorer in SharePoint.

6. If error code 0x800700DF is returned when you do step 5, follow these steps to set the file size limit in bytes
for web client.
a. Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters

b. Edit the Decimal value for the following 32-bit DWORDs:


Change the FileAttributesLimitInBytes value data from 1000000 to 10000000 to support file
attributes up to 10 MB.
Change the FileSizeLimitInBytes value data from 50000000 to 4294967295 (4.75 GB) is the
max limit for a 32-bit DWORD.
7. Restart your computer.

NOTE
In Windows XP SP2 and later Windows versions, a security change was introduced that affects the Web Distributed Authoring
and Versioning (WebDAV) redirector. This security change makes sure that an unauthorized server cannot force a client
computer into a denial of service attack. If you try to download a file that's larger than 50,000,000 bytes, the client computer
interprets this download as a denial of service attack. Therefore, the download process stops. For more information, see
Folder copy error message when downloading a file that is larger than 50000000 bytes from a Web folder.

References
Error 0xE40200B4, 0xE401065D, 0xE000145C, or 0xE4010640 when syncing notes in OneNote 2016
Error 0x800700DF: The file size exceeds the limit allowed and cannot be saved
How to locate your OneNote notebooks
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you start OneNote, you do not see the notebooks that you expect to see.

Cause
This issue occurs if you are not logged in with the correct Microsoft account or work or school account.

Resolution
Step 1: Locate your notebooks by using OneNote Online
1. Go to https://www.onenote.com.
2. Click the Sign In button at the top-right corner of the screen. If you don't see the Sign In button, click the Sign
out link, and you will be directed to Sign In.

3. Click Sign In, and then select an account type.

4. A work or school account takes you to your company or school Office 365 sign-in page. A Microsoft account
takes you to an MSA sign-in page.
You should now see your notebooks on OneDrive or OneDrive for Business, depending on which account you
signed in with. Note which account you used to access your notebooks so that you can make sure you're signed in
with the correct account in OneNote on your other devices.
I can't get signed into my Microsoft account – what next?
Try signing in to your Microsoft account directly by going to https://account.microsoft.com and then selecting Sign
in. If you cannot sign in, this means you're using the incorrect email or password for your Microsoft account, or that
you don't have a Microsoft account.
Step 2: Connect OneNote to the correct account
Now that you know which account contains your notebooks, sign out of the accounts in OneNote, and sign back in
with the correct account.
Win32 OneNote:
1. Start OneNote 2016 for Windows. If you haven't signed into a Microsoft account or to a work or school
account, you will be prompted to sign in when you start OneNote. Use the account that you used in step 1 at
the top of the "Resolution" section.
If you do not see your notebooks, go on to step 2.
2. On the File menu in OneNote, click Account, and then click Remove next to any Connected Services.

3. Click Sign out to sign out of the current account.

4. Click Sign In to enter your account credentials. Enter your Microsoft account if your notebooks are stored on
OneDrive, or enter your work or school account if your notebooks are stored on your work or school
locations or OneDrive for Business.

5. Click Open.

6. Depending on whether you're signed in with a Microsoft account or with a work or school account, you will
see options for OneDrive or OneDrive – Personal. Click the desired location to see your notebooks.
OneNote Universal
1. Start OneNote Universal. If you haven't signed in to a Microsoft account or to a work or school account, you
will be prompted to sign in when you start OneNote. Use the account that you used in step 1 at the top of
the "Resolution" section.
If you do not see your notebooks, go on to step 2.
2. On the File menu in OneNote, click Settings, and then click Accounts. Click each account that's listed, and
then click Sign out .

3. Restart OneNote. You will be prompted to sign in with a Microsoft account or with a work or school account.
Enter the credentials for the location where your notebooks are stored, most likely a OneDrive – Personal
account or a work or school account.
4. On the File menu, click More Notebooks. OneNote will show you the notebooks that are stored in that
location. If you are signed in to more than one account, such as to both a Microsoft account and a work or
school account, you will see notebooks from all the locations that are listed under More Notebooks.

OneNote for Android:


1. Start OneNote for Android. If you haven't signed into a Microsoft account or work or school account, you will
be prompted to sign in when you start OneNote. Use the account that you used in step 1 at the top of the
"Resolution" section.
If you do not see your notebooks, go on to step 2.
2. In OneNote, click the vertical ellipsis (…) icon in the upper-right corner, click Settings, and then click Account.
3. Click Sign Out to sign out of your accounts.

4. Add your account back by tapping Add your personal Microsoft accountor Add your work or school
account.Use the account that you used in step 1 at the top of the "Resolution" section.
5. If you don't see the notebook that you want, click Open Notebook on the home screen in OneNote. OneNote
will show you the notebooks that are stored in that location. If you are signed in to more than one account,
such as to both a Microsoft account and a work or school account, you will see notebooks from all the listed
locations.
You can click a notebook to open it, or you can add a work or school account to connect to your work or
school notebooks.

OneNote for iPhone or iPad


1. Start OneNote for iPhone or iPad. If you haven't signed in to a Microsoft account or to a work or school
account, you will be prompted to sign in when you start OneNote. Use the account that you used in step 1 at
the top of the "Resolution" section.
If you do not see your notebooks, go on to step 2.
2. In OneNote, click the File icon in the upper left, click Settings (the gear icon), and then click Account.
3. Click each account, and then click Remove Account until all the accounts are removed.

4. Add your account back. In OneNote, click the File icon in the upper-left, click Settings (the gear icon), click
Account , and then click Sign in .
5. Enter your Microsoft account or your work or school account.
6. If you don't see the notebook that you want, click the File icon on the OneNote home screen, and click then
the Open folder icon in the lower-left corner.

7. OneNote will show you the notebooks at that location.


I can't remember the Microsoft account I use with Office
Check out this article, which contains information about determining which Microsoft account was used to
purchase and activate Office.
I forgot the password for my Microsoft account
Reset the password of your Microsoft account:
1. If you forgot the password for the Microsoft account that you associated with Office, you can reset it at
https://account.live.com/ResetPassword.aspx.
2. Follow the guidance to reset your password.
I forgot the password for my work or school account.
In this situation, you must contact the IT admin for your work or school for assistance in resetting your password.
How do I add an additional Microsoft account or an additional work or school account to OneNote?
W indow s 3 2 -bit

1. On the File menu in OneNote, click Accounts.


2. Click Add Account.
3. Enter your Microsoft account or your work or school credentials.
You should now see it as a Connected Service. If you click Open, you will see it as an available location under Open
from other locations, from which you can open or create other notebooks.
O n e N o t e U n i v e r sa l

1. On the File menu in OneNote, click Settings, and then click Accounts.
2. Click Add account.
3. Enter your Microsoft account or your work or school credentials.
O n e N o t e fo r A n d r o i d

1. In OneNote, click the vertical ellipsis (…)icon in the upper-right corner, click Settings, and then click Account.
2. Click to add your personal Microsoft account or your work or school account.

O n e N o t e fo r i P h o n e a n d i P a d
1. Cick the Fileicon in OneNote in the upper-left corner, click Settings(the gear icon), and then click Account.
2. Click your account, select Add a Service, and then add the additional location where your notebooks are
stored.
OneNote error “Content Not Yet Available”
4/27/2020 • 2 minutes to read • Edit Online

Symptom
You see the following error when trying to access a OneNote page:

Content Not Yet Available


Sorry, it looks like this page was added from another computer and hasn't synced yet. Click here or press
ENTER to reload the page.

Cause
Your OneNote Notebook content might not have synced completely to the SharePoint Online or OneDrive for
Business server. You might be disconnected from Internet, unauthenticated (not signed-in), or the OneNote client
may be offline.

Resolution
Check to see if the page (or section) is in one of the following states:
1. Opened and accessed across different devices. If so, check to see if the content is visible on another
device.
2. Shared with multiple users. If so, check to see if other users also experience the same problem.
a. If No (content is visible), move the available content to a new section.
b. If Yes (content isn’t visible), go to step 3 or step 4.
3. Stored in OneDrive for Business. If so, follow the steps in Restore your OneDrive to restore the content
to a previous state.
4. Stored in SharePoint Online. If so, follow the steps in Restore your OneDrive to identify whether the content
is in a state to restore.

NOTE
SharePoint Online retains backups of all content for 14 additional days beyond actual deletion. If content cannot be
restored via the Recycle Bin or Files Restore, an administrator can contact Microsoft Support to request a restore any
time inside the 14-day window.

More information
Best practices for saving pages
To ensure your data is synced to cloud, you must see the successful sync status icon before exiting your OneNote
session (whether by closing the OneNote app or closing the browser session).

NOTE
OneNote Online (OneNote on the Web) and the OneNote on Teams client have no local caches. Using either app in offline
mode may lead to unrecoverable data loss, if the sync fails to connect to the server.

OneNote 2016 and OneNote for Win 10 each keep a cached copy of your pages on your device. Using them offline is
recommended as the next time you connect to the internet, all the changes you made will sync to OneDrive so you’ll be able
to see them on other devices.

A successful sync icon can appear as either of the two images below:

NOTE
All screenshot images are taken from OneNote for Windows 10.

Other OneNote sync status messages:


A page sync is in progress:

A page has been saved offline:

A page has not been saved due to network issues and is trying to connect:

More information
Still need help? Go to Microsoft Community.
Temporary change to file size download limit in
OneNote
4/24/2020 • 2 minutes to read • Edit Online

Summary
To best support OneNote customers worldwide during these unprecedented times, Microsoft is temporarily
adjusting the download limit of file attachments in OneNote. We do not expect this change to affect most users.

Workarounds
The maximum capacity of downloaded file attachments is temporarily set at 100 MB. Because most OneNote clients
limit file uploads to 50 MB, this change shouldn't affect most attachments.
The following workarounds enable users to download larger file attachments:
Attach as a cloud file. This is the best way to make sure that others can access the file without restrictions.
If you have access to the file, first upload the attachment to SharePoint Online and then link to the
attachment from within the Notebook. If you use OneNote for Windows 10, this can be done in one step by
following these instructions:
1. Select Inser t > File .
2. Select Upload to OneDrive and inser t link .
Attaching files as cloud files enables others who have access to the notebook to view your attachment
without any size restrictions. If you don't have access to the original file, use either of the following
workarounds to obtain the file, and then attach it as a cloud file.
OneNote for web. Open your notebook in OneNote for the web (go to https://www.onenote.com, select
the purple Sign in button), and then save the attachment by right-clicking the attached file and selecting
Save As .
OneNote desktop. Use OneNote 2016 or another desktop version of OneNote to download the
attachment.

More information
Still need help? Go to Microsoft Community.
Warning in OneNote 2013 when a notebook is in an
offline location
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When Microsoft OneNote 2013 detects a notebook that is in an offline location (for example, an offline folder that
is created by IntelliMirror), you receive the following message in the information bar:

This notebook may not sync correctly because Windows Offline Files is enabled on this folder. Click here to
share this notebook to a new location or turn off Windows Offline Files on this notebook and restart OneNote.

When you click this message, you receive the following message:

If you want to share it with specific people, please put it on OneDrive or SharePoint.

Cause
Windows Offline Files provides cached access to network file shares when you're offline. Also, OneNote has its own
cache that enables it to work offline and to do things like multi-user edit, sync, and merge automatically. We do not
recommend that you use these caching methods together. This has been true since OneNote 2007. However, the
message in the information bar is new in OneNote 2013. It warns users that doing this may cause problems with
syncing.
When OneNote 2013 detects that the notebook is in an offline folder location, you see the information bar message
that is mentioned in the "Symptoms" section. You can disable the information bar message by using a registry key.
(See the "More Information" section.) However, we do not recommend that you do this, because you can encounter
problems when you use both an offline folder and OneNote's own cache (such as Windows Offline Files). For
example, doing this can cause the following issues:
Duplicate copies of sections may be created if those sections are edited from more than one computer.
Edits that are performed on one computer do not appear or are lost.
For more information, see item 4 of the "Troubleshooting steps" section of the following blog post:
OneNote Shared Notebooks - Options and Troubleshooting - Part 1: Windows File Shares

Resolution
To resolve this issue, move the notebook from the current file location to a location that does not have offline
folders enabled.
Note We recommend that you first sync the notebook. To do this, press Shift+F9.
To move the notebook, take one of the following actions:
From On the File menu, click Share , and then click Copy this notebook to OneDrive or SharePoint .
Right-click the notebook, click Proper ties , and then click Change Location .

More Information
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall
your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry
Editor incorrectly. Use Registry Editor at your own risk.
To disable the information bar warning message, set the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\OneNote\Options\DWord: DisableCSCInfobar
=1
"We couldn't start OneNote the last time we tried”
error
4/29/2020 • 4 minutes to read • Edit Online

Written and maintained by Gaurav Singh, Support Engineer Office Core.

Symptoms
When you start OneNote for the first time, you see the following errors if you cancel the sign-in prompt:
Start Normally
Delete the Notebook Cache
Delete Settings
A sign-in prompt appears at the first launch:

Error message:

If you select Delete Notebook Cache or Delete Settings , OneNote will start, but displays the message “You
don’t have any open notebooks.”
Cause
This issue might be caused by one of the following reasons:
Microsoft OneNote is a “freemium” product. The first time the user starts OneNote after it's installed, the license
will update automatically to the same license as the version of Office that is already installed on the device and
will create different registry entries at the following location:
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\OneNote].
When OneNote starts for the first time, it will check the Office suite license to see whether it's a free version, the
Home & Student version, or the Enterprise version, and will try to update OneNote to match the same license as
the version of Office already installed. This situation will produce the “Sign-in” prompt in an attempt to validate
the license.
Microsoft is only providing support for the free Home & Student version unless you upgrade to the Office Pro
or Enterprise suites of the products through either Customer Service and Support (CSS) or Microsoft Premier.
You may also receive this error if the subkey under this location is changed/corrupted or deleted.

Resolution
IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

OneNote validates the installation through the FirstBootStatus registry key.


If the key is not located or not found at the location (which is normal for a new installation), then the installation will
create the registry entries:

[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\OneNote]

To avoid this behavior, set the value for FirstBootStatus to show that OneNote is already installed. Do this by
following the steps in one of the methods below:
For a single device, use the Registry Editor:
1. Select the Windows Start button, select Run , and then type regedit to launch the Registry Editor.
2. Locate the following registry location: [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\OneNote].
3. Right-click on the FirstBootStatus DWORD and modify the value to 02000202.
For multiple devices, create (or deploy) the registration hive before the first launch of the OneNote
application (or with the installation) via script or GPO:
1. Open the Group Policy Management console by running the command gpmc.msc.
2. Expand the tree and right-click on the OU you want this policy to be applied to.
3. Right-click on the OU ManagementTeam, and select Create a GPO in this domain, and Link it here…
4. Give the policy a new name and select OK .
5. Right-click on the newly created GPO Deploy Registry Policy and select Edit .
6. In the Group Policy Management Editor window, select Computer Configuration > Preferences >
Windows Settings > Registr y .
7. Right-click on the Registr y node, then select New > Registr y Item .
8. In the new window, select the Registry Hive where your registry key exists and select the browse button
(…) to select the existing registry value.
9. Select the registry value to update.

More information
In April 2018, Microsoft announced that OneNote for Windows Desktop would no longer be included in the
default installation of Office 365 client products.
Starting in August 2018, OneNote was removed for customers who installed Office 365 client products on
Windows 10. See OneNote 2016 is missing after installing Office 365 or Office 2019 for more information.
The preferred version of OneNote for Windows 10 devices is the "Universal" version of OneNote known as
OneNote for Windows 10 (store app).
Since many corporate customers preferred to use OneNote for Windows Desktop, Microsoft announced in
November 2019 during Ignite that OneNote would be added back into the installation of Office 365 client
subscriptions.
Starting March 10, 2020, OneNote Win32 was added to the default installation of Office 365 for all licenses with
client apps and Office 2019.
There are no plans to retire the separate (standalone) download at this time. OneNote will continue to be
available from https://onenote.com/download.
Impact to administrators:
Administrators who do not manage the deployment of Office 365 clients to their users and instead let Microsoft
control the installation will find that OneNote is included by default for all new installations of Office 365
Business and Office 365 ProPlus starting March 10 from all update channels.
Administrators who manage the deployment of Office 365 clients to their users will see no change in their
deployments.
Administrators who decided to exclude OneNote from installations will continue to see OneNote excluded from
new installs.
Administrators who decided to include OneNote with their installations will continue to see OneNote included
with new installs.
For standalone installation via Office Deployment Tool:
To install via the Office Deployment Tool, add the following code:

<Configuration>
<Add>
<Product ID="OneNoteFreeRetail">
<Language ID="MatchOS"/>
</Product>
</Add>
<Display Level="None" AcceptEULA="TRUE" />
</Configuration>

Reference: Deployment guide for OneNote


References
Get OneNote: Mac | iOS | Android | Windows | OneNote Online
Suggestions: OneNote UserVoice
Help: Answers.Microsoft.com
Install or reinstall OneNote 2016 for Windows
Your OneNote
What's new in OneNote for Windows 10
What's the difference between OneNote and OneNote 2016?
Get started with OneNote
How to locate your OneNote notebooks
Still need help? Go to Microsoft Community.
Some Office applications are not responding
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Office applications stop responding in some common usage scenarios.

Cause
Starting in Microsoft Office 2013, the Office suite of applications takes advantage of hardware acceleration if the
option is available. To do this, Office uses the graphics adapter that is installed on the computer. This causes Office
applications to load and use graphics driver code. For systems that use an Intel graphics adapter, some versions of
the Intel graphics driver have a heap corruption bug that causes Office applications to stop responding.
The following Intel graphics driver versions cause this problem.

26.20.100.6951

26.20.100.6952

26.20.100.6998

26.20.100.6999

26.20.100.7000

26.20.100.7063

Resolution
Identify whether your computer has one of the affected Intel graphics drivers. To do this, follow these steps:
1. In Control Panel , select Hardware and Sound > Device Manager .
2. Expand the Display adapters item. If you have an Intel graphics adapter, the driver will appear in the list. If you
see an Intel adapter, right-click the adapter, and then select Proper ties .
3. On the Driver tab, review the information in the Driver Version field.
If you have one of the affected graphics driver versions, use one of the following options to fix the problem.
Option 1: Update the Intel graphics driver
The Intel graphics driver that contains the fix is version 26.20.100.7262. The best solution is to update the graphics
driver to this version (or later). To do this, open the Driver tab in the adapter's properties dialog box, and then
select the Update Driver button to search for an updated graphics driver.
NOTE
If you can't find an updated graphics driver, search for a driver update through your OEM website or through the Intel
website.

Option 2: Update the Office version


Office has shipped a fix for specific Office versions. The fix will detect whether the computer has one of the affected
Intel graphics drivers installed. If it does, Office will avoid using hardware acceleration. Instead, it will use a software
rasterizer that is known as Windows Advanced Rasterization Platform (WARP).
The versions of Office that contain this fix are the following.

1911 (November 2019) 16.0.12325.20120

1910 (October 2019) 16.0.12228.20364

1907 (July 2019) 16.0.11929.20516

1901 (January 2019) 16.0.11328.20492

Office Insiders 16.0.12406.20000

To fix the problem, update your Office installation.

NOTE
The fix in the Office versions won't work for users who have an Nvidia Optimus graphics adapter. For more information about
how to work around this scenario, see the "Option 4: Nvidia Optimus" section.

Option 3: Manually disable hardware acceleration in Office


If you can't upgrade the Intel graphics driver or update Office to a version that has the fix, you can disable hardware
acceleration through the Options dialog box. To do this, follow these steps:
1. In any Office application, select File > Options .
2. In the Advanced pane, select the Disable hardware graphics acceleration check box.
3. Select OK .

TIP
If you choose this option, we recommend that you clear the Disable hardware graphics acceleration check box when
you update the Intel graphics driver to version 26.20.100.7262 (or later). You should do this so that Office can run by using
the best performance possible.

Option 4: Nvidia Optimus


This section is for Office users who have either of the following graphics adapters installed:
An Intel graphics adapter that has a version of the graphics driver that causes the problem
An Nvidia Optimus graphics adapter
For these users, updating Office to a version that has the fix will not help. This is because the Nvidia Optimus
graphics adapter can indirectly load and use the faulty Intel graphics adapter. These users should follow the steps in
the "Option 3: Manually disable hardware acceleration in Office" section to work around the issue.
Some computers have third-party software that dictates how the Nvidia Optimus driver operates. It might be
possible to configure these computers not to use the Intel graphics adapter. Contact the third-party vendor for
instructions about how to do this.
Third-party information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
An Office program is slow or may stop responding
(hang) when you open a file from a network location
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a file from a network location in one of the Microsoft Office programs such as PowerPoint
2003 , Excel 2003, Publisher 2003 or a later version of them, the Office program may run very slowly or may
appear to stop responding (hang).

Cause
This behavior may occur if the connection to the network location is lost during the time that your Office program
is opening the file.

Workaround
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

To work around this behavior, add the EnableShellDataCaching value to the Microsoft Windows registry. To do
this, follow these steps:
1. Close your Office programs.
2. Click Star t , and then click Run .
3. In the Open box, type regedit, and then click OK .
4. Locate, and then click to select one of the following registry keys accordingly:
Office 365, Office 2019 and Office 2016:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Open Find
Office 2013:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Open Find
Office 2010:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Open Find
Office 2007:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Open Find
Office 2003:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Open Find
5. After you select the key that is specified in step 4, point to New on the Edit menu, and then click DWORD
Value .
6. Type EnableShellDataCaching , and then press ENTER .
7. Right-click EnableShellDataCaching , and then click Modify .
8. In the Value data box, type 1, and then click OK .

NOTE
Any non-zero number in the Value data box will turn on caching. A zero number or blank (default) will turn off
caching.

9. On the File menu, click Exit to quit Registry Editor.


Did this fix the problem?
Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is not
fixed, you can contact support.

More information
This situation may occur after you click Open in the Open dialog box (on the File menu, click Open ) to open a file
from a network location (for example, a network server). During the process of opening the file, you lose your
network connection or the network location that contains the file that you are trying to open goes down. During the
process of opening the file, your Office program tries to add the file name and the path information of the file that
you are trying to open to the Windows recent file list. Because the network location (path) does not now exist, the
Office program may run slowly and may appear to stop responding (hang).

NOTE
This situation may also occur if your connection to your network is slow because your Office program has to make multiple
queries to the network to obtain the correct file information.
The "Play CD Audio Track" command is not available
on the ribbon in PowerPoint 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In Microsoft PowerPoint 2010, the command Play CD Audio Track is not available from the Audio drop-down list
in the Media group on the Inser t tab of the ribbon. If you want to play a music track from an audio CD, we
recommend that you transfer the audio track that you want to play to an MP3 audio file format. You can use
Windows Media Player or another, similar program to create the MP3 file. For more information about how to
transfer tracks from a CD to MP3 files, see the Windows Media Player Help topic "Rip music from a CD."

More Information
How to insert an MP3 audio file into a PowerPoint presentation
To insert an MP3 audio file into your PowerPoint 2010 presentation, follow these steps:
1. On the slide to which you want to add the audio track, click the Inser t tab, and then in the Media group, under
Audio , click Audio from File .
2. Select the MP3 file that contains the audio track, and then click Inser t .
3. Under Audio Tools , click the Playback tab.
4. In the Audio Options group, on the Star t drop-down list, select either Automatically , On Click , or Play
across slides , depending on how you want play the file.
5. Click to select the Hide During Show check box.
6. If you want the audio track to play continuously, click to select the Loop until stopped check box.
How to add the "Play CD Audio Track" command to the "Insert" tab
If you want to add the Play CD Audio Track command back to the Inser t tab, you must create a custom group
and then add the command to the new group. To do this, follow these steps:
1. Click the File tab, and then click Options in the navigation pane.
2. In the navigation pane of the PowerPoint Options window, click Customize Ribbon .
3. In the Customize the ribbon column, in the Main Tabs list, expand Inser t , and then select Media .
4. Under the Main Tabs list, click New Group . The new group named New Group (Custom) is inserted under
the Media group.
5. Click Rename , type CD Audio, and then click OK .
6. In the Choose command from drop-down list, select All commands .
7. Locate and then select the Play CD Audio Track command, and then click the Add button. The command
appears under the new CD Audio group.
8. Click OK .
The new group CD Audio together with the command Play CD Audio Track is displayed on the right side of the
Media group.
A PowerPoint Show .pps file is saved as a PowerPoint
.pptx file when you save changes after you edit it in
your web browser
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenarios.
Scenario 1
You upload a Microsoft PowerPoint Show .pps file to a Microsoft SharePoint site on a server that is running
Microsoft PowerPoint Online, or you save a PowerPoint Show .pps file to the SharePoint site by using Microsoft
PowerPoint.
In your web browser, you locate the .pps file on the SharePoint site, and then you click View in Browser to view
the file.
You click Edit in Browser , and then you click Conver t to open the file for editing.
Scenario 2
You upload a PowerPoint Show .pps file to a OneDrive folder, or you save a PowerPoint Show .pps file to a
OneDrive folder by using Microsoft PowerPoint.
In a web browser, you locate the OneDrive folder, and then you click the View link to open the .pps file.
You click Edit in Browser , and then you click Conver t to open the file for editing.
In these scenarios, the PowerPoint Show .pps file is saved as a PowerPoint Presentation (.pptx) file when you save
changes to the file instead of the PowerPoint Show (.ppsx) file that you expect.

Workaround
To work around this issue, you must save the converted file as PowerPoint Show (*.ppsx) . To do this, use one of
the following workarounds, as appropriate for your situation.
Workaround for scenario 1
1. In your web browser, locate the .pptx file on the SharePoint site, and then click Edit in Microsoft
PowerPoint to open the file in PowerPoint on your computer.
Note The file that you open has a name that resembles "file_name - converted.pptx."
2. Press F12 to open the Save As dialog box.
3. In the Save as type box, click PowerPoint Show (*.ppsx) , and then click Save to save the file to the same
location on the SharePoint site.
Workaround for scenario 2
1. In your web browser, open the OneDrive folder, and then locate the .pptx file.
2. Click View to open the file in the PowerPoint Web application.
Note The file that you open has a name that resembles "file_name - converted.pptx."
3. Click the Open in PowerPoint button to open the file in PowerPoint on your computer.
4. Press F12 to open the Save As dialog box.
5. In the Save as type box, click PowerPoint Show (*.ppsx) , and then click Save to save the file to the same
location in the OneDrive folder.
Add custom values to animation effect options in
PowerPoint
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article describes how to enter custom values for timings and for effects when you click Effect Options for a
custom animation in Microsoft PowerPoint. This procedure is useful when the value that you want is not listed.

NOTE
You can enter custom values only for the animation effects that support timing speed and repeating.

More information
How to create custom timing values
For example, to create custom timing values for an animated rectangle, follow these steps, as appropriate for the
version of PowerPoint that you are running.
Microsoft PowerPoint 2002 or Microsoft Office PowerPoint 2003
1. Start PowerPoint.
2. Create a blank slide.
3. On the Drawing toolbar, click the Rectangle button, and then create a rectangle on the slide.
4. On the Slide Show menu, click Custom Animation.
5. In the Custom Animation task pane, click Add Effect, point to Entrance, and then click Blinds.
6. Click the arrow next to the entrance effect that you added. This is Rectangle 1. Then, click Effect Options.
7. Click the Timing tab, click the Speed box, and then type the number 5.
This procedure sets the animation speed to five seconds. The Speed box accepts numeric entries up to a
maximum value of 863990 seconds. The Speed box also accepts time entries in the "hh:mm:ss" time format
up to a maximum value of "59:59:59".
8. Click the Repeat box, and then type the number 7.
This procedure causes the animation to repeat seven times. The Repeat box accepts numeric values between
1 and 9999.
9. Click OK.
Microsoft Office PowerPoint 2007
1. Start PowerPoint.
2. Create a blank slide.
3. On the Inser t tab, click Shapes , click Rectangle , and then create a rectangle on the slide.
4. On the Animations menu, click Custom Animation .
5. In the Custom Animation task pane, click Add Effect , point to Entrance , and then click Blinds .
6. Right-click the entrance effect that you added. This is Rectangle 1 . Then, click Effect Options .
7. Click the Timing tab, click the Speed box, and then type the number 5.
This procedure sets the animation speed to five seconds. The Speed box accepts numeric entries up to a
maximum value of 863990 seconds. The Speed box also accepts time entries in the "hh:mm:ss" time format
up to a maximum value of "59:59:59".
8. Click the Repeat box, and then type the number 7. This procedure causes the animation to repeat seven
times.
The Repeat box accepts numeric values between 1 and 9999.
9. Click OK .
'Add Section' command is unavailable in PowerPoint
2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to add sections by clicking the Home tab, in the Slides group, click on Section, the Add Section
command is unavailable (grayed out). The command is also unavailable if you right-click inside of the slides pane in
Normal View or right-click inside of Slide Sorter View.

Cause
The presentation is in Compatibiliy Mode. The file was saved as PowerPoint 97-2003Presentation (*.ppt) format. If
you look at the Title Bar of the PowerPoint application (bar accross the top of the PowerPoint window) it will read
filename [Compatibility Mode] and the file extension is *.ppt.

Resolution
Convert the presentation to a native PowerPoint 2010 presentation by clicking on the File tab, and in the Info
section click the Convert button and save the file as PowerPoint Presentation (*.pptx).

More Information
Once you convert the presentation to a PowerPoint Presentation (*.pptx) and open the file in previous versions of
PowerPoint you will no longer have the sections visible. However, if you re-open the file in PowerPoint 2010 the
sections will be available.
For more information on slide sections in PowerPoint 2010 read the following help article on the Office website:
Organize your PowerPoint slides into sections.
An audio file that is set to repeat and play across a
set number of slides in PowerPoint stops playback
after you leave the original slide
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. In Microsoft PowerPoint, you add an audio file to a slide. Then, you set this audio
file to repeat multiple times and only play for a set number of slides. For example, you set an audio file to repeat
five times and only play for two slides. Then, you run the presentation and play the audio file. The audio file plays
and may repeat itself before you transition to the next slide. However, in this scenario, the audio file stops playing as
soon as you leave the slide it was started on and the next slide opens.

NOTE
This issue does not occur if the audio file is set to repeat infinitely and to play across all slides in the presentation, or if the
audio file is set to play one time across all slides.

Workaround
Method 1: Duplicate the audio file
To work around this issue, you can use third-party audio or audio/video editing software to edit the audio file and
to physically repeat the audio file the number of times that you want the audio file to play. This workaround lets
you control exactly how many times the audio file repeats itself.
For example, you have an audio track that lasts 30 seconds. You want the track to play five times. You copy the
audio track and append it to itself four more times. This makes the audio track 2.5 minutes long, with the audio
portion repeating itself five times.
For more information about how to edit audio files, see the documentation that is included with the third-party
audio editing software.
After you add the edited audio file to the PowerPoint slide, set the audio file to stop playing after a set number of
slides. To insert and configure the audio file, follow these steps:
1. On the slide, click the Inser t tab, and then in the Media Clips group, under Sound , click Sound from File .
2. Select the edited audio file, and then click OK .
3. Click Automatically when you are prompted.
4. Click the Animations tab, and then click Custom Animation .
5. In the Custom Animation pane, right-click the audio file entry, and then click Effect Options .
6. In the Stop playing section, click After , and then set the number of slides that you want the sound to play on.
7. Click OK .
Method 2: Loop the audio file continuously
To work around this issue, you can set the audio file to loop continuously for a set number of slides. This
workaround does not let you control the number of repetitions. This workaround only lets you control how many
slides the audio track repeats across. To do this, follow these steps:
1. On the slide, click the Inser t tab, and then in the Media Clips group, under Sound , click Sound from File .
2. Select the audio file, and then click OK .
3. Click Automatically when you are prompted.
4. On the Sound Tools Options tab, in the Sound Options group, click to select the Loop Until Stopped check
box.
5. Click the Animations tab, and then click Custom Animation .
6. In the Custom Animation pane, right-click the audio file entry, and then click Effect Options .
7. In the Stop playing section, click After , and then set the number of slides that you want the sound to play on.
8. Click OK .
Method 3: Play the audio file across all slides
To work around this issue, you can set the audio file to play across slides in the presentation, starting on the slide
the file is inserted on. This workaround does not let you control the number of repetitions or how many slides the
sound plays on. To do this, follow these steps:
1. On the slide, click the Inser t tab, and then in the Media Clips group, under Sound , click Sound from File .
2. Select the audio file, and then click OK .
3. Click Automatically when you are prompted.
4. On the Sound Tools Options tab, in the Sound Options group, click to select the Loop Until Stopped check
box.
5. In the Play Sound drop-down list, click Play across slides .
Can't edit footer information in the "Header and
Footer" dialog in a PowerPoint presentation
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. In Microsoft Office PowerPoint 2007, you save a presentation that contains footer
information. This presentation was created in Microsoft Office PowerPoint 2003 or in an earlier version of
PowerPoint.
When you open the presentation in PowerPoint 2003 or in an earlier version of PowerPoint, the footer information
is displayed in a text box. You cannot edit the footer information in the Header and Footer dialog box.

Cause
This behavior occurs because PowerPoint 2007 handles the footer field differently than earlier versions of
PowerPoint do.

Status
This behavior is by design.

More Information
In PowerPoint 2003 and in earlier versions of PowerPoint, the display location of the footer field is fixed. The footer
field is configured as a special field that can be edited only in the Header and Footer dialog box.
In PowerPoint 2007, the footer field is configured as a text box that cannot be edited in the Header and Footer
dialog box. However, in PowerPoint 2007, you can directly set the location or the format of the footer field for each
slide without using a slide master.
In PowerPoint 2007, when you open a presentation that has footer information and that was created in PowerPoint
2003 or in an earlier version of PowerPoint, you can see the footer settings in the Header and Footer dialog box.
Additionally, you can see that these settings are the same as the footer settings in earlier versions of PowerPoint.
However, if you save the presentation in PowerPoint 2007 and then reopen it in an earlier version of PowerPoint,
you cannot see the footer settings in the Header and Footer dialog box. Additionally, the footer information is
displayed in a text box. This behavior occurs because the footer field is saved as a text box in PowerPoint 2007.
Steps to reproduce the behavior
1. Start PowerPoint 2003.
2. On the View menu, click Header and Footer .
3. In the Header and Footer dialog box, click to select the Date and time check box on the Slide tab, click to
select the Update automatically check box, click to select the Footer check box, and then type any
characters in the box.
4. Click Apply .
Notice that the footer setting is applied.
5. On the File menu, click Save .
6. In the Save As dialog box, type a name in the File name box, and then click Save .
7. On the File menu, click Exit to exit PowerPoint 2003.
8. Start PowerPoint 2007.
9. Click the Microsoft Office Button , and then click Open .
10. In the Open dialog box, click the file that you saved in step 6, and then click Open .
11. In the Text group on the Inser t tab, click Header & Footer .
The Header and Footer dialog box appears. Notice that all the settings that you set in PowerPoint 2003 are
applied.
12. In the Header and Footer dialog box, click Cancel .
13. Click the Microsoft Office Button , and then click Save .
14. Click the Microsoft Office Button , and then click Exit PowerPoint .
15. Start PowerPoint 2003.
16. On the File menu, click Open .
17. In the Open dialog box, click the file that you saved in PowerPoint 2007, and then click Open .
18. On the View menu, click Header and Footer .
Notice that the footer information is displayed in a text box. You cannot edit this information in the Header
and Footer dialog box.
You cannot edit video or audio in PowerPoint if
Desktop Experience is not installed
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When PowerPoint is installed on a Windows Server 2012 or Windows Server 2008 machine, certain media editing
options may be unavailable. For example, the Insert Video and Insert Audio options are greyed out.

Cause
The necessary Windows components to enable these features are not installed by default in a server operating
system.

Resolution
To enable these features, you must install the Desktop Experience feature for the server. To install Desktop
Experience, follow these steps:
1. Start Server Manager.
2. In the details pane, locate the Features Summary area, and then click Add Features.
3. In the Add Features Wizard, click to select the Desktop Experience check box, and then click Next.
4. Click Install.
5. After the Desktop Experience feature is installed, click Close to exit the Add Features Wizard, and then click Yes to
restart the computer.

More Information
For more information on the Desktop Experience feature, please see:
Desktop Experience Overview
How to enable Windows Vista user experience features on a computer that is running Windows Server 2008
PowerPoint cannot load an add-in when you lower
the macro security level
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you lower the level of macro security in Microsoft PowerPoint, and then open a PowerPoint add-in file (*.ppa),
the new level of macro security may not be applied, and the add-in file may not run as expected. The add-in is listed
as an available add-in in the Add-Ins dialog box, but the check box is not selected, and you receive an error
message similar to the following when you attempt to select the check box:
PowerPoint couldn't load the add-in file name .

Cause
This behavior can occur if the following conditions are true:
1. You attempt to open a PowerPoint add-in file by using the Open command on the File menu while the macro
security level is set to High.
2. You lower the macro security-level setting.
3. You open the same PowerPoint add-in file by using the Open command on the File menu.
When you attempt to open an add-in file, and the add-in is not loaded because of macro security, PowerPoint
temporarily stores (caches) the failure-to-load information about this add-in. PowerPoint cannot load the add-in
after you lower the macro security level until it clears the cached information.

Workaround
To work around this issue, clear the cached information, and then load the add-in by following either of the
following methods after you change the macro security-level setting.
Method 1: Quit and Restart PowerPoint
1. Quit PowerPoint.
2. Restart PowerPoint.
3. Open the add-in file.
4. Click "I AGREE" to load the add-in.
Method 2: Remove and Add the Add-in
To remove and add the add-in in PowerPoint 2002, follow these steps:
1. On the Tools menu, click Add-Ins.
2. In the Available Add-Ins list, click the add-in, and then click Remove.
3. Click Add New, select the add-in, click OK, click "I AGREE" to load the add-in, and then click Close.
To remove the add-in in PowerPoint 2007, follow these steps:
1. Click the Microsoft Office Button , click PowerPoint Options , and then click Add-Ins .
2. In the Manage list, select PowerPoint Add-ins , and then click Go .
3. In the Available Add-Ins list, select the add-in that you want to remove, click Remove , and then click Close .
To add the add-in in PowerPoint 2007, follow these steps:
1. Click the Microsoft Office Button , click PowerPoint Options , and then click Add-Ins .
2. In the Manage list, click PowerPoint Add-ins , and then click Go .
3. In the Add-Ins dialog box, click Add New .
4. In the Add New PowerPoint Add-In dialog box, browse for the add-in that you want to add, and then click
OK .
5. A security notice appears. If you are sure that the add-in comes from a trusted source, click Enable Macros , and
then click Close .

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Steps to Reproduce the Problem
PowerPoint 2007
1. Start PowerPoint 2007.
2. On the Developer tab, click Macro Security in the Code group.

NOTE
By default, the Developer tab may not appear. To display the Developer tab, click the Microsoft Office Button ,
click PowerPoint Options , select Show Developer tab in the Ribbon under Top options for working with
PowerPoint , and then click OK .

3. On the Trust Center page, under Macro Settings , select Disable all macros with notification , and then
click OK .
4. On the Office menu, click Open .
5. In the Files of type drop-down box, click the arrow, select PowerPoint Add-Ins( .ppam;.ppa) , select the
add-in, and then click Open.

NOTE
The add-in does not load as expected.

6. On the Developer tab, click Macro Security in the Code group.


7. On the Trust Center page, select Enable all macros (not recommended; potentially dangerous code
can run) under Macro Settings , and then click OK .
8. On the Office menu, click Open .
9. In the Files of type drop-down box, click the arrow, select PowerPoint Add-Ins( .ppam;.ppa) , select the
add-in, and then click Open.
NOTE
You are not prompted to enable or disable the macro. Additionally, the add-in still does not load.

PowerPoint 2002
1. Start PowerPoint.
2. On the Tools menu, point to Macro, and then click Security.
3. On the Security Level tab, click High.
4. On the File menu, click Open.
5. In the Files of type box, click the arrow, select PowerPoint Add-Ins, select the add-in, and then click Open.

NOTE
The add-in does not load as expected.

6. On the Tools menu, point to Macro, and then click Security.


7. On the Security Level tab, click Medium.
8. On the File menu, click Open.
9. In the Files of type box, click the arrow, select PowerPoint Add-Ins, select the add-in, and then click Open.

NOTE
You are not prompted to enable or disable the macro, and the add-in still does not load.
How to change the export resolution of a PowerPoint
slide
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

You can change the export resolution in Microsoft PowerPoint by saving a slide in a picture format. There are two
steps to this process: using the system registry to change the default resolution setting for exported slides, and
then actually saving the slide as a picture at the new resolution.

Step 1: Change the export resolution setting


IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

By default, the export resolution of a PowerPoint slide that you want to save as a picture is 96 dots per inch (dpi). To
change the export resolution, follow these steps:
1. Exit all Windows-based programs.
2. Right-click the Star t button and then Run . (In Windows 7, select Star t , and then Run .)
3. In the Open box, type regedit, and then select OK .
4. Locate one of the following registry subkeys, depending on the version of PowerPoint that you're using:
PowerPoint 2016
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\PowerPoint\Options
PowerPoint 2013
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\PowerPoint\Options
PowerPoint 2010
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\PowerPoint\Options
PowerPoint 2007
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\PowerPoint\Options
PowerPoint 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\PowerPoint\Options
5. Click the Options subkey, point to New on the Edit menu, and then click DWORD Value .
6. Type ExportBitmapResolution, and then press Enter.
7. Make sure that Expor tBitmapResolution is selected, and then click Modify on the Edit menu.
8. In the Edit DWORD Value dialog box, select Decimal .
9. In the Value data box, type the value of the resolution that you want such as 300. Or, use the parameters in
the following table.

F UL L - SC REEN P IXEL S W IDESC REEN P IXEL S DOT S P ER IN C H


( H O RIZ O N TA L × ( H O RIZ O N TA L × ( H O RIZ O N TA L A N D
DEC IM A L VA L UE VERT IC A L ) VERT IC A L ) VERT IC A L )

50 500 × 375 667 × 375 50 dpi

96 (default) 960 × 720 1280 × 720 96 dpi

100 1000 × 750 1333 × 750 100 dpi

150 1500 × 1125 2000 × 1125 150 dpi

200 2000 × 1500 2667 × 1500 200 dpi

250 2500 × 1875 3333 × 1875 250 dpi

300 3000 × 2250 4000 × 2250 300 dpi

NOTE
See the Limitations section for more information when you set this value.

10. Select OK .
11. On the File menu, select Exit to exit Registry Editor.

Step 2: Export the slide as a picture


1. In PowerPoint, open your slide presentation, and then open the slide that you want to export.
2. On the File menu, select Save As .
3. In the Save as type box, select one of the following picture formats:
GIF Graphics Interchange Format (.gif)
JPEG File Interchange Format (*.jpg)
PNG Portable Network Graphics Format (*.png)
TIFF Tag Image File Format (*.tif)
Device Independent Bitmap (*.bmp)
Windows Metafile (*.wmf)
Enhanced Windows Metafile (*.emf)

NOTE
You may want to change the picture's save location in the Save in box. You may also want to change the name of the picture
in the File name box.
4. Select Save . You will be prompted with the following dialog box:

Select Current Slide Only . The slide is saved in the new format and resolution, in the location that you
specified in the Save in box.
5. To verify that the slide is saved in the resolution that you specified, right-click the picture, and then select
Proper ties .

Limitations
When you set the ExportBitmapResolution registry value in PowerPoint, there's a maximum DPI limitation to
consider for some versions of PowerPoint.
Maximum DPI is dependent upon the slide size. The formula is: maxdpi = (sqrt(100,000,000 / (slide with * slide
height)), where slide width/height are in inches.
For example, for a standard 13.3" x 7.5" slide, the equation would be: sqrt(100,000,000 / (13.333 * 7.5) ) = 1000.
PowerPoint 2019, 2016, 2013, and 365
There is no fixed DPI limit. Slide export is only limited by how big the resulting bitmap gets. PowerPoint can support
creating bitmaps up to ~100,000,000 pixels (width x height). For standard widescreen slides (13.3" x 7.5") this
means a maximum DPI of 1000. For the old style 10" x 7.5" slides this means a maximum of 1155 DPI, but
depending on slide size, this can be more or less.
PowerPoint 2010 and older
The maximum resolution that PowerPoint can export is 3072 pixels, based on the longest edge of the slide. For
example, the standard 10" × 7.5" slide has a maximum effective DPI value of 307. The 3070-pixel result (10 × 307 =
3070) falls within the 3072 limit. However, any DPI setting that's greater than 307 for a standard slide reverts to the
limit of 3072.

DOT S P ER IN C H ( H O RIZ O N TA L A N D
DEC IM A L VA L UE P IXEL S ( H O RIZ O N TA L × VERT IC A L ) VERT IC A L )

307 3072 × 2304 307 dpi

The 3072-pixel limit also applies to saving the slide programmatically.


For example, the following code programmatically saves a picture with dimensions of 3072 × 2304 pixels:

ActiveWindow.Selection.SlideRange(1).export
"c:\<filename>.jpg","JPG",4000,3000

More information
For information about changing the size of your slides, see Change the size of your slides.
How to create a mailto hyperlink in a presentation in
PowerPoint for Mac
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
In a slide show presentation in Microsoft PowerPoint, you can create a hyperlink to a mailto Uniform Resource
Locator (URL) to send mail to a specific recipient. The mailto URL uses the following syntax:

mailto<email_address>

where mailto is the protocol, and email_address is the e-mail address of the recipient (for example
[email protected]).
This mailto link can be used in a presentation running in Kiosk mode; however, the Kiosk station must have a
method, such as a keyboard, to write the message. Nevertheless, you can format the mailto URL to address a mail
message to a specific recipient when you activate the link. This article describes how to create a mailto hyperlink.

More Information
To create a mailto hyperlink, follow these steps:
1. Go to the slide on which you want to create the mailto hyperlink.
2. Draw a text frame (or shape) to use as the mailto hyperlink.
3. Enter some text in the frame. For example, type "Mail To" (without the quotation marks), to describe the
function of the frame.

NOTE
If you want to format the text frame to look like a button, add a color fill and a border around the frame.

4. Select the text frame, and then click Action Settings on the Slide Show menu.
5. Click the Mouse Click tab.
6. Click Hyperlink To. In the Hyperlink To list, click URL.
7. In the Hyperlink To URL dialog box, type the mailto URL you want. For example, type the following:
[email protected]
8. Click OK.
9. Click OK again.
When you click the mailto link during the slide show, a new mail message that contains the recipient's e-mail
address appears on your screen.

NOTE
For this to work, you must have an e-mail client installed and it must be running correctly.
Embedded videos don't play when you export a
presentation as a video
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You create a presentation in Microsoft Office PowerPoint.
On a slide, you insert a video.
On the Animations tab, you click Add Animation .
In the Media area, you click Pause .
In the Timing group, in the Star t drop-down list, you click With Previous .
In the Delay field, you set a delay time for playing the video.
On the File tab, you click Save & Send , and then you click Create a Video .
You do not change the default settings, you click Create Video , and then you save the movie file.
In this scenario, when you play the exported video file, the movie starts playing. However, the slide transitions
before the video finishes playing.

Cause
This issue occurs because the Pause animation effect starts the video and then pauses the video for the Delay
time. This does not affect the duration of the slide when you export the presentation as a video. The default setting
for slide duration when you export a video is 5 seconds. The slide transitions before the video finishes playing.

Workaround
To work around this issue, use one of the following methods.
Change the Animation settings
1. Select the video that you want to play after a short delay.
2. On the Animations tab, in the Animation group, click Play .
3. In the Timing group, in the Star t drop-down list, click With Previous .
4. Set the Delay to the time that you want.
5. Export the presentation as a video.
Set the slide duration
1. On the Transitions tab, in the Timing group, under Advance Slide , click to select the After check box.
2. Set the slide duration so that it is longer than the length of both videos combined. This allows for any delay in
the playing of the videos.
When you export the presentation as a video, make sure that you select Use Recorded Times and Narrations
before you click Create Video .
File size of an existing presentation increases when
saving the presentation in PowerPoint
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you open and then save an existing Microsoft PowerPoint presentation, the file size of the presentation may
increase by several megabytes.

Cause
This issue occurs when the following conditions are true:
You open a Microsoft PowerPoint 97 or a Microsoft PowerPoint 2000 presentation in Microsoft Office
PowerPoint 2007, in Microsoft Office PowerPoint 2003, or in Microsoft PowerPoint 2002.
The presentation has one or more embedded fonts.
Embedded fonts are typically only a subset of the full font set. When you save an existing PowerPoint 97 or
PowerPoint 2000 presentation in PowerPoint 2007, in PowerPoint 2003, or in PowerPoint 2002, the full font set is
embedded instead of the smaller font subset of the characters.
If the Embed TrueType fonts check box was selected when the PowerPoint 97 or PowerPoint 2000 presentation
was saved, PowerPoint automatically embeds a subset of the fonts that are being used. However, this setting is
saved with the presentation.

Workaround
To work around this issue, you must manually select the Embed characters that are used option for each
presentation. To do this, follow these steps, as appropriate for the version of PowerPoint that you are running.
PowerPoint 2003 or PowerPoint 2002
1. Open the PowerPoint 97 or PowerPoint 2000 presentation.
2. On the Tools menu, click Options .
3. Click the Save tab.
4. Under the Embed TrueType fonts check box, click Embed characters that are used only .
5. Click OK .
PowerPoint 2007
1. Open the PowerPoint 97 or PowerPoint 2000 presentation.

2. Click the Microsoft Office Button , and then click PowerPoint Options .
3. Click Save , and then click to select the Embed fonts in the file check box.
4. Click Embed only the characters used the presentation .
5. Click OK .
Now, PowerPoint will embed only those fonts that are used in the presentation when you save the presentation.

Resolution
To resolve this issue for presentations that are already saved, you must reduce the file size.
If you have already saved the PowerPoint 97 or PowerPoint 2000 presentation in PowerPoint 2007, in PowerPoint
2003, or in PowerPoint 2002, the file size has already increased. To reduce the file size, follow these steps, as
appropriate for the version of PowerPoint that you are running.
PowerPoint 2003 or PowerPoint 2002
1. Open the presentation.
2. On the Tools menu, click Options .
3. Click the Save tab.
4. Under the Embed TrueType fonts check box, click Embed characters that are used only .
5. Click OK .
6. Save the presentation.
7. In Windows Explorer, verify that the file size has decreased.
PowerPoint 2007
1. Open the presentation.

2. Click the Microsoft Office Button , and then click PowerPoint Options .
3. Click Save , and then click to select the Embed fonts in the file check box.
4. Click Embed only the characters used the presentation .
5. Click OK .
6. Save the presentation.
7. In Windows Explorer, verify that the file size has decreased.
If the file size did not change, try saving the presentation one more time.
If the file size still does not change, you must save a new copy of the presentation. To do this, click Save As on the
File menu, and then rename the presentation.
If the file size still does not change, turn off font embedding for that presentation. After you turn off font
embedding, save a new copy of the presentation.

NOTE
The fonts will be replaced with the nearest equivalent font that is present on the computer if you do not have the same fonts
on the computer.

To determine what fonts are used in the presentation, follow these steps:
1. Open the original presentation.
2. On the File menu, click Proper ties .
3. Click the Contents tab, and then note the fonts that are listed in the Fonts in use list.
4. Click Star t , click Run , type control fonts in the Open box, and then click OK .
5. Compare the fonts in the Fonts folder to the fonts that you noted in step 3.

More Information
In PowerPoint 2002 and in later versions of PowerPoint, you can embed a subset of a font by using the Embed
characters in use only option. This option is saved with the presentation. When you save the presentation,
PowerPoint 2002, PowerPoint 2003, or PowerPoint 2007 will embed the complete font set into the presentation.
For more information about how to embed fonts in PowerPoint presentations, see the following article:
Embed fonts in Word or PowerPoint
"Hlink.dll Can't Be Loaded" or "PowerPoint Failed to
Load Hlink.dll" in a PowerPoint presentation
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you view a PowerPoint presentation, you may receive one or both of the following error messages:
Microsoft PowerPoint "hlink .dll" can't be loaded.
Microsoft PowerPoint failed to load "hlink .dll".

Cause
This issue may occur if the Hlink.dll file is missing, is damaged, or is the wrong version.

Resolution
To resolve this issue, delete the Hlink.dll file on your hard disk drive if it exists, and then replace it. The Hlink.dll file
is stored on the Microsoft Windows CD, and you can install it with Microsoft Internet Explorer. To replace the
Hlink.dll file, use either of the following methods.

NOTE
Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are,
see your product documentation to complete these steps.

Method 1: Reinstall Internet Explorer


Note Because there are many different versions of Internet Explorer designed for many different operating systems,
use the following Microsoft Knowledge Base article to help you determine the best approach for reinstalling your
version of Internet Explorer:
318378 How to reinstall or repair Internet Explorer in Windows
Method 2: Extract the Hlink.dll File
1. Save any open files, and then quit all programs that are running.
2. Click Star t , point to Find , and then click Files or Folders .
3. In the Named box, type hlink.dll.
4. In the Look in box, make sure that drive C is selected, and then click Find Now .
5. If you find the Hlink.dll file, right-click the file, and then click Rename .
6. Rename the file from Hlink.dll to Hlink.old.
7. Insert the Microsoft Windows 2000 or Windows XP CD in the CD Drive Or DVD Drive.
8. Click Star t , and then click Run .
9. To extract the Hlink.dll file file, in the Run dialog box, type the following command line where drive is the
drive letter of the CD drive or DVD drive, and windows is the folder that contains the Windows operating
system:
expand drive:\i386 hlink .dl_ c:\windows\system32\hlink .dll
Click OK .
10. Click Star t again, and then click Run .
11. To register the Hlink.dll file manually on the 32-bit operating system, in the Run dialog box, type the
following command line where windows is the folder that contains the Windows operating system:
c:\windows\system32\regsvr32 /s c:\windows\system32\hlink .dll
Click OK .
"Not enough printer memory available to print page"
when you print a presentation in PowerPoint
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you print a presentation in Microsoft PowerPoint, you may receive the following error message:
Not enough printer memor y available to print page.

Cause
This problem can occur because the memory setting on the Microsoft Windows printer driver is too low. The
default memory setting for some printer drivers is the lowest possible setting. Therefore, this setting may be
insufficient for your print job.

Resolution
To fix this problem, reset the memory setting on the printer driver to reflect the exact amount of memory installed
on the printer in question.
To change the printer driver memory setting, follow these steps:
1. Click Start, point to Settings, and then click Printers.
2. Right-click the appropriate printer icon, and then click Properties.
3. Click the Device Options tab.
4. In the Printer Memory list, click the correct setting, and then click OK.

References
For information about how to verify the amount of memory installed on your printer, see your printer
manufacturer's user guide.
Office applications open blank from SharePoint
WebDAV or sites
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

When this problem occurs, you may also experience the following additional symptoms:
You do not receive a Basic authentication password prompt when you try to open or download the file.
You do not receive an error message when you try to open the file. The associated Office application starts, but
the selected file does not open.
This problem occurs when the following conditions are true:
The server is configured for Basic authentication.
The connection between your computer and the web server does not use Secure Sockets Layer (SSL).
By default, file operations that use Basic authentication over a non-SSL HTTP connection are disabled in Office 2010
and Office 2013 applications.
When Basic authentication is disabled, one of the following events occurs:
The client application uses a different authentication method. This occurs if the server supports a different
authentication method.
The request fails (for details about what happens when a request fails, see the list in the "Additional symptom
details" section).
If the workaround of using HTTPS instead of HTTP does not work, the resolution is to enable SSL encryption on the
web server to allow for client access over HTTPS.

NOTE
By default, Office 2010 applications can access and download files from a web server that uses Basic authentication only over
an SSL connection.

To work around this problem, let Office 2013 and Office 2010 applications connect to a web server by using Basic
authentication over a non-SSL connection.

WARNING
When you enable Basic authentication without SSL, you are subject to a significant security risk.

About Basic authentication and its security risk


Basic authentication requires users to a valid user name and password to access content. This authentication
method does not require a specific browser, and all major browsers support it. Basic authentication also works
across firewalls and proxy servers. For these reasons, it is a good choice when you want to restrict access to some,
but not all, content on a server.
However, the disadvantage of Basic authentication is that it transmits unencrypted base64-encoded passwords over
the network. If the password is intercepted over the network by a network sniffer, an unauthorized user can
determine the user name and password, and can then reuse these credentials. It is because of this security risk that
Office 2010 applications disable Basic authentication over a non-SSL connection in the default configuration.
You should use Basic authentication only when you know that the connection between the client and the server is
secure. The connection should be established either over a dedicated line or by using SSL encryption and Transport
Layer Security (TLS). For example, to use Basic authentication with WebDAV, you should configure SSL encryption.
For more information about Basic authentication, see Basic authentication and Configure Basic authentication (IIS
7).
For more information about SSL and certificates, see SSL and certificates.

Enable Basic authentication over a non-SSL connection


The following two steps describe how to enable Office 2013 and Office 2010 applications to open Office file types
directly from a server that supports only Basic authentication over a non-SSL connection. You should follow these
steps only if you are confident that the connection between the user and the web server is secure. A direct cable
connection or a dedicated line would be considered optimal for secure connections.

NOTE
For Office 2013 and Office 2010 applications, both steps are required. For other Office applications, only step 1 is required.

Step 1: Configure WebDAV Redirector on the client

NOTE
This step is required for applications in the 2007 Office suite and in Office 2013 and Office 2010.

On the client computer, configure the WebDAV Redirector to enable Basic authentication over non-SSL connections.

IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

Windows XP and Windows Ser ver 2003


To enable Basic authentication on the client computer, follow these steps:
1. Click Star t , click Run , type regedit, and then click OK .
2. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Ser vices\WebClient\Parameters
3. On the Edit menu, point to New , and then click DWORD Value .
4. Type UseBasicAuth, and then press Enter.
5. Right-click UseBasicAuth , and then click Modify .
6. In the Value data box, type 1, and then click OK .
NOTE
Basic authentication is enabled if the UseBasicAuth registry entry is set to a nonzero value. Basic authentication is
disabled if the UseBasicAuth registry entry is not present, or if the UseBasicAuth registry entry is set to 0 (zero).

The mapping is as follows:


0 - Basic authentication disabled
1 - Basic authentication enabled for SSL connections only
2 - Basic authentication enabled for SSL and non-SSL connections
7. Exit Registry Editor, and then restart the computer.
Windows Vista, Windows 7, and Windows 8
To enable Basic authentication on the client computer, follow these steps:
1. In Windows Vista or Windows 7, click Star t , type regedit in the **Start Search **box, and then press Enter.
In Windows 8, hold the Windows key (WINKEY) + F, highlight Apps in the Menu bar, type regedit in the
Search box, and then press Enter.
2. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Ser vices\WebClient\Parameters
3. On the Edit menu, point to New , and then click DWORD Value .
4. Type BasicAuthLevel, and then press Enter.
5. Right-click BasicAuthLevel , and then click Modify .
6. In the Value data box, type 2, and then click OK .
The mapping is as follows:
0 - Basic authentication disabled
1 - Basic authentication enabled for SSL connections only
2 - Basic authentication enabled for SSL and non-SSL connections
7. Exit Registry Editor, and then restart the computer.
Step 2: Update the Registry on the client

NOTE
This step is required for Office 2013 and Office 2010 applications.

On the client computer, add the BasicAuthLevel registry key and an appropriate value. To do this, follow these steps.

IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

1. Start Registry Editor.


In Windows 8, hold the Windows key (WINKEY) + F, highlight Apps in the Menu bar, type regedit in the
Search box, and then press Enter. If you are prompted for an administrator password or for confirmation,
type the password, or provide confirmation.
In Windows 7 or in Windows Vista, click Star t , type regedit in the Star t Search box, then press Enter. If
you are prompted for an administrator password or for confirmation, type the password, or provide
confirmation.
In Windows XP, click Star t , click Run , type regedit, and then click OK.
2. Locate and then click one of the following registry subkeys:
For Office 2010:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Internet
For Office 2013:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Internet
3. On the Edit menu, point to New , and then click DWORD Value .
4. Type BasicAuthLevel, and then press Enter.
5. Right-click BasicAuthLevel , and then click Modify .
6. In the Value data box, type 2, and then click OK .
The mapping is as follows:
0 - Basic authentication disabled
1 - Basic authentication enabled for SSL connections only
2 - Basic authentication enabled for SSL and for non-SSL connections
7. Exit Registry Editor, and then restart the computer.
Only the audio plays when you play a video file in a
PowerPoint slide presentation
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You insert a video file, such as a .wmv file, an .mpeg file, or an .avi file, into a Microsoft PowerPoint slide
presentation. When you play the video file, the video does not play. However, the audio plays as expected.

Cause
This issue may occur if any one of the following conditions is true:
The hardware acceleration setting of the display device is too high.
The required codec is missing or damaged.
Conflicting third-party video software is installed on the computer.
The video acceleration of Windows Media Player is too high.

Workaround
To work around this issue, use one of the following procedures, depending on your situation.
The hardware acceleration setting of the display device is too high
To work around this issue, follow these steps:
1. Click Star t , click Run , type desk.cpl, and then click OK .
2. Click the Settings tab, and then click Advanced .
3. Click the Troubleshoot tab, and then move the Hardware acceleration slider to None .
4. Click Apply , and then click OK two times.
5. If the issue is resolved after you move the Hardware acceleration slider to None , contact the manufacturer of
the graphics adaptor driver to determine whether there is an upgrade that addresses this specific issue.
The required codec is missing or damaged
To work around this issue, perform one of the following actions:
If the issue occurs when you use a .wmv file, download or reinstall the current version of Windows Media
Player. If you are using an earlier version of Windows Media Player, upgrade it to the current version of
Windows Media Player for your operating system.
If the issue occurs when you use another video file format, such as an .mpeg file or an .avi file, download or
reinstall the appropriate third-party codec. For more information, click the following article number to view
the article in the Microsoft Knowledge Base:
926373 You receive a codec error message, or audio plays but video does not play when you play media
files in Windows Media Player 11
Conflicting third-party video software is installed
To work around this issue, remove the conflicting third-party video software from the computer. This software may
be shareware or other software utilities that the Original Equipment Manufacturer (OEM) installed on the computer.
Reduce video acceleration for Microsoft Windows Media Player 9.0
To work around this issue, follow these steps:
1. On the Tools menu, click Options .
2. Click the Performance tab.
3. Click Advanced .
4. Click to remove the Use overlays check box.
5. Click OK two times.
Reduce video acceleration for Microsoft Windows Media Player 10.0 or a later version
To work around this issue, follow these steps:
1. Click Plug-ins , and then click Options .
2. Click the Performance tab.
3. Click Advanced .
4. Click to remove the Use overlays check box.
5. Click OK .
6. Click Yes when you receive the following prompt:
If you are currently playing or paused, this change might result in restarting the media from the beginning.
Do you want to apply the new settings?

More Information
For more information about how Microsoft Office PowerPoint 2003 plays multimedia files in a presentation, visit
the following Microsoft Web site:
How PowerPoint 2003 Plays Multimedia Files in a Presentation
Password to modify a presentation is required when
you open the presentation in PowerPoint
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
If you save a Microsoft PowerPoint presentation that requires a password to modify the presentation, but not a
password to open the presentation, you are still required to type a password the next time that you open the
presentation.
When you attempt to open the presentation, you receive the following message regardless of whether you intend
to modify or just open the presentation:

Password 'Filename.ppt' is reserved by 'username'.

Enter password to modify, or open read only.

You can either type the password, click Cancel to stop the file-open process, or open the file in a read-only
format.

Cause
This issue occurs because PowerPoint prompts you for any password applied to a presentation as soon as you open
the presentation file, regardless of whether the password is used to modify or just open the file.

Resolution
To resolve this issue, click Read Only when you are first prompted for a password when you open the file. If you
want to modify the presentation, type the password at this time.

More information
Methods to protect a presentation from unauthorized users
Require a password to modify the document
To allow all users to open the document but allow only authorized users to make changes to it, you can assign a
password, which the user is required to type before modifying the document. If a user modifies the document
without using the password, that user can save the document only by giving it a different file name.
If you type a password in the Password to modify box, users are prompted for a password when they open the
presentation. The presentation is opened when the user types the correct password. Or, the user can open the
presentation as read-only.
Require a password to open the document
To prevent unauthorized users from opening a document at all, you can assign a password to your presentation.
If you type a password in the Password to open box, the presentation is opened when the user types the correct
password. If the user forgets or loses the password, he or she cannot open the presentation.
How to require a password
How to require a password in Microsoft PowerPoint 2002 and in Microsoft Office PowerPoint 2003
To require a password to modify the document, follow these steps:
1. Open the presentation.
2. On the File menu, click Save As.
3. On the Tools menu, in the Save As dialog box, click Security Options.
4. In the Password to modify box, type a password, and then click OK.
5. In the Re-enter password to modify box, type the password again, and then click OK.
6. Click Save.
To require a password to open the document, follow these steps:
1. Open the presentation.
2. On the File menu, click Save As.
3. On the Tools menu, in the Save As dialog box, click Security Options.
4. In the Password to open box, type a password, and then click OK.
5. In the Re-enter password to open box, type the password again, and then click OK.
6. Click Save.
How to require a password in Microsoft Office PowerPoint 2007
To require a password to modify or to open the document, follow these steps:
1. Open the presentation.

2. Click the Microsoft Office Button , point to Save As , and then click PowerPoint Presentation .
3. Click Tools , and then click General Options .
4. In the General Options dialog box, type a password for opening or for modifying the file.
5. Click OK , and then click Save .
PowerPoint 2010 not responding, hangs or freezes
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses troubleshooting steps that can help resolve issues when you receive an "Microsoft PowerPoint
has stopped working" error, or PowerPoint hangs or freezes when you launch PowerPoint, open a file or save a file.

Cause
Problems with PowerPoint hanging, freezing or not responding may occur for one or more of the following
reasons:
This issue can occur if you have not installed the latest updates.
PowerPoint may be in use by another process.
A previously installed add-in may be interfering with PowerPoint.
You may need to repair your Office 2010 programs.
Antivirus software may be outdated, or conflicting with PowerPoint.
Advanced Troubleshooting

Resolution
Follow the provided methods in this article in order. If you have previously tried one of these methods and it did
not help, go to another method from this list:
Install the latest updates
You might need to set Windows Update to automatically download and install recommended updates. Installing
any important, recommended, and optional updates can often correct problems by replacing out-of-date files and
fixing vulnerabilities. To install the latest Office updates, see Windows Update: FAQ.
If installing the latest Office updates did not resolve your issue, continue to the next step.
Check to make sure PowerPoint is not in use by another process
If PowerPoint is in use by another process, this information will be displayed in the horizontal status bar at the
bottom of the screen. If you try to perform other actions while PowerPoint is in use, PowerPoint may not respond.
Let the task in process finish its job before attempting other actions.
If PowerPoint is not in use by another process, continue to the next step.
Investigate possible issues with add-ins
While add-ins can enhance your experience, they can occasionally interfere or conflict with PowerPoint. Try starting
PowerPoint without add-ins to see if the problem goes away. Here's how:
1. Do one of the following:
If you are running Windows XP, click Start, and then click Run.
If you are running Windows Vista or Windows 7, click Start.
2. Type PowerPoint /safe, and then click OK.
If PowerPoint doesn't launch, click Start, point to All Programs, and then point to Microsoft Office. Press and
hold the CTRL key, and then click the name of the Microsoft PowerPoint 2010.
3. If the issue is resolved, on the File menu, click Options, and then click Add-Ins.
4. Select COM Add-ins, and then click Go.
5. Click to clear all the check boxes (Disable the Add-ins) in the list, and then click OK.
6. Restart PowerPoint.
If the issue does not occur, start enabling the add-ins one at a time until the issue occurs. This will allow you to
figure out which add-in is causing the problem. Be sure and restart PowerPoint each time you enable an Add-in.
If disabling add-ins did not resolve your issue, continue to the next step. Or, PowerPoint 2013 users may also refer
to the troubleshooting steps in I get a "stopped working" error when I start Office applications on my PC
Repair your Office 2010 programs
Repairing your Office 2010 programs can resolve issues with PowerPoint not responding, hanging, or freezing by
automatically repairing errors in the file.
1. Quit any Microsoft Office programs that are running.
2. Open the Control Panel, and then open Add or Remove Programs (if you are running Windows XP) or Programs
and Features (if you are running Windows Vista or Windows 7).
3. In the list of installed programs, right-click Microsoft Office 2010, and then click Repair.
If you are using Office Click-to-Run, update, repair, or uninstall Office Click-to-Run products.
If you're not sure if the version of Office that you have is Click to Run, check your version by:
1. Open any Office product (Excel, Word, PowerPoint etc.).
2. Click on the FileTab and select Help.
3. Under "About Microsoft Office" it should say (32-bit) or (64-bit) next to the version number.
4. If you have a Click to Runversion it will be stated there.
If repairing your Office programs did not resolve your issue, continue to the next step.
Check to see if your antivirus software is up-to -date or conflicting with PowerPoint
If your antivirus software is not up-to-date, PowerPoint may not function properly.
To check whether your antivirus software is up-to-date
To keep up with new viruses that are created, antivirus software vendors periodically provide updates that you can
download from the Internet. Download the latest updates by visiting your antivirus software vendor's website.
For a list of antivirus software vendors, see Consumer antivirus software providers for Windows
To check whether antivirus software is conflicting with PowerPoint
If your antivirus software includes integration with PowerPoint , you may experience performance issues. In this
case, you can disable all PowerPoint integration within the antivirus software. Or, you can disable any antivirus
software add-ins that are installed in PowerPoint.
IMPORTANT
Changing your antivirus settings may make your PC vulnerable to viral, fraudulent, or malicious attacks. Microsoft does not
recommend that you attempt to change your antivirus settings. Use this workaround at your own risk.

You may have to contact your antivirus software vendor to determine how to configure software to exclude any
integration with PowerPoint or to exclude scanning in PowerPoint.
If updating you antivirus software, and excluding it from integrating with PowerPoint did not resolve your issue,
continue to Advanced Troubleshooting.
Advanced Troubleshooting
This section is intended for more advanced computer users. If you are not comfortable with advanced
troubleshooting, go to the More Information section.
Perform a Selective Startup to determine if another program is conflicting with PowerPoint
When you start Windows normally, several applications and services start automatically and then run in the
background. These applications and services can interfere with other software on your PC. Performing a Selective
Startup or "clean boot" can help you identify problems with conflicting applications. To perform a Selective Startup,
see How to perform a clean boot in Windows.
If performing a Selective Startup does not resolve your issue, please contact Microsoft Support.
Change the default printer
PowerPoint loads a default printer, and changing this setting may resolve the issue:
1. Open the Control Panel, open Hardware and Sound, and then open Devices and Printers.
2. In the list of printers, right click either the Microsoft XPS Document Writer or Send to OneNote.
3. Select Set as default printerfrom the menu.

More Information
If the information in this knowledge base article did not help resolve your issue in PowerPoint 2010, select one of
the following options:
More Microsoft online articles: Perform a search to find more online articles about this specific error.
Help from the Microsoft Community online community: Visit the Microsoft community and post your question
about this error.
Contact Microsoft support: Find the phone number to contact Microsoft Support.
PowerPoint 2013 does not print in Pure Black and
White mode
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you print a Microsoft Office PowerPoint 2013 presentation by selecting Pure Black and White in the print
settings, the printer prints in grayscale instead.
Note This issue does not occur in Microsoft XPS Document Writer.

Resolution
Impor tant
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before
you modify it, back up the registry for restoration in case problems occur.
To resolve this issue manually, follow these steps:
1. Click Star t , type regedit in the Star t Search box, and then click OK .
2. Locate and then select the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\PowerPoint
3. On the Edit menu, point to New , and then click DWORD Value .
4. Type IgnoreDevModeColor, and then press Enter.
5. In the Details pane, right-click IgnoreDevModeColor , and then click Modify .
6. In the Value data box, type 1, and then click OK .
7. Exit Registry Editor.

More Information
To resolve this issue in PowerPoint 2010, you must apply the following hotfix or Office 2010 Service Pack 2 before
you make the registry setting that is described in Method 2:
2466273 Description of the PowerPoint 2010 hotfix package (powerpoint-x-none.msp) December 14, 2010
2687455 Description of Office 2010 Service Pack 2
PowerPoint files not rendering in Office Online Server
after Security Update
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After patching Office Online Server to the May or June 2019 security update, PowerPoint files do not render, under
what appears to be random circumstances during Skype for Business sharing sessions, and displays the following
error:

Sorry, PowerPoint Online ran into a problem opening this presentation. To view this presentation please open it
in Microsoft PowerPoint.

Also, while attempting to render PowerPoint in the browser, you might see a similar error message before or after
scrolling through slides:
The exact circumstances of the issue are not necessarily limited to the above scenarios. Also, the error may be
present for issues other than those listed in this article.

Cause
Issue was introduced to the product in the May and June 2019 security updates for Office Online Server.

Resolution
This issue was resolved as part of the August 2019 Security Update for Office Online Server, but some steps must
be taken to ensure functionality after the patch. This is currently the only supported resolution for the issue:
1. Remove all Office Online Servers from the farm (all servers must be removed at the same time).
2. Install the August 2019 Security update on all OOS servers but do NOT rebuild the farm yet.
https://support.microsoft.com/en-us/help/4475528/security-update-for-office-online-server-august-13
3. Clear the caches on each Office Online Server:

a. Navigate to the cache location (note that this can change if you did not install OOS on the root drive):

C:\ProgramData\Microsoft\OfficeWebApps\Working

b. Delete the "d" and "waccache" folders.


4. Add the Office Online Servers back to the farm.
5. Verify that the PowerPoint files appear as expected.

More information
Still need help? Go to Microsoft Community.
"Microsoft PowerPoint has encountered a problem
and needs to close" in PowerPoint for Mac startup
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to start PowerPoint for Mac, you may receive the following error message:
Microsoft PowerPoint has encountered a problem and needs to close. We are sorr y for the
inconvenience.

Cause
This behavior may occur if any one of the following conditions is true:
PowerPoint preferences are corrupted.
Programs running in the background are interfering with PowerPoint.
Application files are corrupted.
A user account profile is corrupted.

Resolution
To resolve this issue, follow these steps. You may find it helpful to print this article before you continue.
Step 1: Quit all applications and close all windows
1. On the Apple menu, click Force Quit .
2. Select an application in the "Force Quit Applications" window.

NOTE
You cannot quit Finder.

3. Click Force Quit .

4. Repeat the previous steps until you quit all active applications.
WARNING
When an application is force quit, any unsaved changes to open documents are not saved.

When you are finished, click the red button in the upper-left corner of the screen, and then go to "Step 2."
Step 2: Remove PowerPoint Preferences
1. Quit all Microsoft Office for Mac applications.
2. On the Go menu, click Home .
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open the Preferences folder.


5. Look for a file that is named com.microsoft.powerpoint.plist. If you locate the file, move it to the desktop.
Start PowerPoint, and check whether the problem still occurs. If you cannot locate the file, the application is
using the default preferences.
6. If the problem still occurs, quit PowerPoint, and restore the file to its original location. Then, go to the next
step. If the problem seems to be resolved, you can move the com.microsoft.powerpoint.plist file to the trash.
7. Quit all Microsoft Office for Mac applications.
8. On the Go menu, click Home .
9. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

10. Open the Preferences folder.


11. Open the Microsoft folder.
12. Look for a file that is named com.microsoft.powerpoint.prefs.plist. If you locate the file, move it to the
desktop. Start PowerPoint, and check whether the problem still occurs. If you do cannot locate the file,
the application is using the default preferences.
13. If the problem still occurs, quit PowerPoint, and restore the file to its original location. Then, go to the next
step. If the problem seems to be resolved, you can move the com.microsoft.powerpoint.prefs.plist file to the
trash.
If the problem continues to occur, go to the next step.
Step 3: Perform a clean startup
For information how to "clean start" your computer, click the following article number to view the article in the
Microsoft Knowledge Base:
2398596 How to use a "clean startup" to determine whether background programs are interfering with Office for
Mac
If the problem continues to occur, go to the next step.
Step 4: Create a new user account
Sometimes, a specific user's information may become corrupted, and this may prevent installation, startup, or use
of some applications. To determine whether this is the case, you can log on to the computer by using a different or
new user account, and then test the application.
If the problem no longer occurs, the cause exists within the user's home folder. If you think that the user account
was responsible, you can continue to troubleshoot by using the new user account.

NOTE
For help moving your user files to the new account, contact Apple.

If the problem continues to occur, go to the next step.


Step 5: Use the "Repair Disk Permissions" option
You can use the Repair Disk Permissions option to troubleshoot permissions problems in Mac OS X 10.2 and later
versions. If the permissions for your Microsoft software are incorrect, Office for Mac applications may start slowly
or perform slowly. To use the Repair Disk Permissions option, follow these steps:
1. On the Go menu, click Utilities.
2. Start the Disk Utility program.
3. Click the primary hard disk drive for your computer.
4. Click the First Aid tab.
5. Click Repair Disk Permissions.

NOTE
The Disk Utility program only repairs software that is installed by Apple. This utility also repairs folders, such as the
Applications folder. However, this utility does not repair software that is in your home folder.

Step 6: Remove and then reinstall Office


For information about how to manually remove and then reinstall Office, see the following article:
Troubleshoot Office 2011 for Mac issues by completely uninstalling before you reinstall

Third-party disclaimer information


The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
The information and the solution in this document represent the current view of Microsoft Corporation on these
issues as of the date of publication. This solution is available through Microsoft or through a third-party provider.
Microsoft does not specifically recommend any third-party provider or third-party solution that this article might
describe. There might also be other third-party providers or third-party solutions that this article does not describe.
Because Microsoft must respond to changing market conditions, this information should not be interpreted to be a
commitment by Microsoft. Microsoft cannot guarantee or endorse the accuracy of any information or of any
solution that is presented by Microsoft or by any mentioned third-party provider.
PowerPoint stops responding (spinning wheel)
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a PowerPoint for Mac presentation or application it either hangs with spinning wheel or does
not open at all.

Resolution
To resolve this issue, follow steps in this article.
Step 1: Check Hard Disc name
Check to ensure the Hard Drive icon has a name to it. The name should not be all numbers but can have numbers
in it as along as the name starts with a text character(s). There should be no special characters like, periods,
commas, semi-colons, quotes, etc.
1. Quit all applications.
2. On the Go menu, click Computer. Your hard drive should be listed. The common name of the hard drive is
"Macintosh HD". E.g. "Mac HD 1" <without quotes is appropriate> "1 Mac HD" <this is not an appropriate name
as the number 1 appears at the start of the name>.
To rename your hard disk:
1. Click to select the hard disk.
2. On the File menu, click Get Info.
3. In the Name & Extension type or edit the name. For example, type Macintosh HD.
4. When done, click the red circle button on top.
Step 2: Move AutoRecovery files

IMPORTANT
The location of certain files are different if you have Service Pack 2 (SP2) installed. To check if it is installed, open PowerPoint,
and then click About PowerPoint from the PowerPoint menu. If the version number is 14.2.0 or above, you have Service Pack
2 and you should follow the Service Pack 2 steps when provided in this article.

If there are too many PowerPoint items in this folder user\Documents\Microsoft User Data\Office 2008
AutoRecovery or Office 2011 AutoRecovery these files will load into memory when Powerpoint launches and can
cause memory issues as well as file save issues.
Move AutoRecovery files to the Desktop or another folder to see if they are causing the problem.
To empty the AutoRecovery folder, follow these steps if you have version 14.2.0 (also known as Service Pack 2)
installed:
1. Quit all applications.
2. One the File menu, click New Folder. A new folder is created on the desktop. The folder will be called "New
Folder."
3. On the Go menu, click Home.
4. Open Library.

NOTE
The Library folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key while you click the Go
menu.

5. Open Application Support, and then open Microsoft.


6. Open Office 2011 AutoRecovery.
7. On the Edit menu, click Select All.
8. Drag all files into "New Folder" on the desktop.
The AutoRecovery folder should be empty.
9. Open Excel for Mac 2011 and try to save a file.
If you can save a file, review the contents of "New Folder" to decide which files that you want to keep.
If the problem continues to occur, go to the next method.
To empty the AutoRecovery folder, follow these steps if you do not have Service Pack 2 installed:
1. Quit all applications.
2. On the File menu, click New Folder. A new folder is created on the desktop. The folder will be called "New
Folder."
3. On the Go menu, click Documents.
4. Open Microsoft User Data, and then open Office 2011 AutoRecovery.
5. On the Edit menu, click Select All.
6. Drag all files into "New Folder" on the desktop.
The AutoRecovery folder should be empty.
7. Open Excel for Mac 2011 and try to save a file.
If you can save a file, review the contents of "New Folder" to decide which files that you want to keep.
If the problem continues to occur, go to the next method.
Step 3: Remove PowerPoint Preferences

NOTE
If you have used the software at all on this computer then removing the preferences may reset any customizations that you
have made. These customizations include changes made to toolbars, custom dictionaries and keyboard shortcuts that have
been created.

1. Quit all Microsoft Office for Mac programs.


2. On the Go menu, click Home.
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open the Preferences folder.


5. Look for a file that is named com.microsoft.powerpoint.plist.
6. If you locate the file, move it to the desktop. If you do not locate the file, the program is using the default
preferences.
7. If you locate the file and move it to the desktop, start PowerPoint, and check whether the problem still
occurs. If the problem still occurs, quit PowerPoint, and restore the file to its original location. Then, go to the
next step. If the problem seems to be resolved, you can move the com.microsoft.powerpoint.plist file to the
trash.
8. Quit all Microsoft for Mac programs.
9. On the Go menu, click Home.
10. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

11. Open the Preferences folder.


12. Open the Microsoft folder.
13. Look for a file that is named com.microsoft.powerpoint.prefs.plist.
14. If you locate the file, move it to the destop. If you do not locate the file, the program is using the default
preferences.
15. If you locate the file and move it to the destop, start PowerPoint, and check whether the problem still occurs.
If the problem still occurs, quit PowerPoint, and restore the file to its original location. Then, go to the next
step. If the problem seems to be resolved, you can move the com.microsoft.powerpoint.prefs.plist file to the
trash.
16. Quit all Microsoft Office for Mac programs.
17. On the Go menu, click Home.
18. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

19. Open the Preferences folder.


20. Open the Microsoft folder.
21. Open the Office 2008 or Office 2011 folder.
22. Look for a file named PowerPoint Toolbars (12) or Microsoft PowerPoint Toolbars.
23. If you locate the file, move it the desktop. If you do not locate the file, the program is using the default
preferences.
24. If you locate the file and move it to the desktop, start PowerPoint, and check whether the problem still
occurs. If the problem still occurs, quit PowerPoint, and restore the file to its original location. Then, go to the
next step. If the problem seems to be resolved, you can move the PowerPoint Toolbars (12) file to the trash.
If the issue continues to occur, proceed to the next step.
Step 4: Create a New User Account
Sometimes, a user's specific information may be corrupted. To determine if this is the case, you can log on as a new
user or create a new user account, and then test an application.
If the issue occurs even in new user account, proceed to the next step.
Step 5: Test saving the file in Safe Mode
For information on how to enter Safe Boot in Mac OS, see Perform a clean startup (Safe boot) to determine
whether background programs are interfering with Office for Mac.
If you are able to save in Safe Mode, then the problem most likely related to programs that are running in the
background.
Keyboard shortcuts to turn display of grid and guides
on and off in PowerPoint
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The grid and guides features help you line up text and objects while creating Microsoft PowerPoint presentations.
This article tells you how to use keyboard shortcuts to quickly turn these features off and on.

More Information
The keyboard shortcuts for the grid and guides in PowerPoint 2002 are: ||| |------------|------------| |Display Grid and
Guides dialog box|CTRL+G| |Show or hide grid|SHIFT+F9| |Show or hide guides|ALT+F9| |Turn snap-to grid option
on or off|CTRL+SHIFT+F9|
The keyboard shortcuts for the grid and guides in PowerPoint 2007 are:

Show or hide grid SHIFT+F9

Show or hide guides ALT+F9

Turn snap-to grid option on or off CTRL+SHIFT+F9


Sounds missing after a PowerPoint presentation is
saved as video
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you save a Microsoft PowerPoint 2010 presentation as a video, any slide transition sounds that were used in
the presentation are missing. When you view the video, there are no slide transition sounds.

Workaround
To work around this missing slide transition sound issue, remove the transition sounds, and then add the sounds
directly to the slide. The sounds can then be set to play across slides and be triggered just before slide transitions to
the next slide.

NOTE
This workaround only works if the presentation uses slide timings to advance to the next slide.

1. Open the presentation in PowerPoint 2010.


2. Locate the slides with the transition sounds. On the Transitions tab, set Transition Sound to [No Sound] .
3. Under Advance Slide , note the slide duration time in the Automatically after box.
4. On the Inser t tab, in the Media Clips group, under Sound , click either Sound from file or Sound from
Clip Organizer .
5. Insert the sound that you want to play across the slide transition.
6. Click Automatically when you are prompted.
7. Under Sound Tools , click the Options tab.
8. In the Sound Options group, select the Hide During Show check box.
9. Under the Animations tab, in the Animations group, click Custom Animation .
10. In the Custom Animation pane, right-click the sound file that is listed in the animations list, and then click
Timing .
11. Set the Star t drop-down list to After Previous .
12. In the Delay field, enter a value that is equal to the slide duration time minus 1 second. You noted the slide
duration time in step 3. For example, if the slide advances after 40 seconds, you would set the Delay value to
39 seconds.
13. Click OK .
14. Repeat steps 2 through 13 for each slide transition that has a transition sound.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
How to troubleshoot a damaged presentation in
PowerPoint
3/30/2020 • 12 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
You may experience unexpected behavior when you work with a Microsoft PowerPoint presentation. This behavior
may occur because the presentation is damaged. This article contains step-by-step methods that may help you
partly or fully restore your presentation.
This article is intended for a beginning to intermediate computer user. You may find it easier to follow the steps if
you print this article first.

Symptoms
When you try to open or change a presentation that is damaged, you may experience the following symptoms:
When you try to open a presentation, you receive one of the following error messages:
This is not a PowerPoint Presentation
PowerPoint cannot open the type of file represented by <file_name>.ppt
Par t of the file is missing.
You receive the following kinds of error messages:
General Protection Fault
Illegal Instruction
Invalid Page Fault
Low system resources
Out of memor y

More Information
How to determine whether you have a damaged presentation
There are several ways to determine whether you have a damaged presentation. You can try to open the file on
another computer that has PowerPoint installed to see whether the unexpected behavior occurs on the other
computer. You can try to create a new file in PowerPoint and see whether the unexpected behavior occurs with the
new file. This section describes how to use existing presentations and how to create a new file in PowerPoint to
determine whether the presentations have the same behavior.
Method 1: Open an existing presentation
1. On the File menu, select Open .
In PowerPoint 2007 select the Microsoft Office Button .
2. Select a different presentation, and then select Open.
If this presentation opens and seems to be undamaged, go to Method 3 in this section. Otherwise, go to Method 2
to create a new presentation.
Method 2: Create a new presentation
St e p 1 : C r e a t e t h e p r e se n t a t i o n

1. On the File menu, select New , and then Welcome to PowerPoint (or Introducing PowerPoint 2010 ).
In PowerPoint 2007, select Installed Templates , and then select Introducing PowerPoint 2007 .
2. Select Create . This process creates a presentation that is based on the template.
3. On the File menu, select Save .
In PowerPoint 2007 select the Microsoft Office Button , and then select Save .
4. Type a name for the presentation, and then select Save .
5. Exit PowerPoint.
St e p 2 : O p e n t h e n e w p r e se n t a t i o n

1. On the File menu, select Open .


In PowerPoint 2007 select the Microsoft Office Button , and then select Open .
2. Select the new presentation, and then select Open .
If you cannot open or save the new presentation, go to Method 3.
If you cannot create a new presentation, PowerPoint may be damaged and a repair should be initiated. (See Method
3, Part 2 below.)
Method 3: General troubleshooting
W i n d o w s 1 0 , W i n d o w s 8 .1 , W i n d o w s 8 , a n d W i n d o w s 7

Par t 1
This procedure allows your computer to restart without startup add-ons. For a clean restart, follow these steps:
1. Sign in to the computer by using an account that has administrator rights.
2. Select Start, type msconfig.exe in the Start Search box, and then press Enter to start the System
Configuration utility.

NOTE
If you are prompted for an administrator password or for confirmation, you should type the password or provide
confirmation.

3. On the General tab, select the Selective star tup option, and then clear the Load star tup items check
box. (The Use Original Boot.ini check box is unavailable.)
4. On the Services tab, select the Hide all Microsoft services check box, and then select Disable all.

NOTE
This step lets Microsoft services continue to run. After you do a clean restart, you should check Office performance
and then resume usual startup.

Par t 2
This procedure will cause the Office program to check for issues and repair itself.
1. Select the Star t button and type Control Panel.
2. Open the Control Panel, go to Uninstall or change a program (or Add or Remove Programs ).
3. Scroll through the list of programs and find your version of Microsoft Office. Right-select and then select
Change .

NOTE
We suggest that you do the online repair option.

Methods to try if you cannot open a presentation


Method 1: Drag the presentation to the PowerPoint program file icon
W i n d o w s 1 0 , W i n d o w s 8 .1 , a n d W i n d o w s 8

1. Right-click the Windows icon on the Taskbar, and then select Run.
2. Type one of the following depending on your version of PowerPoint:

%ProgramFiles%\Microsoft Office
%ProgramFiles(x86)%\Microsoft Office

3. Select the Enter key.


4. Locate the Powerpnt.exe icon in Windows Explorer.
5. Drag the damaged presentation icon from one window to the Powerpnt.exe icon in the other window.
PowerPoint will try to open the presentation. If PowerPoint does not open the presentation, go to Method 2.
W indow s 7

1. Select Start, and then select Documents. Or select Start and then search for Windows Explorer.
2. If you have the MSI version of PowerPoint 2013 installed, type %ProgramFiles%\Microsoft Office\office15
(PowerPoint 2013 64 bit) or %ProgramFiles(x86)%\Microsoft Office\office15 (PowerPoint 2013 32 bit), and
then press Enter.
If you have PowerPoint 2013 Select-to-Run installed, type C:\Program Files\Microsoft Office 15\root\office15
(PowerPoint 2013 64 bit) or C:\Program Files(x86)\Microsoft Office 15\root\office15 (PowerPoint 2013 32
bit), and then press Enter.
If you have the MSI version of PowerPoint 2016 installed, type %ProgramFiles(x86)%\Microsoft
Office\office16, and then press Enter.
If you have PowerPoint 2016 Select-to-Run installed, type %ProgramFiles%\Microsoft Office\root\Office16
(PowerPoint 2016 64 bit) or %ProgramFiles(x86)%\Microsoft Office\root\Office16 (PowerPoint 2016 32 bit),
and then press Enter.
3. Locate the Powerpnt.exe icon in Windows Explorer.
4. Drag the damaged presentation icon from one window to the Powerpnt.exe icon in the other window.
Method 2: Try to insert slides into a blank presentation
St e p 1 : C r e a t e a b l a n k p r e se n t a t i o n

1. In the File menu, select New.


In PowerPoint 2007, click the Microsoft Office Button , and then click New .
2. Select Blank Presentation, and then select Create.
This process creates a blank title slide. You can delete this slide later after you re-create the presentation.
St e p 2 : I n se r t t h e d a m a g e d p r e se n t a t i o n a s sl i d e s
1. On the Home tab, select the arrow next to New slides in the Slides group, and then select Reuse Slides.
2. In the Reuse Slides task pane, select Browse. Select the damaged presentation, and then select Open.
3. Select Inser t Slide for each slide in the damaged presentation.
4. In the File menu, select Save.
In PowerPoint 2007 click the Microsoft Office Button , and then click Save .
5. Type a new name for the presentation, and then select Save.
St e p 3 : A p p l y t h e d a m a g e d p r e se n t a t i o n a s a t e m p l a t e

If the presentation does not look the way that you expect after you try these steps, try to apply the damaged
presentation as a template. To do this, follow these steps:
1. On the File menu, select Save as.
In PowerPoint 2007 click the Microsoft Office Button , and then click Save as .
2. Type a new name for the presentation, and then select Save.

NOTE
This will make a backup copy of the restored presentation that you can use in case the damaged presentation
damages this new presentation.

3. On the Design tab, select More in the Themes group, and then select Browse for Themes.
4. Select the damaged presentation, and then select Apply. The slide master of the damaged presentation
replaces the new slide master.

NOTE
If you start to experience unexpected behavior after you follow these steps, the template may have damaged the
presentation. In this case, use the backup copy to re-create the master slide.

If the backup copy of the new presentation exhibits the same damage or strange behavior as the original
presentation, go to Method 3.
Method 3: Try to open the temporary file version of the presentation
When you edit a presentation, PowerPoint creates a temporary copy of the file. This temporary file is named PPT
####.tmp.

NOTE
The placeholder #### represents a random four-digit number.

This temporary file may be located in the same folder as the location to which the presentation is saved. Or it may
be located in the temporary file folder.
R e n a m e t h e fi l e , a n d t h e n t r y t o o p e n t h e fi l e i n P o w e r P o i n t

1. Right-select the file, and then select Rename.


2. Change the old file-name extension from .tmp to .pptx so that the file name resembles the following file
name:
PPT ####.pptx
3. Start PowerPoint.
4. On the File menu, select Open.
5. Browse to the folder that contains the renamed file.
6. Try to open the file in PowerPoint.

NOTE
More than one file may correspond to the temporary file that was created the last time that you saved the presentation. In
this case, you may have to open each file to see whether one is the temporary copy of the presentation.

If there are no temporary files, or if the temporary files display the same kind of damage or strange behavior, go to
Method 4.
Method 4: Make a copy of the damaged presentation
1. Right-select the presentation, and then select Copy.
2. In the Windows Explorer window, right-select in a blank space, and then select Paste.
If you cannot copy the file, the file may be damaged, or the file may reside on a damaged part of the computer's
hard disk. In this case, go to Method 5.
If you can copy the file, try to open the copy of the damaged presentation in PowerPoint. If you cannot open the
copy of the damaged presentation, try to repeat Method 1 through Method 5 in the "Methods to try if you cannot
open a presentation" section below by using the copy of the damaged presentation.
Method 5: Run Error Checking on the hard disk drive
W i n d o w s 1 0 , W i n d o w s 8 .1 , a n d W i n d o w s 8

1. Exit all open programs.


2. Right-click the Star t menu and select File Explorer .
3. Right-select the hard disk drive that contains the damaged presentation.
4. Select Properties, and then select the Tools tab.
5. In Error-checking, select Check Now.
6. Select the check box Automatically fix file system errors.
7. Select the check box Scan for and attempt recovery of bad sectors.
8. Select Start.
W indow s 7

1. Exit all open programs.


2. Select Start, and then select Computer.
3. Right-click the hard disk drive that contains the damaged presentation.
4. Select Properties, and then select the Tools tab.
5. In Error-checking, select Check Now.
6. Select to select the Automatically fix file system errors check box.
7. Select to select the Scan for and attempt recovery of bad sectors check box.
8. Select Start.

NOTE
Error checking may verify that the presentation is cross-linked and attempt to repair the presentation. However, this is not a
guarantee that PowerPoint will be able to read the presentation.

Methods to try if you can open a damaged presentation


Method 1: Try to apply the damaged presentation as a template
St e p 1 : C r e a t e a b l a n k p r e se n t a t i o n

1. On the File menu, select New .


In PowerPoint 2007, select the Microsoft Office Button , and then select New .
In PowerPoint 2007, select the Microsoft Office Button , and then select New .
2. Select Blank Presentation , and then select Create . This process creates a blank title slide. (You can delete this
slide after you re-create the presentation.)
St e p 2 : I n se r t t h e d a m a g e d p r e se n t a t i o n i n t o t h e b l a n k p r e se n t a t i o n

1. On the Home tab, select the arrow next to New slides in the Slides group, and then select Reuse Slides .
2. In the Reuse Slides task pane, select Browse .
3. Select the damaged presentation, and then select Open .
4. Select Inser t Slide for each slide in the damaged presentation.
5. Select the Microsoft Office button, and then select Save .
6. Type a new name for the presentation, and then select Save.
St e p 3 : A p p l y t h e d a m a g e d p r e se n t a t i o n a s a t e m p l a t e

If the presentation does not look the way that you expect it to look after you try follow these steps, try to apply the
damaged presentation as a template. To do this, follow these steps:
1. On the File menu, select Save as .
In PowerPoint 2007, select the Microsoft Office Button , and then select Save as .
1. Type a new name for the presentation, and then select Save .

NOTE
This will make a backup copy of the restored presentation that you can use in case the damaged presentation
damages this new presentation.

2. On the Design tab, select More in the Themes group, and then select Browse for Themes .
3. Select the damaged presentation, and then select Apply . The slide master of the damaged presentation
replaces the new slide master.

NOTE
If you start to experience unexpected behavior after you follow these steps, the template may have damaged the
presentation. In this case, use the backup copy to re-create the master slide.

If the backup copy of the new presentation still displays damage or strange behavior, go to Method 2.
Method 2: Transfer the slides from the damaged presentation to a blank presentation
St e p 1 : C r e a t e a b l a n k p r e se n t a t i o n

1. On the File menu in PowerPoint, select Open .


In PowerPoint 2007, select the Microsoft Office Button , and then select Open .
2. Locate the damaged presentation, and then select Open .
3. On the File menu in PowerPoint, select New .
In PowerPoint 2007, select the Microsoft Office Button , and then select New .
4. Select Blank Presentation , and then select Create . This process creates a blank title slide.
St e p 2 : C o p y sl i d e s fr o m t h e d a m a g e d p r e se n t a t i o n t o t h e n e w p r e se n t a t i o n

1. On the View tab, select Slide Sor ter . If you receive error messages when you switch views, try to use
Outline view.
2. Select a slide that you want to copy. On the Home tab, select Copy .
NOTE
If you want to copy more than one slide at a time, hold down the Shift key, and then select each slide that you want
to copy.

3. Switch to the new presentation. To do this, on the Window tab, select Switch Window in the View group,
and then select the new presentation that you created in step 1.
4. On the View tab, select Slide Sor ter .
5. On the Home tab, select Paste .
6. Repeat steps 2a through 2f until the whole presentation is transferred.

NOTE
In some cases, one damaged slide may cause a problem for the whole presentation. If you notice unexpected behavior in the
new presentation after you copy a slide to the presentation, that slide is likely to be damaged. Re-create the slide, or copy
sections of the slide to a new slide.

If the new presentation shows damage or strange behavior, go to method 3.


Method 3: Save the presentation as a Rich Text Format (RTF) file
If there is damage throughout the presentation, the only option to recover the presentation may be to save the
presentation as a Rich Text Format (RTF) file. If this method is successful, it recovers only the text that appears in
Outline view.
St e p 1 : Sa v e t h e p r e se n t a t i o n i n t h e R T F fi l e fo r m a t

1. Open the presentation.


2. On the File menu, select Save As , select a location to save the file, and then select More options .
In PowerPoint 2007, select the Microsoft Office Button , select Save As , and then select Other
Formats .
3. In the Save as type list, select Outline/RTF(*.r tf ) .
4. In the File Name box, type the name that you want to use, select a location in which to save the presentation,
and then select Save .
5. Close the presentation.

NOTE
Any graphics, tables, or other text in the original presentation will not be saved in the .rtf file.

St e p 2 : O p e n t h e .r t f fi l e i n P o w e r P o i n t

1. On the File menu, select Open .


2. In the Files of type list, select All Outlines or All Files .
3. Select the .rtf file that you saved in step 1d, and then select Open .
This procedure will re-create the presentation based on the original presentation's outline view.
Fixed: You can't embed an online video in a
PowerPoint 2013 presentation
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
1. In PowerPoint 2013.
2. Insert Ribbon > Video > Online Video
3. The dialog that comes up only displays OneDrive, and Facebook.
In this scenario, you will not be prompted with an error but will see the following dialog:

The options that are missing are; Bing Video Search, YouTube, and From a Video Embed Code.

Resolution
This has been resolved with the April Updates, please download the updates here:
2837627 Description of the PowerPoint 2013 update 2837627: April 8, 2014
2817636 Description of the Office 2013 update 2817636: April 8, 2014
Please note that the YouTube and From a Video Embed Code options appear in the Online Video dialog box
regardless of whether you have the updates installed. However, you must install these two updates in order to
insert or play back YouTube videos correctly. In addition, the Bing Video Search section will no longer appear in
the Online Video dialog box.
For more information, please see the following blog:
Support for YouTube videos in PowerPoint returns.
When you try to optimize a presentation, some
videos are listed as "Unsupported" in the Compress
Media dialog box in PowerPoint 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to optimize a presentation that contains one or more videos in Microsoft PowerPoint 2010, the
Compress Media dialog box lists the status of the videos as "Unsupported."

Cause
This issue occurs when a video's width or height is not evenly divisible by 4. For example, a video that has a width
of 640 pixels and a height of 489 pixels cannot be compressed in PowerPoint 2010.
If the video already satisfies the previous criteria, you may need additional third-party codecs to compress or play
the video.

Workaround
To work around this issue, you must use videos that have width and height dimensions that are evenly divisible by
4.
If the presentation was created on a different computer, you can try to compress the presentation on that computer
before you open the presentation on the current computer. If that computer is not available, or the current
computer's configuration has changed, you have to install the video codecs that were used on the original
computer from a third-party source.
"Cannot save to Global.mpt" when exiting Microsoft
Project
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you exit Microsoft Project while the Global.mpt template is opened as read-only, you receive the following
error message:

Cannot save to 'Global.mpt'. This is a read-only file. You can view and copy information but you cannot save
changes to this file under its current name. If you want to save changes to the file, choose Save As and rename
the file.

Cause
This error message occurs when the Global.mpt file that Microsoft Project is using is read-only and when you've
changed formatting options or macros.
Note This file is a template. It does not contain any data from the project that you are working on.

Workaround
If you have changed formatting options (views, tables, filters, group, reports) or macros, then save the file as
Global.mpt to a folder where you have read-write permissions. If you do not want to save any changes, click Cancel
in the dialog box. This does not cause loss of project data.

More Information
The Global.mpt file has read-only permissions when any of the following conditions are true:
The Global.mpt file is stored on a network share where another user is using the file.
The Global.mpt file is stored in a read-only network location.
The Global.mpt file is read-only.
Project searches for the Global.mpt file in the following locations:
The current folder
If the user has a shortcut that specifies the "Start In" folder, and if a Global.mpt file resides there, Project
opens that Global.mpt file. If the user double-clicks a project in Windows Explorer when Project is not
already open, Project uses the Global.mpt file if it is saved in that particular folder,
The user's profile folder
Project looks in the "Application Data" folder under the user's profile. For example, on a computer that is
running Microsoft Windows 98 with User Profiles turned on, this location is as follows:
\Users\Username\Application Data\Microsoft\MS Project
The user's profile language folder
This folder is the language ID subfolder in the "Application Data" folder for the user profile. For example, on
a computer that is running Windows 98 with User Profiles turned on, this folder is typically found in the
following location if the user's language is English:\Users\Username\Application Data\Microsoft\MS
Project\1033
The folder where the Winproj.exe file is located
By default, the Project application is installed in the following folder:
\program files\Microsoft Office\Office
The Winproj.exe language folder
By default, this folder is found in the following location:
\program files\Microsoft Office\Office\1033
If Project opens the Global.mpt file from this location, Project does not save changes to this copy. Instead,
Project saves them to the profile language folder. By default, Project opens the Global.mpt file from this
location the first time Project is started.
If the Global file is not found in any of these locations, Microsoft Windows Installer starts and tries to restore
a copy to the Winproj.exe language folder.
If Windows Installer is unable to restore a copy of the Global.mpt file, Project displays a message that states
that it will create a new Global.mpt file that may be missing some items.
How work and duration are calculated with
assignment changes
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how work and duration are calculated when you make resource assignment changes.

More Information
When you make multiple resource assignment changes on an Effort Driven task within the same edit session,
Microsoft Project calculates work using the following formula:
Work = Total Work * (Resource Units/Total Resource Units)
For example, if you have a 2-day (2d) duration task where a resource (R1) is assigned 200%, the 2d duration task
calculates to 32 hours (32h) of work. If you add a new resource (R2) to the task, then Microsoft Project calculates
work and duration for each resource in the following manner:
Resource R1 Work:

21.33h = 32h Total Work * (200% R1 Units/300% Total Units)

Resource R2 Work:

10.67 = 32h Total Work * (100% R2 Units/300% Total Units)

NOTE: Total Units (300%) is calculated by adding the R1 resource unit (200%) and the R2 resource unit (100%).
Task T1 Duration Calculation:

2.67d = 21.33h (R1 Total Work)/100% (R1 Units based on 8 hour day)

1.33d = 10.67h (R2 Total Work)/100% (R2 Units based on 8 hour day)

The duration of the task changes from 2d to 2.67d due to the length of time necessary for the driving resource to
complete it's assigned work. The driving resource for a task is determined to be the highest ratio of Work/Units for
all resource assignments on a task. In this example, R1 is the driving resource because 2.67d is higher than 1.33d.
Based on an 8-hour day, it will take R1 2.67d to complete 21.33h of work.
Steps to Reproduce Behavior in Project 2013
1. Create a new Blank Project
2. Set new task to be Auto Scheduled. Enter a new task called T1 with a duration of 2days.
3. On the View ribbon, in the Split Viewsection, uncheck Timeline and check Details.
4. Right click in the Detail pane and click Schedule.
5. For the remaining steps use the Project 2010 from step 6.
Steps to Reproduce Behavior in Project 2010
1. Create a new Blank Project.
2. Set New Tasks to Auto Scheduled. Enter a new task, T1. Set the duration to 2 days.
3. On the View tab, click the check box for Details View to split the window.
4. Press F6. The lower pane becomes the active pane.
5. On the Format tab, click Schedule.
6. Click to seclect the Effort Driven check box, and then click OK
7. Press F6. The upper pane becomes the active pane.
8. Select the T1 task.
9. On the Resource tab, click Assign Resources.
10. In the Assign Resource dialog boc, enter two resources, R1 and R2.
11. Select R1. In the units column type 200%, and then click Assign.
NOTE The lower pane R1 is assigned 200% for 32h of work.
12. Select R2, and then click Assign. Click Close.
NOTE The lower pane R1 is assigned 100% for 21.33h of work while R2 is assigned 100% for 10.67h of
work.
Steps to Reproduce Behavior in Project 2007 and earlier versions
1. On the File menu, click New. If you receive the Summary Information dialog box, click OK.
2. Enter a new task, T1. Set tje duration to 2 days.
3. On the Window menu, click Split.
4. Press F6.
The lower pane becomes the active pane.
5. On the Format menu, point to Details, and then click Resource Schedule.
6. Click to select the Effort Driven check box, and then click OK.
7. Press F6.
The upper pane becomes the active pane.
8. Select the T1 task.
9. On the Tools menu, point to Resources, and then click Assign Resources.
10. In the Assign Resources dialog box, enter two resources, R1 and R2.
11. Select R1. In the units column type 200%, and then click Assign.
NOTE The lower pane R1 is assigned 200% for 32h of work.
12. Select R2, and then click Assign. Click Close.
NOTE The lower pane R1 is assigned 100% for 21.33h of work while R2 is assigned 100% for 10.67h of
work.
Error occurs when you add or edit a Resource in
Enterprise Resource Pool
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you attempt to Save a resource to the Enterprise Resource Pool, you may receive the following error
message:

"The resource could not be saved due to the following reasons: The resource account is already in use."

Cause
You receive this message when all three conditions listed below are met:
1. The Project Web App site has been shared with the user (Sharepoint Permisisons Mode) or a user account
created for them (Project Server Permissions Mode).
2. They have logged into PWA successfully. 3. The user name has been entered into the Enterprise Resource Pool
without a User Logon Account.
This creates two different accounts in Project Web App (PWA), one as a Resource and one as a User. When you go to
Delete Enterprise Objects you will see the account listed twice, once as a resource and once as a user, but you can't
identify which is a user vs. a resource in this view.

Resolution
You will delete the user and then modify the resource to include the User Logon Account. But first, you need to be
able to identify which is the resource and which is the user. To do this follow the below steps:
1. Click Resources to take you to the Resource Center. Put a check mark next to the resource that has the issue (No
User Logon Account).
2. On the Resources ribbon click Edit. Select "Inactive" from the Account Status drop down menu, click OK and
Save. This account you will keep and modify once we delete the user account.
3. Go to Server Settings and click Delete Enterprise Objects.
4. Select the radio button for Resource and Users. Check the box next to the duplicate resource name where the
value is Yes for Active and click Delete. Click OK to verify you want to delete this user. You are deleting the active
user and will then modify the inactive resource to also be a user.
5. Click Resources, check the box next to the inactive resource if it is not already checked.
6. On the Resources ribbon click Edit. Check the box for Associate resource with a user account.
7. Change Account Status to "Active". Enter the user's name in the User logon account field. Click Save.
More Information
In this version of Project Server and Project Online duplicate resource names are allowed. For more information,
see Duplicate REsource Names are allowed in PWA 2013.
A related article that pertains to Project Server 2013: Cannot enter User Logon Account for new resource".
Cannot enter User Logon Account for new resource
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you open the Enterprise Resource Pool from Project Server 2013 or Project Online, into Project Professional
2013 or Project Pro for Office 365 respectively, you cannot edit the User Logon Account field,the field is
unavailable or grayed out.

Cause
This is by design. Microsoft Project Server 2013 and Project Online use the SharePoint platform for identity
management, user management and authentication. This gives Project Server access to more types of
authentication providers via SharePoint Server 2013, such as claims based authentication as well as Google, Yahoo
or Facebook, which requires a specific process for adding resources/users.

Resolution
NOTE
The resources and users that are created will have Log On permission, but no other permissions are granted and no group
memberships are automatically applied. In SharePoint Permissions mode, when you Share the top-level Project Web App
(PWA) site with these users, you will select their group membership at the same time. Using ProjectServer Permissions mode
you sync or add users to a specific security group.

Resoulution 1: Use Active Directory Synchronization to add user login accounts to the Enterprise Resource Pool.
This is the preferred method and works for both SharePoint or ProjectServer permissions modes.
Resolution 2 for SharePoint permissions mode only:
You will create a SharePoint Tasks list and assign Active Directory or Office 365 users to tasks in the list by following
these steps:
1. Create a SharePoint Tasks List either on a SharePoint Project site or within Project Web App (PWA).
2. Create tasks and using the people picker assign users that you want to be resources with PWA and Save the list.
3. Switch to PWA Resources. You will now see the resources you added to the SharePoint Tasks List within the PWA
Enterprise Resource Pool. You still need to Share the top-level PWA site with these resources.
Resolution 3: for Project Server permissions mode:
Note This method will be phased out over time.
This regkey will allow you to edit the User logon Account field when the Enterprise Resource Pool is opened in
Project Professional 2013.
IMPORTANT
This method contains steps that tell you how to modify the registry. However, serious problems might occur if you modify
the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry
before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and
restore the registry, see How to back up and restore the registry in Windows.

Steps to add the registry key in order to edit User Logon Accounts in Project Professional:
1. Launch the Registry editor by typing "Regedit" without quotes in the run line.
2. Expand the following hive and add the following new String Value "WindowsAccountEditable" without
quotes and set the value to "yes".
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\MS Project\Profiles\[ProfileName].

NOTE
[ProfileName] implies that the registry key must be applied to each server profile configured in Project Pro 2013 for which
you want to re-enable the User Logon Account field. The server profile would need to be set up first to ensure the full
registry path exists.

Back in PWA Resource Center, select at least one resource, thenclick Open to open the Enterprise Resource Pool in
Project Professional. You can now insert the User Logon Account field in the resource sheet and edit the field.
Save and Close the Enterprise Pool and the resources are saved to PWA. You still need to Share the top-level PWA
site with these users for them to access PWA.
"Iexplorer.exe has encountered a problem and needs
to close" error when you try to view a timesheet in
Project Web Access
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to view a timesheet in Microsoft Project Web Access, Microsoft Internet Explorer quits, and you
receive the following error message:

Iexplorer.exe has encountered a problem and needs to close

When you click more information , you receive the following error message where x.x.xxxx.xxxx is the version of
Internet Explorer, and yyyyyyy is the offset:

AppName: iexplore.exe

AppVer: x.x.xxxx.xxxx
ModName: pjgrid.ocx

ModVer: 9.0.2000.224

Offset: yyyyyyy

Cause
This problem may occur if the Google Toolbar for Internet Explorer is installed on your computer.

Workaround
To work around this problem, use one of the following methods.
Method 1
Remove the Google Toolbar for Internet Explorer. To do this, follow these steps:
1. Click Star t , click Control Panel , and then click Add or Remove Programs .
2. Click Google Toolbar for Internet Explorer , and then click Change/Remove .
Method 2
Disable third-party browser extensions in Internet Explorer. To do this, follow these steps:
1. Start Internet Explorer.
2. On the Tools menu, click Internet Options , and then click the Advanced tab.
3. On the Advanced tab, click to clear the Enable third-par ty browser extensions (requires restar t) check
box, and then click OK .
Note Both methods require that you restart Internet Explorer.

More Information
You may not experience this problem with a later version of the Google Toolbar. For more information about the
Google Toolbar for Internet Explorer, visit the following Google Web site:
http://toolbar.google.com
Microsoft provides third-party contact information to help you find technical support. This contact information may
change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.
Circular Relationship error When indenting task
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Project, if two tasks are linked in a predecessor/successor relationship and you indent the successor to
make it a subtask and the predecessor of a summary task, you may receive the following error message:

This outline change would create a circular relationship.

Indenting these tasks would create an illogical relationship with other tasks.

Check the task dependencies for the tasks from which you are indenting, and then try again.

Cause
This problem occurs when the predecessor task has a cross-project link as a predecessor and the task you are
trying to subordinate is its successor. For example, let's say you have two tasks (A and B). They are linked by a Finish
to Start relationship and Task A has a cross-project link to a task in another project. If you indent task B under Task
A, you will receive this error message.

Workaround
To work around this problem, remove the predecessor and successor link between the tasks and then indent the
task.
How to create a report template in Project 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article describes how to create a report template in Microsoft Project 2013.
Note When you click Copy Reporton the DESIGNtab of the REPORT TOOLScontextual tab for a project plan in
Microsoft Project 2013, a report template is not created. Instead, the report is copied to the clipboard so that you
can paste it into other applications. This behavior is by design.

More Information
To create a new report template to use with other project plans, use one of the following methods.
Method 1
1. Select a report from an open project plan, and then change the report.
2. Click FILE , and then click Organizer . Select the Reports tab in the Organizer dialog box, and then rename the
report.
3. On the Repor ts tab of the Organizer dialog box, copy the report to the Global.mpt file so that the report can
be used in other project plans.
Method 2
1. Click New Repor t on the REPORT tab in Project 2013, select a kind of report, and then name the report.
2. Customize the report, and then save the report to the Global.mpt file.

NOTE
The Global.mpt file is installed in the following location:
<system device>:\Users\<your login name>\AppData\Roaming\Microsoft\MS Project\15\1033
You can share the Global.mpt file with other users so that they can access the new report also.
Definition of Microsoft Project constraints
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Each constraint type in Microsoft Project can be defined as a formula using the following conventions:
ES = Early Start of the activity
LS = Late Start of the activity
EF = Early Finish of the activity
LF = Late Finish of the activity
SS = Scheduled Start of the activity
SF = Scheduled Finish of the activity
CD = Constraint Date

More Information
The following are definitions of Microsoft Project constraints.
As Late As Possible: Schedules the task as late as it can without delaying subsequent tasks. Use no constraint
date.
ES=(Calculated)LS
As Soon As Possible: Schedules the task to start as early as it can. Use no constraint date.
(Scheduled)ES=(Calculated)ES + Delay
Finish No Earlier Than: Schedules the task to finish on or after the constraint date.
EF=CD (if Date<EF)
Finish No Later Than: Schedules the task to finish on or before the constraint date.
LF=CD (if Date<LF)
Must Finish On: Schedules the task to finish on the constraint date. Once selected the task will not be
moveable on the timescale.
EF,LF,SF=CD
Must Start On: Schedules the task to start on the constraint date. Once selected the task will not be movable
on the timescale.
ES,LS,SS=CD
Start No Earlier Than: Schedules the task to start on or after the constraint date.
ES=CD(if Date<ES)
Start No Later Than: Schedules the task to start on or before the constraint date.
LS=CD(if Date<LS)
Project Online, You receive an error when accessing
Project Web App
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptom
After you successfully sign into your Online tenant and click the Projects link or navigate to a PWA site, you may
receive one of the following error messages:
"Sorry this site has not been shared with you".
Or
"Access denied"
Or
"Let us know why you need access to this site."
Subsequently, you cannot access Project Web App.

Cause
1. You have not been granted permissions to the root PWA site or given group permissions.
2. Project Online was added to your tenant after SharePoint Online was already provisioned, in which case no one
has access to PWA.

Resolution
Cause 1 resolution when using SharePoint Permissions mode:
1. The PWA Admin needs to log into the online tenant.
2. Navigate to the PWA home page that the user needs access too.
3. In the upper right hand corner, underneath the account name click on the SHARE icon.
4. Add the user ([email protected]). The user will receive the Contribute permissions and be added to the group
called "Team Members for Project Web App" on the root PWA site. You can change the default by clicking the
SHOW OPTIONSlink in the dialog.
5. Give the synchronization about 2 minutes and then test access to the PWA site.
Cause 1 resolution when using Project Server Permissions mode:
1. The PWA Admin needs to log into the online tenant.
2. Navigate to the PWA home page that the user needs access too.
3. Go to Server Settings and click Manage Groups. Click on a group that you wish to modify.
4. User accounts can be added by synchronizing with an Active Directory Group or added manually from the
available users list.
In order for a user name to appear in the available users list, the user must already have permissions on the
PWA root site or they are a Global administrator. Refer to the SharePoint Permissions mode steps above to
Share the root PWA site.
Cause 2 resolution:
1. Log in your online tenant as the tenant Administrator.
2. From the Admin menu dropdown select SharePoint to go to the SharePoint admin center.
3. Check the box next to the PWA site where you want to add an Administrator.
4. On the Site Collections ribbon click on Owners and select Manage Administrators.
5. In the Site collection Administratorsbox add the user and click OK.

More Information
This is by design for Project Online (and Project Server 2013) regardless of the permissions mode on the PWA site.
SharePoint Permissions mode details - The PWA Admin must share the root site with users, the user is given a
specific set of permissions at the same time the root site is shared. This determines what they can see and do within
just the PWA site. Access to Project Sites is done in the same way, the individual site must be shared with individual
user.
Project Server Permissions mode details - Users can be added manually or synchronized using Active Directory
groups (not SharePoint groups). If users are added manually, the PWA root site must be shared first in order for the
users to be listed on the Available Users list in Manage Groups.
Using Active Directory group synchronization, users are added to the Project Server group and the root PWA site is
shared with them at the same time.
To check which permissions mode your PWA site is using:
Visual Check- as PWA Admin click the gear in the upper right corner of the PWA home page and click PWA Settings.
If you see the Security section heading, then you are in Project Server permissions mode. If you do not see this
section then you are in SharePoint permissions mode.
SharePoint Admin Check- The SharePoint Admin can go to the Admin menu and click SharePoint. Then click the
check box to the left of the Project Web App instance you want to investigate. On the ribbon click Project Web
Appand click Settings. The current permissions mode in use is displayed.
Project Web App can use either Project Server permission mode or SharePoint permission mode to control user
access. New Project Web App instances use the SharePoint permission mode by default. SharePoint permissions
mode does not synchronize users with the root site or the project sites, this is only done when Project Server
permissions mode is in use and configured to synchronize.

WARNING
Switching between Project Server permission mode and SharePoint permission mode deletes all security-related settings.

Group Names: When using SharePoint Permissions mode the gourp name is appended with For Project Web App .
when using Project Server permission mode the group name is appended with (Project Web App Synchronized)
Enterprise Resource Pool - User accounts added to the Enterprise Resource Pool are not automatically given
permissions to log into the Project Web App home page. This is new behavior in 2013 from earlier versions of
Project Server, regardless of security mode. This prevents users from having access to Project Web App home page
automatically. The PWA Admin must "Share" the site with specific users or groups for users to have access. To get
more information and best practices see the following article:
https://technet.microsoft.com/en-us/library/jj819449.aspx
Error when opening a Visual Report in Project 2010
with Office 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you attempt to open a Visual Report in Project 2010 with Visio 2013 installed you may receive the
following error message:

"This operation requires that you have Visio Professional 2007 or later installed on your computer."

When you attempt to open a Visual Report in Project 2010 with Excel 2013 installed you may receive the following
error message:

"The operation requires that you have Excel 2003 or later installed on your computer."

Project 2010 Visual Reports feature CANNOT work with either Visio 2013 or Excel 2013. You must use Office 2010
versions or lower for the reports to generate.

Cause
Office 2013 was developed and released after Project 2010. The error message was relevant at the time Project
2010 was tested and released.

Resolution
You must install Visio 2010 or Excel 2010 (or lower) to utilize Project 2010's Visual Reports.

More Information
You can install both Office 2010 and 2013 products on the same machine, however the last product installed will
update the registry. Best practice would be to run the a repair on the 2013 product/s after 2010 is reinstalled.
Another option, if you have the Click-to-Run installation of Visio 2013 and/or Excel 2013 then they run in isolation
which means they have their own registry keys and would not interfere with the 2010 versions of the same
applications. Click-to-Run versions of Office 2013 applications can be purchased and downloaded from Microsoft.
Project Online: Error when you click on the Projects
link in the top navigation bar
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you click the Projects link from the Office 365 ribbon to get to Project Web Access, you receive one of the
following errors:

Error
An unexpected error has occurred.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: ########-####-####-############
Date and Time: <date and time>

Or

Sorry, this site isn't available right now.


Give us a few minutes and try again. If it still doesn't work, contact your administrator.
-------------------------------------------------------------------------------
GO BACK TO SITE

You can still navigate to Project Web App by manaully entering the URL in the address bar or with admin
permissions go to SharePoint admin center, click the link to the PWA site collection once, when the dialog comes up
click the link again.

Cause
This issue occurs in the following scenario:
Cause #1:
Your Office365 tenant was recently upgraded and your Tenant Admin has not yet manually upgraded the My Site
collection for your tenant.
Cause #2:
The default PWA site with the suffix "/sites/PWA" e.g. https://domainname.sharepoint.com/sites/PWA has been
renamed or deleted.

Resolution
Resolution steps for Cause#1
1. Log into your online tenant with the global Admin account.
2. Go to SharePoint admin Center by clicking the Admin dropdown list and clicking SharePoint.
3. check the box next to the URL for your My Site collection, example; https://domainname-my.sharepoint.com
4. On the ribbon click Upgrade and click Site collection upgrade settings
5. In the site collection upgrade settings dialog click Link to upgrade page.
6. Click the link to REVIEW SITE COLLECTION UPGRADE STATUS and upgrade the site.
The My Site collection will be upgraded for all users in your tenant and the Projects link will now navigate to the
default web site ending in PWA, example https://domainname.sharepoint.com/sites/PWA
Resolution steps for Cause#2
The Project link in the top navigation bar requires a default PWA site with the following suffix "/sites/PWA" is
present in order for the link to work. E.g. https://domainname.sharepoint.com/sites/PWA
You can either restore the default PWA site that may have been deleted but is still in the Recycle bin, or create a new
PWA site in the Sharepoint Admin Center and name the new site as "PWA"
Error occurs when accessing Project Web App
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you attempt to navigate to a PWA site, you may receive one of the following error messages:

Sorry this site has not been shared with you


Access denied
Let us know why you need access to this site

Subsequently, you cannot access Project Web App.

Cause
You do not have permissions to the root PWA site and/or you do not have group permissions.

Resolution
In order for a user name to appear in the available users list, the user must already have permissions on the PWA
root site or they are a Global administrator. To Share the root PWA site using SharePoint Permissions mode:
1. As the PWA Admin, log into the PWA site that the user is having access issues.
2. In the upper right hand corner, underneath the account name click on the SHARE icon.
3. Add the user ([email protected]). The user will receive the Contribute permissions and be added to the group
called "Team Members for Project Web App" on the root PWA site. You can change the default by clicking the
SHOW OPTIONS link in the dialog.
4. Give the synchronization about 2 minutes and then test access to the PWA site.
Resolution when using Project Server Permissions mode:
1. As the PWA Admin, log into the PWA site that the user is having access issues.
2. Go to Server Settings and click Manage Groups. Click on the group that you wish to modify.
3. User accounts can be added by synchronizing with an Active Directory Group or added manually from the
available users list

More Information
This is by design for both Project Online (and Project Server 2013) regardless of the permissions mode on the PWA
site.
SharePoint Permissions mode details - The PWA Admin must Share the root site with users, the user is given a
specific set of permissions at the same time the root site is shared. This determines what they can see and do within
just the PWA site. Access to Project Sites is done in the same way, the individual site must be shared with individual
user.
Project Server Permissions mode details - Users can be added manually or synchronized using Active Directory
groups (not SharePoint groups). If users are added manually, the PWA root site must be shared first in order for the
users to be listed on the Available Users list in Manage Groups.
Using Active Directory group synchronization, users are added to the Project Server group and the root PWA site is
shared with them at the same time.
To check which permissions mode your PWA site is using:
Visual Check - as PWA Admin click the gear in the upper right corner of the PWA home page and click PWA
Settings. If you see the Security section heading, then you are in Project Server permissions mode. If you do not see
this section then you are in SharePoint permissions mode.
SharePoint Admin Check - The SharePoint Admin can go to the Admin menu and click SharePoint. Then click the
check box to the left of the Project Web App instance you want to investigate. On the ribbon click Project Web
Appand click Settings. The current permissions mode in use is displayed.
Project Web App can use either Project Server permission mode or SharePoint permission mode to control user
access. New Project Web App instances use the SharePoint permission mode by default. SharePoint permissions
mode does not synchronize users with the root site or the project sites, this is only done when Project Server
permissions mode is in use and configured to synchronize.
Warning
Switching between Project Server permission mode and SharePoint permission mode deletes all security-related
settings.
Group Names
When using SharePoint Permissions mode the group name is appended with For Project Web App . when using
Project Server permission mode the group name is appended with (Project Web App Synchronized)
Enterprise Resource Pool - User accounts added to the Enterprise Resource Pool are not automatically given
permissions to log into the Project Web App home page. This is new behavior in 2013 from earlier versions of
Project Server, regardless of security mode. This prevents users from having access to Project Web App home page
automatically. The PWA Admin must "Share" the site with specific users or groups for users to have access. To get
more information and best practices see the following article:
Best practices to configure Active Directory groups for Enterprise Resource Pool synchronization in Project
Server 2013.
Manage connected SharePoint sites in Project Server 2013
File size increases greatly when you insert a picture
into a Project plan
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you insert a picture into a Microsoft Project task, into a Microsoft Project resource, or into a Microsoft Project
assignment note and then you save your Microsoft Project plan, the size of your Microsoft Project file may increase
more than you expect it to.

Cause
The RichEdit control (Riched20.dll) causes this problem. This problem may occur when you insert the picture into
another container (for example, a WordPad document) and then you insert that container in your Microsoft Project
file. Typically , the RichEdit control stores the container as Rich Text Format (RTF) in your Microsoft Project file so
that both the container and the picture can be seen. The size of the RTF information may cause a large increase in
file size.

Workaround
To work around this behavior, insert the picture directly into your Microsoft Project task, into your Microsoft Project
task resource, or into your Microsoft Project task assignment note.
If you are using Project 98 through Project 2007, use the following steps:
1. In a Microsoft Project task, in a Microsoft Project resource, or in a Microsoft Project assignment note, click
Object on the Inser t menu.
2. In the Inser t Object dialog box, click Create from File .
3. Click Browse , and then select the picture that you want to insert.
4. Click Inser t , and then click OK .
If you are using Project 2013 or 2010, use the following steps:
1. Add the Object command to the Ribbon. If the Object command has already been added to the Ribbon bar,
please proceed to Step 2.
a. In Project, right-click the ribbon and select Customize the Ribbon.
b. Below the right column, click New Group after determining which level you would like it created at in the
list above. If you wish to modify the name, click Rename.
c. In the left column, change the Choose commands from to All Commands.
d. Locate and select Object from the list in the left column.
e. With the new custom group selected, click the Add button to move Object from the left column into the
right column
f. Click OK.
2. In a Microsoft Project task, in a Microsoft Project resource, or in a Microsoft Project assignment note, click
Object on the Ribbon bar. The location may vary based on the location you place the custom group you
created in the steps above.
3. In the Insert Object dialog box, click Create from File.
4. Click Browse, and then select the picture that you want to insert.
5. Click Insert, and then click OK.
Gantt Chart view or Usage view print on too many
pages in Project
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Project, when you print or print preview a Gantt Chart view or a Usage view, task bars or columns of
data may be printed on more pages than necessary, or you may see an additional timescale beyond the end of your
project.

Workaround
To work around this behavior in Project 2010 & 2013, use any of the following methods.
Method 1: Manually Adjust the Timescale
If the Fit Timescale to End of Page option is selected, turn off this option, and manually change the timescale. To do
this, follow these steps:
1. On the File tab, click Print, and then click Page Setup.
2. Click the View tab.
3. Click to clear the Fit timescale to end of page check box.
4. Click OK. If you do not get the result you want, continue to the next step.
5. Click the View tab.
6. Back in the Project plan click View. On the Timescale drop-down list, click Timescale.
7. In the Size box, reduce the percentage to reduce the width of the timescale, Increase the percentage to increase
the width of the timescale.
8. Click OK.
Method 2: Fit Timescale to End of Page
The Fit Timescale to End of Page option enlarges or reduces the width of the timescale to match the end of a page.
This prevents a page from being printed with bars or data on only a small fraction of the pages, which would result
in an additional blank timescale beyond the last bar or column of data.
To turn on the Fit Timescale to End of Page option, follow these steps:
1. On the File tab, click Print, and then click Page Setup.
2. Click the View tab.
3. Click to select the Fit Timescale to End of Page check box.
4. Click OK
Method 3: Scale the Entire Project
If you want to scale the entire project (not just the timescale portion as in method 1), scale the entire project to fit
the number of pages you want. To do this, follow these steps:
1. On the File tab, click Print, and then click Page Setup.
2. Click the Page tab.
3. Choose the scaling option you want to use.
4. Print your project.

NOTE
When you scale your project for printing, the project information is scaled proportionally for height and width.

To work around this behavior in Project 2007 and earlier versions, use any of the following methods.
Method 1: Manually Adjust the Timescale
If the Fit Timescale to End of Page option is selected, turn off this option, and manually change the timescale. To
do this, follow these steps:
1. On the File menu, click Page Setup.
2. Click the View tab.
3. Click to clear the Fit timescale to end of page check box.
4. Click Print Preview. If you do not get the result you want, continue to the next step.
5. Click the Close button on the toolbar in print preview.
6. On the Format menu, click Timescale.
7. In the Size box, reduce the percentage to reduce the width of the timescale. Increase the percentage to increase
the width of the timescale.
8. Click OK.
Method 2: Fit Timescale to End of Page
The Fit Timescale to End of Page option enlarges or reduces the width of the timescale to match the end of a
page. This prevents a page from being printed with bars or data on only a small fraction of the pages, which would
result in an additional blank timescale beyond the last bar or column of data.
To turn on the Fit Timescale to End of Page option, follow these steps:
1. On the File menu, click Page Setup.
2. Click the View tab.
3. Click to select the Fit Timescale to End of Page check box.
4. Click OK.
Method 3: Scale the Entire Project
If you want to scale the entire project (not just the timescale portion as in method 1), scale the entire project to fit
the number of pages you want. To do this, follow these steps:
1. On the File menu, click Page Setup.
2. Click the Page tab.
3. Choose the scaling option you want to use.
4. Print your project.

NOTE
When you scale your project for printing, the project information is scaled proportionally for height and width.
How to Remove a Leading Split in a Task
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Project, you can split a task so that the task is interrupted, and then resumes later in the schedule. If
you drag a portion of a split task so that it touches another portion, Microsoft Project removes the split. However,
this method does not work if the split is assigned at the beginning of a task (a leading split).

Workaround
To remove a split at the beginning of a task, use the method appropriate for your situation:
If no resources are assigned to the task, change the duration to zero, and then change the duration back to
the original value.
-or-
If a resource is assigned to the task, follow these steps:
1. On the View tab, click Task Usage.
NOTE: In Microsoft Office Project 2007 and earlier versions, click Task Usage on the View menu.
2. Click to select the value 0 at the beginning of the task's work values under the timescale (the row labeled
"Work" in the right pane), and press DELETE. Project removes the leading work value with 0 value.
NOTE The "0" may appear differently depending on how the timescale is formatted, for example "0m," "0d,"
"0w," or "0y."
3. If more than one work item at the beginning of the task has 0 value, repeat step 2 until there are no more
such Work items.
By removing the work items with 0 value at the beginning of the task, Project removes the leading split.
How to upgrade your Project global template after
you install Project 2013
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using
another method. These problems might require you to reinstall the operating system. Microsoft cannot guarantee
that these problems can be resolved. Modify the registry at your own risk.

Summary
Assume that you install Microsoft Project 2013 on a computer on which an earlier version of Project is installed.
When you first start Project 2013, you are prompted to select options for upgrading the global template.

More Information
Project 2007 is already installed on the computer
When a user starts Project for the first time after it is installed and Project 2007 is already installed on the
computer, the user is presented with the Planning Wizard. The wizard presents the following options:
Upgrade automatically. Customized items will be copied to Microsoft Project automatically . If
the user selects this option, the global template will be upgraded. The user is then presented with the
Welcome to Project screen.
If the user clicks Start, the user will be walked through each section of the wizard that is listed at the top of
the window. When the user finishes the walk-through, the user sees a screen that displays a dummy project
plan.
If the user instead selects the Skip intro link, the user is presented directly with the screen that displays the
dummy project plan.
In either case, the user should close the dummy project plan, either through File/Close or by pressing the "X"
in the upper-right corner. After the user does this, the user will be presented with the usual first screen
whenever he or she starts Project.
Upgrade manually. You can choose which items you want to copy to Microsoft Project. If the user
selects this option and then clicks OK , the user is presented with the Organizer dialog box. This gives the
user the opportunity to select the items that the user wants to upgrade.
Should the user click Cancel at any time, the user is presented with the same screens that were described
earlier and should follow the same actions. However, the user's global template will not yet be upgraded with
the user's previous customizations.
The next time that the user starts Project, the user will again be presented with the initial Planning Wizard.
This behavior will continue until the option to automatically upgrade is selected or a manual upgrade is
performed or until the user selects the Don't tell me about this again check box.
Cancel. Don't perform the upgrade at this time. If the user selects this option and then clicks OK , the
user will be presented with the same screens that were described earlier and should follow the same actions.
However, the user's global template will not be upgraded with the user's previous customizations.
The next time that the user starts Project, the user will again be presented with the initial Planning Wizard.
This behavior will continue until ether the option to automatically upgrade is selected or a manual upgrade
is performed.
If the user clicks Cancel , this has the same effect as selecting the Cancel. Don't perform the upgrade at
this time option.
Don't tell me about this again.If a user selects this option together with any one of the previous options, the
user will not be presented with the Planning Wizard dialog again. This option is most frequently used when a
user does not want to upgrade the Global.mpt file of the user's earlier version but instead wants to start by
using a completely new, default Global.mpt file.
Notes
Whichever option the user selects, the user's previously used Global.mpt file will still be present on the user's
system. It is located in the file share as stated in the Planning Wizard. The user can upgrade the Global.mpt
file at any time after the installation of Project 2013.
If a user wants to have a completely clean Global.mpt file at any time, the user's existing Global.mpt file can
be deleted from the file system. (However, Project must not be running at the time.) In this situation, the next
time that Project is started, it creates a new default template. However, all previous customizations will be
lost. This includes any custom VBA macros. It may be prudent for the user to make a backup copy of any
Global.mpt file before deletion.
Project 2010 is already installed on the computer
When a user starts Project the first time after it is installed and Project 2010 is already installed on the computer,
the user is presented with the Planning Wizard.
This is almost identical to the wizard that is presented when an upgrade from Project 2007 is performed. The main
difference is that the path that contains the original Global.mpt file includes the number 14 instead of 12. (The
number 12 in this path indicates the earlier version of Project.)
Other than this, the process is identical to the process that is outlined in "Project 2007 is already installed on the
computer."
How to enable the Planning Wizard
Important Follow the steps in this section carefully. Serious problems might occur if you modify the registry
incorrectly. Before you modify it, back up the registry for restoration in case problems occur.
If a user is not sure whether he or she followed the instructions correctly during the first use of Project 2013, the
user can force Project to start in such a way that it gives the user the same initial options that were originally
presented. The user can then be guided through the Planning Wizard process.
To force the Planning Wizard to reappear when Microsoft Project is started, enable or add the following registry key
or registry value on the user's computer. To do this, follow these steps.
Note These steps are the same regardless of whether this is an upgrade from Project 2007 or from Project 2010.
Important Before you begin to edit the registry, you should back it up. You can back up the whole registry or only
the part of it that you are changing.
To back up the whole registry, follow these steps:
1. Click Star t , and then click Run .
2. In the Open box, type regedit.
3. In the navigation pane, click My Computer to export all the registry.
4. On the Registr y menu, click Expor t Registr y File .
5. Browse to a location to store the exported file, and then type a name for the new file.
To edit the registry to force the Planning Wizard to reappear when Microsoft Project is started, follow these steps:
1. Click Star t , and then click Run .
2. In the Open box, type regedit.
3. In the navigation pane, move to the following location:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\MS Project
4. Under this node location, check whether a Previous Global node exists.
5. If a Previous Global node exists, select it. If a Previous Global node does not exist, go to step 10.
6. In the right-side pane, you see the No Aler t value name. Select No Aler t .
7. In the right-side pane, you again see the No Aler t value name. Double-click No Aler t .
8. In the Value Data box, type 0 (zero).
9. Exit Registry Editor.
10. If a Previous Global node does not exist, right-click MS Project .
11. Point to New , and then click Key . A new key appears with a temporary name.
12. Type Previous Global as the name for the new key, and then press Enter.
13. Right-click Previous Global .
14. Point to New , and then click DWORD Value . The new value appears with a temporary name.
15. Type No Alert for the new value, and then press Enter.
16. Double-click No Aler t .
17. In the Value Data box, type 0 (zero).
18. Exit Registry Editor.
No earlier version of Project is installed
When a user starts Project the first time after it is installed and no earlier version of Project is installed, the user is
presented with the Welcome to Project screen. This is a dummy project plan, and you can safely close it without
saving. You can do this either through File /Close or by pressing the "X" in the upper-right corner. After you do this,
you will be presented with the usual first screen whenever you start Project.
Importing an Task Outline Structure into Project
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
When you import files from a different application to Microsoft Project, you can include information that will allow
Microsoft Project to generate a project outline structure for the imported file.

More Information
You cannot directly import the Outline Number field from a file saved in a format other than the standard Microsoft
Project format. However, it is possible to import a different field that will correctly generate the same outline
structure.
Microsoft Project uses a task field called "Outline Level", in conjunction with the order tasks are imported, to
determine where tasks fall in a project outline structure. Tasks with Outline Level=1 are at the highest level in the
project outline. Tasks with Outline Level=2 are subordinate to level 1 tasks, level 3 tasks are subordinate to level 2
tasks, and so on, for example:
A comma separated values (CSV) file contains the following text:
1,Summary Task 1
2,Task A
2,Task B
2,Summary Task 2
3,Task C
3,Task D
1,Summary Task 3
2,Task E
2,Task F
If this file is imported into Microsoft Project using a task table with Outline Level and Name as its first two fields,
the tasks will be imported with the following outline structure:
|Outline Level|Name| |--|--| |1| 1 Summary Task 1| |2 |1.1 Task A| |2 |1.2 Task B| |2| 1.3 Summary Task 2| |3| 1.3.1 Task
C| |3| 1.3.2 Task D| |1| 2 Summary Task 3| |2| 2.1 Task E| |2| 2.2 Task F| NOTE The Outline Number and name
indentation are shown to clearly illustrate the structure.
"Eventing service" error message when changing the
status of users to inactive in Microsoft Project
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you deactivate a user in Microsoft Project, you see the following message:

The resource could not be saved due to the following reasons:


Error encountered with the eventing service. The eventing service is either not running or has not been
installed. Please contact your administrator for more details.

Cause
The user is in a disabled state in the Active Directory.

Resolution
To resolve this, change the status of the user account to inactive in the Project Instance using the option available in
Manage Users. Then disable the account in Active Directory.
Make a custom toolbar/ribbon available to all users in
Project client
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article describes how to create a custom macro, and toolbar/ribbon that contains buttons to run macros).
Additionally, this article describes how to deploy the custom objects to either the local global template (Global.mpt)
or the enterprise global template if using Project Server. This allows the custom toolbar/ribbon to be available to all
users of Microsoft Office Project clients whether users connect to Microsoft Office Project Server or use standalone
Project clients.

More Information
When a project is opened it uses information in the local file, as well as the global template file, to set defaults for
the plan. The global template file contains, views, reports, modules (macros), tables, filters, calendars, maps, fields,
and groups (Toolbars are available in Project 2007 or earlier global template files but not 2010, the ribbon was
introduced in 2010). Your project plan will use the defaults from the global template unless you create new or
modify the existing objects . Customized objects are stored to the local project unless you take steps to copy the
information to the global file. This global template can be shared with other Project client users, either by sending
them the global.mpt file to save locally or share it via a network location.
When an enterprise project is opened from Project Server, the enterprise global template settings are applied to the
project. After the enterprise global template is applied to the project, any items in the local global file that do not
have the same names as the items in the enterprise global template are also applied to the project file. Therefore, if
you created a custom view, table, or filter that has the same name as an item in the enterprise global template, you
are prompted to rename or overwrite the custom item. The error message you receive is similar to the error below:
"The Enterprise Global already contains a (an object such as a view, table, calendar, etc.) named "<ObjectName>".
Rename or Replace."
Renaming the object will resolve the issue and allow you to continue to open the plan. Also a second version of the
object is retained if needed.
Typically, the enterprise global template takes precedence over other templates. However, the precedence of
ribbons, toolbars and menus is treated differently from other items in the enterprise global template. Ribbons,
toolbars and menus in the local global file take precedence over ribbons, toolbars and menus that have the same
name in the enterprise global template. Additionally, different language versions of ribbons, toolbars and menus in
the local global file take precedence over ribbons, toolbars and menu items in the enterprise global template.
However, a custom ribbon or toolbar that has a unique name in the enterprise global template file in Project Server
will be available to all users of Project.
The general steps used to move customized objects from a local plan into the local global file are pretty straight
forward:
1. Create the custom object in your local plan.
2. Open the Organizer which shows the objects in the local global template and the plan side by side.
3. Move the customized object from the plan to the global template and you are done.
These steps will work for all versions of Project through 2010.
However, if you want to add customized objects to the Enterprise Global Template (because you are using Project
Server) the Enterprise Global can only be accessed by a user with rights to open the Enterprise Global Template
from Project Server Settings. This action then launches Project Professional with the Enterprise Global Template
open in memory. You can move objects from the local Global or any open project plan to the open Enterprise
Global Template.
To include a custom ribbon tab that has a command button to run a macro in your enterprise global template file in
Project 2010, follow these steps:
Steps to Create a custom macro
1. Start Project client.
2. Start a new project. It's name is Project1.
3. On the View tab, click the Macros drop down list, and then click RecordMacro.
4. In the Macro name box, type a name. For example, Macro1 is the default.
5. In the Store Macro in list, click Global file. If you select This Project then the macro is only available in Project 1.
6. Click the other appropriate options, and then click OK.
Steps to copy the module that includes the macro to the local global template if needed
1. On the Info page of the File tab, click the Organizer button ot the left of OrganizeGlobal Template.
Note: the name of the files currently open will appear at the top of each window. You can change the file to
another open file using the drop down lists at the bottom of each window.
2. Click the Modules tab
3. Where you see the module that contains the macro created in the steps above, select it.
4. Between the panes, click Copy, and then click Close.
The global will is automatically saved. The module and macro will now be available to all plans that use this local
global template.
Steps to copy the module to the enterprise global template in 2007 or 2010.
1. Launch Project Web Access as a user with permissions to modify the Enterprise Global Template.
2. Click Server Settings > Enterprise Global and click the button Configure Project Professional. Project
Professional will launch with the Enterprise Global template in memory.
3. Click the File tab, select Info and Manage Global Template.
4. Open the plan where your macro is stored if not already in the Global (+ non-cached enterprise).
5. Click the Module tab and then select the module you wish to copy into the Enterprise Global Template.
6. Between the panes, click Copy , and then click Close .
7. Click the Task tab and then click Save to save the enterprise global template.
8. Exit Project Professional.
The next time a user opens any enterprise plan, the macro will be available.
Steps to create a custom toolbar and add the macro to a button in 2007 and earlier.
1. Start th Project client.
2. On the Tools menu, point to Customize , and then click Toolbars .
3. On the Toolbars tab, click New , and then type a name in the Toolbar name box. For example, type
CustToolbar1, and then click OK.
4. Click the Commands tab.
5. In the Categories list, click All Macros .
6. Drag the Macro1 command from the Commands list to the toolbar.
7. Click the newly added macro button on the toolbar.
8. In the Customize dialog box, click Modify Selection .
9. Click Edit button image or Change button image , and then make the necessary changes.
10. Click Close .
11. Open the enterprise global template or the toolbar is saved to the local global template file.
12. With the newly added button selected, click Modify Selection , and then click Assign Macro .
13. Make sure that the macro that you created appears in the Command box. This macro must not be a file-specific
macro.
14. Click Close .
15. Exit Project client.
The operation has timed out when connecting to
OData by using SSIS in Project Online
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use Microsoft SQL Server Integration Services (SSIS) packages to download data from your Project
Online OData feeds, you receive the following error message:

The operation has timed out.

Status
We are currently investigating the issue.

Workaround
To work around this issue, edit the .NET Framework Machine.config files to increase the number of allowed
connections to Microsoft SharePoint and Project Online on the server that your SSIS package is configured to run.
To do this, follow these steps:
1. Edit the following files on the server that is running the SSIS package:
%windir%\Microsoft.NET\Framework[version]\config\machine.config
%windir%\Microsoft.NET\Framework64[version]\config\machine.config
Note For the [version] folder placeholder, the correct value is typicallythe most recent version of the .NET
Framework, such as 4.0.xxxxx. However, if you have configured your SSIS package to use a different .NET
Framework version, update this value accordingly.

2. Make a copy of both Machine.config files as a backup.


3. Open each Machine.config file, and scroll all to way to the bottom of the file. At the very end of the file, add a
space between the </system.web> and </configuration > tags, and then paste the following snippet:

<system.net>
<connectionManagement>
<add address = "https://contoso.sharepoint.com" maxconnection = "30" />
</connectionManagement>
</system.net>

Notes
You must replace the address with your SharePoint domain. For example, if your PWA site is
"https://contoso.sharepoint.com/sites/pwa," the address should be as follows:
https://contoso.sharepoint.com
Consider increasing or decreasing the **maxconnection **value in this step, depending on how your
SSIS package is configured. For example, if you have a larger number of feeds that you're pulling
concurrently, you may need a larger number of connections. For only a few feeds, you can use a
smaller value. For more information about the .NET Framework Connection Management setting, see
Element for connectionManagement (Network Settings).
After you're done adding the snippet, the edited file should resemble the following:

4. Save the changes, and then close the file.


5. Make sure that the edit is done on both Machine.config files that are listed in step 1.
6. To make sure that the setting takes effect, you can either stop and restart the application that the SSIS
package runs under, such as SQLAgent, or restart the server.
How to print a Gantt Chart view without table
information
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
It is possible to print a Gantt Chart view without any table information. To do this, you must apply a table that has
all the column widths set to zero. Note that a Gantt Chart view always requires some table to be applied.

More Information
To create a table that displays no columns in Microsoft Project 2010 and 2013, do the following:
1. On the View tab, click Tables , and then click More Tables .
2. For Tables : click Task .
3. Click the New button.
4. In the Name box, enter No Table Info .
5. In the first row, under Field Name, enter ID, and in the first row under Width , enter a zero (0).
6. Click to select Show In Menu .
7. Click OK , and then click Close .
You can now use this table to print or preview a Gantt Chart view without table information as follows:
1. On the View tab, click Gantt Char t .
2. On the View tab, click Tables , and then click No Table Info .
3. On the File tab, click Print .

NOTE
The printout or preview shows only the timescale part of the Gantt Chart without any table information to the left.

To create a table that displays no columns in Microsoft Project 2007 and earlier versions, do the following:
1. On the View menu, click Table , and then click More Tables .
2. For Tables , click Task .
3. Click the New button
4. In the Name box, enter No Table Info .
5. In the first row, under Field Name, enter ID, and in the first row under Width , enter a zero (0).
6. Click to select Show In Menu.
7. Click OK , and then click Close .
You can now use this table to print or preview a Gantt Chart view without table information as follows:
1. On the View menu, click More Views .
2. Select Gantt Char t , and click Apply .
3. On the View menu, click Table , and then click No Table Info .
4. On the File menu, click Print or Print Preview .

NOTE
The printout or preview shows only the timescale part of the Gantt Chart without any table information to the left.

The above information applies to any view based on the Gantt Chart screen, such as Detail Gantt and Tracking
Gantt.
Progress bars not drawn for tasks that are in progress
in Project
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Project, in a Gantt Chart view, task progress bars may not be displayed when there is progress on a
task.

Cause
This behavior may be caused by either of the following two conditions.
Condition 1: Resource Calendar Is 24 Hours
The resource calendar for the resource assigned to the task is based on the 24 Hours base calendar, or the resource
calendar's working time is 24 hours.
NOTE Condition 1 only occurs in Project 2003 and earlier versions.
Condition 2: Progress Bar Style Deleted
You deleted the progress bar style from the Bar Styles dialog box in a Gantt Chart view.
NOTE For condition 2, the behavior occurs on all tasks in the view.
To verify if the progress bar style exists or has been deleted, follow these steps:
1. On the men ribbon's Format tab, click the arrown in the right corner of the Chart Style section to view Bar Styles.
In Project 2010, choose the Format tab, click Format, and then click Bar Styles. NOTE: In Project 2007 and earlier
versons, click BarStyleson the Formatmenu.
2. By default, a progress bar style is listed in the Name column with Progress as the name. You can also identify a
progress bar in the Bar Styles dialog box, where Actual Start is in the From column and Complete Through is in
the To column.

Workaround
Condition 1: Resource Calendar Is 24 Hours
To work around condition 1, change the definition for the Progress bar style. To do this, follow these steps:
1. On the View menu, click the Gantt Chart that you want to edit.
2. On the Format menu, click Bar Styles.
3. In the Progress bar definition, change Complete Through to Stop in the To column.
4. Click OK.
Condition 2: Progress Bar Style Deleted
To work around condition 2, add a bar to display progress in a Gantt Chart. To do this in Project 2013 and later,
follow these steps:
Project 2013
1. On the menu ribbon select the Format tab
2. In the Chart Stylesection of the ribbon, click the arrow in bpttom right corner to display the Bar Styles dialog.
3. Click the row in the BarStylesdialog where you want to insert the progress bar definition.
4. Click InsertRow.
5. In the Namefield for the blank row, type Progress.
6. Select the Appearancefield for the Progressstyle.
7. On the Barstab, under Middle, follow these steps, or choose the desired shape, pattern, and color to meet your
needs:
8. In the Shapelist, click the third bar shape: a medium bar width shape.
9. In the Patternlist, click the first bar pattern: a solid pattern.
10. In the Colorlist, click Black.
11. In the Show For... Taskscolumn, type Normal.
12. In the Fromcolumn, type ActualStart.
13. In the Tocolumn, type CompleteThrough.
14. Click OK.
Project 2010
1. On the Viewtab, click the Gantt Chart that you want to format.
2. On the Formattab, click Format, and then click BarStyles.
3. Click the row in the BarStylesdialog where you want to insert the progress bar definition.
4. Click InsertRow.
5. In the Namefield for the blank row, type Progress.
6. Select the Appearancefield for the Progressstyle.
7. On the Barstab, under Middle, follow these steps, or choose the desired shape, pattern, and color to meet
your needs:
a. In the Shapelist, click the third bar shape: a medium bar width shape.
b. In the Patternlist, click the first bar pattern: a solid pattern.
c. In the Colorlist, click Black.
8. In the Show For... Taskscolumn, type Normal.
9. In the Fromcolumn, type ActualStart.
10. In the Tocolumn, type CompleteThrough.
11. Click OK.
To do this in Project 2007 and earlier versions, follow these steps:
1. On the View menu, click the Gantt Chart that you want to format.
2. On the Format menu, click Bar Styles.
3. Click the row in the Bar Styles dialog box where you want to insert the progress bar definition.
4. Click Insert Row.
5. In the Name field for the blank row, type Progress.
6. Select the Appearance field for the Progress style.
7. On the Bars tab, under Middle, follow these steps, or choose the desired shape, pattern, and color to meet
your needs:
a. In the Shape list, click the third bar shape: a medium bar width shape.
b. In the Pattern list, click the first bar pattern: a solid pattern.
c. In the Color list, click Black.
8. In the Show For ... Tasks column, type Normal.
9. In the From column, type Actual Start.
10. In the To column, type Complete Through.
11. Click OK.
Microsoft Project opens a calendar from a different
instance when editing
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you open a calendar created from a Project Work App (PWA) instance in a Microsoft Project client, a calendar
from a different PWA instance opens instead.

Cause
Project client uses a site ID when opening a calendar. If both instances of the PWA are created from the same site
collection, then the site ID will be same for both instances of the PWA.

NOTE
This can happen when the production content database uses the same database to provision PWA in a test or QA
environment.

Resolution
To resolve this issue, designate one account in the Project client as the default account by using the following steps:
1. Select Info , select Manage Accounts , then select Configure Accounts .

2. Select an account and click Set as Default .


3. Select OK .
[!Note] To edit the calendar of a production environment PWA, select the Production account and then select
OK .

4. Close the Project client and open the calendar again.

More information
How to check the Site ID
To check the Site ID, access the following registry location in the local machine (the profile name will be the name of
the profile created to connect to the PWA instance):

HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\MS Project\Profiles\<Profile Name>


Project Publish jobs remain at 80 percent for a long
time before completing
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When publishing your Project plan, you notice on the Project Server Manage Queue Jobs page that the Project
Publish job takes a long time to complete. Specifically, the progress spends a lot of time at the 80 percent mark.

Cause
This issue occurs because your Project plan contains a large number of Tasks and Assignments. What is occurring is
that the publish operation is trying to synchronize the task information in the Project plan with the associated
SharePoint task list, and that can take time, especially if there is a large amount of tasks to be synchronized.

Resolution
Here is a possible workaround for customers who do not need the following features:
If you do not use the Project Site Task list to review tasks in your Project plan (most customers use the
Project Center to view their Enterprise Project).
If you do not have to link Issues, Risks and Documents to your Tasks.
Note Icons that indicate an issue, risk, or document that is associated with the Project will still be displayed
in the Project Center view for that project as long as an item exists.
Here are steps to either disable syncing or to remove the Task List, which in turn will skip the task synchronization
process, thus speeding up the Project Publish operation.
This section applies to Project Server 2013
Steps to disable syncing of Task List for a specific Project site by using PowerShell
In Project Server 2013, if customers have Project Server Service Pack 1 or a later version deployed, there are a set
of PowerShell cmdlets that enable or disable syncing of Task Lists on a per-Project Site level:
Get-SPProjectEnterpriseProjectTaskSync
Disable-SPProjectEnterpriseProjectTaskSync
Enable-SPProjectEnterpriseProjectTaskSync
This approach works well for on-premise deployments of Project Server 2013, and for customers who have several
Projects that have many tasks, assignments, or both. To disable syncing of Task List for a specific Project site using
PowerShell, follow these steps:
1. Log on to the server in your SharePoint farm that hosts the SharePoint Central Administration site.
2. Start SharePoint 2013 Management Shell .
3. Use the Disable-SPProjectEnterpriseProjectTaskSync cmdlet as follows to disable site synchronization:

Disable-SPProjectEnterpriseProjectTaskSync -Url http:// servername /PWA/TestProject

TipGet-SPProjectEnterpriseProjectTaskSync will only return a value if it was configured by using the related Enable
or Disable cmdlets. Otherwise, a default site will return no value. In its default state, Task List synchronization is
always enabled.
This section applies to Project Online and Project Server 2013
The instructions in this section are intended for Project Online customers, as the option for disabling task
synchronization is not available through PowerShell. The alternative approach would be to remove the Task List to
skip the task synchronization process.
Steps to remove the Tasks List from the associated Project site
1. Log on to Project Web App (PWA), and move to Ser ver Settings > Connected SharePoint Sites .
2. In the Site Address column, locate the associated Project site for your Project plan that is taking a long time to
publish, and then click on the link to move to it.
3. On the Project site, click the Tasks link in the left navigation pane.
4. On the top ribbon bar, select the **List **tab. This will open the ribbon for the tab.
5. Click List Settings .
6. In the Settings page for this specific Tasks list, click the option Delete this list . If you are prompted, click **Yes
**to send the list to the recycle bin.
How to Restore the Tasks List
If you need to use the Task List after deleting it, you can recover it by going to the Recycle bin and then restoring the
List item from there. To reach the Recycle Bin, follow these steps:
1. Browse to the Project site where you deleted the Task List. On the left navigation pane, click Site Contents .
2. On the upper-right section of the Site Content page, click Recycle Bin .
3. Select the recently deleted Tasks List , and then click **Restore Selection **to restore it.
How to configure a new EPT
This section covers steps on how to configure a new EPT to use a changed Project Site template with the Task List
removed. We recommend this only be done after carefully considering your Project plan data profile.
Note Only create Projects using this custom EPT if you never have to use the Task List in the Project site, and if the
Projects created using this EPT are expected to have many Tasks, Assignments, or both. We do not recommend
creating all Projects by using an EPT configured this way.
How to configure a custom EPT with a changed Project Site template with the Task List removed
First we'll start with creating a new template from a default Project site:
1. Log on to PWA, and then click Ser ver Settings > Site Contents .
2. On the Site Contents page, click new subsite .
3. When you are prompted, provide a Title and URL name of your choice. For the Template Selection , make
sure that you select Project Site , leave all other settings as default, and then click Create .
4. After the Project site is created, you will automatically be taken to it. When it loads, click on the Tasks link in the
left navigation pane.
5. On the ribbon bar at the top, select the tab named List . This will open the List options in the ribbon.
6. Click List Settings .
7. In the Settings page for this specific Tasks list, click the option Delete this list . When you are prompted, click
Yes to send the list to the Recycle Bin.
8. Move to Site Settings > Save Site as Template .
9. Specify the File Name and the Template Name as Project Site with No Tasks List .
10. Leave the Include Content option cleared, and then click OK .
Next, we will create a new Enterprise Project Type (EPT), and then pair it with the newly created Project Site
template:
1. In PWA, move to Ser ver Settings > Enterprise Project Types .
2. Click New Enterprise Project Type .
3. Model a new EPT based on the Enterprise Project EPT:
a. In the Name box, type Enterprise Project with No Task List.
b. In the New Project Page box, select Project Information .
c. In the Available Project Detail Pages box, select Schedule, Project Details .
d. In the Project Site Template box, select the Project Site with No Tasks list. Click Save to save the
new EPT.
4. Now, try and create a new Enterprises Project. Browse to the Project site, and then verify that the Tasks list is no
longer there.
Users removed from the Enterprise Resource Pool
group sync are not inactivated
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After removing users from an Active Directory security group used to synchronize user accounts in Project Web
App's (PWA) 2013 Enterprise Resource Pool, resources are not inactivated. Previous behavior in Project Web App
2010 the users were inactivated.

Cause
This is by design in Project Online and new behavior in Project Server 2013 when using the default SharePoint
permissions mode. When synchronizing security groups with the Enterprise Resource Pool (ERP), the users added
to the ERP are not automatically inactivated if their account has been removed from the Active Directory group
used to synchronize.
The new behavior assumes that even when a user account is removed from an active directory group they may still
be a valid resource that can be used in project plans by Project Managers and should not be marked as inactive.
This is only true when using SharePoint permissions mode. Project Server 2013 and Project Online use SharePoint
permissions mode by default in all new instances. Project Server permissions mode will be in use on an upgraded
Project Server 2010 site. An Administrator can also set Project Server permissions mode on specific instances of
PWA if more granular control of permissions are needed. For more information about Project Online or Project
Server 2103 permissions modes, see Plan user access in Project Server 2013.

Resolution
To remove a user's access to log into PWA, use one of the following options:
Remove the user's Project Online license
1. As the Tenant Administrator log into your online tenant
2. Navigate to the Microsoft 365 admin center and click users and groups
3. Select one or multiple user accounts and click the edit icon
4. Click next until you come to the licenses or assign licenses page.
5. Click the radio button next to Replace existing license assignments and then select the licenses that apply to
your users making sure to leave Project Online Plan 1 unselected.
6. Click submit and click finish .
Remove the user's account from any groups with access to the PWA home page
1. Navigate to the Project Web App home page with PWA Administrator permissions.
2. Click on the gear icon to the right of your user account and click Shared With.
3. Click ADVANCED to show all security groups.
4. Click a group, then select the user and under the Actions menu click Remove users from Group and click OK

More Information
Additionally, users added or synchronized to the Enterprise Resource Pool are not added to the Team Members
security group on the Project Web App home page. Users must be manually added to a group on the PWA home
page in order to log in. For more information, see Plan SharePoint groups in Project Server.
SharePoint task list sync job fails when Project is
published
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
A SharePoint task list sync job fails in the Project queue when published from Project Professional or from Project
Web App (PWA).

Cause
This issue occurs if a user who was added to an item in the "AssignedTo" field in a task list has been removed from
the site collection.

Resolution
The PowerShell script below can be used to find the list items in a task list which still contain user accounts in the
"AssignedTo" field that are missing from site collection:
asnp *share*
$site = get-spsite http://Server/PWA

function new-row
{
$Fields = ('SiteUrl', 'WebUrl', 'ListUrl', 'ItemID','ItemName', 'MissingUser' )
$Row = new-object PSCustomObject
foreach ( $field in $Fields)
{
$row | Add-Member -NotePropertyName $Field -NotePropertyValue $null
}
return $Row
}

$result = New-Object System.Collections.arraylist

foreach ( $web in $site.AllWebs )


{

Write-host "Processing Web : $($web.Url).." -NoNewline


$list = $null
$list = $web.Lists['Tasks']
if ( $list -ne $null )
{
foreach ( $item in $list.Items)
{
$assignedTo = $item['AssignedTo']

if ( $assignedTo -ne $null -and $assignedTo.user -eq $null)


{
$Row = new-row
$row.SiteUrl = $web.site.Url
$row.WebUrl = $web.Url
$row.ListUrl = $web.site.MakeFullUrl($list.DefaultViewUrl)
$row.ItemID = $item.ID
$row.ItemName = $item.Name
$row.MissingUser = $assignedTo.lookupvalue
$result.add($row) | Out-Null
}

}
}
Write-host "Done" -ForegroundColor Green
}

$result | Out-GridView

$result | Export-Csv -Encoding UTF8 -NoTypeInformation -Path C:\Logs\Report1.csv

NOTE
Change the PWA URL and task list name before running the PowerShell.

Once the list items are found:


1. Go to Site Settings and then Content and Structure .
2. Access the task list of the workspace associated with the Project.
3. Remove the user from assignment in task list.
Alternative workaround options include the following:
1. Disable the task list sync by running the following command:
Disable-SPProjectEnterpriseProjectTaskSync –Url http://servername/PWA/NameOfProject

2. Delete and recreate the task list.

More information
The ULS logs that show the error when updating the "AssignedTo" field in the task list will appear similar to the
following:

PWA:https://Server/PWA, ServiceApp:PWA_APP_SVC, User:i:0#.w|mydomain\krishnp, PSI: [QUEUE]


SynchronizeTaskListInManagedModeMessage failed on project e7e90257-d10e-e911-89a6-ace2d39a7fa8. Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Office.Project.Server.BusinessLayer.ProjectModeManaged.UpdateAssignedToField(SPWeb workspaceWeb,
DataSet taskDS, Guid taskUID, SPListItem listItem)
at Microsoft.Office.Project.Server.BusinessLayer.ProjectModeManaged.SynchronizeTask(SPList list, DataSet
taskDS, Dictionary`2 taskMapping, DataRow row, DataView secondaryView, Dictionary`2 redoEntries)
at Microsoft.Office.Project.Server.BusinessLayer.ProjectModeManaged.<>c__DisplayClass1.
<SynchronizeTaskListInManagedMode>b__0(SPWeb workspaceWeb)
at Microsoft.Office.Project.Server.BusinessLayer.Project.<>c__DisplayClass58.
<TryRunActionWithProjectWorkspaceWebInternal>b__57()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
How fiscal dates are shown on a timescaled view
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Original version: 2011


Original KB number: 86287
In Microsoft Project 2010, when the fiscal year is set to start in a month other than January that is also before the
current month, the current date may appear incorrect. When a fiscal year is specified, the current date becomes a
fiscal date, which results in the date jumping ahead by one year. This is the correct year based on the information
supplied to Microsoft Project and standard fiscal year calculations.

Examples to show fiscal dates on a timescaled view


Example 1
1. Click Project Information on the Project tab in Project.
2. Change the current date to 6/29/97.
3. Change the Timescale to Years over Quarters.
a. On the View tab, select Timescale from the Timescale drop-down list.
b. On the Middle Tier tab, in the Units box, select Years .
c. On the Bottom Tier tab, in the Units box, select Quar ters .
d. Click OK .
4. Change the Fiscal Year to start in February.
a. On the File tab, click Options , and then click Schedule .
b. Under Calendar options for this project: <Project Name> , in the Fiscal year star ts in list,
click Februar y .
c. Click OK .
The Current Date vertical bar in the Gantt chart now shows the year 1998.
Example 2
If the Fiscal year star ts in option is set to a month that is past the current date, the current date on the Gantt bar
remains the same, and the future months are incremented by one year starting at the month specified.
1. Click Project Information on the Project tab in Project.
2. Change the current date to 6/29/97.
3. Change the Timescale to Years over Quarters.
a. On the View tab, select Timescale from the Timescale drop-down list.
b. On the Middle Tier tab, in the Units box, select Years .
c. On the Bottom Tier tab, in the Units box, select Quar ters .
d. Click OK .
4. Change the Fiscal Year to start in July.
a. On the File tab, click Options , and then click Schedule .
b. Under Calendar options for this project: <Project Name> , in the Fiscal year star ts in list,
click July .
c. Click OK .
The time scale in the Gantt chart shows the current date is still in the current year; however, the next month (July in
this example) is in 1998.
Project Server Sync Jobs take a long time to
complete and users get Access Denied
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Part of the Project Security model includes checking user permissions to access the Project Web App (PWA) home
page and the Project sites (workspaces) associated with project plans. Whenever a category, group or individual
user is modified, Project Server will validate a user's access. Depending on the number of users and the number of
project sites within your PWA instance, the jobs that check user permissions may take a very long time to complete
or fail to complete. Additionally users may see "Access Denied" errors when attempting to access PWA or Project
site/workspace.

Cause
During the permissions check, several jobs are placed into the Queue for processing. During a Sync job, users are
taken off the top level PWA site and any Project sites/workspaces that they were assigned to. Then the user is added
back to the sites based on their individual, group or category permissions as well as their role in each plan. The
number of users and projects contribute to how long it will take for Sync jobs to complete.
For example Sync jobs are kicked off in the follow scenarios:
When a new plan is published and a project site/workspace is created or synchronized.
When an Active Directory Sync job runs to synchronize either the Enterprise Resource Pool or Security Groups.
When a user account is modified.
Other possible causes for slow performance:
There are also network and hardware considerations that also contribute to the time it takes for the Queue to
process jobs. One example is when there are multiple servers in one Farm, if the clocks on the servers are not
synchronized this can cause delays in processing job requests.

Resolution
If the queue jobs are processing, then wait and let them complete. Once the jobs complete all users will
again have access to PWA and project sites/workspaces.
If the queue job has failed, the PWA Admin should review the error message in the queue to gather more
information as to the nature of the failure. The Farm Admin can also collect the ULS logs to gather additional
information on the error. Open a support incident if needed.
If there are a large number of users/projects in the PWA instance, there are a number of best practices that
can mitigate the performance issues. In the More Information section are links to a number of detailed
articles. The main point of the articles say to plan/limit the number of users that need access to PWA and
Project Sites/workspaces and design security groups and categories to mitigate performance issues.
Such as, use the Project Server security to control the number of projects/site a user has access to by setting
up Resource Breakdown Structure for users in conjunction with the security category filters to limit which
projects users can see. Controlling the number of projects a user can see determines which workspaces the
user can access. By using the Project Server security model, users are added to SharePoint groups instead of
added individually, to mitigate the chance of hitting the SharePoint limit of 5000 security objects per web
application. This method works well for Project server 2013, 2010 and 2007.
Use SharePoint Security mode in Project Server 2013 which does not synchronize users to Project Sites but
instead the Project Manager manually shares sites with users.
Turn off the feature to synchronize Project sites/workspaces. It is possible to turn off the feature that adds
users to project sites/workspaces in which case the Project Manager would then add them manually.
To turn off the synchronization feature follow the steps below for your version of Project Server:
For Project Server 2007:
Go to Server Settings, click Project Workspace Provisioning Settings. In the section "Workspace Permissions", clear
the box to Check to automatically synchronize PWA users....
For Project Server 2010:
Go to Server Settings, click Project Site Provisioning Settings. In the section "Project Site Permissions", clear the box
to Check to automatically synchronize PWA users...
For Project Server 2013 in Project Server security mode:
Go to Server Settings, click Manage User Sync Settings. You can disable one or both sync options, PWA or Project
Site sync.
Lastly check the clocks among all the servers to verify they are in sync. Out of sync servers will result in delayed
pickup of queue jobs.

More Information
The SQL server may time out when attempting to add users to workspaces. When reviewing a SQL Profiler trace
you see Exception 1222 Severity 16 State 18 when the stored procedure MSP_Resource_ReadUserSummariesActive
is executed. This is a timeout error.
At the same time SharePoint Server has a limit of 5000 security objects per web application. Project Server Admins
should use SharePoint best practices to avoid such limitation. The following document link has more information
on SharePoint limits: https://technet.microsoft.com/library/cc262787.aspx
Best practices for managing a large number of resources in Project Server 2010: https://technet.microsoft.com/en-
us/library/hh670402(v=office.14).aspx
Sync with SharePoint tasks list from Project
Professional
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Overview
The Sync with SharePointfeature lets a Project Manager share an .mpp project file with Microsoft SharePoint users.
This feature is available to use with SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019, and
SharePoint Online through Project Professional 2013, Project Professional 2016, Project Professional 2019, and
Project for Office 365. This feature creates a SharePoint Project site. This site contains a Project Summary and
Timeline, a tasks list, and a Calendar. Synchronizing also saves the .mpp file to the site assets for future editing.

NOTE
The Project Manager must be part of the SharePoint Owners group (or at the least have designer permissions) on the parent
site collection where the new or existing site resides.

Synchronization goes the other way, too. If you have a SharePoint tasks list, there's an Open with Project button
that opens the plan in Project Professional. This feature lets you use the Project Scheduling Engine to make
schedule updates in Project Professional 2013, Project Professional 2016, Project Professional 2019, or Project for
Office 365 and then synchronize the static list back to the tasks list on the SharePoint Project site.
Managing a Project Site tasks list in this manner is also known as lightweight project management. Project Server
is not required for this functionality. SharePoint Foundation 2013, SharePoint Foundation 2016, or SharePoint
Foundation 2019 is the minimum requirement for using the Sync to SharePoint feature.
When you use SharePoint Server, you can use the "All My Work in One Place" feature to display all tasks that are
specifically assigned to you. From your "My site" personal tasks list, you can view, organize, and update all your
work from this one location. The URL is for a SharePoint personal tasks list.
Scenarios for using Project Professional with SharePoint Ser ver or SharePoint Online
Create a plan in Project, and then sync by using NEW SharePoint Site. A site and tasks list are created.
Create a plan in Project, and then sync by using Existing SharePoint Site. This updates an existing list or creates a
new list, depending on your selection.
In SharePoint when you have tasks in a tasks list, you can use Open with Projectto open the plan in Project
Professional for editing and then sync back to the existing SharePoint site. The .mpp file is saved to the site
assets for future editing.
The following Office article describes how to synchronize a Project plan with SharePoint, and how to sync to create
a New Project site and an Existing Project site:
Sync with a SharePoint tasks list
More Information
Considerations
MPP
Because we save the .mpp file to the Project Site's Site Assets, you should not save a local copy of the plan for
editing. You will always use Open with Project when you want to use Project to update either the SharePoint
tasks list or the .mpp file. These two entities are now linked, and the SharePoint tasks list is considered the "master."
Opening the .mpp file from any location other than Site Assets will damage the link and cause issues, such as
duplicate tasks on the SharePoint tasks list. You may also receive an error message, which is discussed later in this
article.
Save
After you sync a plan to a SharePoint tasks list, the next time you want to update the tasks list just click Save in
Project.
Manual versus Auto scheduled tasks
When you open a SharePoint tasks list in Project Professional for the first time, the tasks will be set to Manual or
Auto scheduled , depending on the New tasks created setting in your Project client. You can find this setting on
the File menu, by clicking Options , and then selecting the Schedule tab.
Predecessors
Currently, a single task cannot contain more than 89 links to other tasks. Project Professional may crash if it has a
larger number of predecessors.
External links
When you try to sync a plan that contains external links to tasks in other plans, you receive an error message that
contains the wrong information. The error message should tell you that you cannot sync a plan with external links.
Instead this is the message that you receive:

Cannot access the site due to one of the following reasons:


- The Sharepoint site url is invalid
- The Sharepoint site is currently unavailable
- The user does not have full or design permissions in the Sharepoint site

The plan may save to the tasks list, but the .mpp is not saved to the Site Assets. Therefore, you cannot use the .mpp
file again for updating the tasks list. In this situation, we recommend that you delete the subsite and begin again, if
possible.
Large number of tasks
SharePoint has a limit of 5,000 items in a list. However, you will experience severe performance issues if there are
1,000 tasks in a list. Project best practices suggest that 750 is the largest number of tasks that you should include a
project plan. A SharePoint list should be even smaller for optimal functionality and usability. For example, 100 tasks
in a SharePoint tasks list is a reasonable number to work with.
Resources
If there are resources assigned in your plan that are not resources in SharePoint, you receive a warning message
stating that these resources will not be added to the SharePoint tasks list but that the tasks will sync to the list. This
error message resembles the following:
We can't sync resource <resource name> to the tasks list because the resource does not exist on the SharePoint
server. This resource, and any other resource that doesn't exist in SharePoint, will remain assigned to the
tasks in your project plan.

To add these users to SharePoint, contact your SharePoint administrator. It's a best practice to always use the People
Picker when you assign users to tasks.
Star ting with a SharePoint tasks list
If you, the Project Manager, begin in SharePoint by having a tasks list, they can decide at any time that you want to
use Project's scheduling engine to calculate a more precise schedule. You can click the Open with Project button
from the List ribbon, the Project client starts as the currently logged-on user, and you can begin editing.
Open with Project
When the plan opens, the tasks will be either Manually Scheduled or Auto Scheduled based on the value of
File > Options > Schedule > New tasks Created . Tasks can be added or edited by using any or all features in
the Project client and then synced back to the SharePoint tasks list just by clicking Save .
Map Fields
Only the fields that are mapped between the two products will synchronize. The following fields sync between your
SharePoint list and Project by default:

Task Name
Start date
Finish (due) date
% Complete
Resource Name
Predecessors

If you want to map more fields to be synced between Project and SharePoint, you can do this on the Info tab on the
File menu with in Project. Specifically, open the Map Fields dialog box, and then select the new fields that you
want to sync. This way, you can have your team members report on other custom fields, or you can generate
reports based on non-default SharePoint columns.
Synchronizing to an existing task list
If you sync to an existing tasks list that has already been linked to another plan (or if the original sync did not copy
the .mpp to site assets), you receive the following error message:

The tasks list is linked to a different project plan. If you continue with the synchronization the task list
link will be changed to the current project plan.

Would you like to continue with the synchronization?

Conflict resolution
If the .mpp file is open in Project at the same time that a user adds or edits task info in the SharePoint tasks list, a
conflict dialog box is displayed the next time that the .mpp file is saved. This dialog box gives the user the following
options:
Keep Microsoft Project version for all fields
Keep SharePoint version for all fields
Choose between SharePoint and Microsoft project versions
Outlook Sync
Tasks can be updated in Outlook, but they cannot be created in Outlook and then inserted into a SharePoint tasks
list.
Tasks don't schedule as expected in Microsoft Project
3/30/2020 • 11 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes why a task may not be scheduled as expected in Microsoft Project and offers suggestions for
correcting the behavior.

More Information
Project 2010
A task may not schedule as expected for a number of reasons. To determine the exact cause in Project 2010, review
the following questions:

NOTE
Before testing any of the scenarios in this article, make a backup copy of the file or save any changes you might have made
to the file.

1. Is the Calculate project after each edit option set to off?


When you specify a manual calculation, Microsoft Project will calculate your file only when you press F9. Set
Calculation to On to resolve scheduling conflicts.
To set the calculation method, follow these steps:
a. On the File tab, select Options .
b. Select the Schedule tab.
c. Under Calculation, select either On or Off .
2. Is the Show Scheduling Messages option turned off?
If the Show Scheduling Messages option is turned off, changes to the project file that result in scheduling
conflicts will be processed. If the Show Scheduling Messages option is turned on, you will be able see the
conflict and correct it.
To turn the Show Scheduling Messages option on or off, follow these steps:
a. On the File tab, select Options .
b. Select the Schedule tab.
c. Uncheck the Show Scheduling Messages check box.
d. Select the Advanced tab.
e. Under Planning Wizard , select all check boxes.
NOTE
After scheduling messages are turned on, press F9 on the keyboard. Any scheduling messages that occur must be
resolved before the project will be calculated correctly.

3. Are you scheduling from the project's Star t Date or the project's Finish Date ?
When scheduling from the project's Star t Date , the task will begin as soon as possible.
When scheduling from the project's Finish Date , the tasks will begin as late as possible.
To check which date is set in your file, select Project Information on the Project tab.
4. What is the project's Start Date?
If the Show Scheduling Messages option is turned on, and you enter a task that occurs before the project's
Start Date, you will receive a warning message. If you want to schedule a task to start before the project's
Start Date, manually enter the date for the task. To check the Project Start Date, select Project Information
on the Project tab.
5. Did you enter a percent complete on a task?
If you entered a percent complete on a task, and the task has already started, you cannot change the Start
Date automatically. To determine where the task would schedule automatically, set the task to zero percent
complete. To do this, follow these steps:
a. Select the task.
b. On the Task tab, select Task Information .
c. Select the General tab.
d. In the Percent Complete box, type 0 .
e. Select OK .
6. Did you assign an Actual Start Date to the task?
You can assign an Actual Start Date to a task and not enter a percent complete. The task will not be
scheduled automatically unless you set the Actual Start Date to NA.
To set the Actual Start Date, insert the Actual Start Field into your table. To do this, follow these steps:
a. Select the title of any column currently in your table.
b. On the Format tab, select Inser t Column .
c. Select Actual Star t for the Field Name and select OK .
7. Did you assign a constraint type other than As Soon As Possible (ASAP) to the task?
A constraint can cause a task to be scheduled according to the type of constraint and the date set. In
Microsoft Project, a task that has the constraint of As Late As Possible (AL AP) in a project is scheduled
from the project's Finish Date.
To check the constraint type, follow these steps:
a. Double-click the ID number for the task.
b. Select the Advanced tab.
8. Are there any predecessor or successor relationships?
The type of relationship will determine when the task can be scheduled. In Microsoft Project, the Task will
always honor their constraint dates setting overrides the task relationship links.
To set this option, follow these steps:
a. On the File tab, select Options .
b. Select the Schedule tab.
c. Select the check box Tasks will always honor their contraint dates .
d. Select OK .
9. Are you using automatic Resource Leveling ?
Automatic resource leveling will add delay to a task to avoid resource conflicts. This results in the task Start
Date being pushed out. If you select the manual option, delay will not be added to tasks automatically.
To remove any delay added to a task and to set resource leveling to manual, do the following:
To remove delay, select Clear Leveling on the Resource tab.
To set resource leveling to manual, select Leveling Options on the Resource tab, and then select
Manual .
10. Is there a value in the Task Delay field?
If the Task Delay field contains a value greater than zero, you cannot schedule the task earlier. To clear the
Delay field, see step 9.
11. Is the task a subtask?
If a Summary task (at any level) has a predecessor or a constraint, the subtask cannot be scheduled any
earlier than the summary task.
To check a summary task for predecessors or constraints, follow these steps:
a. Select the task.
b. On the Task tab, select Task Information .
12. Is there a resource assigned to the task?
The resource calendar can affect the scheduling of a resource-driven task but not a fixed duration task. In
Microsoft Project, the resource calendar can affect all three task types (fixed duration, fixed work, and fixed
units). Remove the resource to see if, in fact , the resource is affecting the scheduling. After the resource is
removed, if the task schedules as expected, then check the resource's calendar.
To check the Resource calendar, on the Project tab, select Change Working Time , and then select the
resource name from the drop-down list.
13. Are you trying to schedule a task during a non-working time?
If a day is marked as non-working, then you cannot schedule a task to start on that day. To check the Project
Calendar, select Change Working Time on the Project tab.
14. Are there any predecessor or successor relationships assigned to summary tasks?
Predecessor and Successor relationships assigned to summary task can affect sub task of the summary
task in addition to the summary task(s) that are linked.
The type of relationship will determine when the task can be scheduled. In Microsoft Project, the Tasks will
always honor their constraint dates setting overrides the task relationship links. Earlier versions of
Microsoft Project do not have this option.
To set this option, follow these steps:
a. On the File tab, select Options .
b. Select the Schedule tab.
c. Select the check box Task will always honor their constraint dates .
d. Select OK .
Project 2007
To determine the exact cause in Project 2007 and earlier versions, review the following questions:

NOTE
Before testing any of the scenarios in this article, make a backup copy of the file or save any changes you might have made
to the file.

1. Is the Calculation option set to Manual ?


When you specify a manual calculation, Microsoft Project will calculate your file only when you press F9 . Set
Calculation to Automatic to resolve scheduling conflicts.
To set the calculation method, follow these steps:
a. On the Tools menu, select Options .
b. Select the Calculation tab.
c. Under Calculation , select either Automatic or Manual .
2. Is the Show Scheduling Messages option turned off?
If the Show Scheduling Messages option is turned off, changes to the project file that result in scheduling
conflicts will be processed. If the Show Scheduling Messages option is turned on, you can see the conflict
and correct it.
To turn the Show Scheduling Messages option on or off, follow these steps:
a. On the Tools menu, select Options .
b. Select the Schedule tab.
c. Select to select or clear the Show Scheduling Messages check box.
d. Select the General tab.
e. Under Planning Wizard , select all check boxes.

NOTE
After scheduling messages are turned on, press F9 on the keyboard. Any scheduling messages that occur must be
resolved before the project will be calculated correctly.

3. Are you scheduling from the project's Start Date or the project's Finish Date?
When scheduling from the project's Start Date, the tasks will begin as soon as possible. When scheduling
from the project's Finish Date, the tasks will begin as late as possible. To check which date is set in your file,
select Project Information on the Project menu.
4. What is the project's Start Date?
If the Show Scheduling Messages option is turned on, and you enter a task that occurs before the project's
Start Date, you will receive a warning message. If you want to schedule a task to start before the project's
Start Date, manually enter the date for the task. To check the Project Start Date, select Project Information
on the Project menu.
5. Did you enter a percent complete on a task?
If you entered a percent complete on a task, and the task has already started, you cannot change the Start
Date automatically. To determine where the task would schedule automatically, set the task to zero percent
complete. To do this, follow these steps:
a. Select the task.
b. On the Project menu, select Task Information .
c. Select the General tab.
d. In the Percent Complete box, type 0 .
e. Select OK.
6. Did you assign an Actual Start Date to the task?
You can assign an Actual Start Date to a task and not enter a percent complete. The task will not be
scheduled automatically unless you set the Actual Start Date to NA . To set the Actual Start Date, insert the
actual start field into your table. To do this, follow these steps:
a. Select the title of any column currently in your table.
b. On the Inser t menu, select Inser t Column .
c. Select Actual Star t for the Field Name and select OK .
7. Did you assign a constraint type other than As Soon As Possible (ASAP) to the task?
A constraint can cause a task to be scheduled according to the type of constraint and the date set. In
Microsoft Project , a task that has the constraint of As Late As Possible (AL AP) will be scheduled as an
ASAP task in a project that is scheduled from the project's Finish Date.
To check the constraint type, follow these steps:
a. Double-click the ID number for the task.
b. Select the Advanced tab.
8. Are there any predecessor or successor relationships?
The type of relationship will determine when the task can be scheduled. In Microsoft Project , the Tasks will
always honor their constraint dates setting overrides the task relationship links.
To set this option, follow these steps:
a. On the Tools menu, select Options .
b. Select the Schedule tab.
c. Select to select the check box Tasks will always honor their constraint dates .
d. Select OK .
9. Are you using automatic Resource Leveling?
Automatic resource leveling will add delay to a task to avoid resource conflicts. This results in the task Start
Date being pushed out. If you select the Manual option, delay will not be added to tasks automatically. To
remove any delay added to a task and to set resource leveling to manual, do the following:
To remove delay, select Clear Leveling .
To set resource leveling to manual, select Resource Leveling on the Tools menu, and then select
Manual .
10. Is there a value in the Task Delay field?
If the Task Delay field contains a value greater than zero, you can not schedule the task earlier. To clear the
Delay field, see step 9.
11. Is the task a subtask?
If a Summary Task (at any level) has a predecessor or a constraint, the subtask cannot be scheduled any
earlier than the summary task. To check a summary task for predecessors or constraints, follow these steps:
a. Select the task.
b. On the Project menu, select Task Information .
12. Is there a resource assigned to the task?
The resource calendar can affect the scheduling of a resource-driven task but not a fixed duration task. In
Microsoft Project , the resource calendar can affect all three task types (fixed duration, fixed work, and fixed
units). Remove the resource to see if, in fact the resource is effecting the scheduling. After the resource is
removed, if the task schedules as expected, then check the resource's calendar. To check the resource
calendar, follow these steps:
On the Tools menu, select Change Working Time , and then select the resource name from the drop down
list.
13. Are you trying to schedule a task during a non-working time?
If a day is marked as non-working, then you cannot schedule a task to start on that day. To check the Project
Calendar, select Change Working Time on the Tools menu.
14. Are there any predecessor or successor relationships assigned to summary tasks?
Predecessor and Successor relationships assigned to summary tasks can effect sub tasks of the summary
task in addition to the summary task(s) that are linked.
The type of relationship will determine when the task can be scheduled. In Microsoft Project , the Tasks will
always honor their constraint dates setting overrides the task relationship links. Earlier versions of
Microsoft Project do not have this option. To set this option, follow these steps:
a. On the Tools menu, select Options .
b. Select the Scheduling tab.
c. Select to select the Tasks will always honor their constraint dates check box.
d. Select OK .
If you have performed all these tests and you still have a scheduling issue, try to create a new task, or try to delete
the problem task, and then re-create it.
A publication is printed incorrectly in Publisher 2010
or 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. In Microsoft Publisher, you select a sheet size that is larger than the maximum
sheet size that is supported by the printer. For example, the maximum sheet size is A4, and the sheet size that you
select is A3. You print the publication. In this scenario, the publication is not printed in the A3 sheet size. However, in
print preview, the publication is displayed correctly.

Cause
Publisher generates the print preview based on the information that the printer driver provides. However, there are
three things that the printer driver may report incorrectly: the list of supported sheet sizes, duplex printing
capabilities, and color printing capabilities. For example, the printer driver may exhibit the following behavior:
The printer driver lets you select a sheet size that is not supported by the printer itself.
The printer driver incorrectly reports that the printer has duplex printing capabilities.
The printer driver incorrectly reports that the printer has color printing capabilities.

Workaround
To work around this problem, you have to determine whether the printer supports the special needs of the
document, such as printing on a larger sheet size, duplex printing, and printing in color.

NOTE
Some printer drivers have the option to scale the content to the size of the sheet. To enable this setting in Publisher 2010,
follow these steps:

1. Click the File tab, and then click Print .


2. In the Printer section, click Printer Proper ties .
3. Click the Effects tab.
4. In the Resize Options section, click to select the Print document on option, and then click to select the Scale
to fit check box.
5. Click OK .
"Publisher cannot open the file" error in Windows 7 or
Windows 8
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

If you are a Small Business customer, find additional troubleshooting and learning resources at the Support for
Small Business site.
This issue occurs in a Windows 7 or Windows 8 environment when a Microsoft Publisher file contains corrupted
OLE objects. To work around this issue, open the file in another version of Windows, and then do one of the
following:
Delete the OLE objects, and then save the file as a Publisher file.
Save the file as a non-Publisher file. For example, save it as a .pdf file.

More Information
Windows 7 and Windows 8 use a new validation process for OLE objects. This process triggers the "Publisher
cannot open the file" error message when you try to open a file that contains corrupted OLE objects.
What is OLE?
OLE is a program-integration technology that you can use to share information between programs. OLE objects in
Publisher can range from an Excel spreadsheet to a PowerPoint presentation to a bitmap image.
Find more tips, tricks, and learning opportunities at https://smallbusiness.support.microsoft.com.
Text boxes in a Publisher 2010 and 2013-created email
message are converted to bitmap images when the
email is sent
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
In Microsoft Publisher, you create a new publication.
On the File tab, you click Save & Send .
You click Send Using Email and then click either Send Current Page or Send All Pages .
You add the necessary information to the email fields, such as recipients and a subject, and then click Send .
In this scenario, recipients of the email message cannot select some individual words in the body of the email
message because several text boxes are converted to bitmap images.

Cause
This issue occurs when some text boxes contain text that is formatted to use one of the ClearType fonts in the
Microsoft ClearType Font Collection. These fonts are as follows:
Constantia
Corbel
Calibri
Cambria
Candara
Consolas
This issue occurs because ClearType fonts are not web-ready. When Publisher 2010 sends an email message that
contains ClearType fonts, any text boxes that contain ClearType fonts are converted to bitmap images.

Workaround
To work around this issue, change any text that is formatted to use a ClearType font to another font, such as Arial,
before you send the publication as an email message. To do this, use one of the following methods.
Method 1: Use Design Checker
1. On the File tab, click Info , and then click Run Design Checker .
2. In the Design Checker pane, click to select the Run e-mail checks (current page only) check box.
3. In the Select an item to fix section of the pane, click the first item in the list that has the following
message:
Text is in a non-web-ready font. Text will be exported as an image.
Notice that a text box that contains a ClearType font is selected.
4. Under Text Box Tools , click Format .
5. Select the text that uses the ClearType font, and then in the Font group, select another font to use from the
Font drop-down list. When the font issue is fixed for the text box, the Design Checker item closes.
6. Repeat steps 3 through 5 for each text box that contains a ClearType font.
Method 2: Change the font scheme
If you are using a template, you can change the font scheme that is used in the publication. To do this, follow these
steps.
Note This method changes all the fonts in the publication to the fonts that are used in the font scheme.
1. On the Page Design tab, in the Schemes group, click Fonts .
2. Select a font scheme that does not use a ClearType font.

More Information
For more information about how to use ClearType fonts, see ClearType Font Collection.
Display issues in Office client applications
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you use Microsoft Office programs, you notice that visual features differ from one computer to another. For
example, you see animations in Excel when you scroll through a worksheet on one computer, but you do not see
the same animations on another computer.
Additionally, you may experience one or more of the following symptoms that reduce the functionality of an Office
program:
An Office program is blurry.
Your screen flickers or flashes.
An Office program is either mostly all white or all black.
Text in your document is not displayed well.
Your Office program crashes.
The performance of an Office program (other than startup and shutdown) is reduced.
In Microsoft Lync, there may be video delays or slowness when you are on a video call.

Cause
You may experience these symptoms if you have a video configuration on your computer that is incompatible with
the Office feature set that is responsible for displaying the application and for animations in the application.
Office 2013 and later versions use a more efficient and accelerated method to draw the Office UI and the content.
This includes relying on hardware acceleration, which is managed through the operating system. The hardware
acceleration function of the operating system relies on up-to-date and compatible display drivers.
Note Hardware acceleration that uses the video card is always disabled when Office is running in a Remote Desktop
session, and also when the application is started in safe mode.

Resolution
The resolution varies depending on your version of Windows and the symptom you are experiencing.
For the symptom: Poorly Displayed Text in Office Documents
If your symptom is "Poorly Displayed Text in Office Documents," try the following solutions first. Otherwise, skip to
the next section titled All Other Symptoms.
Step 1: Use the "ClearType Text Tuner" Setting
1. Search for ClearType .
Windows 10, Windows 8.1, and Windows 8: On the Start Screen, search for **ClearType**.

Windows 7: Click **Start**, and then enter **ClearType** in the **Search Programs and Files** box.

2. Select Adjust ClearType Text .


3. In the ClearType Text Tuner , enable the Turn on ClearType option, and then click Next .
4. Tune your monitor by following the steps in the ClearType Text Tuner , and then click Finish .
If you are still experiencing a problem after you adjust the ClearType settings, go to Step 2.
Step 2: Disable the Sub-Pixel Positioning Feature
Word 2016 and Word 2013 use sub-pixel text rendering by default. While this provides optimal spacing, you may
prefer the appearance of pixel-snapped text for a minor improvement in contrast. To disable the sub-pixel
positioning feature in Word 2016 or Word 2013, follow these steps.
1. On the File tab, click Options .
2. Click Advanced .
3. Under the Display group, clear the Use the subpixel positioning to smooth fonts on screen option.
4. Click OK .
If you are still experiencing a problem after you turn off the sub-pixel text rendering setting, re-enable the Use the
subpixel positioning to smooth fonts on screen setting, and then go to Step 3.
Step 3: On Windows 7 clients, install the Windows 8 Inter-operatibility Pack
If you are using Windows10, Windows 8.1 or Windows 8, skip this section and go to the steps under the For All
Other Symptoms section.
If you are using Windows 7, install the update for improving video-related components that is available in the
following Knowledge Base article:
2670838 Platform update for Windows 7 SP1 and Windows Server 2008 R2 SP1
If the previous steps did not resolve the "Poorly Displayed Text in Office Documents" symptom, continue to
troubleshoot your issue by using the steps in the next section.
For all other symptoms
Update your video driver
The best way to update your video driver is to run Windows Update to see whether a newer driver is available for
your computer.
To run Windows Update based on your version of Windows, follow these steps:
Windows 10, Windows 8.1 and Windows 8
1. On the Start Screen, click Settings on the Charms Bar.
2. Click Change PC Settings .
3. In the PC settings app, click Windows Update .
4. Click Check for updates now .
5. If updates are available, click the driver that you want to install, and then click Install .
Windows 7
1. Click Star t .
2. Type Windows Update in the Search programs and files box.
3. In the search results, click Check for updates .
4. If updates are available, click the driver that you want to install, and then click Install .
If your video-related problems in Office were fixed by when you updated your video driver, you do not have to take
any further steps. Go to step 2 if updating the video driver does not fix the problems.

NOTE
Video card manufacturers frequently release updates to their drivers to improve performance or to fix compatibility issues
with new programs. If you do not find an updated video driver for your computer through Windows Update and must have
the latest driver for your video card, go to the support or download section of your video card manufacturer's website for
information about how to download and install the newest driver.

More Information
Automatic disabling of hardware acceleration for some video cards
By default, hardware acceleration is automatically disabled in Office programs if certain video card and video card
driver combinations are detected when you start an Office program. If hardware acceleration is automatically
disabled by the program, nothing indicates that this change occurred. However, if you update your video card driver
and it is more compatible with Office, hardware acceleration is automatically reenabled.
The list of video card/video driver combinations that trigger this automatic disabling of hardware graphics
acceleration is not documented because the list is hard-coded in the Office programs and will be constantly
changing as we discover additional video combinations that cause problems in Office programs. Therefore, if you
do not see the same animation functionality on one computer that you see on another computer, we recommend
that you update your video driver by using the instructions provided in the "Update your video driver" section. If
you still do not see the expected animation on your computer, update your video driver again soon. Microsoft is
working with the major video card manufacturers on this issue, and these video card manufacturers will be
releasing new video drivers as such drivers are developed.

NOTE
If two computers have the same video card/video driver combinations, you may still see a difference in the Office animation
features between the two computers if one computer is running Windows 7 and the other computer is running Windows 8.
On a computer that is running Windows 7, animations in Office are disabled if the video card/video driver combination
appears on the incompatibility list. However, the same video combination on Windows 8 does not have animations disabled
because of the improved video capabilities in Windows 8.
Error message in Office when a file is blocked by
registry policy settings
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

A file is blocked when you open or save the file in a Microsoft Office program. In this situation, you may receive an
error message that resembles one of the following:
You are attempting to open a file that is blocked by your registry policy setting.
You are attempting to open a file type <File Type> that has been blocked by your File Block settings in the Trust
Center.
You are attempting to open a file that was created in an earlier version of Microsoft Office. This file type is
blocked from opening in this version by your registry policy setting.
You are attempting to save a file that is blocked by your registry policy setting.
You are attempting to save a file type <File Type> that has been blocked by your File Block settings in the Trust
Center.

Resolution
To resolve this issue, try the following general resolutions to change the File Block settings to disable the restriction
of certain file types:
1. Select File > Options .
If you cannot open a file in Office, open a blank document to start the Office application. For example, if you
cannot open a Word file, open a new document in Word 2019 or Word 2016 to see the option.
2. In the Options window, select Trust Center > Trust Center Settings .
3. In the Trust Center window, select File Block Settings , and then clear the "Open" or "Save" check box for
the file type that you want to open or save.

NOTE
Clear the option means allow user to open or save the file. Check the option means block the file.
4. Select OK two times.
5. Try to open or save the file that was blocked again.

More Information
For more application-specific resolution methods that you can try, see the following articles.
Word: I receive an error message when I try to open or save a file in Word
Excel: I receive an error message when I try to open or save a file in Excel
PowerPoint: I receive an error message when I try to open or save a file in PowerPoint
Visio: I receive an error message when I try to open or save a file in Visio
The issue can also occur when you open an embedded or linked Office file in an Office application. For example,
you have a Visio object embedded in a Word document. When you try to open the Visio object, you receive a
similar error message in Word. To resolve this issue, you must change the File Block settings in the application that
owns the blocked file type. In this example, you must change the File Block settings in Visio instead of in Word. If
the error message mentions Excel file type, go to Excel to change the File Block settings.
Description of task panes in Office programs
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Task panes, a new feature in Microsoft Office XP, provide a common area for those commands that may require
more information or options than a toolbar can provide. This article describes task panes and how to use them.

More information
Task panes appear as fixed dialog boxes on one side of the screen in the Office programs that are listed at the
beginning of this article. The following task panes appear in one or more of these Office programs:
The Startup task pane. In Access 2002, this task pane is called the New File task pane. In Excel 2002, this is the
New Workbook task pane. In PowerPoint 2002, this is the New Presentation task pane. In Publisher 2002, this is
the New Publication task pane. In Word 2002, this is the New Document task pane. In FrontPage 2002, this is the
New Page or Web task pane.
The Search task pane
The Clipboard task pane
The Insert Clip Art task pane
The Startup task pane is the default task pane for the Office programs listed at the beginning of this article. Be
default, it appears to the right of the document window when you start your Office program. (In Publisher 2002,
the New Publication task pane appears by default on the left.) You can change the startup location of this task pane,
as well as stop it from appearing when you start an Office program.
To move the Startup task pane to a new location, follow these steps:
1. Start the Office program that you want.
Notice that the Startup task pane appears to the right of the document window.
2. Click the title bar of the task pane, and then drag it to the location that you want. The task pane appears in
the new location when you restart the Office program.
To stop the Startup task pane from appearing when you start an Office program, follow these steps:
1. Start the Office program that you want.
2. At the bottom of the task pane, click to clear the Show at star tup check box. The Startup task pane does not
appear when you restart the Office program.
To cause the Startup task pane to appear when you start an Office program, follow these steps:
1. Start the Office program that you want.
2. On the Tools menu, click Options.
The Options dialog box appears.
3. On the View tab, under Show , click to select the Star tup Task Pane check box, and then click OK . The
Star tup task pane appears when you restart the Office program.

NOTE
In Microsoft FrontPage 2002, the Star tup Task Pane check box appears on the General tab of the Options dialog
box.

In Microsoft Publisher 2002, click to select the Use New Publication task pane at star tup check box on the
General tab in the Options dialog box.
Edit the Windows registry to clear the list of most
recently used files in Office
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
You can edit a single registry entry to clear the most recently used files list that appears in most Microsoft Office
programs.
Many Office programs maintain a list of the most recently used (MRU) files. Additionally, the programs display this
list on the File menu and in several other locations. These locations include the Open dialog box, the Save As
dialog box, and the Inser t Hyperlink dialog box.
The purpose of this feature is to provide quick access to files that a user is working on. In the interest of enhanced
privacy, many users and administrators prefer not to have these files listed.
Although you can prevent this list from being shown on the File menu in the programs, there is no built-in method
for removing the list or for preventing its display in other locations. You can, however, edit the Microsoft Windows
registry to clear the list of the most recently used files.

NOTE
This article describes how to delete the files that are listed when you click File , click Open or Save As , and then look under
the File name box. After following the steps listed in this article, no files will be listed under the File name box.

This article does not discuss how to delete the files that are listed on the File menu. To do this, you must change the
File menu settings in the Office or Office XP program.
This article does not discuss how to prevent shortcuts for recently used files from being saved in the location that is
specified by the HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\General\RecentFiles
registry entry. By default, that location is C:\Documents and Settings\user profile\Application
Data\Microsoft\Office\Recent.
Delete the Most Recently Used files list in Office

NOTE
When the Recently used file list option is not checked on the General tab of the Options dialog box in Office 2000, in
Office XP, or in Office 2003 programs, Word continues to save shortcuts in the default location. The default location is as
follows:
C:\Documents and Settings\user profile\Application Data\Microsoft\Office\Recent
The default location is specified by the following registry entry:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\General\RecentFiles
To delete the most recently used files list in Microsoft Office XP or in Microsoft Office 2003, follow these steps:
1. Start the program that you want to modify.
2. On the Tools menu, click Options .
3. On the General tab, click to clear the Recently used file list check box, and then click OK .
To delete the most recently used files list in the 2007 Microsoft Office suites, follow these steps:
1. Start the program that you want to modify.
2. Click the Microsoft Office Button , and then click Program Name Options.

NOTE
Program Name is the name of the program that you want to modify.

3. Click Advanced.
4. In the Display area, click to select the number of files in the Show this number of Recent Documentslist.
5. Type the number of files that you want to display, and then click OK.
If you do not want to display any files, type 0.
To modify the registry key and to clear the most recently used files list in a program in Office, follow these steps.

IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

1. Click Star t , click Run , type regedit in the Open box, and then click OK .
2. Locate the following registry key, as appropriate for your version of Office:
2007 Office suite
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Open Find
Office 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\Open Find
Office XP
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\Open Find
3. In the Open Find subkey, locate the program for which you want to clear the most recently used files list.
In each program subkey, you find another subkey that is named Settings. In that subkey, you find several
additional subkeys. Each of these subkeys contains a most recently used files list.
For example, the Microsoft Office Word\Settings subkey contains subkeys such as Insert File, Save As, Open,
or Modify Location. These keys may vary depending on the past actions that were performed in Microsoft
Word.
Under each subkey is another subkey that is named File Name MRU.
4. To delete a specific list of most recently used files, delete the Value entry in any File Name MRU subkey.
Troubleshooting
Office rebuilds the File Name MRU subkey after you delete it, and begins to track the most recently used files again.
Therefore, you must periodically delete the list.
You can also create a registry file (.reg) by exporting that subkey of the registry in Registry Editor. Use that registry
file to automatically apply the registry settings (in this case, the deletion of the most recently used files list).
You can also delete the whole Open Find subkey (or create a registry file to do it for you automatically) to remove
all most recently used files lists at the same time.
Office 2007 has reached end of extended support
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Office 2007 has reached the end of its support lifecycle, meaning there are no new security updates, non-security
updates, free or paid assisted support options, or online technical content updates. Customers who are using Office
2007 products and services should move to Office 365 or upgrade to the most recent version of Office.

More Information
The following Office 2007 products have reached the end of extended support:

P RO DUC T EN D O F EXT EN DED SUP P O RT

Exchange Server 2007 4/11/2017

Microsoft Office Accounting 2007 (Express & Professional) 4/11/2017

Microsoft Office InterConnect 2007 Standard Edition 4/11/2017

Microsoft Office Communicator Phone Edition 4/11/2017

Microsoft Office 2003 Web Components for the 2007 10/10/2017


Microsoft Office System

Microsoft Office 2007 10/10/2017

Microsoft Office Access 2007 10/10/2017

Microsoft Office Basic 2007 10/10/2017

Microsoft Office Excel 2007 10/10/2017

Microsoft Office Forms Server 2007 10/10/2017

Microsoft Office Groove 2007 10/10/2017

Microsoft Office Home and Student 2007 10/10/2017

Microsoft Office InfoPath 2007 10/10/2017

Microsoft Office Outlook 2007 10/10/2017


P RO DUC T EN D O F EXT EN DED SUP P O RT

Microsoft Office Outlook 2007 with Business Contact 10/10/2017


Manager

Microsoft Office Outlook 2007 with Interconnect 10/10/2017

Microsoft Office PowerPoint 2007 10/10/2017

Microsoft Office Professional 2007 10/10/2017

Microsoft Office Professional Plus 2007 10/10/2017

Microsoft Office Project 2007 10/10/2017

Microsoft Office Project Portfolio Server 2007 10/10/2017

Microsoft Office Project Server 2007 10/10/2017

Microsoft Office Publisher 2007 10/10/2017

Microsoft Office SharePoint Designer 2007 10/10/2017

Microsoft Office SharePoint Server 2007 10/10/2017

Microsoft Office Standard 2007 10/10/2017

Microsoft Office Visio 2007 10/10/2017

Microsoft Office Word 2007 10/10/2017

Microsoft Windows SharePoint Services 3.0 10/10/2017

OneNote 2007 10/10/2017

OneNote 2007 (Home and Student version) 10/10/2017

PowerPoint 2007 (Home and Student version) 10/10/2017

Project Professional 2007 10/10/2017

Ultimate 2007 10/10/2017

Visio Professional 2007 10/10/2017

Visio Standard 2007 10/10/2017

Microsoft recommends that customers migrate to current product versions before the support end dates. This lets
them take advantage of the latest product innovations and ensure uninterrupted support from Microsoft.
We encourage customers to evaluate transitioning to Office 365 with the help of their Microsoft representatives or
technology partner.
Resources
Resources to help you upgrade your Office 2007 servers and clients
Office 2007 Retirement
Migration assistance with Microsoft FastTrack
Microsoft FastTrack services are available with an Microsoft 365 Apps for enterprise subscription. These services
can help customers move to Office 365 smoothly and with confidence, and allow them to realize business value
more quickly. Customers can discover what's possible, plan for successful rollouts, and enable new users and
capabilities at their own pace. Other benefits include best practices, tools, resources, and experts who are
committed to making the customer experience with Office 365 a success.
Support for 2013 versions of Microsoft 365 Apps for
enterprise ends February 28, 2017
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Ending support for the 2013 versions of Office 365 client applications
This article explains that support for the 2013 versions of Office 365 client applications ended on February 28,
2017.

NOTE
This article doesn't apply to the Office 2013 Professional Plus, Professional, and Standard editions. To learn about the support
dates for the Office 2013 Professional Plus, Professional, and Standard editions, see Microsoft support lifecycle.

Users who are running the 2013 versions of Office 365 client applications after February 28, 2017, must upgrade
to the latest version of Office 365 client applications to continue to receive support from Microsoft. The following is
a list of products for which support will end:
Microsoft 365 Apps for enterprise (2013)
Office 365 Business Premium (2013)
Office 365 Business (2013)
Office 365 Home (2013)
Office 365 Personal (2013)
Project Pro for Office 365 (2013)
Visio Pro for Office 365 (2013)
After February 28, 2017:
All 2013 versions of Office 365 client applications (32-bit and 64-bit) and all 2013 language packs are no longer
available for installation from the Office 365 admin center.
Microsoft is not releasing any feature updates for these versions of the products.
Microsoft is not providing support for these versions of the products through either Customer Service and
Support (CSS) or Microsoft Premier Support.
Microsoft will continue to release critical and important security updates for these versions of the products until
April 10, 2023. For more information, see Security Bulletin Severity Rating System.
Microsoft will not provide any notification before implementing potentially disruptive changes that may result in
a service interruption for users of the 2013 versions of Office 365 client applications.

Moving to the latest version of Microsoft 365 Apps for enterprise


1. Contact the FastTrack Center to get help for your Microsoft 365 Apps for enterprise deployment or review
the Microsoft 365 Apps for enterprise deployment content.
2. Learn about the Office update channel model.
Microsoft 365 Apps for enterprise ships in update channels. These different update channels let you control
how often your organization gets new features. For more information, see Overview of update channels for
Microsoft 365 Apps for enterprise.
3. Create a group of users for validation and testing.
This group could include the IT team or early adopters, and it will give them an opportunity to become
comfortable with the new capabilities and test any LOB integrations that are critical to your business. For
more information, see Overview of update channels for Microsoft 365 Apps for enterprise.
4. Determine which Exchange Server configuration is needed for your organization.
Option 1: Move to Exchange Online in Office 365
Microsoft 365 Apps for enterprise is built to support Exchange Online and the other Office 365 workloads.
Customers deployed on Office 365 will always be up to date without a worry of end of support deadlines.
The Microsoft FastTrack Center is ready to help and will provide on-boarding guidance and data migration
services to all eligible Office 365 customers.
Option 2: Upgrade to the latest version of Exchange Ser ver
You can upgrade to a on-premises version of Exchange Server that supports Microsoft 365 Apps for
enterprise, such as Exchange Server 2019. For more information, see System requirements for Office and
Exchange Server supportability matrix.
If you plan to upgrade Exchange Server, verify that the Exchange Server Autodiscover service is functional, as
Outlook for Office 365 no longer supports the option to manually set an Exchange account.
For more information, see Autodiscover service.
Still need help? Go to Microsoft Community.
In Visio, the "Fit to Drawing" command does not
resize the page to fit the drawing's dimensions
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Visio 2010 or Visio 2013, when you click Fit to Drawing in the Size group on the Design tab, the
page resizes. But a small margin remains between the edge of the page and the drawing.

Cause
This issue occurs because of a design change in Visio. The Fit to Drawing command takes the margin settings of
the page into consideration when the command resizes the page to fit the drawing.

Resolution
To resolve this issue, follow these steps:
1. On the File tab, click Options , and then in the navigation pane, click Customize Ribbon .
2. In the Main Tabs pane, click to select the Developer check box, and then click OK .
3. On the Developer tab, click Show ShapeSheet , and then click Page .
4. In the Print Proper ties section of the ShapeSheet , set the following values to 0:
PageLeftMargin
PageRightMargin
PageTopMargin
PageBottomMargin
5. Use the Fit to Drawing command again. The page now resizes to fit the same dimensions of the drawing, and
there is no margin.
You cannot add the Microsoft Visio 2010 or 2013
drawing control to a Windows Form application in
Visual Studio if you have the 64-bit version of Visio
installed
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You experience one of the following problems on a computer that has the 64-bit version of Microsoft Visio 2010 or
2013 installed:
Microsoft Office Visio Drawing Control does not appear in the COM Components tab in the Choose
Toolbox Items dialog box as expected. Therefore, you cannot add the drawing control to a Windows Form
application in Microsoft Visual Studio.
When you rebuild a Windows Form application in Visual Studio that already has the drawing control, you
may receive the following error message:
"Failed to create the wrapper assembly for type library "AxVisOcx". Did not find a registered ActiveX control
in 'VisOcx'."
Note AxVisOcx is the ActiveX control wrapper assembly that enables the drawing control to be embedded in a
Windows Form application. When you receive this error message, you receive other error messages that are caused
by this problem. These error messages discuss the AxMicrosoft namespace.

Cause
These problems occur because the Visual Studio designer does not support 64-bit ActiveX controls and because the
64-bit version of Visio only works with the 64-bit version of the Microsoft Office Visio drawing control. Therefore,
the drawing control cannot be instantiated.

Workaround
To work around this problem, follow these steps:
1. Install the 32-bit version of Visio on a computer.
2. Add the 32-bit version of the Microsoft Office Visio drawing control to the Windows Form application in
Visual Studio. Make all the necessary design changes to the drawing control.
3. Move the Visual Studio project to a computer that has the 64-bit version of Visio 2010 installed. The drawing
control cannot be seen in the Windows Form application. This is the expected behavior.
4. Reconfigure the project to target the 64-bit platform. For more information about how to configure a project
to target platforms, visit the following Microsoft Developer Network (MSDN) Web site:
How to configure projects to target Platforms
5. Use the 64-bit version of the MSBuild.exe tool to build the solution if the AxVisOcx wrapper assembly for the
drawing control cannot be created by building the solution. To do this, follow these steps:
a.Click Star t , click All Programs , and then click Accessories .
b.Right-click Command Prompt , and then click Run as administrator .
c.At the command prompt, type the following command, and then press ENTER:cd solution_path
d.To build the solution, type the following command, and then press ENTER: MSBuild_Path \MSBuild.exe
solution_name
Notes
solution_path is a placeholder for the path of the solution.
MSBuild_Path is a placeholder for the path of the 64-bit version of the MSBuild.exe tool.
solution_name is a placeholder for the name of the solution.
You can safely ignore warnings that are related to setup projects. The MSBuild.exe tool does not support
setup projects. Therefore, setup projects cannot be built.
6. Build setup projects in the Visual Studio integrated development environment.
You cannot change the text or shape fill color in Visio
when using a High Contrast Windows theme
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When changing the text color or shape fill color within a Visio 2013 or Visio 2010 drawing, the changes are not
displayed on screen. However, the changes are reflected on a physical printout.

Cause
This issue can occur if a Windows High Contrast theme is applied to the machine.

Resolution
To remove the High Contrast theme, right click the desktop background and go to Personalize. Select a theme that
does not contain "High Contrast" in the title.
Error message when you open a file type that is
blocked by registry policy settings in Visio 2013
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
A user cannot open a drawing file that uses one of the following formats or save a drawing file to one of the
following formats by using Microsoft Visio 2013:
Visio 2003-2010 Binary Drawings, Templates and Stencils
Visio 2000-2002 Binary Drawings, Templates and Stencils
Visio 5.0 or earlier Binary Drawing, Templates and Stencils
Additionally, when the user tries to open the file or save the file to one of the formats, the user receives one of the
following error messages that informs the user that the file is blocked:
Error message 1

You are attempting to open a file type that is blocked by your registry policy setting.

Error message 2

You are attempting to open a file that was created in an earlier version of Microsoft Office. This file type is
blocked from opening in this version by your registry policy setting.

Error message 3

You are attempting to open a file type <File_Type> that has been blocked by your File Block settings in the
Trust Center.

Cause
This issue occurs because the file type that you want to open or save to is blocked in Visio 2013.
Note The File Block Settings dialog box is new in Visio 2013.

Resolution
To open the blocked drawing file or save a file to a blocked file type, use one of the following methods.
IMPORTANT
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur
if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back
up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how
to back up and restore the registry, see How to back up and restore the registry in Windows.

Method 1: Unblock the file type in the Trust Center


1. Click the File tab in Visio 2013, and then click Options .
2. Click Trust Center , click Trust Center Settings , and then click File Block Settings .
3. Clear the check box for the file type that you want to open or save to.
4. Click OK two times.

NOTE
If the issue occurs in an embedded or linked Visio file in other Microsoft Office applications, clear both the Save and
Open check boxes for the "Visio 2003-2010 Binary Drawings, Templates and Stencils" file type.

The following screen shot shows the default settings for the **File Block Settings **dialog box in Visio 2013:

If the Open and Save options are unavailable, your system administrator may have applied group policies to block
the file types.
Method 2: Move the file to a trusted location
If you trust the file that you want to open in Visio 2013, override the registry policy settings by moving the file to a
trusted location.
For more information about how to create, remove, or change a trusted location for files, go to the following
Microsoft website:
Plan and configure Trusted Locations settings for Office 2013
Method 3: Use a Group Policy template to override the file type that is blocked
If you are a domain administrator, you can override the settings for file types that are blocked by using a Group
Policy template. You can download the Office 2013 Administrative Template files (ADM, ADMX/ADML) and Office
Customization Tool.
This update provides updated Group Policy template files that you can use to override the settings for the files that
are blocked by default or to block additional file types.
Note You can control the restrictions for the following file types by using the File Block Settings dialog box:
Visio 2003-2010 Binary Drawings, Templates and Stencils
Visio 2000-2002 Binary Drawings, Templates and Stencils
Visio 5.0 or earlier Binary Drawing, Templates and Stencils

More Information
How to restrict files in Microsoft Visio 2013
To restrict the kinds of files that you can open or save in Visio 2013, an administrator can use the 2013 Office
System Administrative Templates to configure the registry on the client computer.
For more specific information about how to use settings to block users from opening and saving specific file
formats in Office 2013 programs, see Overview of Group Policy for Office 2013.
You can't open Visio files in Visio Web Access even if
Visio Viewer is installed
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You are running Internet Explorer.
You have Visio Viewer installed on the computer.
You try to open Microsoft Office Visio files in Visio Web Access.
In this scenario, when you click Open in Visio, you receive the following error message:

To open this document, your computer must be running a supported version of Microsoft Visio and a browser that
supports opening files directly from Visio Web Access

Cause
This issue occurs because Visio Web Access invokes the client application by using the ms-
visio:ofv|u|documenturl protocol, but Visio Viewer doesn't support or process this protocol.

Resolution
To resolve this issue, install Microsoft Office Visio.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Enable the Windows Search service if you want to use
the Search for Shapes feature in Visio 2010 or in Visio
2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
The Search for Shapes feature in Microsoft Visio 2010 and in Microsoft Visio 2013 uses the Windows Search
service to search for the Visio stencils that are installed on your computer. The Windows Search service must be
running to enable quick searching. Otherwise, searches take a long time to finish, and the search results may be
incorrect. Additionally, you receive the following warning message:

Visio cannot provide fast search results because Windows Search is not running or is not configured properly
for Visio. Please contact your system administrator.

More Information
By default, the Windows Search service is enabled in Windows 7 and in Windows 8. However, you must manually
enable the Windows Search service in Windows Server 2008 R2 and in Windows Server 2012.
How to enable the Windows Search service in Windows Server 2012
To enable the Windows Search service in Windows Server 2012, follow these steps:
1. Start Server Manager.
2. Click Manage , and then click Add Roles and Features .
3. On the Before You Begin page, click Next .
4. On the Installation Type page, select Role-based or Feature-based Installation , and then click Next .
5. On the Server Selection page, select the server or virtual hard disk on which to install Windows Search Service.
6. On the Features page, select Windows Search Ser vice , and then click Next
7. On the Confirmation page, verify that Windows Search Service is listed, and then click Install .
How to enable the Windows Search service in Windows Server 2008 R2
To enable the Windows Search service in Windows Server 2008 R2, follow these steps:
1. Start Server Manager.
2. Click Roles in the left navigation pane.
3. Click Add Roles in the Roles Summary pane.
4. On the Server Roles page, select the File Ser vices role, and then click Next .
5. On the Role Services page, select the Windows Search Ser vice role service, and then click Next .
6. On the Confirmation page, verify that Windows Search Ser vice is listed, and then click Install .
Search for Shapes feature on the Internet is
discontinued
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
The Search for Shapes feature in Visio 2003 and 2007 (known as "Find Shape" in Visio 2002) allowed users to
query for Visio shapes both on their computer as well as online from Microsoft servers. The online search portion
of Search for Shapes feature is being discontinued and the servers are being shut down. Users of Visio 2002 and
later versions will only be able to search for shapes locally. Results will not be returned from the online source.
Some of the shapes that were available only online, such as the geographic map shapes, are available for download
in the Microsoft Download Center. These shapes can be found by searching for "Visio" in the Microsoft Download
Center.

More Information
In Microsoft Office Visio, you can use the Search for Shapes box to search for shapes. The Search for Shapes
feature searches the Office Visio stencils that are installed on your computer. The Search for Shapes box works best
when Windows Indexing service is enabled and running for Visio 2007 and earlier. Visio 2010 and later utilize the
Windows Search service when searching for shapes. If one of these services is disabled or not functioning properly,
users may receive "No result found" when searching for shapes. Possible resolutions to this problem include:
Installing the Windows Search service on Windows Server - see the reference for more details
Enable Windows Search service - Right click the taskbar and select Start Task Manager. On the services tab, confirm
that the "Windows Search" service is running. If not,
1. Go to Start > Control Panel > Uninstall a program > Turn Windows features on or off
2. Place a check mark next to "Windows Search" to enable the service, then click OK.
Installing the latest IFilter updates (Visio 2007 and earlier) - refer to the website to download the update.
Text is not displayed in a Visio 2010 / 2013 drawing
when you open the drawing in a browser
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Using Microsoft Visio 2010 / 2013, you save a Microsoft Visio Drawing as a Web Page (.htm; .html) to an HTTP
server. However, the text in the Visio drawing is not displayed when you open the Web Page (.htm; .html) file in a
browser.

Cause
This issue occurs because the .odttf MIME type is not registered in the HTTP server. The Silverlight Extensible
Application Markup Language (XAML) output from HTTP servers only works if the .odttf MIME type is recognized
by the servers.

Resolution
To resolve this issue, contact your HTTP server administrator and make sure that the .odttf MIME type is registered
in the server.
File name extension:
.odttf
MIME type:
application/octet-stream

Workaround
Resave the Web Page from Visio with the output format set to something other than XAML, like VML. Specifically,
when choosing Web Page (.htm;.html) click on the Publish... button in the Save As dialog, click on the Advanced tab
and choose something other than XAML (Extensible Application Markup Language). For example, this won't occur
when you choose VML (Vector Markup Language), the default in Visio 2007. The drawback to this workaround is
the web page will not be using Silverlight, if you have Silverlight installed on the client machine opening the web
page.
Chosing XAML as the output format requires a Microsoft Silverlight browser plug-in or a browser capable of
displaying XAML. If you choose another output format when publishing the Visio Drawing you will not benefit from
Silverlight rendering of the Visio Web Page.

More Information
Configure MIME Types
IIS 7 https://technet.microsoft.com/en-us/library/cc725608(WS.10).aspx
IIS 6 https://technet.microsoft.com/en-us/library/cc786786(WS.10).aspx
"This is not a valid win32 application" when you install
Microsoft 365 Apps for enterprise, Visio Pro for Office
365, or Project for Office 365
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Problem
When you try to install Microsoft 365 Apps for enterprise, Visio Pro for Office 365, or Project for Office 365, you
receive the following error message:
This is not a valid win32 application.
This issue occurs if you try to install the program on an operating system that's not supported.

Solution
To resolve this issue, make sure that the computer meets the system requirements for the program. For more
information about system requirements for Office 2013, see System requirements for Office 2013.
Still need help? Go to Microsoft Community.
How to troubleshoot damaged drawings in Visio
3/30/2020 • 15 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses how to troubleshoot damaged drawings in Microsoft Office Visio 2013, Visio 2010, Visio
2007, Microsoft Office Visio 2003, and Microsoft Visio 2002. This article describes some symptoms that may
indicate that the drawing that you are working with in Visio is damaged.
Additionally, this article lists some recovery methods that you can use on the damaged drawing. They include
general troubleshooting methods, methods to try if you can or cannot open the drawing, and methods to help
prevent damage that may occur to drawings.

Introduction
Overview
If you experience unexpected behavior when you work with a Visio drawing, the Visio drawing may be damaged.
You may receive the following error messages if you have a damaged drawing:
"Invalid Page Fault," "General Protection Fault," or "Illegal Instruction" error messages
Error messages that are similar to one of the following when you open a drawing:
"An error (100) occurred during the action Open"
"Visio cannot open the file because it's not a Visio file or it has become corrupted."
"Out of memory" error messages or error messages that indicate low system resources

NOTE
These error messages do not always mean that your drawing is damaged. However, if you repeatedly experience one or more
of these error messages when you work with a particular drawing, that drawing may be damaged.

This article lists some methods that you can use to try to recover the damaged drawing. The methods that are
described in this article do not guarantee the successful recovery of a damaged drawing. Sometimes, depending on
the type of damage, you may not be able to recover any data. You may have to re-create the drawing or restore the
drawing from your backup files.
General troubleshooting methods
Start Visio without Automation events and without Microsoft Visual Basic for Applications
Start Visio without Automation events and without Visual Basic for Applications. To do this, use one of the following
methods:
Method 1: Microsoft Office Visio 2013 and Visio 2010
1. Start Visio.
2. On the File tab, click Options , and then click Trust Center .
3. Click Trust Center Settings , and then click Disable all macros without notification .
4. Click Add-ins .
5. Click to select the Disable all Application Add-ins check box.
6. Click OK .
7. Exit Visio, and then restart Visio.
Method 2: Microsoft Office Visio 2007
1. Start Visio normally.
2. On the Tools menu, click Trust Center .
3. Click Macro Settings , and then click Disable all macros without notification .
4. Click Add-ins .
5. Click to select the Disable all Application Add-ins check box.
6. Click OK .
7. Exit Visio, and then restart Visio.
Method 3: Microsoft Office Visio 2003 and earlier versions of Visio
1. Start Visio normally.
2. Use one of the following procedures, depending on the version of Visio that you are running:
If you are running Visio 2003, click Options on the Tools menu, and then click the Security tab.
If you are running Visio 2002, click Options on the Tools menu, and then click the Advanced tab.
3. Do the following:
Click to clear the Enable Microsoft Visual Basic for Applications check box.
Note After you click to clear the Enable Microsoft Visual Basic for Applications check box, the
Enable Microsoft Visual Basic for Applications project creation check box and the Load
Microsoft Visual Basic for Applications project from text check box becomes unavailable.
Click to clear the Enable COM add-ins check box.
Click to clear the Enable Automation events check box.
4. Click OK , and then quit Visio.
5. Restart Visio.
Method 4: Use the 'Copy Drawing' command to copy each page into a page in a new drawing
For Visio 2013 and Visio 2010:
1. Make sure that nothing in the drawing is selected.
2. On the Home tab, under the Clipboard group, click Copy .
3. Open the document in which you want to embed the drawing, and then on the Home tab, in the Clipboard
group, click Paste .
For Visio 2007 and Visio 2003:
1. In the Microsoft Office Visio drawing, make sure that nothing is selected.
2. On the Edit menu, click Copy Drawing .
NOTE
This command copies the entire drawing, including shapes on other drawing pages and on backgrounds. When you
embed a multiple-page Visio drawing, the visible page will be the one that is active when you click Copy Drawing .

3. Open the document in which you want to embed the drawing, and then on the Edit menu, click Paste (or the
equivalent command).
Start Windows in Safe Mode
Start Windows in Safe Mode. To do this:

NOTE
Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are,
see your product documentation to complete these steps.

1. Shut down, and then restart your computer.


2. When you see the "Please select the operating system to start" message, press F8.
3. On the Windows Advanced Options menu, use the ARROW keys to select Safe Mode , and then press
ENTER.
4. If you have a dual-boot or multi-boot computer, select the appropriate operating system from the list that
appears, and then press ENTER.
5. Start Visio, and then try to open your drawing.
For more information about Safe Mode, see Advanced startup options (including safe mode).
Methods to try if you cannot open a drawing
Method 1: Drag the drawing file to the Visio.exe file icon
Drag the drawing file to the icon that represents the Visio.exe file. To do this: If you are running Visio 2010, the
Visio.exe file is located in the following folder: Drive:\Program Files\Microsoft Office\Office14, *If you installed Visio
32-bit on Windows 64-bit the Program Files folder will have a (x86) behind the folder name. Visio 2010 now has a
native 64-bit version.
1. Quit Visio.
2. Start Microsoft Windows Explorer, and then locate the Visio.exe file on your hard disk. If you installed Visio to
the default location, the Visio.exe file is located in one of the following folders, depending on the version of Visio
that you are running:
If you are running Visio 2013, the Visio.exe file is located in the following folder:Drive :\Program
Files\Microsoft Office\Office15

NOTE
If you installed a 32-bit version of Visio on a 64-bit version of Windows, the Program Files folder will have a
(x86) behind the folder name. Visio 2013 now has a native 64-bit version.

If you are running Visio 2010, the Visio.exe file is located in the following folder: Drive:\Program
Files\Microsoft Office\Office14 NoteIf you installed a 32-bit version of Visio on a 64-bit version of
Windows, the Program Files folder will have a (x86) behind the folder name. Visio 2010 now has a
native 64-bit version.
If you are running Visio 2007, the Visio.exe file is located in the following folder:
Drive :\Program Files\Microsoft Office\Office12
If you are running Visio 2003, the Visio.exe file is located in the following folder:
Drive :\Program Files\Microsoft Office\Visio11
If you are running Visio 2002, the Visio.exe file is located in the following folder:
Drive :\Program Files\Microsoft Office\Visio10

NOTE
If you installed Visio to a folder that is different from the default installation location, the path of the Visio.exe file is
different on your computer.

3. In Windows Explorer, locate the drawing file that you want to open.
4. Drag the drawing file to the icon that represents the Visio.exe file.
Method 2: Double-click the drawing file in Windows Explorer
Try to open the drawing file by using Windows Explorer. To do this:
1. Quit Visio.
2. Start Windows Explorer, and then locate the drawing file that you want to open.
3. Double-click the drawing file.
Method 3: Open the temporary copy of the drawing file
When you modify a Visio drawing, a temporary copy of the drawing file is created. The temporary copy of the
drawing file is named ~$$FileName .~vsd. The temporary copy of the drawing file is typically created and stored in
the same folder as where your drawing is located.
To open the temporary copy of the drawing file, do the following:
1. Start Visio, and then open your drawing.
2. Start Windows Explorer, and then locate the folder where your drawing is stored. Look in this folder for the
temporary copy of the drawing file. The temporary copy of the drawing file is named ~$$FileName .~vsd.

NOTE
If the temporary copy of the drawing file is not located in the folder where your drawing is stored, search the hard
disk for the temporary copy of the drawing file.

To search the hard disk for the temporary copy of the drawing file, do the following:
Note Because there are several versions of Microsoft Windows, the following steps may be different on your
computer. If they are, see your product documentation to complete these steps.
a. Click Star t , and then click Search .
b. Click All files and folders .
c. In the All or par t of the file name box, type ~$$FileName .~vsd, and then click Search .
3. Change the extension of the temporary copy of the drawing file to .vsd. To do this:
a. Right-click the temporary copy of the drawing file, and then click Rename .
b. Change the extension of the temporary copy of the drawing file from ~.vsd to .vsd.
4. Try to open the temporary copy of the drawing file that you renamed.
Method 4: Use the Microsoft Office Visio Viewer to open the drawing
Install Microsoft Office Visio Viewer 2010, and then use Visio Viewer to open and view your drawing. When you
install Visio Viewer 2010, you can use Microsoft Internet Explorer 5.0 or a later version of Internet Explorer to view
Visio drawings and diagrams that are created with Visio 2010, Visio 2007, Visio 2003, Visio 2002, Microsoft Visio
2000, or Microsoft Visio 5. For more information about Visio Viewer 2010, visit the following Microsoft website:
https://www.microsoft.com/download/details.aspx?displaylang=en&id=21701
If you can open your drawing in the Visio Viewer, the installation of Visio on your computer may be damaged, or
your drawing may contain one or more objects that may be damaged.
Method 5: Copy the drawing file to another computer
Copy the drawing file to another computer that has Visio installed on it. If you can open your drawing on that
computer, save the drawing file to a different folder on the hard disk of that computer, and then copy the drawing
file back to the original computer.
Method 6: Copy the drawing file to another disk on your computer
Windows may not be able to read the drawing file from where the drawing file is currently saved. Copy the drawing
file to another disk on your computer. For example, copy the file from a floppy disk to the hard disk. After you copy
the drawing file to a different disk on your computer, try to open the drawing file.

NOTE
If you cannot copy the drawing file from the disk where the drawing file is saved, the drawing file may be cross-linked with
other files or folders, or the drawing file may be located in a damaged sector of the disk. To troubleshoot this issue, follow the
steps in Method 7.

Method 7: Detect and repair errors on the hard disk


If you are running Microsoft Windows Server 2003, Microsoft Windows XP, Microsoft Windows 2000, or Microsoft
Windows NT 4.0, use the Check Disk tool to detect file system errors or bad sectors on your hard disk.
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
Check your hard disk for errors
If you are running Microsoft Windows Millennium Edition (Me) or Microsoft Windows 98, use the Scandisk tool to
detect file system errors or bad sectors on your hard disk.

NOTE
Although the Check Disk tool or the ScanDisk tool can detect and repair file-system errors or bad sectors on the hard disk,
Visio may still not be able to open or read the file.

Method 8: Open a previous "Shadow Copy" using the Previous Versions tab
1. Right-click the Visio file.
2. Choose Proper ties .
3. Select the Previous Versions tab, give some time for the list to populate.
4. Select an older version of the file.
5. Click Open .
6. If the file opens successfully, from the File menu click Save As and save a copy of the file.
Methods to try if you can open the drawing
Method 1: Save the file as an XML drawing
Save the drawing as an XML drawing (.vdx file), and then save the XML drawing as a drawing (.vsd file). To do this:
1. Start Visio, and then open your drawing.
2. On the File menu, click Save As .
3. In the Save As dialog box, click XML Drawing (*.vdx) in the Save as type box, and then type a file name in
the File name box. Specify a location where you want to save the drawing file, and then click Save .
4. Close all the drawings that are currently open.
5. On the File menu, click Open .
6. Locate the XML drawing (.vdx) that you saved earlier in step 3, and then click Open .
7. On the File menu, click Save As .
8. In the Save As dialog box, click Drawing (*.vsd) in the Save as type box, and then type a file name in the File
name box. Specify a location where you want to save the drawing file, and then click Save .
9. Close the drawing.
10. On the File menu, click Open
11. Locate the drawing (.vsd file) that you saved earlier in step 8, and then click Open .
Method 2: Insert the drawing to a new blank drawing
Insert the drawing to a new blank drawing. To do this:
For Visio 2013 and Visio 2010:
1. Start Visio
2. Under the File tab, under New , select Blank Drawing , and then click the Create button.
3. On the Inser t tab, click Object .
4. Click Create from file , and then click Browse .
5. Select the drawing, click Open , and then click OK .
6. Depending on your situation, determine whether the drawing file is damaged or whether there is another
problem.
If you receive an "Error 3400" error message, the drawing file may be damaged. Use the methods that are
described in this article to try to recover the drawing.
If you do not receive an "Error 3400" error message, there may be another issue that may be preventing
Visio from opening the drawing. For example, a conflict may exist between certain components on the
computer that prevent Visio from opening the drawing.
For Visio 2007 and Visio 2003:
1. Start Visio.
2. On the File menu, point to New , and then click New Drawing .
3. On the Inser t menu, click Object .
4. Click Create from file , and then click Browse .
5. Click the drawing, click Open , and then click** OK**.
6. Depending on your situation, determine whether the drawing file is damaged or whether there is another
problem.
If you receive an "Error 3400" error message, the drawing file may be damaged. Use the methods that are
described in this article to try to recover the drawing.
If you do not receive an "Error 3400" error message, there may be another issue that may be preventing
Visio from opening the drawing. For example, a conflict may exist between certain components on the
computer that prevent Visio from opening the drawing.
Methods to try to help prevent damage to drawings
You cannot prevent all corruption that may occur to files. Hard disks may wear out, power supplies may fail, and
other unforeseeable events may occur that cause files to become damaged. The following tips and suggestions may
help reduce the number of damaged files that occur in Visio and in other programs.
Optimize the AutoRecover setting in Visio
Configure the AutoRecover setting to a value that works for you. If your computer stops responding or if you lose
power unexpectedly, Visio opens the AutoRecovery file the next time that you start the program. The AutoRecovery
file may contain unsaved information that would otherwise be lost from your original drawing file. If your original
drawing file was damaged, you may be able to recover information from the AutoRecovery file.
To configure the AutoRecover setting in Visio:
1. Start Visio.
2. On the Tools menu, click Options .
3. Click the Save tab or the Save/Open tab.
4. Select the Save AutoRecover info ever y check box, and then specify the time in minutes that you want. By
default, the AutoRecover setting is set for 10 minutes.
5. Click OK .
Make sure that the power supply is consistent
A power supply that is not consistent can cause damage to files, even if you do not lose power. A power supply that
spikes or that is not sufficient can affect the read process and write processes on your computer, and may cause
damage. If the power supply in your area is inconsistent, use a surge protector. Surge protectors can help prevent
damage on your computer if power spikes occur. You may also consider using an uninterruptible power supply
(UPS). UPS units supply your computer with power even if there is a power outage. Contact your hardware vendor
for more information about how to obtain either of these devices.
Back up your data
Make sure that you back up your data regularly. For example, store a backup copy of your drawing on a different
volume on the hard disk. Or, depending on your requirements and on your environment, implement other backups
or other fault-tolerant solutions on your computer. Some fault-tolerant solutions, such as Redundant Array of
Independent Disks (RAID), are typically only practical for larger networks. Other backup options include the
following:
Tape backup
CD backup
Mirrored volume
RAID-5 volume
External hard disk drive
USB (Flash) drive
Work with your data locally
If you work in a network environment and you experience corruption frequently, you may want to consider copying
your files to your local computer before you open the file or before you modify the file. Copy the file to your
desktop by using My Computer or by using Windows Explorer. When you work with files that are stored on your
local computer, you prevent read issues or write issues that may be caused by network connectivity issues such as
the following:
Slow network connections
Dropped network connections
Spikes in network traffic
You may also want to consider working from the hard disk and not working from removable media such as a
floppy disk or a ZIP drive. The more media and the more device drivers that are involved in a save operation, the
more the increased chance of file damage.
Visio 2010 or 2013 does not have certain shapes and
stencils included with the product
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
With each release of Microsoft Visio, we evaluate the set of shapes that are included in Visio. We then make
additions, replacements, and deletions, based on usage data on the different shapes, together with customer
feedback about the shapes. For Microsoft Visio 2010, the following stencils were removed:
ROOM
Jackson
ORM
Express-G
To download these stencils, visit the Microsoft Download Center:
Software and Database Shapes for Microsoft Visio
Visio Services does not render diagrams that are
hosted on servers that have IDNs
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you have Microsoft Silverlight installed on a computer, Microsoft Visio Services cannot render diagrams that
are hosted on servers that have International Domain Names (IDNs). Specifically, Visio Services cannot render
these diagrams by using Silverlight on a Microsoft SharePoint Server site. Additionally, a JavaScript error occurs.
Note This is a known problem in Silverlight.

Cause
When Visio Services loads a diagram, Visio Services transforms the diagram by using Extensible Application
Markup Language (XAML). Then, the Visio Web part reads the XAML. This problem occurs because Silverlight
cannot fetch the new XAML-based diagram from the server that has an IDN.

Resolution
To resolve this problem, configure Visio Services to render diagrams as raster images. For example, configure Visio
Services to render diagrams as Portable Network Graphics (PNG) images. Or, do not use a server that has an IDN.
To do render diagrams as raster images, follow these steps:
1. Click the Visio Web Access Web Par t menu, and then click Edit Web Par t .
2. Select the Force raster rendering check box.
3. Click Apply , and then click OK .

More Information
The Visio Web Access Web part must be added to a page. To add the Web part to an existing page or to create a
Web part page, use the following procedures in SharePoint Server.
To add the Web part to an existing page, follow these steps:
1. Click the Site Actions menu, and then click Edit Page .
2. Click Add a Web Par t .
3. In the Categories menu, select Business Data .
4. Click Visio Web Access , and then click Add .
5. Click the Click here to open the tool pane link.
6. Click the browse button that is next to the Web Drawing URL field.
7. Select a Web drawing (.vdw), and then click OK .
8. Click Apply , and then click OK .
To create a new Web part page, follow these steps:
1. Click the Site Actions menu, and then click More Options… .
2. Select Web Par t Page , and then click Create .
3. Type a name for the page, select a layout template, select a Document Library, and then click Create .
4. In one of the Web part sections, click Add a Web Par t .
5. In the Categories menu, select Business Data .
6. Click Visio Web Access , and then click Add .
7. Click the Click here to open the tool pane link.
8. Click the browse button that is next to the Web Drawing URL field.
9. Select a Web drawing (.vdw), and then click OK .
10. Click Apply , and then click OK .
"Visio Services was unable to load this Web Drawing"
when you load a Visio web drawing hosted on a
different SharePoint farm
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You have two server farms that are running Microsoft SharePoint.
You host a Visio web drawing on the first SharePoint farm.
You try to load the Visio web drawing on the second SharePoint farm.
In this scenario, you receive the following error message:

Visio Services was unable to load this Web Drawing because the Web Drawing URL web part setting does not refer
to an existing .VDW file or you do not have permissions to view it. To resolve this issue, verify that the Web
Drawing URL refers to an existing .VDW file that you have permissions to view.

Cause
This issue occurs because Visio Services in Microsoft SharePoint Server does not support federation. You can only
display Visio web drawings on the SharePoint farm that hosts the drawing.
"end tag" error occurs when you open a DOCX file in
Word 2013, 2010, or 2007
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a Microsoft Word 2007, 2010 or 2013 document, you may receive this error message:
In Word 2007 and Word 2010:

The file <document filename> cannot be opened because there are problems with the contents.

Clicking the Details button provides this additional information:

The name in the end tag of the element must match the element type in the start tag.

In Word 2013:

We're sorry. We can't open <document filename.docx> because we found a problem with its contents.

Clicking the Details button provides this additional information:

The name in the end tag of the element must match the element type in the start tag.
Cause
This issue is related strictly to oMath tags and occurs when a graphical object or text box is anchored to the same
paragraph that contains the equation. The document will display the equation and object on the same line as
demonstrated in this image:

The error may not occur until the document is saved, re-edited and saved again.

Resolution
Office 2013 and Office 2010 Service Pack 1 resolves this issue for new files. It will also prevent the problem from
recurring with any files that were recovered with the Fix it solution in this article.
If you currently have Office 2010 installed on your computer, we recommend that you follow these steps:
Step 1
Download Office 2010 Service Pack 1. To do this, follow the steps provided in this Microsoft knowledge base article:
2460049 - Description of Office 2010 SP1
Step 2
If you are familiar with editing XML, you can try to fix the problem yourself by correcting the mismatched oMath
tags in the document. See the following example:

Incorrect tags:

<mc:AlternateContent>

<mc:Choice Requires="wps">

<m:oMath>

</mc:AlternateContent>

</m:oMath>

Correct tags:

<m:oMath>

<mc:AlternateContent>

<mc:Choice Requires="wps">

</mc:AlternateContent>

</m:oMath>

Note You will have to use an application such as Notepad to edit the XML.
Did this fix the problem?
Check whether the problem is fixed. If the problem is fixed, you are finished with this section. If the problem is
not fixed, you can contact support.
We would appreciate your feedback. To provide feedback or to report any issues with this solution, please leave
a comment on the "Fix it for me" blog or send us an email message.

More Information
The Fix it solution in this article should let you recover your Word document. However, the symptoms will reappear
when you make any further edits to the document unless the core problem in the structure of the document is
resolved.
To try to correct the core problem, follow one of these workarounds:
Install Office 2013 or install Office 2010 Service Pack 1
Office 2013 and Office 2010 Service Pack 1 resolves this issue for new files. It will also prevent the problem from
recurring with any files that were recovered with the Fix it solution in this article.
To download Office 2010 Service Pack 1, follow the steps provided in this Microsoft knowledge base article:
2460049 - Description of Office 2010 SP1
Grouping Objects
The steps provided work best under Word 2010 and Word 2013:
1. After you open the recovered document, turn on the Selection pane. This can be found in the Home tab of the
ribbon. The editing group of the Home tab has a dropdown button named Select .
2. Click the Select button, and then click Selection Pane...
3. Press the Ctrl button on your keyboard and then click each text box in the selection pane.
4. Click the Group button under the Format tab. This will group all the objects together.
5. As soon as you have all objects grouped on each page, save the document under a new name.
Save the document in the .RTF file format
The steps provided work for both Word 2007, Word 2010 and Word 2013:
1. After you open the recovered document, click File and select Save (for Word 2007 click the Office button and
select Save As ).
2. In the Save As dialog box, click "Save as type:" dropdown and select Rich Text format (*.r tf ) .
3. Click Save .
Click to view Error when opening a Word 2007 or 2010 document "The name in the end tag of the element must
match the element type in the start tag" for more information about this issue.
"The image part with relationship rID8 was not found"
error in Microsoft Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you save and then open a Microsoft Word document into which you imported an image, you see the
following message displayed in the place of the picture:

The image part with relationship ID rID8 was not found in the file

Cause
This occurs when there is a missing target in the XML document. The target field is set to "NULL."

Resolution
To resolve this error, follow the steps below:
1. Use File Explorer to browse to the folder where the document is stored.
2. Right-click the file and select Rename . Change the extension of the file from .docx to .zip, then select Enter.

NOTE
If you see a dialog box that asks "Are you sure you want to change it?", select Yes .

3. Double click the file (or right-click and select Open ).


4. Browse to the word/_rels folder.
5. Open the file document.xml.rels file in Notepad or any text editor.

NOTE
In many cases, if you double-click an XML file, it will open in a web browser which will not allow you to edit the file. To open in
Notepad, select Star t and then type notepad. Start Notepad, select Open , and then browse to the folder listed in step 4. If
you do not see the file, type . in the File name field and select Enter.

6. Search the document.xml.rels file for rID8.

7. In the example below, the target is incorrectly set to NULL:


<Relationship Id="rId8" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
Target="NULL"/>

As a fix, replace NULL with the name of the image (which should be stored in the media folder):

<Relationship Id="rId8" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"


Target="media/yourimagename.jpeg"/>

8. Save and close the XML file.


9. Use File Explorer to browse again to the file and change the extension from .zip to .docx.
10. Open the file and check to see if the image appears.
A connector does not move when you move a shape
in Microsoft Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
In a Microsoft Word document, you insert several shapes.
You insert a connector to link two of the shapes.
You select one of the shapes, and you move the shape to a different location.
In this scenario, the connector does not move with the shape.

Cause
This behavior occurs because the connector is not connected to the shape.

Resolution
To resolve this behavior, insert the shapes and connector in a new drawing canvas. When the shapes and connector
are inserted in a new drawing canvas, the connector is connected to the shape. And, the connector remains
connected to the shape when you move the shape.
To insert a new drawing canvas, on the Inser t tab, click Shapes in the Illustrations group, and then click New
Drawing Canvas . Then, insert the shapes and connector that you want.

More Information
For more information about how to draw shapes and connectors, visit the following Microsoft website: Draw or
delete a line or connector
Background is not printed when you print a Word
document
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you print a Microsoft Office Word document that includes a background, the background is not printed.
Examples of things that can be on a background include colors, pictures, or themes.
This issue may also occur when you use Word as your e-mail editor and you print an e-mail message that includes
a background.

Workaround
To work around this issue, use the method that is appropriate for your version of Word.
Word 2010
1. On the File menu, click Options .
2. On the Display menu, click to select the Print background colors and images check box under Printing
Options , and then click OK .
Word 2007
1. Click the Microsoft Office Button , and then click Word Options .
2. On the Display menu, click to select the Print background colors and images check box under Printing
Options , and then click OK .
Word 2003
To work around this issue in Word 2003 or when you use Word 2003 as the e-mail editor in Microsoft Office
Outlook 2003, turn on the Background colors and images option. To do this, follow these steps:
1. On the Tools menu, click Options , and then click the Print tab.
2. Click to select the Background colors and images check box, and then click OK .
Word 2002
Method 1: Use the Printed Watermark feature
To work around this issue in Word 2002, use the Printed Watermark feature. To do this, follow these steps:
1. On the Format menu, point to Background , and then click Printed Watermark .
2. In the Printed Watermark dialog box, use one of the following methods:
To insert a picture watermark, follow these steps:
a. Click Picture watermark .
b. Click Select Picture .
c. Click the picture that you want to use as a watermark, and then click Inser t .
d. Click to select the Washout check box if it is not already selected, and then click OK .

NOTE
The Washout feature adjusts the brightness and contrast on the image to make the image less visible
behind the text.

To insert a text watermark, follow these steps:


a. Click Text watermark .
b. In the Text box, type the text that you want to use as a watermark.

NOTE
You can also select the text that you want to use as a watermark by clicking the text in the Text list.

c. Select the other options that you want to use with the text watermark, such as Font , Size , and
Color , and then click OK .
Method 2: Use Microsoft Internet Explorer
To work around this issue when you use Word 2002 as the e-mail editor in Microsoft Outlook 2002, follow these
steps:
1. Open the e-mail message that contains the background that you want to print in Outlook 2002.
2. On the File menu, click Save As .
3. In the Save As dialog box, follow these steps:
a. In the Save as type box, click Web Page (*.htm; *.html) .
b. In the File name box, type a new name for the message.
c. In the Save in box, select the folder in which you want to save the HTML copy of the e-mail message.
d. Click Save .
4. Close the e-mail message in Word 2002.
5. Start Internet Explorer.
6. On the File menu, click Open .
7. In the Open dialog box, click Browse .
8. Locate and then click the HTML copy of the e-mail message that you saved in step 3, and then click Open .
9. In the Open dialog box, click OK to open the HTML copy of the e-mail message in Internet Explorer.
10. On the Tools menu, click Internet Options .
11. Click the Advanced tab.
12. In the Settings list, under Printing , click to select the Print background colors and images check box.
13. Click OK to close the Internet Options dialog box.
Cannot edit text in print preview in Microsoft Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
In Microsoft Word 2010 and later, you cannot edit text in print preview. This is because Edit mode does not work in
print preview. Edit mode lets you edit the print preview without returning to the document.

Resolution
To resolve this issue, use the Print Preview Edit Mode feature instead of print preview. To do this, use one of the
following methods:
Method 1: Add the Print Preview Edit Mode feature to the Quick Access Toolbar
1. On the File menu, click Options .
2. Click Quick Access Toolbar , and then click All Commands in the Choose commands from drop-down list.
3. Click Print Preview Edit Mode , and then click Add .
4. Click OK .
Method 2: Add the Print Preview Edit Mode feature by customizing a ribbon
1. On the File menu, click Options .
2. Click Customize Ribbon , and then click All Commands in the Choose commands from drop-down list.
3. Click Print Preview Edit Mode , and then click Add .
4. Click OK .
Developers can add the PrintPreviewEditMode control to a custom ribbon. Or, developers can make a custom
control to run the Print Preview Edit Mode feature through the OnAction callback method of the control.
"PowerPoint cannot insert a video from the selected
file" when you insert an MPEG-4 or QuickTime Movie
file into a presentation
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
On a slide in the 64-bit version of Microsoft PowerPoint 2013 or 2010, you try to insert a movie that uses one of
following Apple QuickTime video and audio formats:
MPEG-4 video (*.mp4)
MPEG-4 audio (*.m4a)
QuickTime Movie (*.mov)
When you try to insert one of these formats, you receive the following error message:
"PowerPoint cannot insert a video from the selected file. Verify that the necessary 64-bit codec for this media
format is installed, and then try again."

Cause
This issue occurs because currently the Windows operating system does not have a 64-bit video or audio codec for
the three QuickTime media formats.

Workaround
To work around this issue, you can convert these video or audio files to the Windows Media Video file format
(*.wmv) by using a third-party video or audio file converter.
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
Cannot modify the oData connections in an Excel
2013 PowerPivot workbook
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to modify the oData connections in a Microsoft Excel 2103 PowerPivot workbook, you receive the
following error message:
"Some properties cannot be changed because the connection was modified using the PowerPivot Add-In."

Cause
This is a limitation in PowerPivot for Excel.

Workaround
To work around this issue, follow these steps:
1. You click the PowerPivot Tab.
2. You click Home , click Get External Data , and then click Existing Connections .
3. You select the connection, and then select Edit .
4. You change the Data Feed Url or click Advanced , and then edit it.
5. You save the changes and then refresh the workbook.
"The file contains custom XML elements which are no
longer supported by Word" when you try to open a
document in Word
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. You try to open a document in Microsoft Office Word 2007, in Microsoft Word
2010 or in Microsoft Word 2013 that is using one of the following file formats:
Word Document (.DOCX)
Word Macro-Enabled Document (.DOCM)
Word Template (.DOTX)
Word Macro-Enabled Template (.DOTM)
Word XML Document (.XML)
Word 2003 XML Document (.XML)
During the opening process for Word 2007, for Word 2010 or for Word 2013, you receive the following error
message:

The file contains custom XML elements which are no longer supported by Word. If you save this file, these
custom XML elements will be removed permanently.

Then when you click OK , the custom XML elements do not display.
Note Microsoft Word 2013 displays the error message for following file formats in addition to the file formats
previously listed:
Word 97-2003 Document (.DOC)
Word Web Pages (.HTML)
Rich Text Format (.RTF)

More Information
Versions of Word that are distributed by Microsoft after January 10, 2010 no longer read the custom XML markup
that may be contained within .DOCX, .DOCM, .DOTX, .DOTM or .XML files. The new versions of Word 2007, Word
2010 and Word 2013 can still open these files, but any custom XML markup is removed.
Custom XML markup in a Word document is visible as pink (the default color) tag names surrounding text in a
document:
The removal of custom XML markup is the result of a United States court ruling on December 22, 2009. Generally,
customers who purchase or license Word 2007, Word 2010 or Word 2013 from Microsoft after January 10, 2010
for use in the United States and its territories have to use updated software that does not include a particular
custom XML tagging implementation.
The following features of Word are not affected by the update.
Content controls are not affected. Content controls are a common method of structuring document content
and mapping content to custom XML parts.
Open XML standards (all ECMA and ISO versions) are not affected.
Custom XML markup that is stored within Word 97-2003 document (.DOC) files is not affected.
Ribbon XML and Ribbon Extensibility are not affected.
Custom XML Parts are not affected. For more information about custom XML Parts, visit the following MSDN
Website: https://msdn.microsoft.com/library/bb608618.aspx.
The Word object model is not affected. However, some object model methods that deal with custom XML
markup may produce different results.
The TransformDocument method will continue to work, but any custom XML markup within the results of
the transform will be removed.
The InsertXML method will continue to work, but any custom XML markup that is present will be
removed before the content is inserted.

NOTE
If you are a developer of a solution that uses custom XML markup, be aware that support for custom XML markup is no
longer available. Many of the scenarios implemented by using custom XML markup can be implemented by using alternative
technologies, such as content controls, form fields, and bookmarks which are available in Word 2007, Word 2010 and Word
2013. For example, as explained in the following articles, content controls (in addition to these other technologies such as
bookmarks) enable developers to create structured documents and can be used to assign arbitrary values to structured
content. These arbitrary values can be used to assign semantic meaning to parts of your content.

For more information about content controls, visit the following Microsoft webpages:
Creating Word 2007 Templates Programmatically
Building Word 2007 Document Templates Using Content Controls
Mapping Word 2007 Content Controls to Custom XML Using the XMLMapping Object
How to: Bind a Content Control to a Node in the Data Store
Taking Advantage of Bound Content Controls
The Easy Way to Assemble Multiple Word Documents
Creating Data-Bound Content Controls using the Open XML SDK and LINQ to XML
References
Custom XML mapping is removed when you open a document in Word 2010
Custom XML markup is removed when you open a document in Word 2013
"Word cannot open this file because it is larger than
512 Megabytes" when opening a document in Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to open a Word file, you receive an error:
Word cannot open this file because it is larger than 512 Megabytes

Cause
This is the maximum file size Word can open.

NOTE
The maximum file size is limited to 32 MB for the total document text only and does not include graphics, regardless of how
the graphics image is inserted (Link to file, Save with document, or Wrapping style) into the document. Therefore, if the file
contains graphics, the maximum file size can be larger than 32 MB.

Resolution
There is a workaround to resolve this issue.
Workaround Steps:
1. Rename the Word file to a Zip (.docx to .zip).
2. Open Windows Explorer, locate, and then open the saved compressed file that has a .zip file name extension.

NOTE
To be able to change the 'docx' extension to 'zip', you have to have Windows Explorer's options set to show the
extensions.

3. Select the word folder, and then open the media folder to display the graphics.
4. Delete (or move to a new folder) some graphics to reduce the file size.
5. Rename the file back to docx and open with Word. If Word displays some errors, because it cannot find some
files, click Yes to recover the contents.
6. There will be placeholders for the deleted (or moved images).
7. Right-click the image placeholder, select Change Picture and browse to the folders where the pictures are
saved to select the pictures.
8. Click the arrow next to the Insert button and select Link to File.
9. Save the document.

More Information
For more information about other Word for Windows operating limits, see Operating parameter limitations and
specifications in Word.
"Word cannot start the converter SSPDFCG_X64.cnv"
error when you start Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to start Microsoft Word or perform a mail merge in Word, you receive the following error message:

Word cannot start the converter SSPDFCG_X64.cnv

Resolution
This issue may occur if you have Nuance software installed on your computer. For information about how to
resolve this issue, see the Nuance website:
Third-par ty information disclaimer
Microsoft provides third-party contact information to help you find technical support. This contact information may
change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
You cannot use the mouse to draw a selection
rectangle around multiple AutoShape objects in
Microsoft Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
If a Microsoft Word 2010 or later document contains multiple AutoShape objects that are near one another, you
cannot use the mouse to draw a selection rectangle around the objects.

Resolution
To resolve this issue, use one of the following methods.
Method 1: Insert a drawing canvas before you insert any objects
If you always want the drawing canvas to appear when you insert AutoShape objects, follow these steps:
1. On the File Menu, click Options .
2. Click Advanced .
3. Under Editing options , click to select the Automatically create drawing canvas when inser ting
AutoShapes check box.
4. Click OK .
Method 2: Add a button to the Quick Access Toolbar
If you do not want the drawing canvas to be created automatically, you can add a button to the Quick Access
Toolbar (QAT) to create the drawing canvas manually. To do this, follow these steps:
1. On the Quick Access Toolbar drop-down menu, click More Commands .
2. Click the drop-down menu under Choose commands from , and then click Commands Not in the Ribbon .
3. Scroll through the list, click to select Inser t Drawing , then click Add .
4. Click OK .
The Inser t Drawing command is now added to the Quick Access Toolbar.
Method 3: Use the Ctrl key together with the mouse to select multiple AutoShape objects
1. Click an AutoShape object.
2. Press the Ctrl key.
3. Click other AutoShape objects while you continue to press the Ctrl key.
Method 4: Use the Selection Pane
1. Click an AutoShape object in your document.
2. On the Drawing Tools menu, click Format .
3. On the Arrange group, click Selection Pane .
The Selection Pane appears. The Selection Pane lets you select multiple AutoShape objects by using the steps in
Method 3.
Method 5: In Word 2016 and Word 2013, use Select Objects
1. On the Home tab, click Select and then click Select Objects.
2. Use the mouse to draw a selection rectangle around the shapes.
How to change the default view to Draft view in
Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
This article describes how to change the default view to Draft view in Microsoft Office Word.

More Information
To change the default view to Draft view when a Word 2007 document is opened, follow these steps:
1. Click the Microsoft Office Button , and then click Word Options .
2. Click Advanced .
3. Under General , click to select the Allow opening a document in Draft view check box.
4. Click OK .
5. On the View tab, click Draft in the Document Views group.
To change the default view to Draft view when a Word 2010 or later versions document is opened, follow these
steps:
1. Click the File tab, and then click Options .
2. Click Advanced .
3. Under General , click to select the Allow opening a document in Draft view check box.
4. Click OK .
5. On the View tab, click Draft in the Document Views group.
Changes in content layout between Word 2013 and
earlier versions of Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
Microsoft Word 2013 uses a new and improved layout engine and compatibility mode to help ensure that layout is
consistent between different versions of Microsoft Word.
When you open a document that is created in an earlier version of Word in Word 2013, the document opens in the
compatibility mode. In this situation, the document name in the title bar is followed by "[Compatibility Mode]."
When you save the document by using a new name, Word 2013 prompts you to maintain compatibility with earlier
versions of Word. In this situation, if you select OK to upgrade to the newest file format, some minor changes may
appear in the layout. If you click the Tell Me More button in the dialog box, you go to the following Microsoft
website:
Use Word 2013 to open documents created in earlier versions of Word

More Information
This section lists some layout changes between different versions of Word if you use compatibility mode or if you
save the document in the new Word 2013 file format.
Figures (Pictures, Shapes, Textboxes Charts, SmartArt, and WordArt)
Earlier versions of Word allow for figures that have text wrapping applied to bleed off the edge of the
page or be positioned in the bottom margin of a page. Word 2013 pushes figures that have text
wrapping applied and have the Move object with text option enabled back onto the page. If figures are
moved into the bottom margin, Word 2013 pushes the figures down to the next page.
Word 2013 uses a new graphics format. The new format changes the size of shadows and the width of
borders slightly.
Word 2013 lays out text that is positioned next to a figure differently.
Tables
Earlier versions of Word align text inside tables with the text outside tables. In Word 2013, tables respect
the UI settings, and the text inside tables is not forced to align with text outside the table. By default,
tables are constrained by the margin in Word 2013.
Word 2013 may shift tables slightly (the default amount is .08 inch) and make tables narrower. This
behavior may cause lines to break earlier. This, in turn, makes cells taller and potentially causes the page
to break earlier.
Footnotes
By default, Word 2013 positions footnotes in columns when a document has multiple columns.
Additionally, footnotes begin in the first column on the page regardless of where the footnote reference
appears in the body text. Word 2013 balances the footnotes across the footnote columns.
Overall Layout
The column balancing algorithm in Word 2013 is improved. This improvement changes the layout of text
in columns.
Word 2013 uses a new algorithm to determine the optimal way to align text and break lines. Therefore,
there are changes to how lines and pages break.
You cannot use the Hyphenation Zone setting in the Hyphenation dialog box for documents that are
saved in the Word 2013 file format.
When you apply the Show Text Boundaries setting in the File Options Advanced dialog box for
documents that are saved in the Word 2013 file format, the text boundary lines are displayed around
each paragraph. However, when the document is in compatibility mode, the text boundary lines are
displayed around the edge of the page.
Note For more information about how to update the layout in Word 2013 and maintain compatibility with other
versions of Word, go to the following Microsoft website:
More information about updates to the layout in Word 2013
Changes to default font settings are not retained in
Word 2013 and 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you set a font as the default font in Microsoft Office Word 2010 and Word 2013, and you then restart Word,
the changes are not retained.

Cause
This can happen when you only apply the settings to the open document and not to all documents.

Resolution
Method 1
To set and make sure that the style of the default font in Word 2010 or Word 2013 is retained or saved, follow
these steps:
1. If you do not have a document open, create a new document that is based on the Normal template. To do
this, click File, click New, click Blank Document, and then click Create.
2. In the Font group, click the Font flyout to open the font dialog box.

3. Select the options that you want to apply to the default font, such as font style and font size. If you selected
specific text, the properties of the selected text are set in the dialog box.
4. Click Set As Default.
5. Select All documents based on the Normal.dotm template?
6. Click OK.

7. This guarantees that every new document you open will use the font settings that you selected and set as
the default. The default font applies to new documents that are based on the active template, usually
Normal.dotm.
Method 2
To set and make sure that the style of the default font in Word 2013 is retained or saved, follow these steps:
1. If you do not have a document open, create a new document that is based on the Normal template. To do this,
click File, click New, click Blank Document, and then click Create.
2. Click on the Design tab at the top and set all of the options that you want in your template.
3. Click Set as Default.
4. Click OK.

More Information
Need More Help?
You can also get help from the Microsoft Community online, search for more information on Microsoft Support or
Windows Help and How To, or learn more about Assisted Support options.
Changes to Settings are not updated in the Preview
window when you print in Microsoft Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You create or you open a document in Microsoft Word 2010 or later.
You click the File tab, and then click Print .
Under Settings , you change how the document prints. For example, you change the Pages Per Sheet setting.
In this scenario, the Preview window does not update the changes that you make dealing with how the document
prints.

Resolution
There is no resolution or workaround for this issue. This issue only affects the Preview window.

NOTE
When you click Print , Word sends the document to the printer by using the settings that you specified.

For example, you change the Pages Per Sheet setting to 2 Pages Per Sheet . The Preview window does not
update this change. However when you click Print , Word sends the document to the printer to print 2 pages on 1
printed sheet.

More Information
You may experience these symptoms when you change the following settings:
Page orientation
Page ranges
Duplex printing
Black & white printing for black-and-white printers
How to configure the default search engine in Word
2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Introduction
Microsoft Word 2013 includes a feature that lets you use a search engine to search for a word in a Word document.
By default, the search is performed by Bing. However, you can configure the feature to use a different search engine.

More Information
To change the search engine that used to perform the search, create registry entries named SearchProviderName
and SearchProviderURI, and then change these registry entries. For example, to configure Office.com as the default
search engine, follow the steps that are described in the "Registry key information" section.
Note If the SearchProviderName and SearchProviderURI registry entries already exist, change these registry
entries to specify the search engine that you want to use as the default search engine.
Registry key information
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious
problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a
problem occurs. For more information about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To configure Office.com as the default search engine, follow these steps:
1. Click Star t , click Run , type regedit in the Open box, and then click OK .
2. Locate and then select the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\General
3. On the Edit menu, point to New , and then click String Value .
4. Type SearchProviderName , and then press Enter .
5. In the Details pane, right-click SearchProviderName , and then click Modify .
6. In the Value data box, type Office.com , and then click OK .
7. On the Edit menu, point to New , and then click String Value .
8. Type SearchProviderURI , and then press Enter .
9. In the Details pane, right-click SearchProviderURI , and then click Modify .
10. In the Value data box, type "http://office.microsoft.com/en-us/results.aspx?&ex=2&qu=", and then click OK .
11. Exit Registry Editor.
Note The SearchProviderNamefield supports up to 253 characters.
Cross-reference links do not update to the correct
heading number after you insert a new heading
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You create a Microsoft Word document that uses outline numbering for all headings.
You create a cross-reference link to a heading.
You create a new heading. To do this, you position the pointer at the beginning of the cross-referenced heading,
and then you press Enter.
After you create the new heading, you update all field codes.
In this scenario, the cross-reference link is not updated to reference the original heading. Instead, the cross-
reference link references the new heading.

Cause
This problem occurs because, when you create a cross-reference link, a hidden bookmark is created at the
beginning of the heading. When you split the heading, the bookmark does not move. When you update the cross-
reference link, the link is not updated.

Workaround
To work around this problem, follow these steps:
1. Select the broken cross-reference, and then press Alt+F9. The field code is displayed for the REF field for the
cross-reference. Note the bookmark name for the cross-reference. The bookmark name begins with the
following string:
_Ref
2. Locate and select the outline numbered heading to which the cross-reference should point.
3. On the Inser t tab, in the Links group, click Bookmark .
4. In the Bookmark dialog box, click to select the Hidden bookmarks check box.
5. Locate and then select the bookmark name that matches the bookmark name that you noted in step 1.
6. Click Add . The Bookmark dialog box closes.
7. Press Alt+F9 to hide field codes.
8. Locate the broken cross-reference.
9. Right-click the cross-reference link, and then click Update Field .
The cross-reference will correctly update the heading number to match the outline-numbered heading that the
cross-reference references.

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Custom XML markup is removed when you open a
document in Word 2013
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario: In Microsoft Word 2013, you open a document that uses one of the following file
formats:
Word Document (.docx)
Word Macro-Enabled Document (.docm)
Word Template (.dotx)
Word Macro-Enabled Template (.dotm)
Word XML Document (.xml)
Word 2003 XML Document (.xml)
Word 97-2003 Document (.doc)
Word Web Pages (.html)
Rich Text Format (.rtf)
In this scenario, you notice that all custom XML markup in the document is removed. Custom XML markup in a
Word document is visible as pink tag names that enclose text in a document. (Pink is the default color.)

Cause
The removal of custom XML markup is the result of a United States court ruling on December 22, 2009. Customers
who buy or license Word 2013 will find that the software does not include a particular custom XML tagging
implementation.

More information
The following features of custom XML markup are removed in Word 2013:
All user interface elements that relate to custom XML markup are removed.
All object models for custom XML markup return the following errors when they are accessed:
That method is not available for that object
That proper ty is not available for that object
When you open a file that contains custom XML markup, the markup is removed when you save the file.
When you open a file that contains custom XML markup, you receive the following message:
This file contains custom XML elements, which are no longer suppor ted by Word. If you save
this file, these custom XML elements will be removed permanently.

NOTE
The behavior of the message can be controlled through Group Policy by using a policy that is called
CustomMarkupWarning.

All solutions that contain custom XML markup will have to be revised. Many of the scenarios that are implemented
by using custom XML markup can be implemented by using alternative technologies that are available in Word
2013. These technologies include content controls, form fields, and bookmarks. For example, content controls (in
addition to other technologies such as bookmarks) let developers create structured documents and can be used to
assign arbitrary values to structured content. These arbitrary values can be used to assign semantic meaning to
parts of your content.
For an explanation and more information about content controls, see Word content controls resource center.

References
For more information, see the following articles:
Description of the January 2010 update for Word 2003 and Word 2007
Error Message when you try to open a document in Word: "The file contains custom XML elements which
are no longer supported by Word"
Custom XML mapping is removed when you open a document in Word 2010
How to customize the color of the spelling and
grammar checker underlines in Microsoft Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

IMPORTANT
This article contains information about how to modify the registry. Make sure to back up the registry before you modify it.
Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up,
restore, and modify the registry, see Windows registry information for advanced users.

Introduction
This article describes how to customize the color of the spelling and grammar checker underlines in Microsoft
Word 2007 and later. These underlines indicate the following items:
Spelling errors
Grammar errors
Contextual spelling errors
Smart tags

More Information
WARNING
Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method.
These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can
be solved. Modify the registry at your own risk.

To change the color of the wavy underline that indicates spelling errors, follow these steps:
1. Click Star t , click Run , type regedit, and then click OK .
2. Locate and then click the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing Tools
3. If the SpellingWavyUnderlineColor entry exists, go to step 6.
If the SpellingWavyUnderlineColor entry does not exist, go to step 4.
4. On the Edit menu, point to New , and then click DWORD Value .
5. In the right pane, type SpellingWavyUnderlineColor. This is the name of the new entry.
6. In the right pane, double-click SpellingWavyUnderlineColor .
7. In the Edit DWORD Value dialog box, click Hexadecimal .
8. In the Value data box, type the hexadecimal number that represents the color that you want to use, and
then click OK .
9. Repeat steps 3 to 8 to change the underline color for other proofing tools. Use the registry entry that
corresponds to the underline color of the proofing tool that you want to change instead of the
SpellingWavyUnderlineColor registry entry, as follows:
To change the color of the wavy underline that indicates grammar errors, use the
GrammarWavyUnderlineColor registry entry.
To change the color of the wavy underline that indicates contextual spelling errors, use the
ContextualSpellingWavyUnderlineColor registry entry.
To change the color of the dotted underline that indicates smart tags, use the SmartTagUnderlineColor
registry entry.
10. Exit Registry Editor, and then restart your computer.
The registry uses eight-digit hexadecimal values to define colors. The values for some common colors are indicated
in the following table.

C O LO R RED GREEN B L UE REGIST RY VA L UE

White 255 255 255 00FFFFFF

Black 0 0 0 00000000

Red 255 0 0 00FF0000

Green 0 255 0 0000FF00

Blue 0 0 255 000000FF

Cyan 0 255 255 0000FFFF

Magenta 255 0 255 00FF00FF

Yellow 255 255 0 00FFFF00

Dark Gray 127 127 127 007F7F7F

Light Gray 191 191 191 00BFBFBF

Dark Red 127 0 0 007F0000

Dark Green 0 127 0 00007F00

Dark Blue 0 0 127 0000007F

Teal 0 127 127 00007F7F

Purple 127 0 127 007F007F

Tan 127 127 0 007F7F00


How to troubleshoot damaged documents in Word
3/30/2020 • 13 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to identify a damaged document in Word 2007 and later versions. Additionally, this
article includes steps that explain how to recover the text and data that is contained in a document after you have
identified the document as damaged.
This article is intended for a beginning to intermediate computer user. You may find it easier to follow the steps if
you print this article first.

Update Microsoft Office and Windows


Many software issues can be resolved by updating the Microsoft Office and Windows programs.
Windows Update FAQ
Install Office updates
Update Office with Microsoft Update

A damaged document or a software issue?


A Word document can become corrupted for several reasons that will prevent you from opening it. This behavior
may be related to damage to the document or to the template on which the document is based. This behavior
might include the following:
Repeatedly renumbers the existing pages in the document
Repeatedly redoes the page breaks in the document
Incorrect document layout and formatting
Unreadable characters on the screen
Error messages during processing
A computer that stops responding when you open the file
Any other unexpected behavior that cannot be attributed to the typical operation of the program
Sometimes, this behavior can be caused by factors other than document damage. It is important to determine
whether the document is damaged or whether the problem is a software issue. To eliminate these other factors,
follow these steps:
1. Look for similar behavior in other documents. Try to open other Word documents to see whether the same
problem occurs. If they open correctly, then the problem might be with the Word document.
2. Look for similar behavior in other Microsoft Office programs. If this is the case, then the issue might be with
another application or the operating system.
If any of these steps indicate that the problem is not in the document, you will then have to troubleshoot Word, the
Office suite, or the operating system that is running on the computer.

Troubleshooting steps to try if the damaged document does not open


Try the methods in the order given. If one does not work for you, try the next one.
Method 1: Open the damaged document in draft mode without updating links
Step 1: Configure Word
1. Start Word.
2. On the View tab, select Draft in the Views group.
3. Select the File Menu , and then Options , and then Advanced .
4. In the Show document content section, select Use draft font in Draft and Outline views and Show
picture placeholders .
5. Scroll down to the General section, clear the check box Update automatic links at open , select OK , and then
close Word.
Step 2: Open the damaged document
1. Start Word.
2. Select the File Menu , and then select Open .
3. Select the damaged document, and then select Open .
If you can open the document, close the document and then reopen it by using method 6, and repair the document.
Otherwise go to method 2.
Method 2: Insert the document as a file in a new document
Step 1: Create a new blank document
1. Select the File Menu , and then select New .
2. Select Blank document , and then select Create .

NOTE
You might have to reapply some formatting to the last section of the new document.

Step 2: Insert the damaged document into the new document


1. On the Inser t tab, select Inser t Object , and then select Text From File .
2. In the Inser t File dialog box, locate and then select the damaged document. Then, select Inser t .

NOTE
You might have to reapply some formatting to the last section of the new document.

Method 3: Create a link to the damaged document


Step 1: Create blank document
1. In Word, select the File Menu , and then select New .
2. Select Blank document , and then select Create .
3. In the new document, type "This is a test."
4. Select the File Menu , and then select Save .
5. Type "Rescue link," and then select Save .
Step 2: Create link
1. Select the text you typed in step 1-3.
2. On the Home tab, select Copy in the Clipboard group.
3. Select the File Menu , and then select New .
4. Select Blank document , and then select Create .
5. On the Home tab, select the arrow on the Paste button in the Clipboard group, and then select Paste Special .
6. Select Paste link , select Formatted Text (RTF) .
7. Select OK .
Step 3: Change the link to the damaged document
1. Right-click the linked text in the document, point to Linked Document Object , and then select Links .
2. In the Links dialog box, select the file name of the linked document, and then select Change Source .
3. In the Change Source dialog box, select the document that you cannot open, and then select Open .
4. Select OK to close the Links dialog box.

NOTE
The information from the damaged document will appear if there was any recoverable data or text.

5. Right-click the linked text, point to Linked Document Object , and then select Links .
6. In the Links dialog box, select Break Link .
7. When you receive the following message, select Yes : Are you sure you want to break the selected links?
Method 4: Use the "Recover Text from Any File" converter

NOTE
The "Recover Text from Any File" converter has limitations. For example, document formatting is lost. Additionally, graphics,
fields, drawing objects, and any other items that are not text are lost. However, field text, headers, footers, footnotes, and
endnotes are retained as simple text.

1. In Word, select the File Menu , and then select Open .


2. In the Files of type box, select Recover Text from Any File( .) .
3. Select the document from which you want to recover the text.
4. Select Open .
After the document is recovered by using the "Recover Text from Any File" converter, there is some binary data text
that is not converted. This text is primarily at the start and end of the document. You must delete this binary data
text before you save the file as a Word document.

NOTE
If you are using Word 2007 and there is not a file button in the User Interface, choose the Office Button and follow the
directions when necessary.

Troubleshooting steps to try if you can open the damaged document


Method 1: Copy everything except the last paragraph mark to a new document
Step 1: Create a new document
1. In Word, select File on the Ribbon, and then select New .
2. Select Blank document , and then select Create .
Step 2: Open the damaged document
1. Select File on the Ribbon, and then select Open .
2. Select the damaged document, and then select Open .
Step 3: Copy the contents of document, and then paste the contents into the new document

NOTE
If your document contains section breaks, copy only the text between the sections breaks. Do not copy the section breaks
because this may bring the damage into your new document. Change the document view to draft view when you copy and
paste between documents to avoid transferring section breaks. To change to draft view, on the View tab, select Draft in the
Document Views group.

1. In the damaged document, press CTRL+END, and then press CTRL+SHIFT+HOME.


2. On the Home tab, select Copy in the Clipboard group.
3. On the View tab, select Switch Windows in the Window group.
4. Select the new document that you created in step 1.
5. On the Home tab, select Paste in the Clipboard group.
If the strange behavior persists, go to method 8.
Method 2: Change the template that is used by the document
Step 1: Determine the template that is used by the document
1. Open the damaged document in Word.
2. Select File on the Ribbon, and then select Options .
3. Select Add-Ins .
4. In the Manage box, select Templates under View and manage Office add-ins.
5. Select Go .
The Document template box will list the template that is used by the document. If the template that is listed is
Normal , go to step 2. Otherwise, go to step 3.
Step 2: Rename the global template (Normal.dotm )
1. Exit Word.
2. Select the Star t button.
3. In your operating system, search for normal.dotm. It's typically found in this location:
%userprofile%\appdata\roaming\microsoft\templates
4. Right-click Normal.dotm , and then select Rename .
5. Type "Oldword.old", and then press ENTER.
6. Close File Explorer.
7. Start Word, and then open the document.
Step 3: Change the document template
1. Open the damaged document in Word.
2. Select File on the Ribbon, and then select Options .
3. Select Add-Ins .
4. In the Manage box, select Templates , and then select Go .
5. Select Attach .
6. In the Templates folder, select Normal.dotm , and then select Open .
7. Select OK to close the Templates and Add-ins dialog box.
8. Exit Word.
Step 4: Verify that changing templates worked.
1. Start Word.
2. Select File on the Ribbon, and then select Options .
3. Select the damaged document, and then select Open .
If the strange behavior persists, go to method 3.
Method 3: Start Word using default settings
You can use the /a switch to start Word by using only the default settings in Word. When you use the /a switch,
Word does not load any add-ins. Additionally, Word does not use your existing Normal.dotm template. Restart
Word by using the /a switch.
Step 1: Start Word by using the /a switch
1. Exit Word.
2. Select the Star t button and search for Run. In the Run dialog box type the following:
winword.exe /a
Step 2: Open the document
1. In Word, select File on the Ribbon, and then select Open .
2. Select the damaged document, and then select Open .
If the strange behavior persists, go to method 4.
Method 4: Change printer drivers
Step 1: Try a different printer driver
1. In your operating system search for Devices and Printers.
2. Select Add a printer .
3. In the Add Printer dialog box, select Add a local printer .
4. Select Use an existing por t , and then select Next .
5. In the Manufacturer list, select Microsoft .
6. Select Microsoft XPS Document Writer , and then select Next .
7. Select Use the driver that is currently installed (recommended) , and then select Next .
8. Select to select the Set as the default printer check box, and then select Next .
9. Select Finish .
Step 2: Verify that changing printer drivers fixes the problem
1. Start Word.
2. Select File on the Ribbon, and then select Open .
3. Select the damaged document, and then select Open .
If the strange behavior persists, go to step 3.
Step 3: Reinstall original printer driver.
Windows 10 and Windows 7
1. In your operating system search for Printers.
2. Select the original default printer, and then select Delete .
If you are prompted for an administrator password or for a confirmation, type the password, or select
Continue .
3. If you are prompted to remove all the files that are associated with the printer, select Yes .
4. Select Add a printer or scanner , and then follow the instructions in the Add Printer Wizard to reinstall
the printer driver.
Step 4: Verify that changing printer drivers fixes the problem
1. Start Word.
2. Select File on the Ribbon, and then select Open .
3. Select the damaged document, and then select Open .
If the strange behavior persists, go to method 5.
Method 5: Force Word to try to repair a file
Step 1: Repair document
In Word, select File on the Ribbon, and then select Open .
1. In the Open dialog box, click once to highlight your Word document.
2. Select the arrow on the Open button, and then select Open and Repair .
Step 2: Verify that repairing the document fixes the problem
Verify that the strange behavior no longer occurs. If the strange behavior persists, restart Windows, and then go to
method 6.
Method 6: Change the document format, and then convert the document back to the Word format
Step 1: Open the document
1. Start Word.
2. Select File on the Ribbon, and then select Open .
3. Select the damaged document, and then select Open .
Step 2: Save the document in a different file format
1. Select File on the Ribbon, and then select Save as .
2. Select Other Formats .
3. In the Save as file type list, select Rich Text Format (*.r tf ) .
4. Select Save .
5. Select File on the Ribbon, and then select Close .
Step 3: Open the document, and then convert document back to Word file format
1. In Word, select File , and then select Open .
2. Select the converted document, and then select Open .
3. Select File , and then select Save as .
4. Choose Word Document for the Save As type.
5. Rename the document's file name, and then select Save .
Step 4: Verify that converting the document file format fixes the problem
Verify that the strange behavior no longer occurs. If the behavior persists, try to save the file in another file format.
Repeat step 1 to step 4, and then try to save the file in the following file formats, in the following order:
Webpage (.htm; .html)
Any other word processing format
Plain Text (.txt)

NOTE
When you save files in the Plain Text (.txt) format, you might resolve the damage to the document. However, all document
formatting, macro codes, and graphics are lost. When you save files in the Plain Text (.txt) format, you must reformat the
document. Therefore, use the Plain Text (.txt) format only if the other file formats do not resolve the problem.

If the strange behavior persists, go to method 7.


Method 7: Copy the undamaged parts of the damaged document to a new document
Step 1: Create a new document
1. In Word, select File , and then select New .
2. Select Blank document , and then select Create .
Step 2: Open the damaged document
1. Select File , and then select Open .
2. Select the damaged document, and then select Open .
Step 3: Copy the undamaged parts of document, and then paste the undamaged parts to the new document

NOTE
If your document contains section breaks, copy only the text between the sections breaks. Do not copy the section breaks
because this might bring the damage into your new document. Change the document view to draft view when you copy and
paste between documents to avoid transferring section breaks. To change to draft view, on the View tab, select Draft in the
Document Views group.

1. In the damaged document, locate and then select an undamaged part of the document's contents.
2. On the Home tab, select Copy in the Clipboard group.
3. On the View tab, select Switch Windows in the Window group.
4. Select the new document that you created in step 1.
5. On the Home tab, select Paste in the Clipboard group.
6. Repeat steps 3a to 3e for each undamaged part of the document. You must reconstruct the damaged sections of
your document.
Method 8: Switch the document view to remove the damaged content
If the document appears to be truncated (not all pages in the document are displayed), it might be possible to
switch the document view and remove the damaged content from the document.
1. Determine the page number on which the damaged content is causing the document to appear to be
truncated.
a. In Word, select File , and then select Open .
b. Select the damaged document, and then select Open .
c. Scroll to view the last page that is displayed before the document appears to be truncated. Make a note of
the content which appears on that page.
2. Switch views, and then remove the damaged content.
a. On the View tab in the Document Views group, select Web Layout or Draft view .
b. Scroll to view the content that was displayed before the document appeared to be truncated.
c. Select and delete the next paragraph, table, or object in the file.
d. On the View tab in the Document Views group, select Print Layout . If the document continues to
appear to be truncated, continue to switch views and delete content until the document no longer
appears truncated in Print Layout view.
e. Save the document.
Method 9: Open the document with Notepad
If the document is corrupted and none of the previous methods work, try to recover its content by opening the
document with Notepad.

NOTE
By using this method, you will lose all formatting. The intention is to recover the content.
1. Locate the damaged document using Windows File Explorer.
2. Right click the document and select Open with .
3. Select Notepad:

4. The document will open in Notepad with extra code and text around the content.

NOTE
You may have to change the file type from "Text Documents (.txt)" to "All Files (.*)".

5. Clean the text by deleting all or most of the extra characters.


6. Select File , and then select Save As… Rename the document to make sure that you don't overwrite the
damaged one.
Go back to Word and open the new document. Once in Word, you can clean it up and try to reapply the lost format.
Frequently asked questions about hyperlinks in Word
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

For a Microsoft Word 98 Macintosh Edition version of this article, see 211955.

Summary
This article answers the most frequently asked questions about creating and using hyperlinks in Microsoft Word
2002 and in later versions of Word.

More Information
When I type a file address with spaces in it, Word replaces the address with a hyperlink after I press SPACEBAR.
How can I finish typing an address that includes spaces before Word converts it to a hyperlink?
To ensure that Word will recognize an address that includes spaces as a single hyperlink, enclose the address in
quotation marks. If the address is not enclosed in quotation marks, Word creates the hyperlink when you press
SPACEBAR.
How do I turn off automatic hyperlinks?
To turn off automatic hyperlinks, follow these steps, as appropriate for the version of Word that you are running:
In Microsoft Office Word 2010 and 2013, follow these steps:
1. On the File menu, click Options .
2. Click Proofing , and then click AutoCorrect Options .
3. On the AutoFormat as you type tab and on the AutoFormat tab, click to clear the Internet and
network paths with hyperlinks check box, and then click OK .
4. Click OK to close the Word Options dialog box.
In Microsoft Office Word 2007, follow these steps:
1. Click the Microsoft Office Button , and then click Word Options .
2. Click Proofing , and then click AutoCorrect Options .
3. On the AutoFormat as you type tab and on the AutoFormat tab, click to clear the Internet and
network paths with hyperlinks check box, and then click OK .
4. Click OK to close the Word Options dialog box.
In Microsoft Office Word 2003 and in Microsoft Word 2002, follow these steps:
1. On the Tools menu, click AutoCorrect Options .
2. On the AutoFormat as you type tab and on the AutoFormat tab, click to clear the Internet and
network paths with hyperlinks check box.
3. Click OK .
How do I change the display text or image of a hyperlink after it has been created?
You can change the display text or image for a hyperlink in the same way that you edit any text or image in your
document.
To follow a hyperlink, press and hold CTRL, and then click the hyperlink.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
279090 Cannot click to activate hyperlink
How do I remove a hyperlink without losing the display text or image?
To remove a single hyperlink without losing the display text or image, right-click the hyperlink, and then click
Remove Hyperlink .
To remove all hyperlinks in a document, press CTRL+A to select the entire document and then press
CTRL+SHIFT+F9.

NOTE
Performing this operation converts all fields, not just hyperlinks, to plain text.

How do I change the underlying Uniform Resource Locator (URL ) for a hyperlink?
To change the underlying URL for a hyperlink, follow these steps:
1. Right-click the hyperlink text or image, and then click Edit Hyperlink .
2. In the Edit Hyperlink dialog box, type or select a URL from the Type the file or web page name box.
3. Click OK .
How do I create hyperlinks to locations within the same document?
To create a hyperlink to a location within the same document, use one of the following methods:
Use a drag-and-drop operation. To do this, follow these steps:
1. Save the document.
2. Select the word, phrase, or image that you want to use as the destination for the hyperlink.
3. Right-click and hold down the mouse button while dragging the selection to the new location; then,
release the mouse button.
4. Click Create Hyperlink Here .
Create a bookmark, and then create a link. To do this, follow these steps, as appropriate for the version of Word
that you are running:
In Word 2007 and in Word 2010 and 2013, follow these steps:
1. Save the document.
2. Select the text or the image that you want to use as the destination for the hyperlink.
3. Click the Inser t tab.
4. In the Links group, click Bookmark .
5. In the Bookmark name box, type a unique name for the bookmark, and then click Add .
6. Move the insertion point to the location in the document where you want to create the hyperlink.
7. Click Hyperlink in the Links group.
8. Click Bookmark .
9. In the Select Place in Document dialog box, select the bookmark that you want to use as the
destination hyperlink, and then click OK .
10. Click OK to close the Inser t Hyperlink dialog box.
In Word 2003 and in Word 2002, follow these steps:
1. Save the document.
2. Select the text or the image that you want to use as the destination for the hyperlink.
3. On the Inser t menu, click Bookmark .
4. In the Bookmark name box, type a unique name for the bookmark, and then click Add .
5. Move the insertion point to the location in the document where you want to create the hyperlink.
6. On the Inser t menu, click Hyperlink .
7. Click Bookmark .
8. In the Select Place in Document dialog box, select the bookmark that you want to use as the
destination hyperlink, and then click OK .
9. Click OK again.
What is the difference between a relative hyperlink and an absolute hyperlink?
An absolute hyperlink uses the full address of the destination document. A relative hyperlink uses the address
relative to the address of the containing document. This is also known as the hyperlink base.
For example, suppose that a document has the following address:
C:\My Documents\1999 report.doc
This document has absolute and relative hyperlinks to a document that has the following full address (and absolute
hyperlink):
C:\My Documents\April\Sales.doc
The relative hyperlink contains only the relative address to Sales.doc. The relative address is as follows:
April\Sales.doc
Use a relative link if you want to move or to copy your files to another location, such as a Web server.
When I click a hyperlink in Word, I receive a message that indicates that no program is registered to open the
file. What do I do to open the file?
You receive this message when Windows is unable to find the program that is associated with the type of document
that is specified in the hyperlink path. This information is encoded in the extension of the hyperlink address.
To view the hyperlink, turn on the Tool Tips option, and then position the mouse pointer over the hyperlink.
To locate the Tool Tips option, use one of the following procedures, as appropriate for the version of Word that you
are running:
In Word 2010 and 2013, click File , click Options , and then click Display .
In Word 2007, click the Microsoft Office Button , click Word Options , and then click Display .
In Word 2003 and in Word 2002, click Options on the Tools menu, and then click the View tab.
To correct this problem, install the program that is associated with the document type that is specified in the
hyperlink.
The file name extension is the group of characters that follow the last period in the address. The following table lists
some of the Office document types and their file name extensions.

F IL E N A M E EXT EN SIO N S IN O F F IC E
2003 A N D IN EA RL IER VERSIO N S O F F IL E N A M E EXT EN SIO N S IN T H E 2007
DO C UM EN T T Y P E O F F IC E O F F IC E P RO GRA M S

Microsoft Access database .mdb .accdb

Microsoft Excel workbook .xls .xlsx, .xlsm, .xlsb


F IL E N A M E EXT EN SIO N S IN O F F IC E
2003 A N D IN EA RL IER VERSIO N S O F F IL E N A M E EXT EN SIO N S IN T H E 2007
DO C UM EN T T Y P E O F F IC E O F F IC E P RO GRA M S

Microsoft PowerPoint presentation .pot .potx, .potm

Microsoft Publisher publication .pub .pub

Microsoft Word document .doc .docx, .docm


Frequently asked questions about the Comments
feature in Word
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
A comment is a note or annotation that an author or reviewer can add to a document. Microsoft Word displays the
comment in the Reviewing pane or in a balloon in the margin of the document.
This article answers some frequently asked questions about the Comment feature in Word.

More Information
What is a balloon?
A balloon shows markup elements (for example, comments) in the margins of your document so that it doesn't
cover text or affect the layout of the document. You can use balloons in Print Layout view or in Web Layout view to
easily see and respond to reviewers' changes and comments.
How do I view the comments in a Word document?
To view the comments in a document, follow these steps:
Word 2010 and Word 2007
On the Review tab, click Show Markup in the Tracking group, and then select the Comments check box. If
you do not see the comment balloon, click Print Layout or Web Layout on the View tab.
Word 2003 and Word 2002
On the View menu, click Markup. Word displays balloons in your document for each comment. If you do not see
the comment balloon, click Print Layout or Web Layout on the View menu.
How do I hide the comments in my Word document?
To hide the comments, follow these steps:
Word 2010 and Word 2007
On the Review tab, click Show Markup in the Tracking group, and then clear the Comments check box.
Word 2003 and Word 2002
On the View menu, click Markup.
How do I insert a comment?
To insert a comment, follow these steps:
Word 2010 and Word 2007
1. On the Review tab, in the Comments group, click New Comment .
2. Type your comment in the comment balloon that appears when you are in Print Layout view or Web Layout
view, or in the Reviewing pane when you are in Normal view or Outline view.
Word 2003 and Word 2002
1. Select the text or item that you want to comment about, or click the place where you want to insert your
comment.
2. On the Insert menu, click Comment.
3. Type your comment in the comment balloon that appears when you are in Print Layout view or Web layout
view, or in the Reviewing pane when you are in Normal view or Outline view.

NOTE
You cannot insert a comment in the header or footer area of a document. How do I change a comment?

To change an existing comment, do one of the following:


Click the comment balloon, and then type the text that you want.
In the Reviewing pane, find the comment that you want to change, and then type the text that you want.
How do I delete a comment?
To delete a comment, do one of the following:
Right-click the comment balloon, and then click Delete Comment.
In the Reviewing pane, right-click the comment, and then click Delete Comment.
What is the Reviewing pane?
Word doesn't always display the complete text of a comment in a balloon. This can happen when the page contains
many comments or very long comments. To see the complete text for all comments in a document, view the
comments in the Reviewing pane.
Word 2010 and Word 2007
On the Review tab, click Reviewing Pane in the Tracking group, and then click Reviewing Pane Ver tical or
Reviewing Pane Horizontal .
Word 2003 and Word 2002
On the Reviewing toolbar, click Reviewing Pane. If the Reviewing toolbar is not displayed, point to Toolbars on
the View menu, and then click Reviewing.
How do I print the comments in my Word document?
To print a document with comments showing, follow these steps:
Word 2010
1. On the View tab, click Print Layout in the Document Views group.
2. On the Review tab, click Show Markup in the Tracking group, and then select the Comments check box.
3. To display the comments the way that you want them to appear in the printed document, do one of the
following:
View all comments: To view all comments in your document, on the Review tab, click Show Markup in
the Tracking group, point to Reviewers , and then click to select All Reviewers .
View comments that were made by a reviewer: To view the comments that were made by a specific
reviewer, on the Review tab, click Show Markup in the Tracking group, point to Reviewers , and then
click to select the reviewer whose comments that you want to display.
4. On the File menu, click Print .
5. Under Settings , click the arrow next to Print All Pages .

6. Click Print Markup .


Word 2007
1. On the View tab, click Print Layout in the Document Views group.
2. On the Review tab, click Show Markup in the Tracking group, and then select the Comments check box.
3. To display the comments the way that you want them to appear in the printed document, do one of the
following:
View all comments: To view all comments in your document, on the Review tab, click Show Markup in
the Tracking group, point to Reviewers , and then click to select All Reviewers .
View comments that were made by a reviewer: To view the comments that were made by a specific
reviewer, on the Review tab, click Show Markup in the Tracking group, point to Reviewers , and then
click to select the reviewer whose comments that you want to display.
4. Click the Microsoft Office Button , and then click Print .
5. In the Print dialog box, change the Print what box to Document showing markup , and then click OK .
Word 2003 and Word 2002
1. Click Print Layout on the View menu.
2. On the View menu, click Markup to display the comments in your document.
3. Display the comments the way that you want them to appear in the printed document. To do this, do one of
the following:
View all comments: To view all comments in your document, click Show on the Reviewing toolbar, point
to Reviewers, and then click to select All Reviewers.
View comments that were made by a reviewer: To view the comments that were made by a specific
reviewer, click Show on the Reviewing toolbar, point to Reviewers, and then click to select the reviewer
whose comments that you want to display.
4. On the File menu, click Print.
5. In the Print dialog box, change the Print what box to Document showing markup , and then click OK.
How do I print my document without printing the comments?
To print a document without printing the comments, follow these steps:
Word 2010
Do one of the following:
Method 1
1. On the Review tab, click Show Markup in the Tracking group.
2. Clear the Comments check box.
Method 2
1. On the File tab, click Print .
2. Under Settings , click the arrow next to Print All Pages .

3. Click Print Markup .


Word 2007
Do one of the following:
On the Review tab, click Show Markup in the Tracking group, and then clear the Comments check box.
Click the Microsoft Office Button , and then click Print . In the Print dialog box, change the Print what box to
Document , and then click OK .
Word 2003 and Word 2002
Do one of the following:
Click Markup on the View menu to hide the balloons in your document, and then print your document.
Click Print on the File menu. In the Print dialog box, change the Print what box to Document, and then click OK.
I can see the comments, but how do I determine the author of a comment and when it was made?
To see the author's name and the date and time that the comment was made, do one of the following:
Rest the mouse pointer on the comment balloon. A tooltip that contains this information appears.
Open the Reviewing pane and locate the comment.
How do I respond to a comment?
Word 2010 and Word 2007
1. Click the comment that you want to respond to.
2. On the Review tab, click New Comment in the Comments group.
3. Type your comment in the comment balloon that appears.
Word 2003 and Word 2002
1. Click the comment that you want to respond to.
2. On the Insert menu, click Comment.
3. Type your comment in the comment balloon that appears.

Additional Resources
For more information about how to use comments, see Remove tracked changes and comments from a document.
Overview of fonts and how to troubleshoot font
problems in Microsoft Word
3/30/2020 • 10 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains an overview of fonts. Additionally, it describes how to troubleshoot font problems in Microsoft
Office Word 2007 and later.

More Information
Overview of fonts
A font is a graphic design that is applied to a collection of numbers, symbols, and characters. A font specifies
qualities such as typeface, size, spacing, and pitch. Fonts are used to print text on various output devices and to
display text on the screen. Fonts have font styles such as italic, bold, and bold italic.
Outline fonts
TrueType fonts and OpenType fonts are outline fonts that are rendered from line commands and from curve
commands. OpenType is an extension of TrueType. Both TrueType fonts and OpenType fonts can be scaled and
rotated. TrueType fonts and OpenType fonts look good in all sizes and on all output devices that are supported by
Microsoft Windows.
Screen fonts
ClearType fonts are screen fonts that are optimized for an LCD screen. On an LCD screen, ClearType fonts use sub-
pixel information to smooth out the fonts' jagged edges.
Printer fonts
In most programs that support printing, you can select among different printer fonts. Printers that offer the widest
assortment of fonts include laser printers, ink-jet printers, and dot-matrix printers. You can divide printer fonts into
the following three categories:
Internal fonts
Internal fonts are also named resident fonts. Laser printers, ink-jet printers, and dot-matrix printers
frequently use internal fonts. Internal fonts are already loaded into the printer's read-only memory (ROM).
Internal fonts are always available for printing.
Cartridge fonts
Cartridge fonts are stored in a cartridge or in a card that plugs into the printer. To expand a printer's set of
internal fonts, you can install font cartridges. Or, you can load fonts from software.
Downloadable fonts
Downloadable fonts are also named soft fonts. The computer sends downloadable fonts to the printer's
memory when the fonts are required for printing. Laser printers and other page printers frequently use
downloadable fonts. Some dot-matrix printers also use them. To increase printer speed, you should install
downloadable fonts locally on client computers that print to Windows print servers.
For each document that you print, Windows may have to send the screen fonts and the downloadable fonts that the
document requires to the printer. To increase printer speed, use the following techniques:
Use fonts that do not have to be downloaded, such as internal fonts or cartridge fonts.
Some printers have a feature that enables the printer to keep a list of downloadable fonts. If your printer has this
feature, make sure that you turn on the feature.
Not all printers can use all three types of fonts. For example, pen plotters cannot ordinarily use downloadable fonts.
For more information about the types of fonts that you can use, see the printer's documentation.
Raster fonts
Raster fonts are also named bitmapped fonts. They are stored as bitmaps. A bitmap is a pattern of dots. Raster fonts
are designed with a specific size and with a specific resolution for a specific printer. You cannot scale or rotate raster
fonts. If a printer does not support raster fonts, it will not print them. The following fonts are the five raster fonts:
Courier
MS Sans Serif
MS Serif
Small
Symbol
Vector fonts
Vector fonts are useful for output devices that cannot reproduce bitmaps. For example, pen plotters use vector
fonts. Vector font characters are drawn with lines instead of with patterns of dots. You can scale characters to any
size or to any aspect ratio. The following fonts are the three vector fonts:
Modern
Roman
Script
How to work with fonts in Word 2007 and Word 2010
To change the default font in Word 2007
1. Create a new blank Word 2007 document.
2. On the Home tab, click Font Dialog in the Font group.
3. On the Font tab, select the options that you want to apply to the default font.
4. Click Default .
5. Click Yes to the following message:

You are about to change the default font to (Default) font,font size, font style.

Do you want this change to affect all new documents based on the NORMAL template?

When you create a new document that is based on the Normal template (Normal.dotm), the new document uses
the font settings that you selected.
To print a sample of all the available fonts in Word 2007 and Word 2010
You can use a Microsoft Visual Basic for Applications macro to generate a list of the fonts that are available to Word.
Additionally, the macro displays a sample of each font. After you have run the macro, you can print a Word
document that contains the list and the samples. For more information, click the following article number to view
the article in the Microsoft Knowledge Base:
209205 Macro to generate list of available fonts in Word
To find fonts that are similar
1. Click Star t , click Run , type control fonts, and then click OK .
2. On the View menu, click List Fonts By Similarity .
3. In the List fonts by similarity to box, click the font that you want to compare with the other fonts on the
computer.

NOTE
Panose font mapping information is stored with the font to describe the font's characteristics. For example, these
characteristics may include serif or sans serif, normal, bold, or italic. If no Panose information is available, the font appears at
the bottom of the list, and it does not appear in the List fonts by similarity to box.

How to troubleshoot font problems in Word 2007 and Word 2010


Before you start to troubleshoot font problems
Before you start to troubleshoot font problems in Word 2007 and Word 2010, review the following general topics:
Always make sure that you have installed the latest service pack for your version of Windows. Several font
problems have been corrected in Windows service packs.
The exact number of TrueType fonts that you can install depends on the length of the TrueType font names
and of the TrueType file names.
Basic steps to troubleshoot font problems
To troubleshoot font problems in Word 2007 and Word 2010, follow these basic steps:
1. Make sure that you are using the correct printer driver.
Your problem may be that the default printer driver in Windows is a generic/text only printer driver, an
installed fax driver, or a similar driver. To change the printer driver that Microsoft Word uses, use one of the
following methods.
Impor tant Do not select a generic/text only printer driver or an installed fax driver as your default printer in
Windows.
In Word, click the Microsoft Office Button or File Tab (Word 2010) , and then click Print . In the
Name box, click the name of an installed printer.
Click Star t , and then click Printers and Faxes . Right-click an installed printer, and then click Set as
Default Printer .
2. Check to see whether the problem occurs in a new document.
Create a new Word document that is based on the Normal.dotm template. To create a new document that is
based on the global template, click the Microsoft Office Button , and then click New . Click Blank
document , and then click Create .
Based on what occurs in the new document, follow these steps:
a. In the new document, try a different font. If you have no problems when you use a different font, the
problem may be related to a specific font in Windows. Go to the next step to continue to troubleshoot.
b. In the new document, use the font that you used in the original Word document. If the font problem no
longer occurs in the new Word document, the original document is probably damaged.
**Note** If you used a template other than the Normal.dotm template to create the original Word
document, the original document may be damaged. Or, the template from which the original document was
created may be damaged. It is also possible that both the original document and its template are
damaged.

c. If the problem with a specific font persists in the new document, try to use the font in a new WordPad
document. To create a WordPad document, click Star t , point to All Programs , point to Accessories ,
and then click WordPad .
If the problem that you experienced in Word persists in the WordPad document, the font is probably
damaged. You may have to delete and then reinstall the problem font in Windows.
To delete a font, follow these steps:
a. Click Star t , click Run , type control fonts, and then click OK .
b. Click the font that you want to remove.
Note To select more than one font, press and hold down CTRL, and then click each font that
you want to remove.
c. On the File menu, click Delete .
d. Click Yes to the following message: Are you sure you want to delete these fonts?
To reinstall the font, follow these steps:
a. Click Star t , click Run , type control fonts, and then click OK .
b. On the File menu, click Install New Font .
c. In the Drives box, click the drive that contains the font that you want to install.
d. In the Folders list, double-click the folder that contains the font that you want to install.
e. In the List of fonts list, click the font that you want to install, and then click OK .
Note To install all the fonts that are listed, click Select All , and then click OK .
For more information about how to delete a font or how to install a font in Windows, contact either
Microsoft Windows Technical Support or the vendor that supplies the font.
For more information about how to obtain help with Windows XP, click Star t , click Help and
Suppor t Center , and then click Get suppor t, or find information in Windows XP
newsgroups .
3. Check to see whether the problem occurs when you print the document at a lower resolution.
You may have to print the document at a printer resolution that differs from the resolution at which the
printer ordinarily prints. By default, most printers print at either 300 dpi (dots per inch) or at 600 dpi. To
determine whether the printer resolution is the problem, follow these steps:
a. Click Star t , and then click Printers and Faxes .
b. Right-click the installed printer driver, and then click Proper ties .
Note The steps to change printer resolution differ depending on the printer driver. For more
information, see the printer's documentation.
c. Click the Graphics tab. In the Resolution list, click a lower resolution setting. For example, in the
Resolution list, click 150 dots per inch .
d. Click OK .
4. Check to see whether the problem occurs when you print to a different printer.
The installed printer driver may not be able to correctly print the font that you want. To determine whether
this is the problem, specify a different printer as the default printer. Then, try to print the document.
If the different printer correctly prints the Word document, the original installed printer driver may be
damaged. Or, the original installed printer driver cannot print the document correctly. To correct these
problems, use one of the following methods:
Remove and then reinstall the original printer driver.
Download and then install an updated printer driver for the printer.
Use a printer driver that is compatible with the printer.
Additional resources
Microsoft provides a typography Web site that explains the benefits and the features of TrueType. TrueType is the
world's most popular digital font format. The site helps people to use type in more innovative ways in media such
as print, video, and the World Wide Web.
For more information, see Microsoft Typography.
The Microsoft Typography Web site includes the following resources:
Web Embedding Fonts Tool (WEFT)
With WEFT you can create font objects that are linked to your Web pages. When font objects are linked to
your Web pages, Internet Explorer users see the pages displayed with the font styles that are contained in
the font objects.
Font Properties Extension
Font Properties Extension adds several new property tabs to the default Proper ties dialog box. These tabs
include the following information:
Font origination
Font copyright
The type sizes to which hinting and smoothing are applied
The code pages that are supported by extended character sets
ClearType Tuner PowerToy
With ClearType Tuner PowerToy, you can enable and tune your ClearType settings in Control Panel.
Graphics and images don't display correctly in 32-bit
version of Word
4/18/2020 • 2 minutes to read • Edit Online

Symptoms
You find that after upgrading to Windows 10, graphics or images do not display correctly in the 32-bit version of
Microsoft Word.

Cause
An older version of the file "d2d1.dll.mui" exists in the folder \windows\syswow64\en-us.

Resolution
To resolve this issue, delete the following file:

\windows\syswow64\en-us\d2d1.dll.mui

Restart Word. Word will then use the correct version of the file.

More information
Still need help? Go to Microsoft Community.
Image DPI is changed after you print to PDF from
Word 2013 or Word 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Assume that you convert the documents to PDF files by using PDF printer (for example, Adobe Acrobat or PDF
Creator)in Microsoft Word 2013 or Word 2010. In this situation, you notice that the dots per inch (DPI) of some
images may change from the original DPI in the document.

How Word determines the DPI when printing PDF documents


Word 2010 and Word 2013 use a single DPI for the whole document when printing to a PDF document. This DPI is
determined by the capabilities of the printer. During printing, Word will try to adjust the image to reach the print
DPI.
For example, the PDF printer is treated as a printer with a highest DPI of 600. Word chooses between three print
modes: Low, Medium, and High. If the print quality is set to High, the content will be printed by using the highest
supported DPI. In this case it is 600 DPI. If the print quality is set to Medium, the content will be printed by using
half of the highest DPI (300). Low print quality means the content will be printed by using a quarter of the highest
DPI (150).
The following table shows the Default print quality in Word 2013 and Word 2010:
|Product|Default print quality| |--|--| |Word 2013|Medium| |Word 2010|High| Note If the printer can only handle a
single tile at the time, the print quality is automatically set to Low.

Workaround
Important
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before
you modify it, back up the registry for restoration in case problems occur.
To work around this issue, you can change the default print quality by adding the following reg key:
Word 2013
Registry subkey: [HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Options]
Registry Value Name: PrintHighQualityDefault
Registry Value Type: REG_DWORD
Registry Value Data: 1
Word 2010
Registry subkey: [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options]
Registry Value Name: PrintMediumQualityDefault
Registry Value Type: REG_DWORD
Registry Value Data: 1
For more information about how to add the reg, see How to add, modify, or delete registry subkeys and values by
using a .reg file.

More Information
For each image, Word determines whether there is a difference between the window (the original page) and the
viewport (the printed page). When differences occur, for example, if the size of the page content according to Word
does not match the size of the page it will print to, Word will scale up or down the total number of pixels it prints by
using the ratio between the window and the viewport.
Finally, for each image, Word may scale the output if the total number of pixels is more than it can hold in memory
for a given print job (based partially, on whether the printer will accept tiled printing or not).
"Do you want to download the new converter?" error
when you try to open a .wps file in Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Microsoft Office no longer includes the Microsoft Works Converter when it ships. If you try to open a Works word
processor file (.wps) in Microsoft Word, Word tries to read the file as a text file. If you upgraded from an earlier
version of Word, you may still have the .wps file format in the list of available files that you can open. However,
Word no longer opens these files.
When this issue occurs, you receive the following error message:

This file requires a newer version of the Microsoft Works Converter than is currently on your system. Do you
want to download the new converter so that you can work with this file?

Cause
This issue occurs because Works Converter is discontinued and is no longer available.

Workaround
If you have to convert files that are in the .wps format to Microsoft Word format, you can use the Microsoft Office
2010 version of Word.

More Information
The Microsoft Download Center page for Microsoft Works is no longer available.
Office 2010 was the last version of Office that included Works Converter.
How to troubleshoot problems that occur when you
start or use Word
5/11/2020 • 17 minutes to read • Edit Online

NOTE
If you experience specific issues when you use Word, visit the Word help center to search for information about your issue.
Before you begin, make sure that Windows is up to date and that your version of Office is also up to date.

Summary
This article describes how to troubleshoot problems that may occur when you start or use Microsoft Word.
Try the following options to help determine the cause of your printing failure. Select the arrow image to see more
detailed instructions about that option.

IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.

Quick resolution
Inser t your document into another file
1. On the File menu, select New , and then select Blank
Document .
2. On the Inser t tab , select Object in the Text group,
and then select Text from File .
3. Select the file that you want to open and insert, and
then select Inser t .

Star t Word by using the /a switch


1. Type Run in the Search box (in Windows 10, Windows
8.1, or Windows 8) or in the Star t Search box on the
Star t menu (in earlier versions of Windows), and then
press Enter.
2. In the Run dialog box, type winword /a , and then
press Enter .
Delete the Word Data registr y subkey
1. Exit all Office programs.
2. Type regedit in the Search box (in Windows 10,
Windows 8.1, or Windows 8) or in the Star t Search
box on the Star t menu (in earlier versions of
Windows), and then press Enter .
3. Locate the following registry subkey, as appropriate for
the version of Word that you are using:

Word 2016 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\16.0\Word\Data

Word 2013 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\15.0\Word\Data

Word 2010 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\14.0\Word\Data

Word 2007 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\12.0\Word\Data

Word 2003 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\11.0\Word\Data

4. Select Data , and then select Expor t on the File menu.


5. Name the file Wddata.reg, and then save the file to the
desktop.
6. On the Edit menu, select Delete , and then select Yes .
7. Exit Registry Editor.
8. Start Word.
Delete the Word Options registr y key
1. Exit all Office programs.
2. Type regedit in the Search box (in Windows 10,
Windows 8.1, or Windows 8) or in the Star t Search
box on the Star t menu (in earlier versions of
Windows), and then press Enter.
3. Locate the following registry subkey, as appropriate for
the version of Word that you are running:

Word 2016 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\16.0\Word\Options

Word 2013 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\15.0\Word\Options

Word 2010 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\14.0\Word\Options

Word 2007 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\12.0\Word\Options

Word 2003 HKEY_CURRENT_USER\S


oftware\Microsoft\Office
\11.0\Word\Options

4. Select Options , and then select Expor t on the File


menu.
5. Name the file Wddata.reg, and then save the file to the
desktop.
6. On the Edit menu, select Delete , and then select Yes .
7. Exit Registry Editor.
8. Start Word.
Replace the Normal.dot or Normal.dotm global
template file
1. Exit all Office programs.
2. Type cmd in the Search box (in Windows 10, Windows
8.1, or Windows 8) or in the Star t Search box on the
Star t menu (in earlier versions of Windows), and then
press Enter.
3. At the command prompt, type the following command,
as appropriate for the version of Word that you are
running, and then press Enter :
Word 2016, Word 2013, Word 2010, or
Word 2007

ren
%userprofile%\AppData\Roaming\Microsoft\Te
mplates\Normal.dotm OldNormal.dotm

Word 2003

ren
%userprofile%\AppData\Roaming\Microsoft\Te
mplates\Normal.dot OldNormal.dot

4. At the command prompt, type exit, and then press


Enter .
5. Start Word.

Disable the Star tup folder add-ins


1. Exit all Office programs.
2. Start Windows Explorer. Type windows ex in the Search
box (in Windows 10, Windows 8.1, or Windows 8) or in
the Star t Search box on the Star t menu (in earlier
versions of Windows), and then press Enter.
3. Type the following command in the address bar, as
appropriate for the version of Word that you're
running and its installation type, and then press Enter:

Word 2016 64-bit C2R %programfiles


installation: %\Microsoft
Office\root\offi
ce16\Startup\

32-bit C2R %programfiles


installation: %
(x86)\Microsoft
Office\root\offi
ce16\Startup\

64-bit MSI %programfiles


installation: %\Microsoft
Office\office16
\Startup|

32-bit MSI %programfiles


installation: %
(x86)\Microsoft
Office\office16
\Startup\
Word 2013 64-bit C2R %programfiles
installation: %\Microsoft
Office\root\offi
ce15\Startup\

32-bit C2R %programfiles


installation: %
(x86)\Microsoft
Office\root\offi
ce15\Startup\

64-bit MSI %programfiles


installation: %\Microsoft
Office\office15
\Startup\

32-bit MSI %programfiles


installation: %
(x86)\Microsoft
Office\office15
\Startup\

Word 2010 %programfiles


%\Microsoft
Office\Office14
\Startup\

Word 2007 %programfiles


%\Microsoft
Office\Office12
\Startup\

Word 2003 %programfiles


%\Microsoft\O
ffice\Office11\S
tartup\

4. Right-click one of the files that is contained in the


folder, and then select Rename .
5. After the file name, type .old, and then press Enter.

IMPORTANT
Make a note of the original file name so that you
can restore the file, if it is necessary.

6. Start Word.
7. If you can no longer reproduce the problem, you have
found the specific add-in that causes the problem. If
you must have the features that the add-in provides,
contact the vendor of the add-in for an update.
If the problem is not resolved, rename the add-in
by using its original name, and then repeat steps 3
through 6 for each file in the Startup folder.
8. If you can still reproduce the problem, type the
following path in the address bar of Windows Explorer,
and then select OK .
W I N D O W S 10, W I N D O W S
8.1, W I N D O W S 8,
W I N D O W S 7, O R
W I N D O W S V I S TA

%userprofile%\AppData
\Roaming\Microsoft\Wo
rd\Startup

WIND O WS X P

%userprofile%\Applicati
on
Data\Microsoft\Word\St
artup

9. Repeat steps 3 through 6 for each file in this Startup


folder.

Delete the COM add-ins registr y keys


1. Exit all Office programs.
2. Type regedit in the Search box (in Windows 10,
Windows 8.1, or Windows 8) or in the Star t Search
box on the Star t menu (in earlier versions of
Windows), and then press Enter.
3. Locate the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\Word
\Addins
4. Select Addins , and then select Expor t on the File
menu.
5. Name the file WdaddinHKCU.reg, and then save the file
to the desktop.
6. On the Edit menu, select Delete , and then select Yes .
7. Locate the following registry subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Wo
rd\Addins
8. Select Addins , and then on the File menu, select
Expor t .
9. Name the file WdaddinHKLM.reg, and then save the
file to the desktop.
10. On the Edit menu, select Delete , and then select Yes .
11. Exit Registry Editor.
12. Start Word.
If the problem is resolved, you have determined that a COM
add-in program is causing the problem. Next, you must
determine which COM add-in program is causing the
problem.

Change the default printer


1. Exit all Office programs.
2. Type regedit in the Search box (in Windows 10,
Windows 8.1, or Windows 8) or in the Star t Search
box on the Star t menu (in earlier versions of
Windows), and then press Enter.
3. Right-click Microsoft XPS Document Writer , and
then select Set as default printer .
4. Start Word.

Resolution
Verify or install the latest updates
For list of the latest Office updates, see Office Updates. If your issue is not resolved after you install the latest
Windows and Office updates, go to method 2.

Microsoft Support options


If you can't resolve this problem, you can use Microsoft Support to search the Microsoft Knowledge Base and other
technical resources for answers. You can also customize the site to control your search. To start your search, go to
the Microsoft Support website.

Additional resources
If you experience specific issues when you use Word, go to the following websites to search for specific information
about your program version:
Microsoft Word Product Solution Center: Word
Troubleshoot problems that occur when you start Word
Option 1: Insert your document into another file
The final paragraph mark in a Word document contains information about the document. If the document is damaged,
you may be able to retrieve the text of the document if you can omit this final paragraph mark.
To access a document but leave its final paragraph mark behind, follow these steps:
1. On the File menu, select New and then select Blank Document .
2. On the Inser t tab , select Object in the Text group, and then select Text from File .
3. Select the file that you want to open and insert, and then select Inser t .
Option 2: Start Word by using the /a switch
The /a switch is a troubleshooting tool that is used to determine where a problem may exist in Word. The /a switch
prevents add-ins and global templates from being loaded automatically. The /a switch also locks the settings files to
prevent it from being read or modified. To start Word by using the /a switch, follow these steps:
1. Type Run in the Search box (in Windows 10, Windows 8.1, or Windows 8) or in the Star t Search box on the
Star t menu (in earlier versions of Windows), and then press Enter.
2. In the Run dialog box, type winword /a , and then press Enter.
For more information about the /a switch, go to the following article in the Microsoft Knowledge Base:
826857 Description of the "/a" startup switch in Word
If the problem does not occur when you start Word by using the /a switch, try the next method to determine the
source of the problem.
Option 3: Delete the Word Data registry subkey
Most of the frequently used options in Word are stored in the Word Data registry subkey. A common
troubleshooting step is to delete the Word Data registry subkey. When you restart Word, the program rebuilds the
Word Data registry key by using the default settings.
Note When you delete the Word Data registry subkey, Word resets several options to their default settings. For
example, Word resets the "most recently used file" list on the File menu. Also, Word resets many settings that you
customize in the Options dialog box.

IMPORTANT
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you
modify it, back up the registry for restoration in case problems occur.
To delete the Word Data registry subkey, follow these steps:
1. Exit all Office programs.
2. Type regedit in the Search box (in Windows 10, Windows 8.1, or Windows 8) or in the Star t Search box
on the Star t menu (in earlier versions of Windows), and then press Enter.
3. Locate the following registry subkey, as appropriate for the version of Word that you are using:

Word 2016 HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Wor


d\Data

Word 2013 HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Wor


d\Data

Word 2010 HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Wor


d\Data

Word 2007 HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Wor


d\Data

Word 2003 HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Wor


d\Data

4. select Data , and then select Expor t on the File menu.


5. Name the file Wddata.reg, and then save the file to the desktop.
6. On the Edit menu, select Delete , and then select Yes .
7. Exit Registry Editor.
8. Start Word.
If Word starts and works correctly, you have resolved the problem (a damaged Word Data registry key). You may
now have to change several settings to restore your favorite options in Word.
If the problem is not resolved, restore the original Word Data registry subkey, and then try the next method.
R e st o r e t h e o r i g i n a l W o r d D a t a r e g i st r y k e y

To restore the original Word Data registry subkey, follow these steps:
1. Exit all Office programs.
2. Double-select the Wddata.reg icon on the desktop.
3. select Yes , and then select OK .
If restoring the Word Data registry subkey doesn't work, go to the next procedure.
Option 4: Delete the Word Options registry key
The Word Options registry key stores options that you can set in Word. These settings are divided into default and
optional groups. Default settings are created during the program setup. Optional settings are not created during
setup. You can change both the default and optional settings in Word.
To delete the Word Options registry key, follow these steps:
1. Exit all Office programs.
2. Type regedit in the Search box (in Windows 10, Windows 8.1, or Windows 8) or in the Star t Search box
on the Star t menu (in earlier versions of Windows), and then press Enter.
3. Locate the following registry subkey, as appropriate for the version of Word that you are running:

Word 2016 HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Wor


d\Options

Word 2013 HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Wor


d\Options

Word 2010 HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Wor


d\Options

Word 2007 HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Wor


d\Options

Word 2003 HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Wor


d\Options

4. select Options , and then select Expor t on the File menu.


5. Name the file Wddata.reg, and then save the file to the desktop.
6. On the Edit menu, select Delete , and then select Yes .
7. Exit Registry Editor.
8. Start Word.
If Word starts and works correctly, you have resolved the problem (a damaged Word Options registry key). You
may now have to change several settings to restore your favorite options in Word.
If the problem is not resolved, restore the original Word Options registry key, and then try the next method.
To r e st o r e t h e o r i g i n a l W o r d O p t i o n s r e g i st r y k e y

To restore the original Word Options registry key, follow these steps:
1. Exit all Office programs.
2. Double-select the Wdoptn.reg icon on the desktop.
3. select Yes , and then select OK .
Option 5: Replace the Normal.dot or Normal.dotm global template file
You can prevent formatting, AutoText, and macros that are stored in the global template file from affecting the behavior
of Word and any documents that you open. To do this, replace the global template file.

IMPORTANT
This method includes renaming the global template file so that Word does not find it as expected when it restarts. This forces
Word to re-create the global template file. By doing this, you save the original file in case you have to restore it. Be aware
that when you rename the global template file, several settings are reset to their defaults, including custom styles, custom
toolbars, macros, and AutoText entries. Therefore, we strongly recommend that you save the global template file and do not
delete it.

Additional note In certain situations, you may have more than one global template file. For example, this occurs if
multiple versions of Word are running on the same computer, or if several workstation installations exist on the
same computer. In these situations, make sure that you rename each global template file so that it clearly reflects
the appropriate Word installation.
To rename the global template file, follow these steps:
1. Exit all Office programs.
2. Type cmd in the Search box (in Windows 10, Windows 8.1, or Windows 8) or in the Star t Search box on
the Star t menu (in earlier versions of Windows), and then press Enter.
3. At the command prompt, type the following command, as appropriate for the version of Word that you are
running, and then press Enter:
Word 2016, Word 2013, Word 2010, or Word 2007

ren %userprofile%\AppData\Roaming\Microsoft\Templates\Normal.dotm OldNormal.dotm

Word 2003

ren %userprofile%\AppData\Roaming\Microsoft\Templates\Normal.dot OldNormal.dot

4. At the command prompt, type exit, and then press Enter.


5. Start Word.
If Word starts correctly, you have resolved the problem. In this case, the problem is a damaged global template file.
Now, you may have to change several settings to restore your favorite options.

NOTE
The old global template file may contain customizations that can't be easily re-created. These customizations may include
styles, macros, and AutoText entries. In this case, you may be able to copy the customizations from the old global template
file to the new global template file by using the Organizer. For more information about how to use the Organizer to copy
macros and styles, press F1 in Word to open Microsoft Word Help, type rename macros in the Search box, and then select
Search to view the topic.

If the problem is not resolved, restore the original global template file, and then go to the next section.
R e st o r e t h e o r i g i n a l g l o b a l t e m p l a t e fi l e

To restore the original global template file, follow these steps:


1. Exit all Office programs.
2. Type cmd in the Search box (in Windows 10, Windows 8.1, or Windows 8) or in the Star t Search box on
the Star t menu (in earlier versions of Windows), and then press Enter.
3. At the command prompt, type the following command, as appropriate for the version of Word that you are
running, and then press Enter:
Word 2016, Word 2013, Word 2010 and Word 2007

ren %userprofile%\AppData\Roaming\Microsoft\Templates\OldNormal.dotm Normal.dotm

Word 2003

ren %userprofile%\AppData\Roaming\Microsoft\Templates\OldNormal.dot Normal.dot

4. Type exit, and then press Enter.


5. Start Word.
Option 6: Disable the Startup folder add-ins
When you start Word, Word automatically loads templates and add-ins that are located in the Startup folders.
Conflicts or problems that affect an add-in can cause problems in Word. To determine whether an item in a Startup
folder is causing the problem, temporarily disable the registry setting that points to these add-ins.
To do this, follow these steps:
1. Exit all Office programs.
2. Start Windows Explorer. Type windows ex in the Search box (in Windows 10, Windows 8.1, or Windows 8)
or in the Star t Search box on the Star t menu (in earlier versions of Windows), and then press Enter.
3. Type the following command in the address bar, as appropriate for the version of Word that you're running
and its installation type, and then press Enter:

Word 2016 64-bit C2R installation: %programfiles%\Microsoft


Office\root\office16\Startup\

32-bit C2R installation: %programfiles% (x86)\Microsoft


Office\root\office16\Startup\

64-bit MSI installation: %programfiles%\Microsoft


Office\office16\Startup|

32-bit MSI installation: %programfiles% (x86)\Microsoft


Office\office16\Startup\

Word 2013 64-bit C2R installation: %programfiles%\Microsoft


Office\root\office15\Startup\

32-bit C2R installation: %programfiles% (x86)\Microsoft


Office\root\office15\Startup\

64-bit MSI installation: %programfiles%\Microsoft


Office\office15\Startup\

32-bit MSI installation: %programfiles% (x86)\Microsoft


Office\office15\Startup\

Word 2010 %programfiles%\Microsoft


Office\Office14\Startup\

Word 2007 %programfiles%\Microsoft


Office\Office12\Startup\

Word 2003 %programfiles%\Microsoft\Office\Offi


ce11\Startup\

4. Right-click one of the files that is contained in the folder, and then select Rename .
5. After the file name, type .old, and then press Enter.

IMPORTANT
Make a note of the original file name so that you can restore the file, if it is necessary.
6. Start Word.
7. If you can no longer reproduce the problem, you have found the specific add-in that causes the problem. If
you must have the features that the add-in provides, contact the vendor of the add-in for an update.
If the problem is not resolved, rename the add-in by using its original name, and then repeat steps 3 through
6 for each file in the Startup folder.
8. If you can still reproduce the problem, type the following path in the address bar of Windows Explorer, and
then select OK .
For Windows 10, Windows 8.1, Windows 8, Windows 7, or Windows Vista
%userprofile%\AppData\Roaming\Microsoft\Word\Startup
For Windows XP
%userprofile%\Application Data\Microsoft\Word\Startup
9. Repeat steps 3 through 6 for each file in this Startup folder.
If the problem is not resolved after you disable the Startup folder add-ins, go to the next method.
Option 7: Delete the COM add-ins registry keys
You can install COM add-ins in any location. Programs that interact with Word install COM add-ins. To determine
whether a COM add-in is causing the problem, temporarily disable the COM add-ins by deleting the registry keys for
the COM add-ins.
To delete the COM add-ins registry keys, follow these steps:
1. Exit all Office programs.
2. Type regedit in the Search box (in Windows 10, Windows 8.1, or Windows 8) or in the Star t Search box on
the Star t menu (in earlier versions of Windows), and then press Enter.
3. Locate the following registry subkey: HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins
4. select Addins , and then select Expor t on the File menu.
5. Name the file WdaddinHKCU.reg, and then save the file to the desktop.
6. On the Edit menu, select Delete , and then select Yes .
7. Locate the following registry subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Word\Addins
8. select Addins , and then on the File menu, select Expor t .
9. Name the file WdaddinHKLM.reg, and then save the file to the desktop.
10. On the Edit menu, select Delete , and then select Yes .
11. Exit Registry Editor.
12. Start Word.
If the problem is resolved, you have determined that a COM add-in program is causing the problem. Next, you
must determine which COM add-in program is causing the problem.
D e t e r m i n e w h i c h C O M a d d - i n p r o g r a m i s c a u si n g t h e p r o b l e m

To determine which COM add-in program is causing the problem, follow these steps:
1. Exit all Office programs.
2. Double-select the Wdaddin.reg icon on your desktop.
3. select Yes , and then select OK .
4. Use one of the following procedures, as appropriate for the version of Word that you are running:
Word 2016, Word 2013, or Word 2010
a. On the File menu, select Options .
b. select Add-Ins .
c. In the Manage list, select COM Add-Ins , and then select Go .
Note If an add-in is listed in the COM Add-Ins dialog box, clear the add-in check box. If more than one add-
in is listed, clear only one add-in check box at a time. This procedure helps determine which add-in is causing
the problem.
4. select OK to close the COM Add-Ins dialog box.
5. On the File menu, select Exit .
Word 2007
a. select the Microsoft Office Button, and then select Word options .
b. select Add-ins .
c. In the Manage list, select COM Add-ins , and then select Go .
If an add-in is listed in the COM Add-Ins dialog box, select to clear the add-in check box. If more than
one add-in is listed, select to clear only one add-in check box at a time. This procedure helps
determine which add-in is causing the problem.
d. select OK to close the COM Add-Ins dialog box.
e. select the Microsoft Office Button, and then select Exit Word .
f. On the File menu, select Exit .
5. Start Word.
If the problem is resolved when you start Word, you have determined which COM add-in is causing the
problem. If you must have the features that the add-in provides, you must determine which add-in includes
those features so that you can contact the vendor for an update.
If the problem is not resolved when you start Word, repeat steps 4 and 5 for each COM add-in that's listed until you
determine which add-in is causing the problem.
To restore the COM add-ins, repeat step 4, but select the check box for each COM add-in that you want to restore.
Option 8: Change the default printer
To change the default printer, follow these steps:
1. Exit all Office programs.
2. Type regedit in the Search box (in Windows 10, Windows 8.1, or Windows 8) or in the Star t Search box on
the Star t menu (in earlier versions of Windows), and then press Enter.
3. right-click Microsoft XPS Document Writer , and then select Set as default printer .
4. Start Word.
If the problem is resolved after you start Word, you have determined that the printer is causing the problem. If
this is the case, contact the vendor to see whether there is an update for the printer driver.
Mail merge error when a data source is accessed by
multiple users in Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You try to open a mail-merged document in Microsoft Word 2010, Word 2013, or Word 2016.
The data for this document is a Microsoft Excel worksheet (*.xlsx) that's stored in shared folder.
The document has already been opened.
In this scenario, you receive the following error message:
Error has occurred: External table is not in the expected format.

Cause
When you store an .xlsx file in a shared folder and use it as data source in a Word mail merge, Word opens the .xlsx
file exclusively. If another user tries to open a Word file that uses the same data source simultaneously, only read-
only permissions can be granted, and therefore the request fails.

Workaround
To work around this issue, use a .csv or .xls file instead of an .xlsx file as the data source. For example, open your
data source in Excel, and then save it as an Excel 97-2003 Workbook (*.XLS) or CSV Comma Delimited
(*.CSV) file.
How to merge multiple Word documents into one
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

If you need to cope with Word documents quite often during work, merger of multiple Word documents into one
might be required sometimes. You can copy and paste the content directly when the info quantity is not large. But
what if it is not that case?
The Inser t tab allows you to subtly merge documents.

Locate Object , press a small triangle next to it, and click Text from File from the dropdown menu.

After that, you can select files to be merged into the current document. To select more than one document, pressing
and holding Ctrl .

NOTE
Documents placed at the top will be merged in the first place. Therefore, please sort and number each target document in
case that you want to keep a certain sequence for your documents.
This method applies both to Word 2010 and Word 2007. Attention required: Formats will not be necessarily
remained when you merge the documents. Please be careful of that.
If it does not work all the same, you are suggested to dig the Forum to see if any solution can be best for you.
A picture or an object may not appear in a Word
2010 or Word 2007 document
3/30/2020 • 7 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

For a Microsoft Word 2000 and Microsoft Office Word 2003 version of this article, see 285957 .

Symptoms
When you open a Microsoft Office Word 2010 or Word 2007 document that contains a picture or an object, the
picture or the object may not appear. This problem may occur in a document that contains a picture, a graphic
image, an AutoShape object, or another object.

Cause
This problem occurs if you are using a Wrapping style option other than the In line with text option with the
picture or with the object. And, one of the following conditions is true:
You are viewing the Word document in Draft view or in Outline view.
The Show drawings and text boxes on screen option is turned off.
The Print drawings created in Word option turned off.
The Use draft quality option is turned on.
If you are using the In line with text option with the picture or with the object, this problem may occur if the
Picture Placeholders option is turned on.
This problem may also occur if you are experiencing a problem with the video driver.

Workaround
You are using a Wrapping style option other than the "In line with text" option
If you are using a Wrapping style option other than the In line with text option, use one of the following
workarounds.
Use the "In line with text" Wrapping style option
To change the Wrapping style option for a picture or for an object to In line with text , follow these steps, as
appropriate for your version of Word.
W ord 2007

1. Click the picture or the object.


2. On the Format tab, click Text Wrapping in the Arrange group.
3. Click In line with text .
W ord 2 0 10

1. Click the picture or the object.


2. On the Format tab, click Text Wrapping in the Arrange group.
3. Click In line with text .
When you use the In line with text option, the picture or the object will be displayed in any view.
If you want to use a Wrapping style option other than the In line with text option, use one of the following
workarounds.
Change the view
This problem may occur if you are viewing the document in Draft view or in Outline view. To work around this
problem, view the document in one of the following views:
Print Layout
Full Screen Reading
Web Layout
Print Preview for Word 2007. For
Word 2010: Click File , and then click Print .
Word 2010 and Word 2007 documents consist of separate text and drawing layers. When you use a Wrapping
style option other than the In line with text option with a picture or with an object, the picture or the object is
inserted into the drawing layer. Word 2010 and Word 2007 do not display the drawing layer when you view the
document in Draft view or in Outline view. The drawing layer is displayed in a Word 2010 and in a Word 2007
document when you use any one of the views that are mentioned in this workaround.
Turn on the "Show drawings and text boxes on screen" option
When you turn on the Show drawings and text boxes on screen option, you can view the picture or the object
in Print Layout view or in Web Layout view. To turn on the Show drawings and text boxes on screen option,
follow these steps, as appropriate for your version of Word.
W ord 2007

1. Click the Microsoft Office Button , and then click Word Options .
2. Click Advanced .
3. Under Show document content , click to select the Show drawings and text boxes on screen check box.
4. Click OK .
W ord 2 0 10

1. Click File , and then click Options .


2. Click Advanced .
3. Under Show document content , click to select the Show drawings and text boxes on screen check box.
4. Click OK .
Turn on the "Print drawings created in Word" option
When you turn on the Print drawings created in Word option, you can view the picture or the object in Print
Preview. And, you can print the picture or the object. To turn on the Print drawings created in Word option,
follow these steps, as appropriate for your version of Word.
W ord 2007

1. Click the Microsoft Office Button , and then click Word Options .
2. Click Display .
3. Under Printing options , click to select the Print drawings created in Word check box.
4. Click OK .
W ord 2 0 10

1. Click File , and then click Options .


2. Click Display .
3. Under Printing options , click to select the **Print drawings created in Word ** check box.
4. Click OK .
Turn off the "Use draft quality" option
When you turn off the Use draft quality option, you can view the picture or the object in Print Preview. And, you
can print the picture or the object. To turn off the Use draft quality option, follow these steps, as appropriate for
your version of Word.
W ord 2007

1. Click the Microsoft Office Button , and then click Word Options .
2. Click Advanced .
3. Under Print , click to clear the Use draft quality check box.
4. Click OK .
W ord 2 0 10

1. Click File , and then click Options .


2. Click Advanced .
3. Under Print , click to clear the Use draft quality check box.
4. Click OK .
You are using the "In line with text" Wrapping style option
Turn off the "Picture Placeholders" option
When you turn off the Picture Placeholders option, you can view the picture or the object in all views. To turn off
the Picture Placeholders option, follow these steps, as appropriate for your version of Word.
W ord 2007

1. Click the Microsoft Office Button , and then click Word Options .
2. Click Advanced .
3. Under Display document content , click to clear the Picture Placeholders check box.
4. Click OK .
W ord 2 0 10

1. Click File , and then click Options .


2. Click Advanced .
3. Under Show document content , click to clear the Show Picture Placeholders check box.
4. Click OK .

NOTE
The Picture Placeholders option does not affect pictures or objects when you use a Wrapping style option other than the
In line with text option. The Picture Placeholders option affects pictures and objects when you use the In line with
text option in all views except the Full Screen Reading view.

You are experiencing problems with the video driver


If you experience this problem frequently, you may have a problem with the video driver settings or with the
Windows Display Properties settings. If the previous workarounds do not resolve the problem, try the following
workarounds.
Change the Color quality setting or the screen resolution of the current video driver
To change the color quality setting, follow these steps, as appropriate for your situation.
W indow s XP

1. Click Star t , click Run , type desk.cpl, and then click OK .


2. Click the Settings tab.
3. If the Color quality setting is set to Highest (32 bit) , change this setting to Medium (16 bit) , and then click
OK .
If you are still experiencing the problem, change the screen resolution. To do this, follow these steps:
1. Click Star t , click Run , type desk.cpl, and then click OK .
2. Click the Settings tab.
3. Under Screen resolution , move the slider to the left, and then click OK .
W i n d o w s Vi st a

1. Click Star t , click Run , type desk.cpl, and then click OK .


2. If the Colors setting is set to Highest (32 bit) , change this setting to Medium (16 bit) , and then click OK .
If you are still experiencing the problem, change the screen resolution. To do this, follow these steps:
1. Click Star t , click Run , type desk.cpl, and then click OK .
2. Under Resolution , move the slider to the left, and then click OK .
W indow s 7

1. Click Star t , click Run , type desk.cpl, and then click OK .


2. Click the Advanced Settings tab.
3. Click Monitor .
4. If Colors is set to Highest (32 bit) , change this setting to Medium (16 bit) , and then click OK .
If you are still experiencing the problem, change the screen resolution. To do this, follow these steps:
1. Click Star t , click Run , type desk.cpl, and then click OK .
2. Under Resolution , click the arrow and try another resolution, and then click OK .
Change the hardware acceleration setting
W indow s XP

1. Click Star t , click Run , type desk.cpl, and then click OK .


2. On the Settings tab, click Advanced .
3. Click the Troubleshoot tab.
4. Move the slider to the left to reduce the hardware acceleration, and then click OK two times.
5. When you are asked if you want to restart the computer, click Yes .
W i n d o w s Vi st a a n d W i n d o w s 7

1. Click Star t , click Run , type desk.cpl, and then click OK .


2. Click Advanced Settings .
3. Click the Troubleshoot .
4. If your display driver allows changes, click Change Settings . Move the slider to the left to reduce the hardware
acceleration, and then click OK two times.
5. When you are asked if you want to restart the computer, click Yes .
Obtain an updated video card
If the workarounds that are described in this section help resolve this problem, contact your computer
manufacturer for updated video drivers. If you have already upgraded your video card, contact the video card's
manufacturer.
On-screen keyboard opens repeatedly in Word
Online
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You have a Chromebook, a Chromebook tablet, or some other device that runs the Chrome operating system.
A keyboard is attached to the device.
You use Word Online.
In this scenario, the on-screen keyboard opens repeatedly.
For example, a user opens a document on a Chrome-based device that has a physical keyboard connected. The
user clicks a section of the document, and starts typing. However, the on-screen keyboard opens. The user
dismisses the on-screen keyboard, and continues typing. When the user moves to another section of the document,
the on-screen keyboard opens again and must be dismissed again.

Cause
This issue occurs because of the manner in which the Chrome operating system detects editable content. The Word
Online team cannot change this behavior.

Workaround
To work around this issue, disable the automatic keyboard in the device settings. To do this, follow these steps:
1. Tap or click your account photo.
2. Tap or click Settings .
3. At the bottom, tap or click Advanced .
4. Under Accessibility , tap or click Manage accessibility features .
5. Under Keyboard , turn off Enable on-screen keyboard .
For more detailed instructions, see the "Turn off on-screen keyboard" section in Use the on-screen keyboard on the
Google website.
Third-par ty disclaimer
Microsoft provides third-party contact information to help you find technical support. The contact information may
change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
The third-party products that are discussed in this article are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance of reliability of these
products.
Opening a file is blocked by your registry policy
setting or File Block settings in Word
3/30/2020 • 11 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Error messages you may receive when you open a file in Microsoft Word.
Error message 1

You are attempting to open a file type that is blocked by your registry policy setting.

Error message 2

You are attempting to open a file that was created in an earlier version of Microsoft Office. This file type is
blocked from opening in this version by your registry policy setting.

Error message 3

You are attempting to open a file type File_Type that has been blocked by your File Block settings in the Trust
Center.

Resolution
To fix this issue, disable the restriction on opening documents of certain types.
Method 1: Disable the restriction by yourself
Word 2013 and Word 2010
1. Click the File tab.
2. Under Help , click Options .
3. Click Trust Center , and then click Trust Center Settings .

4. In the Trust Center , click File Block Settings .


5. To enable the opening of a file that is blocked, clear the check box for that file type.

6. Click OK two times.


Word 2007
To disable this restriction in Word 2007, change the value of the FileOpenBlock subkey.
To disable or enable the file restriction yourself, follow these steps:
1. Exit Word.
2. Click Star t , click Run , type regedit in the Open box, and then click OK .
3. Locate and then click the following registry subkey:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Word\Security\FileOpenBlock
If the FileOpenBlock subkey does not exist, you must create it. To do this, follow these steps:
a. Select the Security subkey.
b. On the Edit menu, point to New , and then click Key .
c. Type FileOpenBlock, and then press ENTER.
4. After you select the subkey that is specified in step 3, locate the DWORD value.
Note If this value does not exist, you must create it. To do this, follow these steps:
a. On the Edit menu, point to New , and then click DWORD Value .
b. Type the DWORD value for which you want to disable the restriction, and then press ENTER. For example,
type FilesBeforeVersion.
You may check the different DWORD values in the "More Information" section of this article based on the
version of Word that you are running. For example, if the opening of files that were saved in earlier file
formats is restricted, locate the FilesBeforeVersion DWORD value in the registry for the FileOpenBlock
subkey. When you change the value of FilesBeforeVersion from 1 to 0, you can open files that were saved in
earlier file formats.
5. Right-click the DWORD value that you want, and then click Modify .
6. In the Value data box, type 0, and then click OK .
7. On the File menu, click Exit to exit Registry Editor.
Word 2003
For more information about how to disable the restriction in Word 2003, see Information about certain file types
that are blocked after you install Office 2003 Service Pack 3.
Method 2 Using Administrative Template files and the Office Customization Tool to disable the restriction
Word 2013, Word 2010, and Word 2007
Download the Administrative Template files and Office Customization Tool from the following websites: Office 2013
Administrative Template files (ADM, ADMX/ADML) and Office Customization Tool Office 2010 Administrative
Template files (ADM, ADMX/ADML) and Office Customization Tool 2007 Office system (SP2) Administrative
Template files (ADM, ADMX, ADML) and Office Customization Tool
Note This update provides updated Group Policy template files either to enable an override of the files that are
blocked by default or to block additional file types.
The opening of the following file types can be controlled through Word 2013 and Word 2010: File Block Settings
Word 2007 and later documents and templates
OpenDocument text files
Word 2007 and later binary documents and templates
Word 2003 binary documents and templates
Word 2003 and plain XML documents
Word XP binary documents and templates
Word 2000 binary documents and templates
Word 97 binary documents and templates
Word 95 binary documents and templates
Word 6.0 binary documents and templates
Word 2 and earlier binary documents and templates
Webpages
RTF files
Plain text files
Legacy converters for Word
Open XML converters for Word
PDF files (available for Word 2013 only)
Word 2007: Block opening of files before version
Word 1.x for Windows
Word 4.x for Macintosh
Word 1.2 for Windows Japan
Word 1.2 for Windows Korea Word 5.x for Macintosh
Word 1.2 for Windows Taiwan Word 2.x for Windows
Word 2.x for Windows BiDi Word 2.x for Windows Japan Word 2.x for Windows Korea
Word 2.x for Windows Taiwan Word 6.0 for Windows
Word 6.0 for Macintosh Word 95 Released Word 95 Beta
Word 97 for Windows Word 98 for Macintosh Word 2001 for Macintosh
Word X for Macintosh Word 2000 Word 2002
Word 2003 Word 2004 for Macintosh
Word 2003 as saved by Word 2007
The file type can be selected only if the Enabled option is selected to select a file type.
To fix this issue if you do not want to disable the restriction:
Method 3 Use a trusted location, or create an exempt location
Word 2013, Word 2010, and Word 2007
If you trust the file that you want to open, you can open that file even if the file type is blocked by the registry. You
can override the registry policy settings by moving the file to a trusted location.
For more information about how to create, to remove, or to change a trusted location for files, go to one of the
following websites:
Plan Trusted Locations settings for Office 2013
Plan Trusted Locations settings for Office 2010
Word 2003
In Word 2003, there are no trusted locations. You can create an exempt location to override the registry policy
settings.
To create an exempt location, follow these steps
1. Exit Word 2003.
2. Click Star t , click Run , type regedit in the Open box, and then click OK .
3. Locate and then click one of the following registry subkeys:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Common
4. Point to New on the Edit menu, and then click Key .
5. Type OICEExemptions for the name of the key.
6. Point to New on the Edit menu, and then click String Value .
7. Type a string name, and then press ENTER. For example, type ExemptDirectory.
8. Right-click the string name that you typed in step 7, and then click Modify .
9. In the Value data box, type the path of the directory that contains the file, and then click OK . For example, if
your document is in the C:\My Documents folder, type C:\My Documents in the Value data box.
Note You must create the folder. Subfolders are not automatically exempt. For additional folders that you
would like to make exempt, repeat steps 6 to 9 by creating string values such as "ExemptDirectory1," and
"ExemptDirectory2."
10. On the File menu, click Exit to exit Registry Editor.
Note For information about a similar error message when you save a file in Word, see Error message when you try
to save a document in Word 2007 or in Word 2003: "You are attempting to save a file that is blocked by your
registry policy setting".

Cause
This issue may occur if one of the following conditions is true:
You are using Word 2013 or Word 2010, and you try to open a file that was saved in one of the following
earlier Word formats. (Word 2013 and Word 2010 do not support documents that were saved in the
following Word formats.)
Microsoft Word for Windows 1.x
Microsoft Word for Windows 2.x
Microsoft Word for the Macintosh 4.x
Microsoft Word for the Macintosh 5.x
Microsoft Word 6.0 Binary Documents and Templates
Microsoft Word 95 Binary Documents and Templates
You are using Word 2007, and you try to open a file that was saved in one of the following earlier Word
formats. (Word 2007 does not support documents that were saved in the following Word formats.)
Microsoft Word for Windows 1.x
Microsoft Word for Windows 2.x
Microsoft Word for the Macintosh 4.x
Microsoft Word for the Macintosh 5.x
An administrator restricted the kinds of documents that you can open or save in Word 2007 or in Word
2003. An administrator can set a registry key to restrict this functionality.
For Word 2007, the registry key can be set in the 2007 Office System Administrative Templates. For more
information, see the "Word 2007" subsection of the "More Information" section.
For Word 2003, security update 934181 enables the administrator to block the ability to save or to open files
in Word 2003. For more information, see the "Word 2003" subsection of the "More Information" section.

More Information
How to restrict files in Microsoft Word
Word 2013
To restrict the kinds of files that you can open or save in Word 2013, an administrator can use the 2013 Office
System Administrative Templates to configure the registry on the client computer.
Notes
To download the 2013 Office System Administrative Templates, go to the following Microsoft website:
For more specific information about how to use settings to block the opening and saving of file formats in Office
2013 programs, go to the following Microsoft website, and then see the "Group Policy overview for Office 2013"
topic.
Word 2010
To restrict the kinds of files that you can open or save in Word 2010, an administrator can use the 2010 Office
System Administrative Templates to configure the registry on the client computer.
Notes
To download the 2010 Office System Administrative Templates, go to the following Microsoft website:
For more specific information about how to use settings to block the opening and saving of file formats in the
2010 Office programs, go to the following Microsoft website, and then see the "Group Policy overview for Office
2010" topic.
Word 2007
To restrict the types of files that you can open or save in Word 2007, an administrator can use the 2007 Office
System Administrative Templates to configure the registry on the client computer.
The following table contains the DWORD values that an administrator can add to the registry to restrict certain file
types by using the FileOpenBlock subkey. Additionally, the table contains the corresponding file types that are
restricted.
|DWORD value| File types that are restricted | |--|--| |OpenXmlFiles|.docx, .dotx, .docm, .dotm, .xml (Word Flat Open
XML) | |BinaryFiles|.doc, .dot | |HtmlFiles|.htm, .html, .mht, .mhtml | |XmlFiles|.xml (Word 2003) | |RtfFiles|.rtf, .doc
(Word 95), .doc (Word 97 release version) | |Converters|All file formats that are available by using a text converter |
|TextFiles|.txt | |InternalFiles|All Word file types that have a non-RTM nFib value | |FilesBeforeVersion|All Word files
that have an nFib value lower than the minimum nFib value as set by an administrator | Notes
To download the 2007 Office System Administrative Templates, go to the following Microsoft website:
For more specific information about how to use settings to block the opening and saving of file formats in the
2007 Office programs, go to the following Microsoft website, and then see the "Enforce settings by using Group
Policy in the 2007 Office system" topic.

Word 2003
An administrator can restrict the types of files that you can open or save in Word 2003. This ability was not
provided in Microsoft Office 2003 when it was originally released. To restrict the types of files that can be opened or
saved in Word 2003, install security update 934181.
For more information about security update 934181, click the following article number to view the article in the
Microsoft Knowledge Base:

Description of the security update for Word 2003: May 8, 2007

To restrict the types of files that you can open or save in Word 2003, an administrator can use one of the following
methods:
Use the updated Office 2003 Administrative Templates to configure the registry on the client computer.
Modify the registry by adding a registry key setting on the client computer.
To download the Office 2003 Service Pack 3 Administrative Template (ADM), OPAs, and Explain Text Update, go to
the following Microsoft website:
The following table contains the DWORD values that an administrator can add to the registry to restrict certain file
types by using the FileOpenBlock subkey. Additionally, the table contains the corresponding file types that are
restricted.
|DWORD value| File types that are restricted | |--|--| |BinaryFiles|.doc, .dot | |HtmlFiles|.htm, .html, .mht, .mhtml |
|XmlFiles|.xml (Word 2003) | |RtfFiles|.rtf, .doc (Word 95), .doc (Word 97 release version) | |Converters|All file
formats that are available by using a text converter (including the Office Compatibility Pack) | |TextFiles|.txt |
|WllFiles|.wll | |InternalFiles|All Word file types that have a non-RTM nFib value | |FilesBeforeVersion|All Word files
that have an nFib value lower than the minimum nFib value as set by an administrator | To enable the
FileOpenBlock subkey settings, follow these steps:
1. Exit Word 2003.
2. Install update 934181 if it is not installed.
3. Click Star t , click Run , type regedit in the Open box, and then click OK .
4. Locate and then click one of the following registry subkeys:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Security\FileOpenBlock
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Word\Security\FileOpenBlock
If the FileOpenBlock subkey does not exist, follow these steps to create it:
a. Click to select the Security subkey.
b. On the Edit menu, point to New , and then click Key .
c. Type FileOpenBlock, and then press ENTER.
5. On the Edit menu, point to New , and then click DWORD Value .
6. Type the DWORD value that you want to restrict, and then press ENTER. For example, type BinaryFiles to
restrict the opening of .doc and .dot file types.
7. Right-click the DWORD value that you typed in step 6, and then click Modify .
8. In the Value data box, type 1, and then click OK .
9. On the File menu, click Exit to exit Registry Editor.
Operating parameter limitations and specifications in
Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article lists the operating parameter limits of Microsoft Office Word and Microsoft Visual Basic for
Applications.

More Information
Visual Basic for Applications limits
Word limits
Note 1 Maximum File Size
The maximum file size is limited to 32 MB for the total document text only and does not include graphics,
regardless of how the graphics image is inserted (Link to file, Save with document, or Wrapping style) into the
document. Therefore, if the file contains graphics, the maximum file size can be larger than 32 MB.
Note 2 Number of Words and Maximum File Size of Custom Dictionary
The Microsoft Word 2000 Help file lists the number of words and maximum file size of the custom dictionary
incorrectly.
Note 3 To invoke AutoComplete tips for AutoText, at least four characters of the AutoText entry must be typed
Word 2007 and later versions limits
O P ERAT IN G PA RA M ET ER L IM IT

Maximum number of bookmarks 2,147,483,647

(Style Definition) maximum number of styles 4,079

Maximum number of comments 2,147,483,647

Maximum number of fields 2,147,483,647

Number of subdocuments in a master document 255

Maximum number of moves 2,147,483,647

(Range Permission) maximum number allowed 2,147,483,647


O P ERAT IN G PA RA M ET ER L IM IT

Size of file Word can open 512 MB

Maximum number of records to display in recipients list dialog 10000

NOTE
The 10000 maximum is for the recipients' list dialog. If you search in that dialog, you are limited to the displayed records even
if your data source has more records. The workaround is to filter the records so that those that you are looking for will fit in
the dialog or to use the Find operation in the wizard task pane.

Word 2007 and later versions in compatibility mode limits


O P ERAT IN G PA RA M ET ER L IM IT

Maximum number of bookmarks 16,380

(Style Definition) maximum number of styles 4,079

Maximum number of comments 16,380

Number of subdocuments in a master document 255

Maximum number of fields 2,147,483,647

Maximum number of moves 32,752

(Range Permission) maximum number allowed 32,752

Size of file Word can open 512 MB

Maximum number of records to display in recipients list dialog 10000

Note 4 The 32,767 limit is for versions earlier than Word 2007.
Note 5 Number of records to display in recipients list dialog
You are limited to 10000 displayed records even if your data source has more records. To work around this
limitation filter the records so that they fit in the dialog or use the Find operation from the wizard task pane.
Overtype mode is disabled in Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you try to use Overtype mode in Microsoft Office Word, you discover that Overtype mode is disabled.

NOTE
To use Overtype mode in earlier versions of Word, press INSERT to toggle the mode on and off.

Cause
By default, Overtype mode is disabled in Word.

Resolution
Use one of the following methods to enable Overtype mode.
Method 1
1. Do one of the following, as appropriate for your version of Word:
In Word 2010 and Word 2013, click the File tab, and then click Options .
In Word 2007, click the Office Button icon, and then click Word Options .
2. In the Word Options dialog box, click Advanced .
3. Do one of the following:
To enable the INSERT key in order to control Overtype mode, click to select the Use the Inser t key to
control over type mode check box.
To keep Overtype mode always enabled, click to select the Use over type mode check box.
4. Click OK .
Method 2
1. Right-click the Status bar, and then click Over type . "Insert" is now displayed on the left side of the Status bar.
2. To use Overtype mode, click Inser t on the Status bar. "Overtype" is now displayed on the left side of the Status
bar.

NOTE
The Status bar is located at the bottom of the Word window.
Performance issues with AutoRecover location on
network share
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You're working with a complex Word document. After an AutoSave operation (the default interval is 10 minutes)
you notice a general performance degradation when editing the document:
sluggish typing
slow screen refresh when scrolling

Cause
The AutoRecover file location points to a network share. This will force Word to use files located on a network share
as temporary or scratch files.

Resolution
In order to resolve this problem you need to set the AutoRecover file location to a local path. The default path is
%APPDATA%\Microsoft\Word. Please also ensure that %APPDATA% (or Roaming Application Data) points to a local
folder.
To change this setting, please go to File - Options - Save and modify the Text Box "AutoRecover file location:". Type
in a valid local path.

More Information
Since the temporary files that Word uses are file-access-driven, accessing them through the network is not
optimal.
File-access-driven means that the computer uses special file access commands that the operating system provides
to read and write data to the file. This is not efficient on WAN or LAN links because WAN and LAN links use
network-access-driven methods.
For more information on how Word creates and stores temporary files, please check Description of how Word
creates temporary files.
A similar performance degradation occurs in Outlook if the PST file is located on the network. More information
about that on Limits to using personal folders (.pst) files over LAN and WAN links.
How to print a general field by using Word and
Visual FoxPro 9.0 or earlier versions
3/30/2020 • 4 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
When using the Report Designer to print a general field that has text inserted into it with a word processor, the OLE
bound Control object of the Report Designer has to be sized to be as large as the largest amount of text in the
general fields. This can present problems if there are multiple pages of text in the general field. The OLE Bound
control can be enlarged only to the height of a single page in the Report Designer, which is usually not large
enough to print a general field that has more than a page of data.

More Information
Using a memo field would be one way to store the data and have it print correctly in the Report Designer. The
problem with this method is that any formatting such as underlining, bolding, or different font sizes of the text is
not allowed in a memo field. A word processor is needed to format data in this way and storing it into a general
field is the only way to keep the formatting of the data intact. Instead of using the Report Designer to print the
general field, sending it to a word processor like Word for Windows will allow all of the data in a general field to be
printed correctly.
Below are two examples of code that use OLE Automation to call Word and then use WordBasic or Visual Basic for
Applications (VBA) commands to pass the data to Word. The first example works only with Word 6.0, Word 95, or
Office Word 2003 with any version of Visual FoxPro. The second example works only with Word 97 and Visual
FoxPro versions 5.0 with Service Pack 2 and 6.0.
If using the example that works with Word 6.0 or Word 95 and the following error occurs, then the data in the
general field of the table was inserted with Word 97:
OLE Idispatch exception code 269 from Microsoft Word: Microsoft Word Err=1269 - Word cannot
edit the object...
Change to the second example using Visual FoxPro 5.0 SP 2 and Word 97 to pass the data to Word.
To use the code as is, you need to create a table with field names like those below:

F IEL D N A M E TYPE W IDT H

FIRST Character 15

LAST Character 15

ADDRESS Character 25
F IEL D N A M E TYPE W IDT H

CITY Character 15

STATE Character 2

ZIPCODE Character 5

GEN General 4

After building the table and adding some data to each character field, make sure that each general field has been
populated by double-clicking on the general field to open it and selecting the EDIT - INSERT OBJECT menu options.
With the "Create New" button selected, select "Microsoft Word Document" in the "Object Type" list box and type
some data into Word. Close Word to save the data into the general field.
The following code works with Visual FoxPro 3.x, 5.x, 6.0, 7.0 , 8.0, and 9.0 when using Word 6.0, Word 95, or Office
Word 2003. Place the following code into a program (.prg) file and run it.
************* Beginning of code. ****************

PUBLIC oWord
oWord = CREATEOBJECT("Word.Basic")
WITH oWord
.AppShow && Makes Word Visible
.FileNewDefault && Opens up blank Word document

* The following Insert commands place the FoxPro fields into


* the Word document. You can change these commands to place
* any text in the document.
* Ensure that the table is already open. If only a portion
* of records are to be printed, change the EOF() to a certain
* number so that all of the records do not get processed.
* Example: DO WHILE RECNO() < 10

GO TOP

DO WHILE NOT EOF()


.Insert("Record: "+ALLTRIM(STR(RECNO())))
&& The above line shows the record number.
.InsertPara
.InsertPara
.Insert(ALLTRIM(first)+" "+last) && Field in the table.
.InsertPara
.Insert(address)
.InsertPara
.Insert(ALLTRIM(city)+", "+state+" "+zipcode)
.InsertPara
.InsertPara
.Insert("Contents of the General Field:")
.InsertPara
.InsertPara
KEYBOARD "{ctrl+c} {ctrl+w}" && Copies and closes the general
&& field to the clipboard.
MODIFY GENERAL gen && This has to be after the
&& KEYBOARD command.
.EditPaste
.WordLeft(1,1)
.EditObject("0")
.EditSelectAll
.Editcopy
.FileClose
.EditClear
.EditPaste
.InsertPara
.InsertPara
.InsertPara
SKIP && Move the record pointer to
&& the next record.
ENDDO
.FileSaveAs("c:\mydoc.doc") && Saves the Word document as
&& Mydoc.doc.
.FilePrint
.AppClose
ENDWITH

**************** End of code. ****************

If you are using Word 97, Visual FoxPro 5.0 Service Pack 2 and Visual FoxPro 6.0 are the only versions that run this
code correctly. Place the following code into a program (.prg) file and run it.
**************** Beginning of code. **********
PUBLIC oWord
oWord = CREATEOBJECT("Word.Application")
WITH oWord
.visible=.t. && Makes Word Visible
.documents.add && Opens up blank Word document

* The following Insert commands place the FoxPro fields into


* the Word document. You can change these commands to place
* any text in the document.
* Ensure that the table is already open. If only a portion
* of records are to be printed, change the EOF() to a certain
* number so that all of the records do not get processed.
* Example: DO WHILE RECNO() < 10
GO TOP
DO WHILE NOT EOF()

.Selection.TypeText("Record: "+ALLTRIM(STR(RECNO())))
&& The above line shows the record number.
.Selection.TypeParagraph
.Selection.TypeParagraph
.Selection.TypeText(ALLTRIM(first)+" "+last)&& Field in the table.
.Selection.TypeParagraph
.Selection.TypeText(address)
.Selection.TypeParagraph
.Selection.TypeText(ALLTRIM(city)+", "+state+" "+zipcode)
.Selection.TypeParagraph
.Selection.TypeParagraph
.Selection.TypeText("Contents of the General Field:")
.Selection.TypeParagraph
.Selection.TypeParagraph
KEYBOARD "{ctrl+c} {ctrl+w}" && Copies and closes the general
&& field to the clipboard.
MODIFY GENERAL gen && This has to be after the
&& KEYBOARD command.
.Selection.Paste
.Selection.MoveLeft
x = .ActiveDocument.Shapes.Count
.ActiveDocument.Shapes(x).OLEFormat.Edit
.Selection.Wholestory
.Selection.Copy
.ActiveDocument.Close
.Selection.Delete
.Selection.EndKey(6)
.Selection.Paste
.Selection.TypeParagraph
.Selection.TypeParagraph
.Selection.TypeParagraph
SKIP && Move the record pointer to
ENDDO
.ActiveDocument.SaveAs("Mydoc.doc") && Saves the Word document as
&& Mydoc.doc.
.Application.PrintOut
ENDWITH

.Quit

**************** End of code ****************

References
For more information on Word Basic and Visual Basic Applications (VBA), look in the Word Help file.
How to print a range of pages in a multiple-section
document in Word 2013, Word 2010, Word 2007, and
Word 2003
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article discusses how to print a page or a range of pages in Microsoft Word 2013, in Microsoft Word 2010, in
Microsoft Office Word 2007, and in Microsoft Office Word 2003.

More Information
In Word, you can create a multiple-section document that uses different page numbering in each section. To specify
a page or a range of pages to be printed, you must supply both the page number and the section number for the
range that you want to print. In a multiple-section document that contains more than one page 1, Word cannot
determine which page 1 to print unless you also supply a section number for that page.
To print a range of pages across sections, use the following syntax in the Pages box:
PageNumberSectionNumber -PageNumberSectionNumber
For example, you would type p1s1-p2s2 to print from page 1 of section 1 through page 2 of section 2.
To print a page or a range of pages in Word, follow these steps:
1. Scroll to the page where you want to start to print, and then click anywhere in the margins. Note the page
number and section number as shown in the status bar.
2. Scroll to the last page that you want to include in the print selection, and then click anywhere in the margins.
Note the page number and section number as shown in the status bar.
3. In Word 2013, Word 2010 and in Word 2003, click Print on the File menu. In Word 2007, click
the Microsoft Office Button, and then click Print.
4. In Word 2013 and 2010, type the range of pages that you want to print in the Pages box in the Settings
area. In Word 2007 and in Word 2003, click to select the Pages option in the Page range area, and then
type the range of pages that you want to print in the box.

NOTE
When you type the range of pages, use the syntax p#s#-p#s#. For example, to print page 5 of section 3 through
page 2 of section 4, type p5s3-p2s4. To print nonadjacent pages or nonadjacent sections, use a comma (,) to separate
the page and section numbers when you type them. For example, to print sections 3 and 5 (but not section 4), type
s3,s5. To print pages 2 through 5 of section 3 and pages 1 through 4 of section 5, type p2s3-p5s3,p1s5-p4s5.
5. Click OK to print the range.

NOTE
This method is the only way to print certain pages by using the print options together with mail merged documents.

Printing pages in relation to their section depends on how the numbering is formatted. If the numbering in the
document is set as continuous, referencing page 1 of a particular section most likely does not result in anything
being printed. This occurs because, when the numbering is formatted as continuous, the page numbers in all
sections except the first do not start with page 1. In this case, the page would have to be referenced according to its
overall position in the documents page collection.
For example, in a document that is formatted as follows, here is what the pages would be for both restart and
continuous numbering:
Section 1 : 4 pages
Section 2 : 4 pages

RESTA RT N UM B ERIN G C O N T IN UO US

S1P1 S1P1 or P1

S1P2 S1P2 or P2

S1P3 S1P3 or P3

S1P4 S1P4 or P4

S2P1 S2P5 or P5

S2P2 S2P6 or P6

S2P3 S2P7

References
For more information about how to print a range of pages in a multiple-section document in Word 2002, click the
following article number to view the article in the Microsoft Knowledge Base:
290984 How to print a range of pages in a multiple-section document in Word 2002
Troubleshoot print failures in Word
4/29/2020 • 15 minutes to read • Edit Online

NOTE
If you are using Microsoft 365 (Microsoft Word for Office 365 with Windows 10), see Troubleshoot print failures in Word for
Office 365 on Windows 10.

Summary
This article suggests ways in which you can diagnose and resolve issues when you cannot print a Microsoft Word
document.

More Information
Examples of print failure are as follows:
You receive error messages and other messages when you try to print a file.
The printer does not respond.
Files print as meaningless symbols.
This article does not discuss printer output issues, such as envelope-positioning problems, missing graphics,
and inaccurate page numbers.

NOTE
Before you continue, see the "References" section for known issues in Word that might match your printer's behavior. If you
do not find a match for your error message or your printer's behavior, follow the steps in this article to troubleshoot your
printing problem.

To resolve a print failure in Word, you must determine its cause. Causes typically fit into one of the following
categories:
Damaged documents or damaged content in documents
The Word program itself
The printer driver
The Windows operating system
Connectivity or hardware
Do not make assumptions about what is causing your printing problem. Instead, rely on systematic troubleshooting
to reveal the cause.
Use the following tests to help determine the cause of your printing failure.
Step 1: Test printing in other documents
Damaged documents or documents that contain damaged graphics or damaged fonts can cause print errors in
Word. Before you reinstall drivers or software, test the Word program's ability to print. To do this, follow these
steps.
Word 2013, Word 2010, and Word 2007
1. Open a new blank document in Word.
2. On the first line of the document, type the following text:
=rand(10)
3. Press Enter. This inserts 10 paragraphs of sample text.
4. Try to print the document.
5. If the document prints successfully, change to a different font, or insert clip art, a table, or a drawing object.
To change the font, follow these steps:
a. Use your pointing device to select your sample text.
b. Click Home .
c. In the Font list, click to select a different font.
To insert clip art, follow these steps:
a. Click the Inser t tab, and then click Clip Ar t . (In Word 2013, click the Inser t tab, and then click Online
Pictures .)
b. On the Clip Ar t task pane, leave the Search text box blank, and then click Go . (In Word 2013, type a
term in the Office.com Clip Ar t search box, and then click Search .)
c. Right-click one of the pictures, and then click Inser t .
d. Close the Clip Art task pane.
To insert a table, follow these steps:
a. Click Inser t , click Table , and then click Inser t Table .
b. Type the number of columns and rows that you want, and then click OK .
To insert a drawing object, follow these steps:
a. Click Inser t , and then click Shapes .
b. Double-click one of the shapes.
6. Test the print function again.
Word 2003
1. Open a new blank document in Word.
2. On the first line of the document, type the following text: =rand(10)
3. Press Enter. This inserts 10 paragraphs of sample text.
4. Try to print the document.
5. If the document prints successfully, change to a different font, or insert clip art, a table, or a drawing object.
To change the font, follow these steps:
a. Use your pointing device to select your sample text.
b. On the Format menu, click Font .
c. In the Font list, click to select a different font, and then click OK .
To insert clip art, follow these steps:
a. On the Inser t menu, point to Picture , and then click Clip Ar t .
b. On the Inser t Clip Ar t task pane, leave the Search text box blank, and then click Search .
c. Right-click one of the pictures, and then click Inser t .
d. Close the Insert Clip Art task pane.
To insert a table, follow these steps:
a. On the Table menu, point to Inser t , and then click Table .
b. Click OK .
To insert a drawing object, follow these steps:
a. On the View menu, point to Toolbars , and then click Drawing .
b. On the Drawing toolbar, select one of the drawing shapes.
c. Click anywhere in the document, drag the mouse pointer, and then release the button.
6. Test the print function again.
The success or failure of these tests shows whether Word can print generally. These tests may also give you clues
about certain fonts or graphics that Word cannot print.
If you do not receive errors in the test document but still cannot print your original document, your original
document may be damaged. This may be true even if you can print the same document on another computer,
because there are many situations in which the symptoms of file damage appear on some computers and not on
other computers.
Again, rely on systematic troubleshooting instead of on assumptions about what is causing the problem. Therefore,
if you cannot print a particular document but can print other documents in Word, you may have a damaged
document. Troubleshoot the problem accordingly. For more information about how to troubleshoot damaged Word
documents, click the following article number to view the article in the Microsoft Knowledge Base:
826864 How to troubleshoot damaged Word documents
If Word cannot print at all, or if Word cannot print a certain font or a certain kind of graphic, go to "Step 2: Test
Printing in Other Programs."
Step 2: Test printing in other programs
The scope of the printing problem may reveal its cause. For example, some printing problems affect only Word,
whereas other printing problems affect several of or all Windows-based programs.
The following tests can help determine whether this problem involves programs other than Word.
Test in WordPad
1. Click Star t , point to Programs (in Windows XP, point to All Programs ), point to Accessories , and then click
WordPad . (In Windows 8, press the Windows key to go to the Start Screen, type WordPad, and then click the
icon.)
2. In the blank WordPad document, type This is a test.
3. On the **File **menu, click Print .
4. Click OK or Print to print the file.
If you found in Step 1: Test printing in other documents" that the print problem occurs only with certain fonts or
certain graphics images, try to reproduce this problem in WordPad. To do this, apply the same font, or insert the
same kind of graphics image. (To select a different font in WordPad, use the same method that you use in Word.)
To insert a graphics image in WordPad, follow these steps:
1. On the Inser t menu, click Object .
Note In Windows 8 and Windows 7, click Inser t Object on the Home tab.
2. Follow one or both of the following steps:
To create a new graphics image, click Create New , and then select one of the object types from the list.
For example, click Paintbrush Picture to create a test bitmap in the Microsoft Paint program.
To insert a graphics image from a file, click Create from File , and then click Browse to select the file.
After you finish your testing in WordPad, you can test the print functions in your web browser or your other Office
programs. You can also try to print a test page for your printer. To print a text page, follow these steps:
1. Click Star t , point to Settings , and then click Printers .
Notes
In Windows XP, click Star t , and then click Printers and Faxes .
In Windows Vista, click Star t , and then click Printers .
In Windows 7, click Star t , and then click Devices and Printers .
In Windows 8, press the Windows key to go to the Start Screen, type Printers, click Settings , and then
click Devices and Printers .
2. Right-click the icon for your printer, and then click Proper ties .
3. On the General tab, click Print Test Page .
If you cannot print a test page, or if you cannot print in several or all Windows-based programs, you have a printer
driver problem, a Windows problem, a hardware problem, or a connectivity problem.
If the problem is limited to a particular font, a damaged font file may be the cause. For more information about
how to test and reinstall fonts, click the following article numbers to view the articles in the Microsoft Knowledge
Base:
314960 How to install or remove a font in Windows
If you can print without problems in all programs except Word, go to "Step 3: Test printing with different printer
drivers."
You may be able to use Windows printing help and troubleshooters to resolve the printing problem.
In Windows 8 and Windows 7, you can run the printing troubleshooting wizard by clicking Star t , typing
printing, and then selecting Find and fix printing problems .
In Windows Vista or Windows XP, click Star t , select Help and Suppor t , and search on printingor printing
troubleshoot.
Step 3: Test printing with different printer drivers
If Word is the only program on your computer that cannot print, you may think that Word is the cause of the
problem. Be aware that Word is a very printer-intensive program. Therefore, a minor problem with the printer
driver affects Word before it affects other programs.
To determine whether the printer driver is the cause of the problem, you can test different drivers. If the Word
printing problem occurs only when you print documents that use a certain font or a certain kind of graphics image,
try to print to another printer.
If no other printer is available, contact the manufacturer to determine whether there is an updated version of the
driver or a different driver that works with your printer model. See the "References" section for information about
how to contact a third-party vendor.
If the Word printing problem occurs even when you print documents that are made up only of text, you can use a
generic, text-only printer driver to test printing from Word. To do this, follow these steps for your version of
Windows.
Note On some versions of Windows, these steps may require access to the Windows installation CD-ROM or access
to a network drive that contains the Windows installation files.
Windows 8, Windows 7, and Windows Vista
1. Take one of the following actions, as appropriate for your situation:
For Windows Vista: Click Star t , and then click Printers .
For Windows 7: Click Star t , and then click Devices and Printers .
2. Click Add a printer .
3. Click Add a local printer on the first screen of the Add Printer Wizard.
4. Make sure that the Use an existing por t check box is selected, change the dropdown option to File: (Print
to file) , and then click Next .
5. In the Manufacturers list, click Generic , and then click Next .
6. Leave the default printer name, click Next , and then click Finish .
7. When the driver installation is complete, open a document in Word, and then do the following, as
appropriate for your situation:
For Word 2007: Click the Microsoft Office Button , and then click Print .
For other versions: On the File menu, click Print .
8. Do the following, as appropriate for your situation:
For Word 2010: Click the printer dropdown menu, and then click Print .
For other versions: Click to select the Print to File check box, and then click OK .
9. Change the location to My Document , and then name the file Test.prn.
10. Click OK .
Windows XP
1. Click Star t , and then click Printers and Faxes .
2. Click Add a printer under Printer Tasks .
3. Click Next on the first screen of the Add Printer Wizard.
4. Click Local printer attached to this computer , make sure that the Automatically detect and install my
Plug and Play printer check box is cleared, and then click Next .
5. Click FILE for the port, and then click Next .
6. In the Manufacturers list, click Generic , and then click Next .
7. Click FILE for the port, and then click Next .
8. Click Yes when you are prompted for whether Windows will use the printer as the default, and then click Next .
9. Click No when you are prompted to print a test page, and then click Finish .
10. When the driver installation is complete, open a document in Word, and then click Print on the File menu.
11. When the Print to file dialog box appears, click My Documents for the location of the file, and then type the
following file name: Test.prn
12. Click OK .
Windows 2000
1. Click Star t , point to Settings , and then click Printers .
2. Double-click the **Add Printer **icon.
3. Click Next on the first screen of the Add Printer Wizard.
4. Click Local printer , and then click Next .
5. Click FILE for the port, and then click Next .
6. In the Manufacturers list, click Generic .
7. In the Printers list, click Generic/Text Only , and then click Next .
8. Click Yes when you are prompted for whether Windows will use the printer as the default, and then click Next .
9. Click Do not share this printer , and then click Next .
10. Click No when you are prompted to print a test page, and then click Finish .
11. When the driver installation is complete, open a document in Word, and then click Print .
12. When the Print to file dialog box appears, click My Documents for the location of the file, and then type the
following file name: Test.prn
13. Click OK .
If you receive an error message in Word when you print files that contain only text but do not receive the error
message when you print with the generic, text-only printer driver, your printer driver may be damaged. In this case,
contact the manufacturer for help in removing the printer driver and installing an updated version. See the
"References" section for information about how to contact a third-party vendor.
If the printing problem occurs with a different printer driver, go to "Step 4: Test the Word program files and
settings."
Step 4: Test the Word program files and settings
After you verify that the printing problem is not limited to a particular document or to a particular printer driver,
and that the problem is limited to the Word program, test the Word program by starting by using only the default
settings.
For more information about how to start by using the default settings, click the following article numbers to view
the articles in the Microsoft Knowledge Base:
921541 How to troubleshoot problems that occur when you start or use Word
If the printing problem continues to occur, run Detect and Repair to reinstall the missing or damaged program files.
To run Detect and Repair, follow these steps.
Word 2013 and Word 2010
1. Exit all Office programs.
2. Use one of the following procedures, depending on your version of Windows:
In Windows 7 or Windows Vista, click Star t , and then type add remove.
In Windows XP or Windows Server 2003, click Star t , and then click Control Panel .
In Windows 2000, click Star t , point to Setting , and then click** Control Panel**.
3. Open Add or Remove Programs .
4. Click Change or Remove Programs , click Microsoft Office (Microsoft Office Word) or the version of
Office or Word that you have in the Currently installed programs list, and then click Change .
5. Click Repair or Repair Word (Repair Office) , and then click **Continue **or Next .
Word 2007
1. Start Word 2007.
2. Click the Microsoft Office button, and then click Word Options .
3. Click Resources , click Diagnose , and then follow the prompts on the screen.
Word 2003
1. On the Help menu in Word, click Detect and Repair .
2. Click Star t .
3. Insert the Word CD-ROM or Office CD-ROM if you are prompted, and then click OK .
If the printing problem continues to occur after you repair the Word installation or the Office installation, look
for problems in Windows.
Step 5: Test for problems in Windows
To look for device drivers or memory-resident programs that might be interfering with the Word print function,
start Windows in safe mode, and then test printing to a file in Word. To start Windows in safe mode, follow these
steps, as appropriate for your version of Windows.
Windows 8, Windows 7, and Windows Vista
1. Remove all floppy disks, CDs, and DVDs from your computer, and then restart your computer.
2. Click Star t , click the arrow next to the Lock button, and then click Restar t .
Note In Windows 8, click Settings from the Charms menu, click Power , and then click Restar t .
3. Press and hold the F8 key as your computer restarts.
Note You have to press F8 before the Windows logo appears. If the Windows logo appears, you must try to restart
your computer. To do this, wait until the Windows logon prompt appears, and then shut down and restart your
computer.
4. On the Advanced Boot Options screen, use the arrow keys to select the Safe Mode option, and then press
ENTER.
5. Log on to your computer by using a user account that has administrative credentials.
Windows XP
Note You must be logged on as an administrator or as a member of the Administrators group to finish this
procedure. If your computer is connected to a network, network policy settings may also prevent you from
completing this procedure.

WARNING
When you follow the steps in this article, you may disable the System Restore Service and may remove any previously created
restore points.

For more information about how to use the System Restore utility to restore the computer to an earlier state, click
the following article number to view the article in the Microsoft Knowledge Base:
306084 How to restore Windows XP to a previous state
1. Click Star t , click Run , and then type the following command in the Open box: msconfig
2. Click OK .
3. On the General tab, click Selective Star tup , and then click to clear all the successive check boxes.
Note You cannot click to clear the Use Original BOOT.INI check box.
4. Click OK , and then click Restar t to restart your computer.
For more information about how to perform a clean restart in Windows XP, click the following article number to
view the article in the Microsoft Knowledge Base:
310353 How to configure Windows XP to start in a "clean boot" state
Windows 2000
1. Restart the computer.
2. Press F8 when you receive the following message:
3. On the Windows 2000 Advanced Options menu, click Safe mode , and then press ENTER.
4. After Windows starts in safe mode, start Word, and then type some text in a new document.
5. On the File menu, click Print .
6. In the Print dialog box, click to select the Print to file check box, and then click OK .
7. When the Print to file dialog box appears, click My Documents for the location of the file, and then type the
following file name: Test.prn
8. Click OK .
If the Word printing problem does not occur when you start Windows in safe mode, use clean-boot
troubleshooting to help determine the source of the problem.
The printer settings are ignored when you print a
Word document
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you print a Microsoft Word document, the printer settings are ignored. These printer settings include the
paper size, the page orientation, and the page margins.
Consider the following scenario. You change the properties of the printer driver to specify paper size, page
orientation, or page margins. However, when you print a Word document, its paper size, page orientation, or page
margins differ from what you specified in the printer driver properties.

Cause
This issue occurs because the Page Setup settings that you specify in your Word document override the settings
that you specify in the printer driver properties.

Workaround
To work around this issue, do not specify the paper size, page orientation, or page margins in the printer driver
properties. Instead, specify these settings in your Word document. If there are multiple sections in your document,
you must specify the settings for each section of the document.
To specify these settings, follow these steps:
1. Start Word, and then open the document you want to change.
2. In Microsoft Office Word 2003 and in earlier versions of Word, click the page or the section that you want to
print, and then click Page Setup on the File menu.
In Microsoft Office Word 2007 and Word 2010, click the page or the section that you want to print, and then
click the Page Layout tab. In the Page Setup group, click Page Setup to open the Page Setup dialog box.
3. Click the Paper tab.
4. Under Paper size , click the paper size that you want.
5. In the Paper source area, perform one of the following steps:
If the printer can automatically select the correct paper tray to use, click Default tray in the First page
list, and then click Default tray in the Other pages list. Default tray is the default setting in both of
these lists.
If the printer cannot automatically select the correct paper tray to use, you may have to select the paper tray that
contains the paper size that you selected in step 4. To do this, click the appropriate paper tray in the First page
list and in the Other pages list.
6. If you want to change the document's page orientation or its page margins, click the Margins tab.
7. Select the options that you want.
8. Perform one of the following steps in the Apply to box:
To use the paper size that you specified in step 4 for only the current section of the document, click
Selected text .
To use the paper size that you specified in step 4 for the current section of the document and for all
remaining sections in the document, click This point for ward .
To use the paper size that you specified in step 4 for the whole document, click Whole document .
9. Click OK .
10. Repeat steps 2 to 9 for each section of your document for which you want to specify settings.

More Information
For more information about how to print documents from Word, view the following topics in Microsoft Word Help:
Printing
Margins and Page Setup
How to recover a lost Word document
3/30/2020 • 7 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

If you're looking for recent Word document recovery info, see:


Recover your Office files (For versions through Office 2019)
Find lost files after the upgrade to Windows 10
For more on earlier versions of Word, see:
How Word creates and recovers the AutoRecover files

Resolution
To fix this problem, use the following methods in the order in which they're presented, as appropriate for your
situation.
Method 1: Search for the original document
To do this, follow these steps, as appropriate for the version of Windows that you're running.
Windows 10 and Windows 7
1. Select Star t , type the document name in the Star t Search box (.doc or .docx), and then press Enter. If the File
list contains the document, double-click the document to open it in Word.
2. If the File list does not contain the file, go to Method 2.
Method 2: Search for Word backup files
Word backup file names end with the .wbk extension. If the Always create backup copy option is selected, there
may be a backup copy of the file.

NOTE
To locate this option:
Word for Office 365 , Word 2019 , Word 2016 , and Word 2013 : Select File, then Options , and then Advanced .
Scroll down to the Save section and select Always create backup copy .
Word 2010 : Select File, then Options. In the Save tab, select Always create backup copy .

To find the backup copy of the file, follow these steps:


1. Locate the folder in which you last saved the missing file.
2. Search for files that have the .wbk file name extension.
If there's no .wbk file in the original folder, search the computer for any .wbk files. To do this, follow these steps:
Windows 10 and Windows 7
1. Select Star t , type *.wbk in the Star t Search box, and then press Enter.
2. If the File list contains the backup file, repeat the steps in step 2 ("Search for files that have the .wbk file name
extension") to open the file. If the File list does not contain the backup file, go to Method 3.
If you find any files that have the name "Backup of" followed by the name of the missing file, use one of the
following procedures, as appropriate for the version of Word that you're running.
Word for Office 365 , Word 2019 , Word 2016 , and Word 2013
1. On the File menu, select Open , and then Browse . (In some versions, select Computer and then Browse .)
2. In the Files of type list (All Word Documents), select All Files .
3. Select the backup file that you found, and then select Open .
Word 2010
1. On the File menu, select Open.
2. In the Files of type list (All Word documents), select All Files .
3. Select the backup file that you found, and then select Open .
Method 3: Search for AutoRecover files
AutoRecover file names end with the .asd extension. By default, Word searches for AutoRecover files every time that
it starts, and then it displays all that it finds in the Document Recovery task pane.
1. Use Word to automatically find the AutoRecover files. To do this, follow these steps:
a. Right-click the taskbar, and then select Task Manager .
b. On the Processes tab, select any instance of Winword.exe or Microsoft Word , and then select End
Task or End Process . Repeat this step until you have exited all instances of Winword.exe and Word.
c. Close the Windows Task Manager dialog box, and then start Word.
If Word finds the AutoRecover file, the Document Recovery task pane opens on the left side of the
screen, and the missing document is listed as "document name [Original]" or as "document name
[Recovered]." If this occurs, double-click the file in the Document Recovery pane, select Save As on
the File menu, and then save the document as a .docx file. Manually change the extension to .docx, if
necessary, by right-clicking the file and selecting Rename .
2. If the Recovery pane does not open, manually search for AutoRecover files. To do this, use one of the
following procedures, as appropriate for the version of Word that you're running.
Word for Office 365 , Word 2019 , Word 2016 , and Word 2013
a. On the File menu, select Open , and then Browse.
b. If you don't see your document listed, select Recover Unsaved Documents .
Word 2010
a. On the File menu, select Recent.
b. If you don't see your document listed, select Recover Unsaved Documents .
3. If you can't locate an AutoRecover file in the location that is identified in the Folder name list, search your
whole drive for any .asd files. To do this, follow these steps:
Windows 10 and Windows 7
a. Select Star t , type .asd in the Star t Search box, and then press Enter.
b. If the File list does not contain AutoRecover files, go to Method 4.
If you find any files that have the .asd extension, use one of the following procedures, as appropriate for the
version of Word that you're running:
Word 2019 , Word 2016 , or Word 2013
a. On the File menu, select Open , and then Browse . (In some versions, select **Computer **and then
Browse .)
b. In the Files of type list (All Word Documents), select All Files .
c. Select the .asd file that you found, and then select Open .
Word 2010
a. On the File menu, select Open .
b. In the Files of type list (All Word Documents), select All Files .
c. Select the .asd file that you found, and then select Open .

NOTE
If you find an AutoRecover file in the Recovery pane that does not open correctly, go to "Method 6: How to troubleshoot
damaged documents" for more information about how to open damaged files.

Method 4: Search for temporary files


Temporary file names end with the .tmp extension. To find these files, use one of the following procedure.
Windows 10 and Windows 7
1. Select Star t , type .tmp in the Star t Search box, and then press Enter.
2. On the Show only toolbar, select Other .
3. Scroll through the files and search for files that match the last few dates and times that you edited the
document. If you find the document that you're looking for, go to "Method 6: How to troubleshoot damaged
documents" for more information about how to recover information from the file.
Method 5: Search for "~" files
Some temporary file names start with the tilde (~) character. To find these files, follow these steps:
Windows 10 and Windows 7
1. Select Star t , type ~ in the Star t Search box.
2. Select See more results .
Scroll through the files, and look for any that may match the last few dates and times that you edited the
document. If you find the document that you're looking for, go to "Method 6: How to troubleshoot damaged
documents" for more information about how to recover information from the file.
For information about how Word creates and uses temporary files, see Description of how Word creates temporary
files.
Method 6: How to troubleshoot damaged documents
For information about how to troubleshoot damaged Word documents, see the following articles in the Microsoft
Knowledge Base:
How to troubleshoot damaged documents in Word

More information
You can lose a Word document in certain situations. For example, the document may be lost if an error occurs that
forces Word to close, if you experience a power interruption while editing, or if you close the document without
saving your changes.
NOTE
The whole document may be lost if you have not recently saved the document. If you have saved your document, you may
lose only the changes that you made since the last save. Be aware that some lost documents may not be recoverable.

The AutoRecover feature in Word performs an emergency backup of open documents when an error occurs. Some
errors can interfere with the AutoRecover functionality. The AutoRecover feature is not a substitute for saving your
files.
We do not provide any utilities to recover deleted documents. However, some third-party utilities to recover deleted
documents might be available on the Internet.
For more information about AutoRecover, see the following articles in the Microsoft Knowledge Base:
What is AutoSave?
WD2000: Why you are unable to recover a lost document
WD2000: Automatically Saving Current Work (Open Document)
How Word creates and recovers the AutoRecover files
The third-party products that are discussed in this article are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.
How to reset user options and registry settings in
Word
3/30/2020 • 15 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

IMPORTANT
This article contains information about how to modify the registry. Make sure to back up the registry before you modify it.
Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up,
restore, and modify the registry, see Description of the Microsoft Windows registry.

Summary
This article describes various methods that you can use to reset user options and registry settings in Microsoft
Office Word.
There are two basic types of options that you can define in Word. These options are as follows:
Options that affect the way that the program operates. (The information for this kind of option is generally
stored in the Microsoft Windows registry.)
Options that affect the formatting or the appearance of one or more documents. (The information for this kind
of option is stored in templates or documents.)
When you troubleshoot unusual behavior in the program or in a document, first determine whether the problem
might be caused by formatting, options, or settings. If the behavior occurs in multiple documents, we recommend
that you try to reset Microsoft Word to the program's default settings.
How to reset user options and registry settings in Word
To have us reset user options and registry settings in Microsoft Word for you, go to the "Here's an easy fix" section.
If you prefer to reset user options and registry settings in Microsoft Word yourself, go to the "Let me fix it myself"
section.
Here's an easy fix
To fix this problem automatically, click the Download button. In the File Download dialog box, click Run or Open ,
and then follow the steps in the easy fix wizard.
This wizard may be in English only. However, the automatic fix also works for other language versions of
Windows.
If you're not on the computer that has the problem, save the easy fix solution to a flash drive or a CD, and then
run it on the computer that has the problem.
Let me fix it myself
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using
another method. These problems might require that you reinstall your operating system. Microsoft cannot
guarantee that these problems can be solved. Modify the registry at your own risk.
To manually reset a registry key, you must first delete it. To do this, follow these steps.
Important Always export a registry key before you delete it. This step is important because you may have to restore
the functionality that is provided by the key.
1. Exit all Microsoft Office programs.
2. Click Star t , click Run , type regedit, and then click OK .
3. Expand the appropriate folders to locate the registry key that you want to delete. (Refer to the "Main
locations of Word settings in the Windows Registry" section.)
4. Click to select the key that you want to delete.
5. Use one of the following methods, as appropriate for your operating system:
In Microsoft Windows 2000, click Expor t Registr y File on the Registr y menu, type a file name for the
backup copy of the key, and then click Save .
In Windows XP and later versions or in Microsoft Windows Server 2003 and later versions, click Expor t
on the File menu, type a file name for the backup copy of the key, and then click Save .
6. Make sure that the key that you just exported is selected, and then click Delete on the Edit menu.
7. When you are prompted to respond to one of the following messages, click Yes :
Are you sure you want to delete this key?
Are you sure you want to delete this key and all of its subkeys?
8. Exit Registry Editor.
After you delete a registry key, and then you restart the program, Word runs the Setup program to correctly rebuild
the registry key. If you want to rebuild the registry key before you run the program, repair your installation by
following the steps in the "Repair Word (Office)" section.

More Information
Main locations of Word settings in the Windows Registry
You can reset some Word settings, such as the Word Data and Options keys in the Windows registry, by using the
troubleshooting utility that is contained in the Support.dot template.
Word key
Word 2016
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word
Word 2013
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word
Word 2010
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word
Word 2007
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word
Word 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word
Word 2002
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word
Word 2000
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word
Changes made to this HKEY_CURRENT_USER key are mirrored in the following keys for Word 2003, for Word
2002, and for Word 2000:
Word 2003
HKEY_USERS.DEFAULT\Software\Microsoft\Office\11.0\Word
Word 2002
HKEY_USERS.DEFAULT\Software\Microsoft\Office\10.0\Word
Word 2000
HKEY_USERS.DEFAULT\Software\Microsoft\Office\9.0\Word
The difference between the "HKEY_CURRENT_USER" location and the HKEY_USER" location is that the first applies
only to the current user of the system, and the second is the default location for all users. However, Word entries
are the same for both locations. Therefore, any change that is made to one location is automatically reflected in the
other location.

NOTE
For the rest of this section, all references to the HKEY_CURRENT_USER tree apply also to the HKEY_USERS tree, except for the
2007 Microsoft Office 2007 programs and where otherwise noted.

The Data key and the Options key are the most frequently changed areas.
Data key
Word 2016
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Data
Word 2013
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Data
Word 2010
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Data
Word 2007
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Data
Word 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Data
Word 2002
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word\Data
Word 2000
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Data
This key contains binary information for "most recently used" lists, including the most recently used file list and the
most recently used address book list. This key also contains "Track Changes" settings and "Edit" settings.
Options key
Word 2016
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options
Word 2013
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Options
Word 2010
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options
Word 2007
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Options
Word 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options
Word 2002
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word\Options
Word 2000
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options
This key stores the options that you can set from Microsoft Word, either by changing menu options or by running
the Registry Options Utility. For more information, see the "Use the Registry Options Utility" section.
The options are in two groups: default options and optional settings. Default options are established during the
setup process. You can change them by modifying options in Word. (To modify options in Word, click Options on
the Tools menu.)
These options may or may not appear in the registry.
Wizards key
Word 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Wizards
Word 2002
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word\Wizards
Word 2000
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Wizards
All wizard defaults are stored in this key. These settings are created the first time that you run a wizard.
Common key
Word 2016
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common
Word 2013
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common
Word 2010
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common
Word 2007
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common
Word 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common
Word 2002
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common
Word 2000
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Common
This key is used by other Microsoft programs, such as the Office programs. These settings are shared between
programs. Changes made in one program's settings also appear in the other program's settings.
Shared Tools key
Word 2016, 2013, 2010, 2007, 2003, 2002 and 2000:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools
This key contains the paths for all Windows utilities. (The path may include utilities such as Equation, WordArt, and
MS Graph.) Paths for graphics filters and text converters are also registered in this location.
Repair Word (Office )
Word can detect and repair problems associated with Setup. This feature uses the Windows Installer to correct
problems with missing files and to repair registry settings.
You can use the following methods to repair or reset Word files and values:
Method 1: Use the "Detect and Repair" feature
Method 2: Repair Word in Maintenance Mode Setup
Method 3: Reinstall Word (Office)
Method 1: Use the "Detect and Repair" or "Microsoft Office Diagnostics" feature

NOTE
This method is the least aggressive mode of repair. If this method does not resolve the problem, you may still have to use
one of the other methods.

To run the Detect and Repair feature in Word 2003 and in earlier versions of Word, click Detect and Repair on the
Help menu in Word. The Detect and Repair feature fixes and repairs Word. All files, registry entries, and optional
shortcuts for all Office programs are verified and repaired. If you run Detect and Repair from Word, all other Office
programs are also checked. This feature performs only a checksum.
The Detect and Repair feature can also restore the Word program shortcuts on the Star t menu. To restore the
Word program shortcuts, click Help , click Detect and Repair , and then click to select the Restore my shor tcuts
while repairing check box.
If Detect and Repair does not correct the problem, you may have to reinstall Word. The Reinstall feature in the
Maintenance Mode dialog box performs the same action as Detect and Repair, except that Reinstall copies a file
when the files are of equal versions. Detect and Repair does not copy over the file when the installation file has the
correct version and checksum.
NOTE
The Detect and Repair feature does not repair damaged documents or damaged data keys in the registry or in the Normal
template.

If a file that Word uses at Startup is missing, the Windows Installer automatically installs that file before it starts the
program.
In Word 2007, run the Microsoft Office Diagnostics feature. To do this, click the Microsoft Office Button , click
Word Options , click Resources , and then click Diagnose .
In Word 2010, repair Word or the installed Office suite in Control Panel .
Method 2: Repair Word in Maintenance Mode setup

NOTE
This method is a moderate mode of repair. If this method does not resolve the problem, you may still have to reinstall Word.

The Maintenance Mode Setup process is similar to the process found in earlier versions of Word. The Maintenance
Mode Setup process allows you to repair, add or remove features, and remove the program. "Repair" is a feature in
Maintenance Mode that finds and then fixes errors in an installation.
To perform a Maintenance Mode repair, follow these steps:
1. Exit all Office programs.
2. Use one of the following methods, depending upon your operating system:
In Windows 7 or Windows Vista, click Star t , and then type add remove.
In Windows XP or Windows Server 2003, click Star t , and then click Control Panel .
In Windows 2000, click Star t , point to Settings , and then click Control Panel .
3. Open Add or Remove Programs .
4. Click Change or Remove Programs , click **Microsoft Office **(Microsoft Office Word ) or the version
of Office or Word that you have in the Currently installed programs list, and then click Change .
5. Click Repair or Repair Word (Repair Office ), and then click Continue or Next .
6. In Word 2003 and in earlier versions of Word, click Detect and Repair errors in my Word installation
or click Detect and Repair errors in my Office installation , click to select the Restore my Star t Menu
Shor tcuts check box, and then click Install .
Method 3: Reinstall Word (Office)

NOTE
This method is the most aggressive mode of repair. This mode resets Word to its default settings, except for settings that are
stored in your global template (Normal.dot or Normal.dotm). To do this in Word 2003 and in earlier versions of Word, follow
these steps:

1. Exit all Office programs.


2. Use one of the following methods, depending upon your operating system:
In Windows 7 or Windows Vista, click Star t , and then type add remove.
In Windows XP or Windows Server 2003, click Star t , and then click Control Panel .
In Windows 2000, click Star t , point to Settings , and then click Control Panel .
3. Open Add or Remove Programs .
4. Click Change or Remove Programs , click Microsoft Office 2003 (Microsoft Office Word 2003 ) or
the version of Office or Word that you have in the Currently installed programs list, and then click
Change .
5. Click Repair Word (Repair Office ), and then click Next .
6. Click Reinstall Word (Reinstall Office ), and then click Install .
For more information about Word 2007 or Word 2010, click the following article number to view the article in the
Microsoft Knowledge Base:
924611 How to install the individual 2007 Office features or to repair the installed 2007 Office programs
Templates and add-ins
Global Template (Normal.dotm or Normal.dot)
To prevent formatting changes, AutoText entries, and macros that are stored in the global template (Normalm.dot or
Normal.dot) from affecting the behavior of Word and documents that are opened, rename your global template
(Normal.dotm or Normal.dot). Renaming the template lets you quickly determine whether the global template is
causing the issue.
When you rename the Normal.dotm template in Word 2007 or later or the Normal.dot template in Word 2003 and
in earlier versions of Word, you reset several options to the default settings. These include custom styles, custom
toolbars, macros, and AutoText entries. We strongly recommend that you rename the template instead of deleting
the Normal.dotm template or the Normal.dot template. If you determine that the template is the issue, you will be
able to copy the custom styles, custom toolbars, macros, and AutoText entries from the Normal.dot template that
was renamed.
Certain types of configurations may create more than one Normal.dotm template or Normal.dot template. These
situations include cases where multiple versions of Word are running on the same computer or cases where
several workstation installations exist on the same computer. In these situations, make sure that you rename the
correct copy of the template.
To rename the global template file, follow these steps:
1. Exit all Office programs.
2. Click Star t , click Run , type cmd, and then click OK .
3. Type the following command, as appropriate for the version of Word that you are running, and then press Enter:
Word 2002 and Word 2003: ren %userprofile%\Application Data\Microsoft\Templates\Normal.dot
OldNormal.dot
Word 2007 and Word 2010: ren %userprofile%\Application Data\Microsoft\Templates\Normal.dotm
OldNormal.dotm
4. Type exit, and then press Enter.
When you restart Word, a new global template (Normal.dot) is created that contains the Word default settings.
Add-ins (WLLs ) and templates in the Word and Office Startup folders
When you start Word, the program automatically loads templates and add-ins that are located in the Startup
folders. Errors in Word may be the result of conflicts or problems with an add-in.
To determine whether an item in a Startup folder is causing the problem, you can temporarily empty the folder.
Word loads items from the Office Startup folder and the Word Startup folder.
To remove items from the Startup folders, follow these steps:
1. Exit all instances of Word, including Microsoft Outlook if Word is set as your email editor.
2. Use one of the following methods, as appropriate for the version of Word that you are running:
Word 2002:
Click Star t , click Run , type %programfiles%\Microsoft\Office\Office10\Startup, and then click OK .
Word 2003:
Click Star t , click Run , type %programfiles%\Microsoft\Office\Office11\Startup, and then click OK .
Word 2007:
Click Star t , click Run , type %programfiles%\Microsoft\Office\Office12\Startup, and then click OK .
Word 2010:
Click Star t , click Run , type %programfiles%\Microsoft\Office\Office14\Startup, and then click OK .
Word 2013:
Click Star t , click Run , type %programfiles%\Microsoft\Office\Office15\Startup, and then click OK .
3. Right-click one of the files that is contained in the folder, and then click Rename .
4. After the file name, type .old, and then press Enter. ImportantNote the original name of the file. You may have
to rename the file by using its original name.
5. Start Word.
6. If you can no longer reproduce the problem, you have found the specific add-in that causes the problem. If
you must have the features that the add-in provides, contact the vendor of the add-in for an update.
If the problem is not resolved, rename the add-in by using its original name, and then repeat steps 3 through
5 for each file in the Startup folder.
7. If you can still reproduce the problem, click Star t , click Run , type %userprofile%\Application
Data\Microsoft\Word\Startup, and then click OK .
8. Repeat steps 3 through 5 for each file in this Startup folder.
COM add-ins
COM add-ins can be installed in any location, and they are installed by programs that interact with Word.
To view the list of COM add-ins in Word 2010, click the Microsoft Office Button, click Options , and then click Add-
Ins .
To view the list of COM add-ins in Word 2007, click the Microsoft Office Button, click Word Options , and then click
Add-Ins .
To view the list of installed COM add-ins in Word 2003 and in earlier versions of Word, follow these steps:
1. On the Tools menu, click Customize .
2. Click the Commands tab.
3. In the Categor y list, click Tools .
4. Drag the COM Add-Ins command to a toolbar.
5. Click Close .
6. Click the new COM Add-Ins button to view the COM add-ins that are loaded together with Word.
If add-ins are listed in the COM Add-Ins dialog box, temporarily turn off each add-in. To do this, clear the check
box for each listed COM add-in, and then click OK . When you restart Word, Word does not load the COM add-ins.
Use the Registry Options utility
You can use the Registry Options Utility to examine and change Word settings in the Windows registry. The
Registry Options Utility is located in the Support.dot template.

NOTE
The Support.dot template is not included in Word 2007 or later versions.

For more information about the Registry Options Utility, click the following article number to view the article in the
Microsoft Knowledge Base:
820917 How to change Word options in the Windows registry for Word 2003
Summary of Word options and where they are stored
Note In the following table, "Template" refers to either the Normal.dot template or a custom template.

SET T IN G N A M E STO RA GE LO C AT IO N

AutoCorrect-Formatted text Normal.dotm or Normal.dot

AutoCorrect-Shared entries .ACL files user.acl

AutoSave path Registry

AutoText Template

Company name Winword.exe

Custom keystroke assignments Template

Font substitution Registry

Macros Template/document

Picture editing Registry

Print data forms Document

Snap to grid Registry

Styles Template/document

Toolbars Template/document

User info Registry

View toolbars Template

View/toolbar Template

Document Parts Template

AutoCorrect lists are shared between Office programs. Any changes that you make to the AutoCorrect entries and
settings when you are in one program are immediately available to the other programs. Additionally, Word can
store AutoCorrect items that are made up of formatted text and graphics.
Information about AutoCorrect is stored in various locations. These locations are listed in the following table.

A UTO C O RREC T IN F O RM AT IO N STO RA GE LO C AT IO N

AutoCorrect entries shared by all programs .ACL file in the %UserProfile%\Application


Data\Microsoft\Office folder

AutoCorrect entries used only by Word (formatted text and Normal.dot


graphics)

AutoCorrect settings (correct two initial capitals, capitalize Registry


names of days, replace text as you type)

AutoCorrect settings used only by Word (corrects accidental Registry


usage of CAPS LOCK key, capitalizes first letter of sentences)
How to scan and insert an image into a Word 2010
document
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how you can scan an image and insert it into a Microsoft Word 2010 document.

Resolution
To insert a scanned image in a Word 2010 document, follow these steps:
1. Use the software that was included with your scanner to scan and save the image to your computer.
2. Note the location of the saved image.
3. Open Word 2010.
4. Click Inser t , and then select Picture .

5. In the Inser t Picture box, browse to the folder that contains the saved image.
6. Select the image and then click Inser t .
References
If the information in this knowledge base article did not help resolve the problem, select one of the following
options:
More Microsoft online articles: Perform a search to find more online articles about this problem.
Help from the Microsoft Communityonline community: Visit the Answers community and post your question
about this error.
Contact Microsoft support: Find the phone number to contact Microsoft Support.
Scroll bars are missing in Word for Mac
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you start Microsoft Word for Mac, the vertical and horizontal scroll bars are not displayed on the screen.

Cause
This behavior can occur if the Horizontal scroll bar and Ver tical scroll bar check boxes under Preferences are
not selected. This behavior can also occur if your Word preferences or the Normal template is corrupted.

NOTE
In full-screen mode, there are no horizontal or vertical scroll bars. Press ESC on your keyboard to exit full-screen mode.

Resolution
To resolve this issue, make sure that the scroll bars in both Word and the Apple iOS System Preferences are both
on. To do this, follow these steps:
Step 1: Adjust the preferences
1. Select the Apple menu.
2. Select System Preferences .
3. Select General .
4. Set the "Show scroll bars" option to Always .
Step 2: Adjust the Word preferences
1. Start Word.
2. On the Word menu, select Preferences .
3. Open View .
4. Select the Horizontal scroll bar and the Ver tical scroll bar check boxes in the "Show Window Elements"
section.
5. Close the View dialog bo.
Restore the preferences and Normal template to the default settings
If the issue still occurs, try to restore the preferences and Normal template to the default settings. To do this, follow
these steps:
1. Quit all applications.
2. On the Go menu, select Home .
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you select the
Go menu.

4. Open the Preferences folder.


5. Look for a file that is named com.microsoft.Word.plist .
6. If you locate the file, move it to the desktop. If you cannot locate the file, the application is using the default
preferences.
7. If you locate the file and move it to the desktop, start Word, and then check whether the problem still occurs.
If the problem still occurs, quit Word, and restore the file to its original location. Then, go to the next step. If
the problem is resolved, you can move the com.microsoft.Word.plist file to the trash.
8. Quit all Microsoft Office for Mac applications.
9. On the Go menu, select Home .
10. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you select the
Go menu.

11. Open the Preferences folder.


12. Open the Microsoft folder.
13. Locate the file that is named com.microsoft.Word.prefs.plist .
14. Move the file to the desktop.
15. Start Word, and then check whether the problem still occurs. If the problem still occurs, quit Word, and then
restore the file to its original location. Then, go to the next step. If the problem is resolved, you can move the
com.microsoft.Word.prefs.plist file to the trash.
16. On the Go menu, select Home .
17. Open Librar y .

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you select the
Go menu.

18. Open the Application Suppor t folder.


19. Open the Microsoft folder.
20. Open the Office folder.
21. Open the User Templates folder.
22. Locate the file that is named Normal , and move the file to the desktop.
23. Start Word, and then check whether the problem still occurs. If the problem is resolved, you can move the
Normal file to the trash.
Spell checker doesn't check text in the form fields in
Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptom
The spelling and grammar checker in Microsoft Word doesn't check text in the form fields.

Cause
Because form field text is formatted as No Proofing, the spelling and grammar checker ignores text in form fields.

Resolution
To work around this issue, you can use the following macro to:
Temporarily unprotect the form.
Change the language of the form fields.
Perform a spelling check or update a field.
Reprotect the form while preserving the text you've typed into the form fields.
You can use this macro as an On Exit macro for the last form field so you can check the spelling or update a field
before you save the form.
Sub FormsSpellCheck()
' If document is protected, Unprotect it.
If ActiveDocument.ProtectionType <> wdNoProtection Then
ActiveDocument.Unprotect Password:=""
End If

' Set the language for the document.


Selection.WholeStory
Selection.LanguageID = wdEnglishUS
Selection.NoProofing = False

' Perform Spelling/Grammar check.


If Options.CheckGrammarWithSpelling = True Then
ActiveDocument.CheckGrammar
Else
ActiveDocument.CheckSpelling
End If

' ReProtect the document.


If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
End If

End Sub

More Information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This
includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This
article assumes that you are familiar with the programming language that is being demonstrated and with the
tools that are used to create and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these examples to provide added functionality or
construct procedures to meet your specific requirements.
Spell Checker does not recognize misspelled words in
Word 2010
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Symptom 1
Spell Checker does not recognize misspelled words in Word 2010.
Symptom 2
When you click the Spelling & Grammar button in the Proofing group on the **Review **tab in Word 2010, you
receive one of the following messages:
The spelling and grammar check is complete.
Proofing Tools are not installed for default language , try re-installing proofing tools.

Cause
This may occur for any one of the following reasons:
Proofing tools are not installed.
The Speller EN-US add-in is disabled.
The Do not check spelling or grammar check box is selected.
Another language is set as default.
The following subkey exists in the registry:HKEY_CURRENT_USER\Software\Microsoft\Shared
Tools\ProofingTools\1.0\Override\en-US

Resolution
To resolve this problem, complete the methods that are provided in this article in the order in which they are
presented. If you have previously tried one of these methods, and it did not help to resolve the problem, you can
skip that method and proceed to the next one.
Method 1: Install proofing tools
To install the proofing tools, follow these steps:
1. Exit all programs.
2. Click Star t , and then click Control Panel .
3. Follow the appropriate step for your operating system:
In Windows 7, click Uninstall a program under Programs .
In Windows Vista, double-click Programs and Features .
In earlier versions of Windows, double-click Add or Remove Programs .
4. Click Microsoft Office Edition , and then click Change .

NOTE
In this step and in the following step, the placeholder **Edition **represents the Microsoft Office edition that is
installed on the computer.

5. In the Microsoft Office Edition dialog box, click Add or Remove Features , and then click Continue .

6. Expand Office Shared Features , click the icon to the left of Proofing Tools , and then click Run all from
My Computer .

Method 2: Enable the speller EN -US add-in


To enable the add-in, follow these steps:
1. Click the File tab, and then click Options .
2. On the left, click Add-Ins .
3. At the bottom of the Word Options dialog box, click the drop-down arrow under Manage , change the
selection from COM Add-ins to Disabled items , and then click Go .
4. In the Disabled Items dialog box, check whether Speller EN-US (nlsdata0009.dll) is available in the
Select the ones you which to re-enable box.
5. If Speller EN-US (nlsdata0009.dll) is listed, click it, and then click Enable .
6. Click Close , and then click OK .
Method 3: Enable Check Spelling as you type
To enable spell check as you type, follow these steps:
1. Click the File tab, and then click Options .
2. In the Word Options dialog box, click Proofing .
3. Make sure that the Check spelling as you type check box is selected in the When correcting spelling
and grammar in Word section.

4. Make sure that all check boxes are cleared in the Exception for section.

5. Click OK .
Method 4: Select language and clear "Do not check spelling or grammar"
To clear the "Do not check spelling or grammar check box, follow these steps:
1. Select the entire contents of the document.
2. On the Review tab, click Language in the Language group, and then click Set Proofing Language .
3. In the Language dialog box, select the language that you want.
4. If the Do not check spelling or grammar check box is selected, click to clear the check box.
5. Click OK .

NOTE
If this method fixes the problem, repeat steps 1 through 3 to reopen to the Language dialog box, and then click Set
As Default

Method 5: Modify the registry

IMPORTANT
This article contains information about how to modify the registry. Make sure that you back up the registry before you
modify it. Make sure that you know how to restore the registry if a problem occurs.

To fix this problem yourself, follow these steps:


1. Click Star t , and then click Run .
2. In the Run box, type regedit, and then press Enter.
3. Locate and then right-click the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing Tools\1.0\Override
4. Click Delete .
5. Exit Registry Editor.
6. Exit and then restart Word.

More information
If none of the methods in this article resolve the problem, try the following:
Remove and then restore the battery at the bottom of the laptop. If the problem persists, replace the battery.
his problem has been reported only on the following Dell laptops:
Inspiron 1501
Vostro 1000
Tabbing between form fields and content controls
does not work correctly in Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario. In Microsoft Word, you combine form fields (Legacy Tools) and content controls in
the same document. Then, you enable the Filling in forms editing restriction. In this scenario, you cannot use the
TAB key to move freely between the form fields and the content controls. You can tab from a form field to a content
control. However, you cannot tab from a content control to a form field. Therefore, when you reach the first content
control, you can only move between the content controls.

Cause
This issue occurs because the form fields and the content controls cannot work together.

Workaround
To work around this issue, use content controls only.

Status
This behavior is by design.
Text is not copied from the Clipboard as expected in
Microsoft Office Word 2007 - 2010
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Text is not copied from the Clipboard as expected in Microsoft Office Word 2007 or Microsoft Office Word 2010.
This behavior occurs in the following scenario. You configure Microsoft Office Word 2007 or 2010 to use the
following default behavior when you paste items:
Keep the source formatting when you paste items from the same document.
Keep only the text when you paste items from another program.
You copy formatted text from a document to the Clipboard. Then, you copy this text from the clipboard and paste it
to the document from which you copied this text. In this scenario, the text that you pasted to the document does not
include the source formatting.
Note To view the Clipboard, click the Clipboard Dialog Box Launcher on the Home tab.

Cause
This issue occurs because the default Paste settings do not apply to the 2007 or 2010 Office Clipboard. The default
Paste settings apply only when you use the Paste command or the CTRL+V keyboard shortcut.

More Information
The 2007 or 2010 Office clipboard is a unique data source. None of the default Cut, Copy, or Paste settings apply to
the Clipboard.
To configure the Cut, Copy, and Paste settings in Word 2007 or 2010, follow these steps:
1. Click the Microsoft Office Button , click Word Options , and then click Advanced .
2. Under Cut, copy, and paste , configure the settings that you want to use as the default behavior.
Third-party installed font does not appear in the font
list in Word for Mac
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
After you install a font into the Fonts folder in the operating system and start Microsoft Word for Mac, the font
unexpectedly is not available in the Font dialog box, in the drop-down list, or in the Formatting Palette.

Cause
Third-party fonts are not directly supported in Microsoft Office for Mac applications. Some third-party fonts may
work in one application and not in another. Other third-party fonts are installed in a "family". A family usually
consists of the third-party font itself together with some or all of its variations (bold, italic, and so forth).
Sometimes, a font may be displayed in Microsoft Word, Microsoft PowerPoint, Microsoft Excel, or Microsoft
Entourage, but you may be unable to use one of its variations, such as italic.
Office does not support custom fonts. This includes any fonts that were manipulated by a font or typography
program.

NOTE
Microsoft Office for Mac technical support does not provide support for installing or configuring third-party fonts.

Basic font troubleshooting


If the following methods don't resolve your font issue, contact the font manufacturer or the website from which you
purchased the fonts.
First, restart your computer, and then test the font again. Some installations are not complete until the computer is
restarted. This also makes sure that all applications are restarted after the installation.
Method 1
1. Clear the font caches. To do this, quit all Microsoft Office applications. On the Home menu, click **Go **>
Applications , and then click Apple's Font Book.
2. On the Edit menu, click Select Duplicated Fonts .
3. On the Edit menu, click Resolve Duplicates .
4. To remove all the fonts from the computer that Font Book just disabled, follow these steps:
a. After the duplicates have been resolved, select each disabled font, click File > Reveal in Finder , and
then drag it to the trash.
b. You may notice that Font Book sometimes turns off the newer copy of the font instead of the older one. If
you prefer the newer copy, drag the older one to the trash, and then re-enable the new one.
5. Restart the computer. Apple OS X will rebuild its font cache, and Word will rebuild its font cache from that.
6. For best performance in Word, try to run with all your fonts enabled all the time. Each time that Word starts,
it compares its font cache with the system font cache. If the two don't match, Word will regenerate its own
font cache, which can take a few seconds. If you have dynamically enabled fonts, the system font cache will
appear different nearly every time that Word runs this comparison.
7. You must do this every time you install an update, because the Microsoft installer tries to restore the
disabled fonts each time.
Method 2
Restart the computer in Safe mode. Then, restart the computer normally. For more information about how to
restart your computer in Safe mode, click the following article number to view the article in the Microsoft
Knowledge Base:
2398596 How to use a "clean startup" to determine whether background programs are interfering with Office for
Mac
Method 3
Create a new user account to determine whether the problem is associated with an existing user account.
The font is damaged, or the system is not reading the font
If the font is not a custom font and does not appear in your Office program, the font may be damaged. To reinstall
the font, see Mac OS X: Font locations and their purposes.
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.
Toolbars missing in Word for Mac
3/30/2020 • 3 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
While using Word for Mac one or more Toolbars are missing and cannot be added.

Cause
This behavior can be caused by one of these things:
The oval button in the upper-right corner of the document was clicked. This button "toggles" display of toolbars
on and off.
There is an issue with the Normal template in Word.
The toolbars or menus are modified.

Resolution
To resolve this problem, try the following methods.
Method 1: Make sure that tool bar display is not turned off
1. In the upper-right corner of the window click the oval button.

NOTE
When this button is clicked, it hides all the toolbars. A second click causes the toolbars to be displayed.

2. If the toolbars reappear, quit, and then restart Word to make sure that the appropriate toolbars are
displayed.
If Method 1 did not resolve the problem, try Method 2.
Method 2: Reset the toolbars and menus in Word
You can reset the toolbars and menus in the Customize Toolbars and Menus option, any saved customization is
removed, and all settings are reverted to the original default settings.
1. Open Word.
2. Go to View in the menu.
3. Choose Toolbars .
4. Select Customize Toolbars and Menus .
5. Select Toolbars and Menus in the top of the Customize Toolbars and Menus window.
6. Select the item in the list you want to reset (Menu Bar , Standard , Formatting ).
7. Click Reset .
8. Click OK when getting prompt: "Are you sure you want to reset the changes made..."
9. Click OK .

NOTE
When View is missing from the menu, then you can also Control Click the Standard Toolbar and go to Customize Toolbars
and Menus here.

If Method 2 did not resolve the problem, try Method 3.


Method 3: Create a new Normal template Note
When a new Normal template is created, any saved customization is removed, and all settings are reverted to the
original default settings.
Step 1: Quit all programs
To quit active applications, follow these steps:
1. On the Apple menu, click Force Quit .
2. Select an application in the "Force Quit Applications" window.

NOTE
You cannot quit Finder.

3. Click Force Quit .


4. Repeat the previous steps until you quit all active applications.

WARNING
When an application is force quit, any unsaved changes to open documents are not saved.

When you are finished, click the red button in the upper-left corner and proceed to Step 2.
Step 2: Word 2008 and 2011: Move the Normal.dotm template file to the Trash
1. Quit all Microsoft Office applications.
2. On the Go menu, click Home .
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Select the Application Suppor t folder.


5. Select the Microsoft folder.
6. Open the Office folder.
7. Open the User Templates folder.
8. Move Normal.dotm to the Trash.
9. Start Word, a new Normal.dotm template will be created when you choose Quit Word in the Word menu.
NOTE
When you had Word 2004 on your Mac previously and you now have Word 2008 or Word 2011, also check if the Word
2004 Normal file is present on the system, if so, trash this Normal template file as well.

Step 3: Word 2004: Move the Normal template file to the Trash
1. Quit all Microsoft Office applications.
2. On the Go menu, click Home .
3. Select the Documents folder.
4. Select the **Microsoft User Data **folder.
5. Move Normal to the Trash.
6. Start Word, a new Normal template will be created when you choose Quit Word in the Word menu.
Word Track Changes functionality disabled when
Rights Management Services (RMS) is applied
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
You are editing a Microsoft Word document that has Rights Management Services (RMS) applied to it and includes
tracked changes. You notice that you cannot use Word's Track Changes feature. The Track Changes control, as well
as the Accept and Reject changes controls are disabled.
This applies when the RMS is applied to individual documents or when RMS is applied to a SharePoint site library.

Cause
You will see this behavior when you don't have "Full control" provided by Rights Management Services (RMS) for
the user. A Microsoft Word file that contains tracked changes has the changes stored in a log within the file. In order
to preserve the tracked changes log in a less than full control permissions scenario, the Track Changes and Accept
Changes features are disabled for users who do not have "Full control" in the My Permission dialog for the RMS
protected document.

Resolution
This behavior is by design. To use Word's track changes feature with RMS, provide access level under RMS as "Full
control" for a user on an individual Word document or provide "Full Control" for the user in the SharePoint
document library permissions.

More Information
The following reviewing features are only available with "Full control" permissions:
Turning on or off Track Changes
Delete Comments
The Accept dropdown
The Reject dropdown
Within the Track Changes dropdown, the Track Changes Options will be enabled, but within that dialog, the
following two options will be disabled unless the user has Full Control permissions:
Track moves
Track formatting
Troubleshoot print failures in Word for Office 365 on
Windows 10
4/28/2020 • 10 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this
change, read this blog post.
For previous versions of this article to troubleshoot Word on Windows, see Troubleshoot print failures in Word.

Summary
This article suggests ways in which you can diagnose and resolve issues when you cannot print a Microsoft Word
for Office 365 document on Windows 10.
Try the following options to help determine the cause of your printing failure. Select the arrow image to see more
detailed instructions about that option.

NOTE
Before you begin, make sure that Windows is up to date and then try to print again.

Test printing in other documents


1. Open a new blank document.
2. Type the following text: "=rand(10)".
3. Press Enter .
4. Try to print again.

Test printing in other programs: WordPad


1. Open WordPad.
2. In a new document, type "This is a test".
3. On the File menu, select Print .
4. Select OK or Print to print the file.

Repair the Word program files


1. Exit all Office programs.
2. Select Star t , then type "uninstall".
3. Open Add or Remove Programs .
4. Under Apps & features , select Microsoft Office
Word .
5. Select Modify .
6. Select Online Repair , then follow instructions to
repair the programs.
Test for problems in Windows
1. Remove all media (USB drive, DVD, CD) from your
computer.
2. Select Star t , then the Power button , then select
Restar t .
3. Press and hold F8 key as your computer restarts.
4. On the Advanced Boot Options screen, select Safe
Mode , then Enter .
5. Sign in to your computer using administrative
credentials.
6. Try printing again.

Test printing with different print drivers


1. Select Star t , then Settings .
2. Select Devices , then Printers & scanners .
3. Select Add a printer or scanner .
4. Select The printer that I wanted isn't listed.
5. In the "Find a printer by other options" screen, select
Add a local printer or network printer with
manual settings. Select Next .
6. Make sure that the check box Use an existing por t
is selected, then change the dropdown option to File:
(Print to file) . Select Next .
7. Under Manufacturer, select Generic. Under Printers,
select Generic/Text Only and select Next .
8. In the screen "Type a printer name," leave the name as
Generic/Text Only and select Next .
9. In the "Printer Sharing" screen, select Share this
printer so that others on your network can find
and use it.
10. Leave the default Share name. Select Next .
11. Select Finish .
12. When the driver installation is complete, open a
document in Word. On the File menu, select Print .
13. Select Generic/Text Only , then select Print .
14. Change the location to My Documents and name
the file Test.prn
15. Select OK .

More Information
Examples of print failure are as follows:
You receive error messages and other messages when you try to print a file.
The printer does not respond.
Files print as meaningless symbols.

NOTE
This article does not discuss printer output issues, such as envelope-positioning problems, missing graphics, and inaccurate
page numbers.

To resolve a print failure in Word, you must determine its cause. Causes typically fit into one of the following
categories:
Damaged documents or damaged content in documents.
The Word program itself.
The printer driver.
The Windows operating system.
Connectivity or hardware.

Detailed view of the Options


Outlined below are more detailed descriptions of the Options above.
Damaged documents or documents that contain damaged graphics or damaged fonts can cause print errors in Word.
Opti on 1: Test pri nti ng of other documents

Before you reinstall drivers or software, test the Word program's ability to print. To do this, follow these steps.
1. Open a new blank document in Word.
2. On the first line of the document, type the following text: =rand(10)
3. Press Enter . This inserts 10 paragraphs of sample text.
4. Try to print the document.
5. If the document prints successfully, change to a different font, or insert clip art, a table, or a drawing object.
To change the font, follow these steps:
1. Select a section of the sample text.
2. In the Home menu, use the font drop-down box to select a different font.
To insert clip art, follow these steps:
1. Select the Inser t tab, and then select Online Pictures .
2. Type any term in the search box, and then press Enter or select Search .
3. Select one of the pictures, and then select Inser t .
4. Close the task pane.
To insert a table, follow these steps:
1. Select Inser t , select Table , and then select Add a Table .
2. Select the number of columns and rows that you want, and then select OK .
To insert a drawing object, follow these steps:
1. Select Inser t , and then select Shapes .
2. Select one of the shapes.
3. Click and drag your cursor across the document to place the shape.
6. Test the print function again.
The success or failure of these tests shows whether Word is functionally able to print. These tests may also give you
clues about certain fonts or graphics that Word cannot print.
If you do not receive errors in the test document but still cannot print your original document, your original
document may be damaged. This may be true even if you can print the same document on another computer,
because there are many situations in which the symptoms of file damage appear on some computers and not on
other computers.
For more information about how to troubleshoot damaged Word documents, see How to troubleshoot damaged
Word documents.
If Word cannot print at all, or if Word cannot print a certain font or a certain kind of graphic, go to the next step.
Option 2: Test printing in other programs
The scope of the printing problem may reveal its cause. For example, some printing problems affect only Word,
whereas other printing problems affect several of or all Windows-based programs.
The following tests can help determine whether this problem involves programs other than Word.
Test in WordPad
1. In the Windows menu, search for and start WordPad.
2. In the blank WordPad document, type This is a test.
3. On the File menu, select Print .

NOTE
Make sure that your printer is selected. If your printer is not listed, select Add Printer… from the Printer drop-down
box and add your printer.

4. Select OK or Print to print the file.


If you found in "Step 3: Test printing in other documents" that the print problem occurs only with certain fonts or
certain graphics images, try to reproduce this problem in WordPad. To do this, apply the same font, or insert the
same kind of graphics image. (To select a different font in WordPad, use the same method that you used in Word.)
Then try printing the same document again.
To insert a graphics image in WordPad, follow these steps:
1. On the Home tab, select Inser t object .
2. Follow one or both of the following steps:
To create a new graphics image, select Create New , and then select one of the object types from the list. For
example, select Paintbrush Picture to create a test bitmap in the Microsoft Paint program.
To insert a graphics image from a file, select Create from File , and then select Browse to select the file.
Test printing from other programs
After you finish creating the document in WordPad, you can test the print functions in your web browser or another
Office program. You can also try to print a test page for your printer. To print a text page, follow these steps:
1. Select Star t , point to Settings , then Devices , and then select Printers & scanners .
2. Select the icon for your printer.
3. Under Manage your device , select Print Test Page .
If you cannot print a test page, or if you cannot print in several (or all) Windows-based programs, you have a
printer driver problem, a Windows problem, a hardware problem, or a connectivity problem.
If the problem is limited to a particular font, a damaged font file may be the cause. For more information about
how to test and reinstall fonts, see the following Microsoft Knowledge Base article:

314960 How to install or remove a font in Windows

If you can print without problems in all programs except Word, go to "Step 4: Test printing with different printer
drivers."
You might be able to use the Windows 10 printing help and troubleshooting wizard to resolve the printing
problem. Select Star t , type printing, and then select Find and fix problems with printing .
Option 3: Repair the Word program files
After you verify that the printing problem is not limited to a particular document or to a particular printer driver, and
that the problem is limited to the Word program, test the Word program by using only the default settings.
For more information about how to start by using the default settings, see the following Microsoft Knowledge
Base:
921541 How to troubleshoot problems that occur when you start or use Word
If the printing problem continues to occur, run the repair program to reinstall the missing or damaged program
files. To run the repair program, follow these steps.
1. Exit all Office programs.
2. In Windows 10, select Star t , and then type uninstall.
3. Open Add or Remove Programs .
4. Under the "Apps & features" list, find and select your version of Microsoft Office Word you have installed.
5. Select Modify .
6. Select Online Repair , and then follow the onscreen instructions to repair the program.
Option 4: Test for problems in Windows
To look for device drivers or memory-resident programs that might be interfering with the Word print function, start
Windows in safe mode, and then test printing to a file in Word. To start Windows in safe mode, follow the steps below.
1. Remove all floppy disks, CDs, and DVDs from your computer, and then restart your computer.
2. Select Star t , then the Power button , and then select Restar t .
3. Press and hold the F8 key as your computer restarts.

NOTE
You must press F8 before the Windows logo appears. If the Windows logo appears, restart your computer and try
again. To do this, wait until the Windows logon prompt appears, and then shut down and restart your computer.

4. On the "Advanced Boot Options" screen, use the arrow keys to select the Safe Mode option, and then press
Enter .
5. Log on to your computer by using a user account that has administrative credentials.
6. Try printing from Word again.
If the Word printing problem does not occur when you start Windows in safe mode, use clean-boot
troubleshooting to help determine the source of the problem.
Option 5: Test printing with different printer drivers
If Word is the only program on your computer that cannot print, you might think that Word is the cause of the
problem. Be aware that Word is a very printer-intensive program. Therefore, a minor problem with the printer driver
affects Word before it affects other programs.
To determine whether the printer driver is the cause of the problem, you can test different drivers. If the Word
printing problem occurs only when you print documents that use a certain font or a certain kind of graphics image,
try to print to another printer.
If no other printer is available, contact the manufacturer to determine whether there is an updated version of the
driver or a different driver that works with your printer model.
If the Word printing problem occurs even when you print documents that are made up only of text, you can use a
generic, text-only printer driver to test printing from Word. To do this, follow these steps:
1. Select Star t , and then Settings .
2. Select Devices , and then Printers & scanners .
3. Select Add a printer or scanner .
4. Select The printer that I want isn't listed .

NOTE
You may have to search for a printer first to see this option.
5. In the "Find a printer by other options" screen, select Add a local printer or network printer with manual
settings . Select Next .
6. Make sure that the Use an existing por t check box is selected, then change the dropdown option to File:
(Print to file) , and select Next .
7. Under Manufacturer, select Generic . Under Printers, select Generic/Text Only , and then select Next .
8. In the screen "Type a printer name," leave the name as Generic/Text Only and select Next .
9. In the "Printer Sharing" screen, select Share this printer so that others on your network can find and
use it .
10. Leave the default Share name, and then select Next .
11. Select Finish .
12. When the driver installation is complete, open a document in Word, and on the File menu, select Print .
13. Select Generic/Text Only , and then select Print .
14. Change the location to My Documents , and then name the file Test.prn .
15. Select OK .
If you receive an error message in Word when you print files that contain only text but do not receive the error
message when you print with the generic, text-only printer driver, your printer driver may be damaged. In this case,
contact the manufacturer for help in removing the printer driver and installing an updated version.
If the printing problem continues to occur with a different printer driver, go to the next step.

Need more help?


Get help from the Microsoft Community online community, search for more information on Microsoft Support or
Office Help and How To, or learn more about Assisted Support options.
Troubleshooting guide for unwanted page breaks
3/30/2020 • 7 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article describes how to troubleshoot page breaks that occur in a Word document at unexpected or unwanted
locations.

NOTE
It is easier to view page breaks in normal view than print layout view. To switch to normal view, in Word 2000, Word 2002
and Word 2003, on the Viewmenu, click Normal. In Word 2007, Word 2010 and Word 2013, click the View tab and then click
Draft.

More Information
Check spacing before or after the paragraph
Word 2000, Word 2002, and Word 2003
1. Select the paragraph immediately before or after the unwanted page break.
2. On the Format menu, click Paragraph.
3. Click the Indents and Spacing tab, and then check to see whether Spacing Before or Spacing After is set to an
unusually high value.
Word 2007, Word 2010, and Word 2013
1. Select the paragraph immediately before or after the unwanted page break.
2. On the Page Layout tab, click the Paragraph Dialog Box Launcher, and then click the Indents and Spacing tab. Or,
right-click and choose Paragraph, and then click the Indents and Spacing tab.
3. Check to see whether Spacing Before or Spacing After is set to an unusually high value.
Check the pagination options of the preceding paragraph
Word 2000, Word 2002, and Word 2003
1. Select the first paragraph on the page following the unwanted page break.
2. On the Format menu, click Paragraph.
3. Click the Line and Page Breaks tab.
4. Check to see whether one of the following three pagination options is selected:
Page break before: Inserts a page break before a paragraph.
Keep with next: Prevents a page break between the current and following paragraphs.
Keep lines together: Prevents a page break within a paragraph.
Word 2007, Word 2010, and Word 2013
1. Select the first paragraph on the page following the unwanted page break.
2. On the Page Layout tab, click the Paragraph dialog box launcher in the Paragraph group.
3. Click the Line and Page Breaks tab.
4. Check to see whether one of the following three pagination options is selected:
Page break before: Inserts a page break before a paragraph.
Keep with next: Prevents a page break between the current and following paragraphs.
Keep lines together: Prevents a page break within a paragraph.
Check the "From edge" setting
Word 2000, Word 2002, and Word 2003
1. On the File menu, click Page Setup, and then click to select the Margins tab.
2. Look at the From edge setting for the Header or Footer to see whether it is too large.
Word 2007, Word 2010, and Word 2013
1. On the Page Layout tab, click the Page Setup dialog box launcher in the Page Setup group.
2. Click the Layout tab.
3. Look at the From edge setting for the Header or Footer to see whether it is too large.

NOTE
This setting determines the distance from the edge of the page where Word starts printing the text of a header or footer. The
default setting is 0.5 inch. A larger setting decreases the available print area for your document.

Check to see whether the text that follows the page break is in a table
Word includes an option that does not allow a page break to be inserted in a table cell. As a result, if the entire cell
does not fit on the page, Word pushes the entire cell to the next page.
To change this option, follow these steps.
Word 2000, Word 2002, and Word 2003
1. Place the insertion point in the table.
2. On the Table menu, click Table Properties.
3. Click the Row tab.
4. Click to select the Allow row to break across pages check box.
This sets the page break option for the entire table.
Word 2007, Word 2010, and Word 2013
1. Place the insertion point in the table.
2. Go to the Layout tab under Table Tools.
3. In the Table group, click Properties.
4. Click the Row tab.
5. Click to select the Allow row to break across pages check box.
This sets the page break option for the entire table.
Search for manual (or "hard") page breaks
You may have inserted a manual page break by pressing CTRL+ENTER. Or, you may have inserted a manual page
break by using one of the following methods, depending on your version of Word.
Word 2002, Word 2002, or Word 2003
1. On the Insert menu, click Break.
2. Select Page break, and then click OK.
Word 2007, Word 2010, and Word 2013
On the Insert tab, click Page Breaks on the Pages group.
You can use the Replace command to remove manual page breaks by searching for manual page breaks.
Note Do not click the Replace All button when you remove manual page breaks unless your document contains no
section breaks.
Check for unexpected page breaks following "Normal" style text
If a series of Heading styles is used in a document (an outline, for example) followed by text that is formatted with
the Normal style, an unexpected page break may occur following the Normal text. This problem occurs only in
normal view and does not occur in outline view. Use one of the following methods to remove individual
occurrences of an unwanted page break.
Method 1: Apply the "Keep with Next" option to Normal text
W ord 2 0 0 0 , W ord 2 0 0 2 , an d W ord 2 0 0 3

1. Select the Normal text.


2. On the Format menu, click Paragraph.
3. Click the Line and Page Breaks tab, and then click to select Keep with next.
4. Click OK.
W o r d 2 0 0 7, W o r d 2 0 10 , an d W o r d 2 0 13

1. Select the Normal text.


2. On the Page Layout tab, click the Paragraph dialog box launcher in the Paragraph group.
3. Click the Line and Page Breaks tab, and then click to select Keep with next.
4. Click OK.
Method 2: Clear the "Keep with next" option from the heading
W ord 2 0 0 0 , W ord 2 0 0 2 , an d W ord 2 0 0 3

1. Select the Heading text that precedes the Normal text.


2. On the Format menu, click Paragraph.
3. Click the Line and Page Breaks tab, and then click to clear the Keep with next check box.
4. Click OK.
W o r d 2 0 0 7, W o r d 2 0 10 , an d W o r d 2 0 13

1. Select the Heading text that precedes the Normal text.


2. On the Page Layout tab, click the Paragraph dialog box launcher in the Paragraph group.
3. Click the Line and Page Breaks tab, and then click to clear the Keep with next check box.
4. Click OK.
Method 3: Permanently change the occurrence of unwanted page breaks
W ord 2 0 0 0 , W ord 2 0 0 2 , an d W ord 2 0 0 3

1. On the Format menu, click Style.


2. In the List list box, click All styles.
3. In the Styles list, click Heading 1.
4. Click Modify.
5. Click Format, and then click Paragraph.
6. Click the Line and Page Breaks tab.
7. Click to clear the Keep with next check box, and then click OK.
8. To make the change permanent for the current document and all new documents based on the active template,
click to select Add to template . Otherwise, the changes that you make will only affect the current document.
9. Click OK, and then click Close.
W o r d 2 0 0 7, W o r d 2 0 10 , an d W o r d 2 0 13

1. On the Home tab, go to the Styles group, and then click the Styles dialog box launcher to open the list of styles.
2. In the Styles list, click Heading 1.
3. Click Modify.
4. Click Format, and then click Paragraph.
5. Click the Line and Page Breaks tab.
6. Click to clear the Keep with next check box, and then click OK.
7. To make the change permanent for the current document and all new documents based on the active template,
click to select New document based on this template . Otherwise, the changes that you make will only affect
the current document.
8. Click OK, and then click Close.
Microsoft support options
If you cannot resolve this issue, several support options are available to assist you.
Quickly find answers yourself online
Use Microsoft Online Support to search the Microsoft Knowledge Base and other technical resources for fast,
accurate answers. You can also customize the site to control your search.
To begin your search, visit the following Web site: https://www.microsoft.com/support/
Microsoft Product Support
Contact a Microsoft Product Support professional to assist you with troubleshooting problems.
For more information about obtaining help with troubleshooting Microsoft Windows, click Help Topics on the Help
menu in Windows Explorer. On the Contents tab, double-click to open the Troubleshooting book. Then double-click
to open the Contact Microsoft Technical Support book to view your support options.
For more information about obtaining help with troubleshooting Microsoft Word, click About Microsoft word on
the Help menu, and then click Tech Support.
Microsoft Solution Providers
Microsoft Solution Providers are independent organizations that have teamed with Microsoft to use technology to
solve business problems for companies of all sizes and industries.
To locate a Microsoft Solution Provider in your area in the U.S. and Canada, call the Microsoft Sales Information
Center at (800) 426-9400. If you are outside the United States, contact your local subsidiary. To locate your
subsidiary, see the Microsoft World Wide Offices Web site at https://www.microsoft.com/worldwide/.
"Word could not create the work file" error message
when you save a document in Microsoft Word
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you save a document in Microsoft Word, you receive the following error message:
Word could not create the work file. Check the Temp environment variable.
The Temporary Internet Files folder for Windows Internet Explorer is set to be in a location where you do not have
permission to create new temporary files.

Resolution
To resolve this issue, create a new folder on your computer.
1. Start Windows Explorer
2. Locate the folder location C:\Users\userprofile\AppData\Local\Microsoft\Windows
3. Create the folder labeled INetCacheContent.Word.

NOTE
It may be necessary to turn on Hidden Items in the View Ribbon of Windows Explorer.
When you save, Word for Mac crashes or quits
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you save a Word for Mac document, the application crashes or quits unexpectedly.

Resolution
Step 1: Download and install all Office updates
To obtain updates with Office for Mac applications, follow these steps:
Microsoft AutoUpdate for Mac, which comes with Office, can keep your Microsoft software up to date. When
AutoUpdate is set to check for updates automatically on a daily, weekly, or monthly basis, there's no need to search
for critical updates and information; AutoUpdate delivers them directly to your computer. To do this:
1. Start any Office for Mac application on your computer.
2. Click Help menu, click Check for Updates .
For additional information about Office for Mac updates, see Where and how to obtain Office for Mac software
updates.
If the issue continues to occur, proceed to the next step.
Step 2: Check the hard disc name
Make sure that your hard disc has a name. The name cannot be all numbers but can contain numbers. The
name must start with a letter. It must not contain any special characters, such as periods, commas, semi-colons,
quotation marks, and so on.
Step 3: Save to a different location
If you are saving a file in your Documents folder, instead try saving the file to the desktop or to a different location.
Remember that there is a 255-character limit to the file name, and the path of the saved file is included in the name.
For example, a file that is saved to the desktop has the path "HD\users\your user name\Desktop." These characters
are counted toward the 255-character limit.
If you want to save to a network share or to an external device (such as a flash drive), first save the file to your local
hard disc. If you can save the file to the hard disc (your Documents folder), there is nothing wrong with the Excel
installation or with the file. If you cannot save to your local hard disc, go to step 3.
If you cannot save the file to an external device, contact Apple or the manufacturer of the external device. If you
cannot save to a network share, contact the network administrator (your IT department) or the owner of the share.
If you do not have an IT department and you want to save to a network, contact Microsoft Professional Support.
Step 4: Empty the AutoRecovery folder
IMPORTANT
The location of certain files are different if you have Service Pack 2 (SP2) installed. To check if it is installed, open Word, and
then click About Word from the Word menu. If the version number is 14.2.0 or above, you have Service Pack 2 and you
should follow the Service Pack 2 steps when provided in this article.

If there are too many items in the AutoRecovery folder (user\Documents\Microsoft User
Data\Office 2008 AutoRecovery or Office 2010 AutoRecovery), this can cause memory problems and save
problems because these files are loaded into memory when Word is started.
Move AutoRecovery files to the desktop or to another folder to see whether they are causing the problem. To do
this, follow these steps:
To empty the AutoRecovery folder, follow these steps if have version 14.2.0 (also known as Service Pack 2) installed:
1. Quit all applications.
2. On the File menu, click New Folder .
A new folder is created on the desktop. The folder will be called "New Folder."
3. On the Go menu, click Home .
4. Open Librar y .

NOTE
The Librar y folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

5. Open Application Suppor t , and then open Microsoft .


6. Open Office 2011 AutoRecover y .
7. On the Edit menu, click Select All .
8. Drag all files into "New Folder" on the desktop.
The AutoRecovery folder should be empty.
9. Open Excel for Mac 2011 and try to save a file.
If you can save a file, review the contents of "New Folder" to decide which files that you want to keep.
If the problem continues to occur, go to the next method.
To empty the AutoRecovery folder, follow these steps if you do not have Service Pack 2 installed:
1. Quit all applications.
2. On the File menu, click New Folder .
A new folder is created on the desktop. The folder will be called "New Folder."
3. On the Go menu, click Documents .
4. Open Microsoft User Data , and then open Office 2011 AutoRecover y .
5. On the Edit menu, click Select All .
6. Drag all files into "New Folder" on the desktop.
The AutoRecovery folder should be empty.
7. Open Excel for Mac 2011 and try to save a file.
If you can save a file, review the contents of "New Folder" to decide which files that you want to keep.
If the problem continues to occur, go to the next method.
Step 5: Remove Word preferences

NOTE
Removing the preferences will remove any customizations that you made. These customizations include changes to toolbars
and custom dictionaries and keyboard shortcuts that you created.

1. Quit all Microsoft Office for Mac applications.


2. On the Go menu, click Home .
3. Open Librar y .

NOTE
The Librar y folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open Preferences .
5. Look for a file that is named com.microsoft.Word.plist.
6. If you locate the file, move it to the desktop. If you cannot locate the file, the application is using the default
preferences.
7. If you locate the file and move it to the desktop, start Word, and check whether the problem still occurs. If
the problem still occurs, quit Word, and then restore the file to its original location. Then, go to the next step.
If the problem seems to be resolved, you can move the com.microsoft.Word.plist file to the trash.
8. Quit all Office for Mac applications.
9. On the Go menu, click Home .
10. Open Librar y .

NOTE
The Librar y folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

11. Open Preferences , and then open Microsoft .


12. Locate the file that is named com.microsoft.Word.prefs.plist.
13. Move the file to the desktop.
14. Start Word, and then check whether the problem still occurs. If the problem still occurs, quit Word, and
restore the file to its original location. Then, go to the next step. If the problem seems to be resolved, you can
move the com.microsoft.Word.prefs.plist file to the trash.
15. On the Go menu, click Home .
16. Open Librar y .

NOTE
The Librar y folder is hidden in Mac OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

17. Open Application Suppor t , and then open Microsoft .


18. Open Office , and then open User Templates .
19. Locate the file that is named Normal, and then move the file to the desktop.
20. Start Word, and then check whether the problem still occurs. If the problem seems to be resolved, you can
move the Normal file to the Trash. If the issue continues to occur, go to the next step.
Step 6: Create a new user account
Sometimes, user-specific information can become corrupted. This can interfere with installing or using the
application. To determine whether this is the case, you can log on as a different user or create a new user account,
and then test the application.
If the issue occurs even when you use the alternative account, go to the next step.
Step 7: Test saving the file in safe mode
Try to save when the computer is operating in safe mode. If you can save while in safe mode, the problem probably
concerns software that is running in the background.
For information about how to enter safe mode in Mac OS, see Clean startup to see if background programs are
interfering with Office for Mac.

More information
If the steps in this article did not resolve the issue, visit the Mac forums for possible resolutions/workarounds.
Word for Mac closes unexpectedly or error "The
application Microsoft Word quit unexpectedly"
3/30/2020 • 5 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
When you start Microsoft Word for Mac, or when you try to open a new document, you experience one of the
following conditions:
The program closes unexpectedly.
Error message:

The application Microsoft Word quit unexpectedly. Mac OS X and other applications are not affected.
Click relaunch to launch the application again. Click report to see more details or send a report to
Apple.

NOTE
This error message may also occur during usage of application such as saving a document.

Resolution
To resolve this problem, follow steps below.
Microsoft Word for Mac 2008 or Later
Step 1: Quit all applications
1. On the Apple menu, click Force Quit.
2. Select an application in the "Force Quit Applications" window.

NOTE
You cannot quit Finder.

3. Click Force Quit.


4. Repeat the previous steps until all active applications.

WARNING
When an application is force quit, any unsaved changes to open documents are not saved.

Step 2: Remove Preferences


1. Quit all Microsoft Office for Mac programs.
2. On the Go menu, click Home.
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open the Preferences folder.


5. Look for a file that is named com.microsoft.Word.plist.
6. If you locate the file, move it to the desktop. If you do not locate the file, the program is using the default
preferences.
7. If you locate the file and move it to the desktop, start Word, and check whether the problem still occurs. If
the problem still occurs, quit Microsoft Word, and restore the file to its original location. Then, go to the next
step. If the problem seems to be resolved, you can move the com.microsoft.Word.plist file to the trash.
8. Quit all Microsoft Office for Mac programs.
9. On the Go menu, click Home.
10. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

11. Open the Preferences folder.


12. Open the Microsoft folder.
13. Locate the file that is named com.microsoft.Word.prefs.plist.
14. Move the file to the desktop.
15. Start Word, and check whether the problem still occurs. If the problem still occurs, quit Word, and restore the
file to its original location. Then, go to the next step. If the problem seems to be resolved, you can move
the com.microsoft.Word.prefs.plist file to the trash.
16. On the Go menu, click Home.
17. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

18. Open the Application Support folder.


19. Open the Microsoft folder.
20. Open the Office folder.
21. Open the User Templates folder.
22. Locate the file that is named Normal, and move the file to the desktop.
23. Start Word and check whether the problem still occurs. If the problem seems to be resolved, you can move
the Normal file to the Trash. If the issue continues to occur, proceed to the next step.
If the issue continues to occur, go to the next step.
Step 3: Peform clean boot
For information how to clean start your Operating system (OS), see Microsoft Knowledge Base article:
2398596 How to use a "clean startup" to determine whether background programs are interfering with Office for
Mac
If the issue continues to occur in Safe mode, go to the next step.
Step 4: Remove and then reinstall Office
For information how to remove and then reinstall Office, see the following article:
Troubleshoot Office 2011 for Mac issues by completely uninstalling before you reinstall
If after removing and then reinstalling Office, the problem continues to occur, go to the next step.
Step 5: Use the "Repair Disk Permissions" option
You can use the Repair Disk Permissions option to troubleshoot permissions problems in Mac OS X 10.2 or later
versions. To use the Repair Disk Permissions option, follow these steps:
1. On the Go menu, click Utilities.
2. Start the Disk Utility program.
3. Click the primary hard disk drive for your computer.
4. Click the First Aid tab.
5. Click Repair Disk Permissions.
NOTE
The Disk Utility program only repairs software that is installed by Apple. This utility also repairs folders, such as the
Applications folder. However, this utility does not repair software that is in your home folder.

Microsoft Word 2004 for Mac


1. Quit all Microsoft Office for Mac programs.
2. On the Go menu, click Home .
3. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

4. Open the Preferences folder.


5. Look for a file that is named com.microsoft.Word.plist.
6. If you locate the file, move it to the desktop. If you do not locate the file, the program is using the default
preferences.
7. If you locate the file and move it to the desktop, start Word, and check whether the problem still occurs. If
the problem still occurs, quit Word, and restore the file to its original location. Then, go to the next step. If the
problem seems to be resolved, you can move the com.microsoft.Word.plist file to the trash.
8. Qit all Microsoft Office for Mac programs.
9. On the Go menu, click Home .
10. Open Library.

NOTE
The Library folder is hidden in MAC OS X Lion. To display this folder, hold down the OPTION key while you click the
Go menu.

11. Open the Preferences folder.


12. Open the Microsoft folder.
13. Look for a file that is named com.microsoft.Word.prefs.plist.
14. Move the file to the desktop.
15. Start Word, and check whether the problem still occurs. If the problem still occurs, quit Word, and restore the
file to its original location. Then, go to the next step. If the problem seems to be resolved, you can move the
com.microsoft.Word.prefs.plist file to the trash.
16. On the Go menu, click Home .
17. Open the Documents folder.
18. Open the Microsoft User Data folder.
19. Locate the file that is named Normal, and move the file to the desktop.
20. Start Word, and check whether the problem still occurs. If the problem seems to be resolved, you can move
the Normal file to the trash.

Third-party disclaimer information


The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these
products.
The information and the solution in this document represent the current view of Microsoft Corporation on these
issues as of the date of publication. This solution is available through Microsoft or through a third-party provider.
Microsoft does not specifically recommend any third-party provider or third-party solution that this article might
describe. There might also be other third-party providers or third-party solutions that this article does not describe.
Because Microsoft must respond to changing market conditions, this information should not be interpreted to be a
commitment by Microsoft. Microsoft cannot guarantee or endorse the accuracy of any information or of any
solution that is presented by Microsoft or by any mentioned third-party provider.
Word slows or stops responding if there are excessive
tracked changes or comments
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Microsoft Word becomes very slow or stops responding if an open document contains excessive tracked changes
or comments.

Cause
This issue may occur if tracked changes in the document are not periodically accepted or rejected.

Resolution
To fix this issue, follow these steps:
1. Close all instances of Word.
2. Restart Word, and then open a new blank document.
3. On the Review tab, select All Markup in the Tracking group.
4. Select Show Markup , and then set Balloons to Show only comments and formatting in balloons .
5. Use File > Open to open the problematic document.
At this point, Word should be responsive. You can now accept or reject any changes, and remove comments.

NOTE
Table changes have the biggest performance effect.

More information
For more information about how to accept or reject tracked changes, see Accept or reject tracked changes in Word.
How to work with toolbars and toolbar buttons: add,
create, edit, delete, restore, and more in Word
3/30/2020 • 6 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
One of the most convenient features of Microsoft Word is the ability to customize the tools that you work with. This
article describes how you can customize and create toolbars and toolbar buttons. You can customize any toolbar by
adding, deleting, moving, or grouping toolbar buttons to suit your needs.
Microsoft Word includes several built-in toolbars, including the two default toolbars that are visible when you start
Word: the Standard toolbar and the Formatting toolbar. The Standard toolbar includes command buttons with
which you can quickly access many of the frequently used commands, such as Save , Open , Copy , and Paste . The
Formatting toolbar provides quick access to text-formatting commands, including Bold , Italic , Underline ,
Numbering , and Bullets .
To see a list of available toolbars, point to Toolbars on the View menu. The available toolbars appear on the
Toolbars submenu. The toolbars that are currently visible in the Word window are selected (check marks appear
next to them). To view and use a toolbar, you must select it on the Toolbars submenu. To select it (make it visible on
the Word screen), click the toolbar name.
Note Creating and customizing menus in Word is similar to the way that you create and customize your toolbars.
How to add a button to an existing toolbar
To add a button to an existing toolbar, use one of the following methods.
Method 1: Use the customize command on the toolbars submenu
1. On the View menu, point to Toolbars , and then click Customize .
Note You can also open the Customize dialog box by clicking Customize on the Tools menu.
2. In the Customize dialog box, click the Commands tab. Under Categories , select the category from which
you want to add a button. The Categories list displays categories of commands, organized by menu name
or by type. The Built-in Menus category provides options for changing menus.
3. Click a category to change the list of commands that appear in the Commands box, on the right side of the
Customize dialog box.
4. To add a button to a toolbar that is displayed, drag the button from the Commands box to the toolbar.
For example, under Categories , click View . In the Commands box, click View Field Codes , and drag it to
the Standard toolbar. Release the mouse button when you see a vertical bar indicating the position of the
button.
Method 2: Use the "More Buttons" button on the toolbar
1. On the toolbar, click More Buttons , and then click Add or Remove Buttons .
A submenu appears.
Note The More Buttons toolbar button appears on most (not all) toolbars only when the toolbar is docked.
To dock a toolbar, either double-click the title bar of the floating toolbar, or drag it to a docked position.
For more information about how to dock a toolbar, click Microsoft Word Help on the Help menu, type
move a toolbar in the Office Assistant or the Answer Wizard, and then click Search to view the topics
returned.
2. To add a button to the toolbar, select the check box next to the button that you want to add. To remove a
button from the toolbar, click to clear the check box next to the button on the submenu.
How to change the image of an existing button
1. Display the toolbar where the button you want to change appears.
2. On the Tools menu, click Customize .
3. When the Customize dialog box appears, right-click the button on the toolbar, and point to Change Button
Image on the list that appears. A selection of images appears. Click the button image that you want to use as
your custom button image.
Note If you change the image and then decide that it is not what you want, you cannot revert to the original
image. However, you can drag the button with the wrong image off the toolbar and add another image from
the Customize dialog box (click the Commands tab).
To modify a button image, follow these steps:
1. On the Tools menu, click Customize .
2. When the Customize dialog box appears, right-click the button, and then click Edit Button Image .
3. The Edit Button dialog box appears. Make any changes that you want, and then click OK .
You cannot change the image of a button that displays a list or menu when you click it.
How to modify toolbar buttons
1. On the Tools menu, click Customize .
2. Click the Toolbars tab.
3. Use the appropriate procedure from the following table.
4. Click Close .
How to assign a hyperlink to a toolbar button or menu command
When you assign a hyperlink to a toolbar button or menu command, the hyperlink replaces the command currently
assigned to that button or menu command.

NOTE
You cannot assign a hyperlink to a button that displays a list or menu when you click it.

To assign a hyperlink to a toolbar button or menu command, follow these steps:


1. Make sure the toolbar that you want to change is visible. To do this, pointing to Toolbars on the View menu,
and then click the toolbar that you want to display.
2. Do one of the following:
On the **View **menu, point to Toolbars , and then click Customize .
On the Tools menu, click Customize .
3. Right-click the toolbar button, point to Assign Hyperlink on the menu that appears, and then click Open .
Under Link to , click the source that you want to link to, and then select the options that you want.
4. In the Customize dialog box, click Close .
How to create a new toolbar
1. On the View menu, point to Toolbars , and then click Customize .
2. Click the Toolbars tab, and then click New .
3. In the Toolbar Name box, type a name for your new custom toolbar.
4. In the Make toolbar available to box, click the template or open document where you want to store the
toolbar.
5. Click OK .
The Customize dialog box appears.
6. Click the Commands tab. Click the category that you want to select your button from. Under Commands ,
drag the button that you want to the new toolbar.
7. Click Close .
How to delete a custom toolbar
1. On the View menu, point to Toolbars , and then click Customize .
2. Click the Toolbars tab.
3. Under Toolbars , click the custom toolbar that you want to delete, and then click Delete .
Note You cannot delete a built-in toolbar. When you select a built-in toolbar in the Toolbars list, the Delete
button is unavailable, and the Reset button becomes available. If you click the Reset button, the built-in
toolbar returns to its original default appearance.
How to move a toolbar
To move a toolbar from its docked position at the top of the Word window, point to the two vertical bars on the left
end of the toolbar. When the four-headed arrow appears, drag the toolbar to a new location.
To move a floating toolbar, click the title bar of the toolbar window, and then drag the toolbar to the new location.
How to store toolbar changes
When you create a custom toolbar or modify an existing toolbar, the changes are stored in the Normal template
(Normal.dot), in another active template, or in an open document. To select the location where you want to store the
changes, follow these steps:
1. On the View menu, point to Toolbars , and then click Customize .
2. In the Customize dialog box, click the Commands tab.
3. In the Save in list, click the template or document where you want to save your custom toolbar.
4. Click Close .
Note The Save in list displays templates and documents other than the Normal.dot template, only if those
templates are active or if those documents are open in Word. To activate another template, close the Customize
dialog box, click Templates and Add-Ins on the Tools menu, and then click Attach to attach your active
document to another template.

References
For additional information about toolbars, click the following article number to view the article in the Microsoft
Knowledge Base:
291484 Your toolbars are missing, your menu bar is missing, or your personalized settings are not retained when
you start Word 2002 or Word 2003
For more information about how to create and customize menus and toolbars, click Microsoft Word Help on the
Help menu, type toolbars in the Office Assistant or the Answer Wizard, and then click Search to view the topics
returned.
The paper size for a document in Word 2010 does not
match the paper size in the Printer Properties dialog
box
3/30/2020 • 2 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Symptoms
Consider the following scenario:
You have a computer that has Microsoft Word 2010 installed.
You create a new Word document.
On the File tab, you click Print .
You have the Paper size set to either Letter (for the English language) or A4 (for Japanese or other East Asian
languages).
Under the listed printer, you click Printer Proper ties .
In this scenario, the paper size is listed as A3 instead of Letter or A4 in the Printer Proper ties dialog box.
Note This issue occurs only for specific printer drivers.

Cause
This problem occurs because Word 2010 specifies an invalid value for the paper size when it communicates with
the printer driver. This problem does not occur for most printer drivers, because most printer drivers ignore this
invalid value when it is sent.

Workaround
To work around this problem, set the paper size to a size other than Letter or A4, and then set the paper size back
again. This updates the cached value for the paper size, and the correct value for the paper size is sent to the printer
driver.
Consider the following example:
A Word 2010 document that uses the A4 paper size is experiencing this problem. To work around this problem,
follow these steps:
1. On the File tab, click Print .
2. Change the Paper size from A4 to Legal .
3. Change the Paper size from Legal back to A4 .
4. Click Printer Proper ties . The paper size is now set to A4 .

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
You are prompted to save the changes to the global
template every time that you exit Word 2007 or Word
2010
3/30/2020 • 9 minutes to read • Edit Online

NOTE
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise . For more information about this change,
read this blog post.

Summary
This article contains workarounds for an issue in which you are always prompted to save the changes to the global
template, Normal.dotm, when you exit Microsoft Office Word 2007 or Word 2010. First, you can turn off the
Prompt before saving Normal template option. However, when you do this, Word will not prompt you when it
automatically saves the changes the global template. You may still have an issue. Second, you can remove any add-
ins or templates that may be changing the global template. Third, you can help protect the computer from macro
viruses that change the global template.

Symptoms
Every time that you exit Microsoft Office Word 2007 or Word 2010, you receive the following message:
"Changes have been made that affect the global template, Normal.dotm. Do you want to save those changes?"

Cause
This issue may occur if any one of the following conditions is true:
The Prompt before saving Normal template option is turned on.
An add-in or a macro that is changing the global template is installed on the computer. For example, this
issue may occur the Stamps.com Internet postage add-in is installed on the computer.
An add-in may add one or more of the following items to the computer:
A WLL file
A template
A COM add-in
An automatic macro
The computer is infected with a macro virus that changes the global template (Normal.dotm).

Workaround
To work around this issue, use one or more of the following workarounds.
Workaround 1: Turn off the "Prompt before saving Normal template" option
To work around this issue if the Prompt before saving Normal template option is turned on, follow these steps.
NOTE
If you turn off this option in Word, changes may still be made to the global template. However, you will not be prompted to
save these changes. We recommend that you perform the other workarounds that are mentioned later in this article.

1. In Word 2007, click the Microsoft Office Button , and then click Word Options .
In Word 2010, click the File button, and then click Options .
2. Click Advanced .
3. Under Save , click to clear the Prompt before saving Normal template check box.
4. Click OK to close the Word Options dialog box.
Workaround 2: Remove add-ins or macros that are changing the global template
To work around this issue if add-ins or macros that are changing the global template are installed on the computer,
use one of the following methods.
Method 1: Remove WLL add-ins and templates from the Word Startup folder and from the Office Startup folder
When you start Word, Word automatically loads templates and add-ins that are located in the Office Startup folder
and in the Word Startup folder. You may experience the issue that is described in the "Symptoms" section if conflicts
or problems occur with one of these items. To determine whether an item in a Startup folder is causing the issue,
temporarily empty the folder. To do this, follow these steps:
1. Exit all instances of Word. If you use Word as your e-mail editor in Microsoft Outlook, make sure that you
also exit Outlook.
2. On the desktop, double-click My Computer , and then open the Office Startup folder. By default, the Office
Startup folder is at the following location:
For Word 2007:
C:\Program Files\Microsoft Office\Office12\Startup
For Word 2010:
C:\Program Files\Microsoft Office\Office14\Startup
3. Drag each item from the Office Startup folder to the desktop. Or, create a folder on your desktop, and then
drag each item to this new folder.

NOTE
To create a new folder on the desktop, right-click a blank area on the desktop, point to New , and then click Folder .

4. Open the Word Startup folder. By default, the Word Startup folder is at the following location:
C:\Documents and Settings*user name*\Application Data\Microsoft\Word\Startup
5. Drag each item from the Word Startup folder to the desktop. Or, create a folder on your desktop, and then
drag each item to this new folder.
6. Start Word.
If you can no longer reproduce the issue after you removed multiple items from the Office Startup folder and from
the Word Startup folder, add the files back to the appropriate Startup folder one at a time to isolate the issue. Try to
reproduce the issue after you add each file to find the file that causes the issue.
Method 2: Remove COM add-ins
COM add-ins can be installed in any location. COM add-ins are installed by programs that interact with Word 2007.
To view the list of COM add-ins that are installed on the computer, follow these steps:
1. In Word 2007, click the Microsoft Office Button , and then click Word Options .
In Word 2010, click the File button, and then click Options .
2. Click Add-Ins .
3. Under Manage , click COM Add-ins , and then click Go .
The COM Add-Ins dialog box appears.
If add-ins are listed in the COM Add-Ins dialog box, temporarily turn off each add-in. To do this, click to clear the
check box for each COM add-in that is listed, and then click OK . When you restart Word, the COM add-ins that you
turned off are not loaded. If the issue is resolved after you turn off the COM add-ins, one of these COM add-ins is
causing this issue. To determine the add-in that is causing the issue, turn on the COM add-ins one at a time, and
then restart Word.
Method 3: Remove Word automatic macros
Automatic macros run when you start Word or when you perform a specific action in Word 2007. The following
table lists the Word automatic macros:

M A C RO STO RA GE LO C AT IO N A C T IO N

AutoExec In the Normal template or in a global Runs when you start Word 2007
add-in

AutoNew In a template Runs when a new document that is


based on the template is created

AutoOpen In a document or in a template Runs when a document that is based on


the template or that contains the macro
is opened

AutoClose In a document or in a template Runs when a document that is based on


the template or that contains the macro
is closed

AutoExit In the Normal template or in a global Runs when you exit Word 2007
add-in

To determine the automatic macros that you should remove, temporarily stop Word automatic macros from
running. To temporarily stop the AutoExec macro from running, click Star t , point to All Programs , hold the SHIFT
key, and then click Microsoft Word. If you are using Windows Vista or Windows 7 type Word from the start button,
hold down the SHIFT key, and then click Microsoft Word. To stop any one of the other macros that are listed in this
table, hold SHIFT when you perform the action that causes the macro to run.
To remove an automatic macro, follow these steps:
1. Start Word.
2. On the Developer tab, in the Code group, click Macros .
If the Developer tab does not appear in Word 2007, follow these steps:
a. Click the Microsoft Office Button , and then click Word Options .
b. Click Personalize .
c. Under Top options for working with Word , click to select the Show Developer tab in the Ribbon
check box.
d. Click OK to close the Word Options dialog box.
If the Developer tab does not appear in Word 2010, follow these steps:
a. In the upper-left corner of the screen, click the Filebutton.
b. In the lower-right area of the drop-down box, click Options.
c. In the Word Options page, click Customize Ribbonin the left menu.
d. In the Top options for working with Wordsection, click to select the Show Developer tab in the
Ribboncheck box, and then click OK.
3. In the Macros dialog box, remove any macro whose name starts with "Auto". To remove an automatic
macro, click the macro, and then click Delete .
Note An automatic macro may have been added by a Word add-in. To determine whether a template
contains an automatic macro, click each template in the Macros in box. When you do this, the macros that
are in the template are listed. If you determine that a template contains an automatic macro, you may want
to remove this template from your computer. If you remove a template that was added by a Word add-in,
the functionality of the add-in may be affected.
4. Click Cancel to close the Macros dialog box.
5. Exit Word.
If the issue is resolved after you restart Word, one of the automatic macros was causing the issue.]
Workaround 3: Help prevent a macro virus from infecting the computer
To work around this issue if the computer is infected with a macro virus, use one or more of the following methods.
Method 1: Install and update antivirus software
For a long-term strategy to help prevent macro viruses, install antivirus software that is designed specifically to
detect macro viruses.

NOTE
After you install an antivirus software program, you must keep it updated to make sure that new macro viruses are detected
and removed. For more information about how to update your antivirus software program, contact your antivirus software
vendor.

Method 2: Configure a macro setting in Word


Word includes the following macro settings to help reduce the chances that a macro virus will infect documents,
templates, or add-ins:
Disable all macros without notification
Disable all macros with notification
Note This setting is the default setting.
Disable all macros except digitally signed macros
Enable all macros (not recommended, potentially dangerous code can run)
To change the macro setting in Word, follow these steps:
1. In Word 2007, click Word Options from the Officebutton.
In Word 2010, click Options from the Filebutton.
2. Select Trust Center, and then click Trust Center Settings.
3. Click Macro Settings .
4. Under Macro Settings , click one of the following macro settings for documents that are not in a trusted
location:
Disable all macros without notification
Disable all macros with notification
Disable all macros except digitally signed macros
Enable all macros (not recommended, potentially dangerous code can run)
5. Click OK to close the Trust Center dialog box.
Method 3: Lock the global template
When you lock the global template and create a password, you can help reduce the chances that a macro virus will
gain unauthorized access to the computer.
To lock the global template, follow these steps:
1. On the Developer tab, in the Code group, click Visual Basic .
If the Developer tab does not appear in Word 2007, follow these steps:
a. Click the Microsoft Office Button , and then click Word Options .
b. Click Personalize .
c. Under Top options for working with Word , click to select the Show Developer tab in the Ribbon
check box.
d. Click OK to close the Word Options dialog box.
If the Developer tab does not appear in Word 2010, follow these steps:
a. Click the File button and then click Options .
b. Click Customize Ribbon .
c. Check Developer from the list on the right.
2. In Visual Basic Editor, click **This Document ** in the Project window.
Note If the Project window does not appear, click Project Explorer on the View menu.
3. On the Tools menu, click Project Proper ties .
4. Click the Protection tab, click to select the Lock project for viewing check box.
5. In the Password box, type a password. Then, type the same password in the Confirm password box.
6. Click OK to close the Project Proper ties dialog box.
7. On the File menu, click Close and return to Microsoft Word .
8. Exit Word.
When you receive the following message, click Yes :
"Changes have been made that affect the global template, Normal.dotm. Do you want to save those
changes?"

More Information
The third-party products that this article discusses are manufactured by companies that are independent of
Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these
products.

You might also like