Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4898
  • Last Modified:

Word Macro Command No Longer Working in 2013

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.
0
rvfowler2
Asked:
rvfowler2
1 Solution
 
unknown_routineCommented:
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
0
 
GrahamSkanCommented:
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.
0
 
rvfowler2Author Commented:
This worked. thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now