Jump to content
Macro Express Forums

Reverse File Read


Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...