Jump to content
Macro Express Forums

Selecting A Txt File, During Running Macro?


Lars_Sandberg
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

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.

Guest
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.

Loading...
 Share

×
×
  • Create New...