Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-14-2015, 03:40 AM
raymondroe raymondroe is offline Batch instruction works or ".doc" in folder, but not ".docx" Windows XP Batch instruction works or ".doc" in folder, but not ".docx" Office 2007
Novice
Batch instruction works or ".doc" in folder, but not ".docx"
 
Join Date: Feb 2015
Location: West Sussex, UK
Posts: 3
raymondroe is on a distinguished road
Default

Wow, I am grateful - and think I can follow what you've done. I'll digest it today!

A bug turns up immediately following your improvement. The editor highlights:

Code:
Set wdDoc = Documents.Open(FileName:=strPath & "\" & strName, _ 
ReadOnly:=False, Format:=wdOpenFormatAuto)
I found the # button

Should 'format' (in the second line) be
ReadOnly:=False, Format:=wdDoc)?

Thanks again.

Ray
Reply With Quote
 

Tags
.doc, .docx, batch



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas jocke321 Word VBA 2 12-10-2014 11:27 AM
When composing an e-mail how do I add "Page Layout" and "View" tabs to the ribbon CensorTilSin Outlook 1 12-11-2013 12:05 PM
How to edit the "Format" and the "show level" of an EXISTING table of content? Jamal NUMAN Word 2 08-14-2011 10:46 AM
Batch instruction works or ".doc" in folder, but not ".docx" How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
"Microsoft Excel Application" missing in the "Component Services" on win08 sword.fish Excel 0 02-26-2010 02:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft