PC Review


Reply
Thread Tools Rate Thread

Change file name from folder using VBA

 
 
Ratheesh
Guest
Posts: n/a
 
      18th Nov 2009
Hi All -

Please, can anyone help to write a coding for changing the filenames
(all format) from a folder.
i.e,
I am having 2 files in C:\

C:\test.xls
C:\test1.pdf

Can we change these file names using VBA (Excel) as -

C:\changed.xls
C:\changed1.pdf

Thanks a lot in advance.
Ratheesh
 
Reply With Quote
 
 
 
 
JP
Guest
Posts: n/a
 
      18th Nov 2009
I did a search for "vba rename file" and got several promising hits.

--JP

On Nov 18, 10:17*am, Ratheesh <ratheesh.ramachandh...@gmail.com>
wrote:
> Hi All -
>
> Please, can anyone help to write a coding for changing the filenames
> (all format) from a folder.
> i.e,
> I am having 2 files in C:\
>
> C:\test.xls
> C:\test1.pdf
>
> Can we change these file names using VBA (Excel) as -
>
> C:\changed.xls
> C:\changed1.pdf
>
> Thanks a lot in advance.
> Ratheesh


 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      18th Nov 2009
Some combination using DIR to find the filename and NAME to change the name.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Ratheesh" <(E-Mail Removed)> wrote in message
news:f757cfd9-e44e-4fb3-b018-(E-Mail Removed)...
> Hi All -
>
> Please, can anyone help to write a coding for changing the filenames
> (all format) from a folder.
> i.e,
> I am having 2 files in C:\
>
> C:\test.xls
> C:\test1.pdf
>
> Can we change these file names using VBA (Excel) as -
>
> C:\changed.xls
> C:\changed1.pdf
>
> Thanks a lot in advance.
> Ratheesh


 
Reply With Quote
 
Ratheesh
Guest
Posts: n/a
 
      18th Nov 2009
On Nov 18, 8:27*pm, JP <jp2...@earthlink.net> wrote:
> I did a search for "vba rename file" and got several promising hits.
>
> --JP
>
> On Nov 18, 10:17*am, Ratheesh <ratheesh.ramachandh...@gmail.com>
> wrote:
>
>
>
> > Hi All -

>
> > Please, can anyone help to write a coding for changing the filenames
> > (all format) from a folder.
> > i.e,
> > I am having 2 files in C:\

>
> > C:\test.xls
> > C:\test1.pdf

>
> > Can we change these file names using VBA (Excel) as -

>
> > C:\changed.xls
> > C:\changed1.pdf

>
> > Thanks a lot in advance.
> > Ratheesh- Hide quoted text -

>
> - Show quoted text -


Thanks, I had not searched that before in this group...
I know how to take the file names from a folder, but ididnt know how
to rename it....
one more doubt, is there any issue while executing codes in citrix...
i am not getting the proper results while I am running this in my
citrix environment...
Thank You.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
change permission on all files inside a folder or hundreds of file inside a folder Anthony B Windows Vista Security 2 29th Dec 2007 12:08 AM
Tools > Folder Option > Change File Type for NONE(FOLDER) =?Utf-8?B?QnJpamVzaCBTaGFo?= Windows XP General 5 21st Nov 2006 02:51 PM
Tools > Folder Option > Change File Type for NONE(FOLDER) =?Utf-8?B?QnJpamVzaCBTaGFo?= Windows XP General 1 21st Nov 2006 01:02 AM
How to change mdw file to reflect a change in shared folder name? Fook-Loon Wong Microsoft Access Security 1 24th Nov 2003 11:30 AM
FILE FOLDER NAME CHANGE kelsey Windows XP Basics 5 1st Sep 2003 09:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:28 PM.