Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 11-23-2022, 02:26 PM
macropod's Avatar
macropod macropod is offline Loop through all .doc documents in all folders and subfolder, convert, save as to a different folder Windows 10 Loop through all .doc documents in all folders and subfolder, convert, save as to a different folder Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try the PC code in https://www.msofficeforums.com/word-...-doc-docx.html. All you need do with that code is change:
FileName:=.FullName
to:
FileName:=strFolder & "\Cannot Upload\Converted Files\" & .Name
assuming, of course, your own code's reference to 'strFolder & "\Cannot Upload' is correct and that the 'Converted Files' folder exists there.

You may want to delete/comment-out:
'Delete the old file
Kill strFldr & "" & strFil
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop through all .doc documents in all folders and subfolder, convert, save as to a different folder Loop Through all documents in a folder ballpoint Word VBA 10 08-15-2022 05:24 PM
Loop through all .doc documents in all folders and subfolder, convert, save as to a different folder loop through all documents in a folder, search and replace text, save document ONLY IF CHANGE MADE shpkmom Word VBA 1 08-15-2022 05:16 PM
Loop through all .doc documents in all folders and subfolder, convert, save as to a different folder Combine 2 word documents in subfolder and save on same location D1985 Word VBA 5 03-29-2022 01:39 PM
Office 2010 Can't Open Or Save Documents in My Documents Folder trippb Office 1 07-12-2013 07:29 AM
Add folder and subfolder to Favorite ying06 Outlook 0 03-30-2012 10:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:39 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