Solved

Word Macro Command No Longer Working in 2013

Posted on 2013-11-15
3
3,528 Views
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.
0
Comment
Question by:rvfowler2
3 Comments
 
LVL 15

Accepted Solution

by:
unknown_routine earned 500 total points
Comment Utility
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
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
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
 
LVL 2

Author Closing Comment

by:rvfowler2
Comment Utility
This worked. thanks.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Nice table. Huge mess. Maybe this was something you created way back before you figured out tabs or a document you received from someone else. Either way, using the spacebar to separate the columns resulted in a mess. Trying to convert text to t…
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…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now