File in use word document

  • Remove From My Forums
  • Question

  • Every time I searched for this error I got a lot of hits but nothing quite what I asked so apologies if this is answered somewhere I can’t find.

    Ok, I create new or have an older word document. I save it or I copy it to my OneDrive the next time I open it from the same computer and make some edits I cannot save it. I get FILE IN USE  This file is locked for editing by ‘my name’  and never
    becomes available to edit. I have to delete it and save as with a different name. This is getting very frustrating for several files since I use them on my home, laptop and mobile devices.

    Is there a setting that can unlock this or fix this?  I am logged in as ‘my name’ on all devices it knows who I am but says I have it locked, makes no sense to me and I have tried searching and searching for a solution. Please help!

    Thanks,

    Bruce

    I forgot to add the file is created on Windows 7 using Office 2013 which is on both computers, the desktop at home and my laptop. It has the docx extension.

    • Edited by

      Sunday, October 5, 2014 3:24 PM
      Forgot some information


Download Article


Download Article

This wikiHow teaches you how to insert the contents of and/or a link to another document into a Microsoft Word document on Windows or Mac.[1]

Steps

  1. Image titled Insert a File Into a Word Document Step 1

    1

    Open a Microsoft Word document. To do so, double-click the blue app that contains or is shaped like a W. Then click File at the top of the screen and Open….

    • To create a new document, click New in the file menu.
  2. Image titled Insert a File Into a Word Document Step 2

    2

    Click the place in the document where you want to insert the file.

    Advertisement

  3. Image titled Insert a File Into a Word Document Step 3

    3

    Click the Insert tab. It’s at the top of the window.

  4. Image titled Insert a File Into a Word Document Step 4

    4

    Click the

    Android 7 Dropdown

    next to Object. It’s in the Text group on the right side of the tool bar at the top of the window.

    • On Mac, click Text to expand the group.
  5. Image titled Insert a File Into a Word Document Step 5

    5

    Choose the type of file to insert.

    • Click Object… to insert a PDF, image, or another type of non-text file into your Word document. Then click From File… on the left side of the dialog box that opens.
      • If you prefer to insert a link to and/or icon of the file, rather than the entire document, click Options on the left side of the dialog box and check Link to File and/or Display as Icon.
    • Click Text from File… to insert the text of another Word or text document into the current Word document.
  6. Image titled Insert a File Into a Word Document Step 6

    6

    Select the file to insert.

  7. Image titled Insert a File Into a Word Document Step 7

    7

    Click OK. The file contents, a linked icon, or the text of the file will be inserted into your Word document.

  8. Advertisement

Add New Question

  • Question

    I like that I can copy the file and paste to a blank page within another Word file. Is there a way to paste a document that’s more than one page?

    Community Answer

    Open Microsoft Word. On the top left menu choose Insert. Choose File. Browse through your file system to the file you want. Click on the file name. Choose Insert. For an existing document, place the cursor at the point you want to insert the document, then follow the above instructions. You can also choose a range of pages substituting the final Insert with Range.

  • Question

    How do I insert a file into a Word document?

    Community Answer

    Read and follow the instructions listed in the article above.

  • Question

    I need to email a document that is not already in a file. What do I do?

    Community Answer

    Okay, where is the document? All documents are files. If you don’t like the current format, save it to another format, or copy the material into another file in a standard format. If desperate, take a screenshot by pressing the PrintScreen key and pasting it into a Word document. Save it and you’ll have a file. If you mean the document is a physical piece of paper and not on your computer, you can either scan it or just take a picture of it with your phone.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Video

Thanks for submitting a tip for review!

About This Article

Article SummaryX

1. Open a Word document.
2. Click a place in the document.
3. Click Insert.
4. Click the Object drop-down.
5. Choose the type of file to insert.
6. Select a file to insert.
7. Click OK.

Did this summary help you?

Thanks to all authors for creating a page that has been read 455,641 times.

Is this article up to date?

I have a WinForms application where I am using Word Automation to build documents via a template, and then save them to the database. After the document is created, I retrieve the document from the database, write it to the file system in a temp directory, and then open the document using the Word Interop services.

There is a list of documents loaded and the user can open only 1 instance of each document, but can open multiple different documents simultaneously. I don’t have any problems with opening, saving, and closing when they open 1 document, however, when they open multiple documents simultaneously, I get the following error when closing any of my instances of Word:

The file is in use by another application or user. (C:...TemplatesNormal.dotm) 
This error is commonly encountered when a read lock is set on the file that you are attempting to open.

I am using the following code to open the document and handle the BeforeDocumentClosed event:

