Jump to content
Macro Express Forums

tibolt1

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by tibolt1

  1. Yippee! Yippee! Yippee! My macro works. I'm jumping in my chair. Thanks Kevin. Thanks Paul. Thanks Cyberchief T.
  2. Kevin, Thanks very much for your reply. My macro works its way down through the document, doing its stuff. I want the macro to stop running when it gets to the end of the document. I could manually add a made up word, e.g MacroStop_Here, at the end of each document that I process, if that's what you mean. I tried this but it doesn't work. I know I need to put something else in but what? Macro Playback Speed: Normal Speed Variable Set String %T1% "" Repeat Until %T1% = "STOP_NOW" Repeat Start (Repeat 900 times) // My macro commands go here Variable Set String %T2% "" Variable Set String %T1% "STOP_NOW" End If Repeat End Repeat End I mentioned that I'm new to this but I've figured out many things - but not variables, as you may guess. I've other macros up and running fine. The programs potential is amazing. Thanks again T
  3. 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.
  4. Thanks, Kevin, for the prompt reply. regards, Tom
  5. I’m new to Macro Express but am finding it an amazing program. Two quick questions – probably very basic to you. (I’ve checked the knowledge base and searched the forum but haven’t found an answer) a) How to I get a macro to jump back to an earlier part of the macro and How do I get it to stop processing a variable length file? Let me explain. I have a macro that takes a name from a list in document A and searches document B for a match. If it finds a match it enters a piece of text after the name (in document , goes back to document A, and deletes the name there. It then selects the next name on the list and runs the routine again. I use ‘Start Repeat’ and ‘End Repeat’ to run the routine 30 times. If the macro doesn’t find a match, I want it to go back to document A and not delete the name but select the next name (so that when the process finishes, document A will contain a list of unmatched cases.) Where there’s no match, I can get the macro to go back to document A and move down to the next name (using an If statement), but how do I get the macro to start running again from the start ( actually from line 3). To put it another way how do I put a flag or label at line 3, so that when the macro finishes processing the IF statement it pops back up to the flag/label and continues executing the macro from there. 2nd issue – document B may have a different number of names in it , every time the macro is run. How do I get a macro to stop running when it comes to the end of the list (or a document for that matter)? I hope you don't mention variables, as I haven't really got my head around them yet. Thanks in advance for your reply. I appreciate it. T.
×
×
  • Create New...