Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 07-15-2024, 05:09 PM
Guessed's Avatar
Guessed Guessed is offline The command "ActiveDocument.AttachedTemplate" causes macro to skip to the end Windows 10 The command "ActiveDocument.AttachedTemplate" causes macro to skip to the end Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I've encountered your 'stepping through code' issue when debugging lots of different macros and haven't gone looking for a reason why. As you pointed out you can add breakpoints so I've never been particularly bothered by the runaway train.

In the cases I've seen this happen, the runaway hasn't been related to changing attached templates so there is more than one trigger for this behaviour.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Tags
attachedtemplate, debugging



Similar Threads
Thread Thread Starter Forum Replies Last Post
In a macro to clean up language, what functions do "ClearFormatting" and "Replacement" serve? ctviggen Word VBA 2 12-04-2023 10:06 AM
Modifying a Macro that Splits Word Docs by Heading to Skip Some Headings ("Bibliographies") learnerlamp Word VBA 0 10-18-2023 01:20 PM
Excel 2003: VBA "Function" causes "#VALUE!" errors after running "insert/delete row" custom macro Matt C Excel Programming 2 01-08-2022 06:03 AM
The command "ActiveDocument.AttachedTemplate" causes macro to skip to the end How do you use the "seq" command to start a list at "2" (not "1")? techwriter3k Word 4 05-22-2020 07:59 AM
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas jocke321 Word VBA 2 12-10-2014 11:27 AM

Other Forums: Access Forums

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