Amerifax-Bob Posted October 5, 2007 Report Share Posted October 5, 2007 The way I run my macro now is by using ALT+F3 to search for a certain word. If the word does not exist (in this case the word is phone), the system stops or it crashes. It can not continue without interaction. This is what I am trying to do. Look for the word Phone, if it exists, continue on with the macro. If it is not there go further down to the phone logic I'm using. Example: If "Phone" exists, continue with rest of macro after this line. If NOT go down 10-15 lines to where the address starts. Is there a way to search for a name within a document with macro commands rather than using ALT+F3? Can an IF statement go to a particular line of code? Any help you can offer would be appreciated. I have read information on IF statements, I am just not quite understanding. Thanks, Bob Snow 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.