Lars_Sandberg Posted June 11, 2005 Report Share Posted June 11, 2005 Hi, for a macro I have made, I quite often need to change, which txt-file (with Tab Delimited Text) I have to use for the current task. So when I start the macro, I would like a dialog-box that ask me to select the txt file for processing during "ASCII File Begin Process" as below. Now I have to edit the code directly every time. I searched after such a function, but didn't find it. ASCII File Begin Process: "selected-file" (Tab Delimited Text ) If Variable %T1% = variable %T2% Break End If ASCII File End Process regards Lars Quote Link to comment Share on other sites More sharing options...
randallc Posted June 11, 2005 Report Share Posted June 11, 2005 Hi, Try "Variable set String" Option "from file name (Prompt) Best, Randall Quote Link to comment Share on other sites More sharing options...
Cory Posted June 14, 2005 Report Share Posted June 14, 2005 Randy’s right on but I would like to add something. If you use the same file over sometimes write the file name variable to a registry key. Then the next time add an "If Message" to display the last used file name to give you the option of using the same file as you did last time so you don’t have to browse every time. If there are several files you frequently use try the Multiple Choice Dialog box as a kind of MRUD (Most Recently Used Documents). It works real slick. If you’re really nerdy you can even set up a scoring system but that adds some complexity. Quote Link to comment Share on other sites More sharing options...
Lars_Sandberg Posted June 18, 2005 Author Report Share Posted June 18, 2005 Hi, thanks for the tips :-) regards Lars 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.