Jump to content
Macro Express Forums

Using The Reistry To Rename A File


patgenn123
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

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