You forgot the quotes.
Name "C:\MyFolder\MyFileName.XXX" As "C:\MyFolder\MyFileName.txt"
or
Dim strFileOld As String
Dim strFileNew As String
strFileOld = "C:\MyFolder\MyFileName.XXX"
strFileNew = "C:\MyFolder\MyFileName.txt"
Name strFileOld As strFileNew
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)
"PC Datasheet" <sp**@nospam.spam> wrote in message
news:hh***************@newsread3.news.atl.earthlin k.net...
Name C:\MyFolder\MyFileName.XXX As C:\MyFolder\MyFileName.txt
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Colleyville Alan" <ae***********@nospam.comcast.net> wrote in message
news:t%CQb.144814$na.232923@attbi_s04... I found the transfertext function and found that it bombs if I do not
use the extension "txt". But the application I am writing the info for has
a different file extenstion. What VBA command will rename the file once
it is written?
Thanks