patgenn123 Posted May 28, 2007 Report Share Posted May 28, 2007 Hi Everyone, I was wondering if there was a way of auto renaming a file. I'll give an example. Suppose that I open up a brand new Word document. At the top, the title bar says "Document 1-Microsoft Word". I would like Macro Express to ask me whether or not to rename the file. Of course, I would like a Macro to recognize the title bar. If yes, pull some information elsewhere to name it, if no, stop the Macro all together. Can this all be done when the Word Document is open and not named yet? Where in the registry can this be done? I would assume this is the only way to do this or is there another way? Pat Quote Link to comment Share on other sites More sharing options...
Cory Posted May 29, 2007 Report Share Posted May 29, 2007 Why would you want to use the registry? Just set a text var to the window title and parse out the file name. You could look for patterens like "Document X" to see if it had been saved yet. Quote Link to comment Share on other sites More sharing options...
patgenn123 Posted May 29, 2007 Author Report Share Posted May 29, 2007 Cory, That's why I asked . Remember, I don't have any formal training with the computer. I am very grateful for your responses. I will try to do what you said. If I have any questions, I would appreciate your help! Thank You! Pat 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.