Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change file extension

Status
Not open for further replies.

bcoates

Programmer
Feb 21, 2006
29
0
0
US
How do i change a file extension from file.tmp to file.wmf I know it is easy and i say thank you in advance.
 
A starting point:
Name "file.tmp" As "file.wmf"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Im a little confused by your answer let me be a little more specific, I get files from a tool that places them in a temp folder(c:\doc~1\...\...\file.tmp) that i cant control where it puts them. I need to change that file extension from .tmp to .wmf
 
I gave you the VBA instruction to rename a file, so I don't understand your confusion ...
 
What PHV was trying to tell you is:
Code:
[blue]Name[/blue] "c:\doc~1\...\...\file.tmp" [blue]As[/blue] "c:\doc~1\...\...\file.wmf"


Have fun.

---- Andy
 
Thanks, im using word to format and i noticed that the tool uses the mid$() function to change a file extension is this valid as well?
 
What is YOUR actual code and where are you stuck ?
 
No longer stuck the Name as works thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top