public void OpenDocument(string filePath, Protocol protocol, string docTitle, byte[] document)
{
    _protocol = protocol;
    documentTitle = docTitle;
    _path = filePath;

    if (!_wordDocuments.ContainsKey(_path))
    {
        FileUtility.WriteToFileSystem(filePath, document);

        Word.Application wordApplication = new Word.Application();
        wordApplication.DocumentBeforeClose += WordApplicationDocumentBeforeClose;

        wordApplication.Documents.Open(_path);

        _wordDocuments.Add(_path, wordApplication);
    }
    _wordApplication = _wordDocuments[_path];
    _currentWordDocument = _wordApplication.ActiveDocument;

    ShowWordApplication();
}

public void ShowWordApplication()
{
    if (_wordApplication != null)
    {
        _wordApplication.Visible = true;
        _wordApplication.Activate();
        _wordApplication.ActiveWindow.SetFocus();
    }
}

private void WordApplicationDocumentBeforeClose(Document doc, ref bool cancel)
{
    if (!_currentWordDocument.Saved)
    {
        DialogResult dr = MessageHandler.ShowConfirmationYnc(String.Format(Strings.DocumentNotSavedMsg, _documentTitle), Strings.DocumentNotSavedCaption);

        switch (dr)
        {
            case DialogResult.Yes:
                SaveDocument(_path);
                break;
            case DialogResult.Cancel:
                cancel = true;
                return;
        }
    }

    try
    {
        if (_currentWordDocument != null)
            _currentWordDocument.Close();
    }
    finally
    {
        Cleanup();
    }
}

public void Cleanup()
{
    if (_currentWordDocument != null)
        while(Marshal.ReleaseComObject(_currentWordDocument) > 0);

    if (_wordApplication != null)
    {
        _wordApplication.Quit();
        while (Marshal.ReleaseComObject(_wordApplication) > 0);
        _wordDocuments.Remove(_path);
    }
}

Does anyone see anything wrong that I am doing to allow opening of multiple documents at the same time? I am fairly new to Word Automation and the Word Interop services, so any advice is appreciated. Thanks.

Microsoft Word logo on a gray background

If the content of another Microsoft Word document is relevant to the content in a Word doc you’re currently working on, you can embed or migrate the text of that document into your current document. Here’s how.

First, open the Word document that you would like to add the contents of, or embed, another Word document to.

RELATED: How to Insert a PDF into Microsoft Word

Next, head over to the “Text” group of the “Insert” tab and click the down arrow next to the “Object” option.

Object option in Text group

A drop-down menu will appear. There are two options to choose from here: “Object” and “Text From File.”

  • Object: Embeds an object such as a Word document or Excel chart
  • Text From File: Inserts the text from another file into your Word document

The “Text From File” option is essentially a quicker way to copy and paste the content of another file into this one.

Try it out by clicking the “Text From File” option in the drop-down menu.

Text from file option

File Explorer (Finder on Mac) will open. Find the file you would like to copy the text from, select it, then click “Insert.”

Select file to copy text from

The contents of that Word doc will now appear in the current Word document. This works well if there isn’t a lot of content in the other Word document, but if there is, embedding it may be a better option.

Back at the “Object” drop-down menu (Insert > Text group > Object), click the “Object” option.

Object option

The “Object” window will appear. Select the “Create From File” tab and then click “Browse.” The “Create From File” option will appear as a button in the bottom-left corner of the window on Mac.

Create from file tab and browse option

File Explorer (Finder on Mac) will appear. Find the file you want to embed, select it, then click “Insert.”

Select and open file

The file path of the selected file will now appear in the text box next to “Browse.” Now, you need to decide how you want to insert the object. You have two options:

  • Link to File: Inserts the contents of the selected file into your Word document and creates a link back to the source file. Changes made to the source file will be reflected in your document. Selecting “Link to File” by itself will insert the content of the other file inside a text box.
  • Display as Icon: Inserts an icon to show the reader that there is an embedded object. This is ideal when saving space is imperative.

We’ll check both options in this example.

The file will now be embedded in your Word document. Double-clicking the icon will open the second Word file.

Embedded Word document

One caveat with this method is moving the source file would break the embedded object’s link. For this reason, Microsoft prevents you from being able to move the source file to a different location. If you try, you’ll receive this message:

File in use message

If you need to move the source file to another location, you’ll need to remove the embedded link, move the source file, and then re-embed the file following the steps in this article.

READ NEXT

  • › How to Use Outline View in Microsoft Word
  • › Mozilla Wants Your Feature Suggestions for Thunderbird
  • › BLUETTI Slashed Hundreds off Its Best Power Stations for Easter Sale
  • › Google Chrome Is Getting Faster
  • › How to Adjust and Change Discord Fonts
  • › Expand Your Tech Career Skills With Courses From Udemy
  • › The New NVIDIA GeForce RTX 4070 Is Like an RTX 3080 for $599

