Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Rename filename.csv

Hi,

I am wanting to use some OpenText code to open a file but the file is
currently named with an CSV extension. Whilst I could go to File Manager
and rename this with a TXT extension, I'd like to do this from within Excel
or create a copy and name it with a TXT extension. Is this possible?

Thanks, Rob


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Rename filename.csv

Look at VBA's help for FileCopy or Name.



Rob wrote:

Hi,

I am wanting to use some OpenText code to open a file but the file is
currently named with an CSV extension. Whilst I could go to File Manager
and rename this with a TXT extension, I'd like to do this from within Excel
or create a copy and name it with a TXT extension. Is this possible?

Thanks, Rob


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Rename filename.csv

Thanks Dave, easy when you know what to look up! Regards, Rob


"Dave Peterson" wrote in message
...
Look at VBA's help for FileCopy or Name.



Rob wrote:

Hi,

I am wanting to use some OpenText code to open a file but the file is
currently named with an CSV extension. Whilst I could go to File Manager
and rename this with a TXT extension, I'd like to do this from within
Excel
or create a copy and name it with a TXT extension. Is this possible?

Thanks, Rob


--

Dave Peterson



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i rename a sheet if the rename tab is inactive? Nelson Excel Worksheet Functions 1 March 3rd 10 10:28 AM
SaveAs Filename:=filename, FileFormat:=xlCSV Teddy[_3_] Excel Programming 2 May 29th 07 02:34 PM
Converting a Variable Filename to a Constant Filename Magnivy Excel Programming 2 August 15th 06 06:13 PM
set filename to <filename-date on open bob engler Excel Worksheet Functions 2 July 13th 06 05:11 AM
How do i auto rename a worksheet to be the same filename as save f Catherine Excel Worksheet Functions 1 December 1st 04 10:17 AM


All times are GMT +1. The time now is 09:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"