Tree Posted August 30, 2018 Report Share Posted August 30, 2018 I am getting the following syntax errors and it seems to prevent the ASCII file process from working. I have deleted and recreated both the Process and Repeat Commands. I have also copied everything to a new macro with out any. I have carefully checked and make sure everything is accounted for Syntax errors are normally easy to fix. It seem like the Start and End are not seeing each other. Does anyone have any Idea why this is happening or a fix? Quote Link to comment Share on other sites More sharing options...
Cory Posted August 30, 2018 Report Share Posted August 30, 2018 It's nearly impossible without seeing all of your code. You have a loop or condition out of order someplace. Bear in mind that the line number it cites is often not the one that is out of whack. I find in cases like this about 50% of the time a line of code not even in the errors is the culprit. If you don't want to share your code then I recommend starting a new macro. Copy over only the loops and conditions with dummy code to track your progress. Work it out there to find your error. Also I will sometimes print my code and with a pencil write brackets tho the left of all the conditions. A short horizontal line out from each loop or condition command. Elses, ends, all of them. Then connect each set with a vertical. No lines should cross and all should have terminating commands. 1 Quote Link to comment Share on other sites More sharing options...
Tree Posted August 31, 2018 Author Report Share Posted August 31, 2018 Thanks Cory! I was able to solve the issue by moving some IF Variable bits out of the Repeat that resolved all of the errors. Quote Link to comment Share on other sites More sharing options...
Cory Posted November 6, 2018 Report Share Posted November 6, 2018 Sometimes I will copy a macro into a temporary macro . Then I will delete all of the code except for anything that is conditional or looping. That often helps me see where the problems lie. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.