How-To Geek is where you turn when you want experts to explain technology. Since we launched in 2006, our articles have been read billions of times. Want to know more?

What to Know

  • A DOCX file is a Microsoft Word Open XML Format Document file.
  • Open with Word, Word Online, Google Docs, or some other word processor.
  • Convert one to PDF, DOC, JPG, etc. with those same programs or a converter like FileZigZag.

This article explains more about DOCX files, like how to open one or convert it to a format that’s compatible with other software.

What Is DOCX?

A file with the DOCX file extension is a Microsoft Word Open XML Format Document file.

DOCX files are used for everything from resumes and cover letters to reports, flyers, documentation, invitations, newsletters, and more. These files usually contain text but can also include objects, styles, rich formatting, and images.

Microsoft started using DOCX files in Microsoft Word beginning in Word 2007, while earlier versions of Word use the DOC file extension.

DOCX files are smaller and easier to support than DOC files because the format is XML-based and all the content is stored as separate files, and ultimately compacted in a single, ZIP-compressed file.

Microsoft Word uses the DOCM format, too, but there are other similar file extensions that don’t have anything to do with these Microsoft formats, like DDOC and ADOC.

How to Open a DOCX File

Microsoft Word (version 2007 and above) is the primary software program used to open and edit DOCX files. If you have an earlier version of Microsoft Word, you can download the free Microsoft Office Compatibility Pack to open, edit, and save DOCX files in your older version of MS Word.

Actually, you don’t even need to open a DOCX file with Word because Microsoft has a free Word Viewer program that lets you open Word documents like DOCX files without needing to have MS Office installed. 

What’s more, you don’t even need any Microsoft Office/365-related program on your computer to open this type of file because there are several completely free word processor programs that open and edit DOCX files. WPS, OpenOffice Writer, and ONLYOFFICE are some that we recommending on a regular basis.

The free Google Docs tool is an online word processor that can also open/edit DOCX files and, being a web-based tool, doesn’t require any software downloads. This also means, of course, that any DOCX files you want to use with Google Docs must be uploaded to the tool before they can be viewed and edited.

Microsoft Word Online is another way to view and edit DOCX files online. That service is from Microsoft, so it looks a bit like the desktop version of Microsoft Word, but it’s completely free.

Google also has a free Chrome extension that lets you view and edit DOCX files right inside your browser. It supports dragging local DOCX files into the Chrome browser as well as opening DOCX files directly from the internet without having to download them first.

The now-defunct Microsoft Works opens DOCX files, too. While not free, Corel WordPerfect Office is another option, which you can pick up at Amazon.

How to Convert a DOCX File

Most people are interested in converting a DOCX file to PDF or DOC, but the programs and services below support a number of additional file formats as well.

The quickest, easiest, and most effective way to convert a DOCX file is to just open it in one of the word processor programs mentioned above and then save it to your computer as the file format you’d like it to be in. Most applications do this through the File > Save As menu, or something similar.

If that doesn’t seem to work for you, you could use a dedicated converter from our list of free file converter software programs and online services, like Zamzar or FileZigZag. These are great examples of online DOCX converters that can save the file to not only document formats like DOC, PDF, ODT, and TXT but also eBook formats and image formats like MOBI, LIT, JPG, and PNG.

To convert your DOCX file to the Google Docs format to edit the file there, all you have to do is upload it to your account. This can be done from Google Drive’s New > File upload menu or directly from Google Docs via the file picker icon.

Calibre is a very popular free program that converts DOCX to eBook formats, too, like EPUB, MOBI, AZW3, PDB, PDF, and several others. We recommend reading their instructions on converting Word documents for some help making an eBook from your DOCX file.

FAQ

  • How do I open a DOCX file on Android?

    If you have a Microsoft 365 subscription, download the Microsoft Word app from Google Play. Select the DOCX file on your device and choose to open it in the Word app. If you don’t have the Word app, you can open and edit DOCX files in Google Docs on your smartphone by first uploading them to your drive by selecting the plus (+) sign > Upload.

  • How can I open DOCX files on a Mac?

    A straightforward method is to use the Pages app, which comes built-in on most Macs. If you don’t have it, you can download the Pages app for free from the App Store. Right-click the DOCX document and select Open With > Pages. To convert it to a different file format such as PDF or Word, select File > Export To > file format.

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Понравилась статья? Поделить с друзьями:
  • File formats supported by excel
  • File formats for excel
  • File formats excel can open
  • File format of word documents
  • File format in excel vba