Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-29-2020, 07:55 PM
eduzs eduzs is offline Batch Editing Word documents Windows 10 Batch Editing Word documents Office 2019
Expert
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

If your code is not running as expected, it is not recommended to use "On Error Resume Next", cause this will prevent you from find the error source.
__________________
Backup your original file before doing any modification.
Reply With Quote
  #2  
Old 03-01-2020, 12:16 AM
macropod's Avatar
macropod macropod is online now Batch Editing Word documents Windows 7 64bit Batch Editing Word documents Office 2010 32bit
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

Quote:
Originally Posted by eduzs View Post
If your code is not running as expected, it is not recommended to use "On Error Resume Next", cause this will prevent you from find the error source.
That isn't going to help it run correctly. The only issue with it's use in the OP's code is that it isn't followed by an appropriately-located 'On Error Goto 0' at a point from which errors should no longer be skipped over. If the OP was simply to delete 'On Error Resume Next', that would likely cause the code to stop exactly where one wouldn't want it to.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-02-2020, 06:17 AM
sakhtar6 sakhtar6 is offline Batch Editing Word documents Mac OS X Batch Editing Word documents Office 2011 for Mac
Novice
Batch Editing Word documents
 
Join Date: Feb 2020
Posts: 4
sakhtar6 is on a distinguished road
Default

What changes to the code would you advise?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Editing Word documents Batch applying a macro to remove Header and Footer using Batch Auto Addin Edszx Word VBA 2 05-27-2019 11:16 PM
Editing Word documents through VBA in SharePoint algecan Word VBA 0 09-26-2018 05:23 AM
batch extract all tables in multiple word documents ZaidaBa Word Tables 3 05-08-2017 10:22 PM
Emailed documents locked for editing by someone else jibbs Office 1 09-30-2015 05:12 AM
Batch Editing Word documents Batch create Word documents cdfj Word VBA 6 11-07-2012 01:03 PM

Other Forums: Access Forums

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