jhooie Posted September 25, 2006 Report Share Posted September 25, 2006 Is there a way to process a file loop starting with the last line in the file and moving toward the first line? Quote Link to comment Share on other sites More sharing options...
joe Posted September 26, 2006 Report Share Posted September 26, 2006 Yes. Quote Link to comment Share on other sites More sharing options...
joe Posted September 26, 2006 Report Share Posted September 26, 2006 Sorry ... I just couldn't resist that one-liner. First loop through the file and get a line count. Process all lines starting at 1. Set N1 to 0 Process text File Increment N1 End Process Now create a repeat loop stepping from that number down to 1. Inside this loop go directly to the current line number by setting the starting line to the current loop number and the number of lines to process to 1 Repeat until N1=0 Process text file (Go to the current N1 line) <Macro processing commands here> End Process End Repeat 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.