Rename excel files in a folder

ikantimahanti

New Member
Joined
May 12, 2011
Messages
15
I started a new job in Cognos reporting. We scheduled to run reports n save(in Excel format) in a particular folder. But the reports are saving with a unique system generated numbers. I need to save the Excel file names with a filename derived from cell A1.

Please help with a solutions, any help would be greatly appreciated.

Thanks,
Isaac
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I have no idea how it is going wrong. I tried bunch of times, now its showing a different error.

Run-time error '9':
Subscript out of range
 
Upvote 0
Subscript out of range almost certainly means that you don't have a sheet called Sheet1.
 
Upvote 0
Maybe

Code:
Sub SaveMe()
ActiveWorkbook.SaveAs Filename:=Sheets(1).Range("A1").Value & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
End Sub
 
Upvote 0
Here is what i need exactly, Sorry for bothering you...

Automatically say for every 30 mins a excel file will be saved in a folder. I have to rename the excel file with cell A1 on sheet1. Sheet1 names are different to each file....and the excel files should be renamed as they come into that folder
 
Upvote 0
Sorry I cannot help with that.

I can help you to rename all the files in a folder but not as they come in.
 
Upvote 0
I really appreciate your patience with me.

Can we create a batch script and run it through Task Scheduler for every 5/10 mins.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top