Word Macro Command No Longer Working in 2013

Posted on 2013-11-15
Medium Priority
Last Modified: 2013-11-18
When running a Word Macro, one of my people received "Run-Time error 4605:  This method or property is not available because this command is not available for reading" when running the following command:

Selection.InsertFile FileName:= _
        "N:\WORD\Files\NEW_LEASES\_FM_LeaseMstrs\LseWriterExport.tab", Range:="", _
        ConfirmConversions:=False, Link:=False, Attachment:=False

It works fine on other PCs and I checked her rights, etc., so it seems that this command possibly no longer functions in Word/Office 2013 (the rest of us have 2010 or 2007).  Any suggestions for a macro command that would work for both 20010 and 2013?  Thank you.
Question by:rvfowler2
LVL 15

Accepted Solution

unknown_routine earned 2000 total points
ID: 39651678
In  File/Options/General see if there is a check mark in the following box:
"Open e-mail attachments and other uneditable files in reading view"

If so Uncheck it.

Or Add this line to your code:
  ActiveWindow.View.ReadingLayout = False
LVL 77

Expert Comment

ID: 39651681
InsertFile works on my Word 2007 as well, but is the active document open in reading mode? New restrictions may have been introduced with 2013.

Author Closing Comment

ID: 39656790
This worked. thanks.

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question