tibolt1 Posted March 26, 2006 Report Share Posted March 26, 2006 Hi. I've a macro that searches through documents, selected pieces of texts and transfers the extracts to a main Document. The macro needs to run usually between 40 -60 times, (it varies), to get to the end of the particular document being processed. Yes they're long documents, like 100 pages. I've tried using a Repeat Until %T1% <> %T1% and a Repeat Start command which puts the macro into a loop. But how do I get the macro to stop dead when it gets to the bottom of the document being processed (because if it continues, it transfers blank entries which mess up the main document). There's a Break command in the Macro - to covers a particular eventuality - but it doesn't stop the macro running in the loop - nor do I want it to. How would you go about this? From reading other posts, ye're experts but I'm a bit of a newbie to this - it's an excellent program though - so you might explain it as if I were a 10 year old! Hope you can help. Thanks. T. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.