As a newbie, I'm hoping someone can suggest the macro code to do the following.
With an active file is open (so the path is already known) , I would like to run a macro that:
1) Opens a file in a subdirectory (the subdirectory will always exist).
2) Prompts the user to type a text variable. (Using Getstring)
3) Writes that variable into the file.
4) Saves the file into the subdirectory with a specific name (i.e. uname.ue) .
I cannot seem to get the file to write to the nominated subdirectory, - it always defaults to the location of my UE macros.
Now for the second bit I don't understand at all. If the file in the subdirectory already exists, how can I get the variable stored in the file (from step 3) to appear in the Getstring variable as the default the next time? If the variable value needs to be changed, then overtype it - if not, accept the default offered.
Thanks
With an active file is open (so the path is already known) , I would like to run a macro that:
1) Opens a file in a subdirectory (the subdirectory will always exist).
2) Prompts the user to type a text variable. (Using Getstring)
3) Writes that variable into the file.
4) Saves the file into the subdirectory with a specific name (i.e. uname.ue) .
I cannot seem to get the file to write to the nominated subdirectory, - it always defaults to the location of my UE macros.
Now for the second bit I don't understand at all. If the file in the subdirectory already exists, how can I get the variable stored in the file (from step 3) to appear in the Getstring variable as the default the next time? If the variable value needs to be changed, then overtype it - if not, accept the default offered.
Thanks