maththetraveller
Technical User
Hi! What i'm trying to do is to track a specific data in a simple .txt file everytime a user clicks on a specific macro and performs the action. What i can't figure out is how to tell the macro to go to the last line of the file before it prints the data. My code looks like this:
Reason = XREASON & XLETTERSENT
Open "C:\tempdata\Tracking.txt" For Output As #1
Print #1, Reason
Close
Reason = XREASON & XLETTERSENT
Open "C:\tempdata\Tracking.txt" For Output As #1
Print #1, Reason
Close