Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-30-2017, 02:20 AM
gerison gerison is offline open saved word document in external editor. Windows 10 open saved word document in external editor. Office 2010 64bit
Novice
open saved word document in external editor.
 
Join Date: Nov 2017
Posts: 8
gerison is on a distinguished road
Default open saved word document in external editor.


Hello! Recently this forum helped me to solve the problem to save a document, close it and open it in another editor. Part of the code was like this: strName = Replace(ActiveDocument.FullName, ".docx", ".txt") ActiveDocument.SaveAs2 FileName:=strName, FileFormat:=wdFormatText ActiveDocument.Close 0 RetVal = Shell("notepad.exe " & strName, 1) It works until there are blank spaces in the file name. Example: This is the regular namestructure of my files. "Ka,17-11-27,Brief lang an Lackner Josef.docx" This File was saved, but got an error message that the external editor cant't find the file. Wheras a file like: Ka,17-11-27,xxxxxxxxxxxxxxxxxxxxxxxx.docx is saved and opend in the editor. I was looking for restictions as to file names but couldn't found any. I'm wondering if blank sapces in filenames are forbidden somehow. Can one of you provide me with any help or an hint where I can find a solution. Thanks in advance. gerald
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
open saved word document in external editor. Creating a macro from a non-saved Word doc that duplicates the current open document and saves it mike0215 Word VBA 3 11-17-2017 01:40 PM
open saved word document in external editor. Cannot open saved Word document otherlunds Word 1 09-01-2014 05:41 AM
open saved word document in external editor. Formula to open external file with specific program (like open with) pemartins Excel 16 02-24-2014 11:39 PM
open saved word document in external editor. Run-time error '1004': Document not saved. The document may be open... doctor_who12 Excel Programming 1 01-22-2014 04:47 PM
Preventing word/excel from trying to open external template locations Perhill Office 0 03-02-2011 04:44 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:15 PM.


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