Auto Rename Workbook

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
954
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I need to download a few hundred excel files from a cloud-based database that when downloading, gives the workbook name a random number/name. If I open the workbook, the correct file name is located in cell A1. Is there anyway to auto rename each workbook to the value in cell A1, so that I do not have to manually rename each one and I can just spend my time downloading each file from the cloud?

Many thanks in advance!

/m
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I'd say no, not directly, because you can't rename a file when it's open. You could loop through a folder of files, get the file name being opened, open it, get the value from A1, close it and rename "old name" as A1.value
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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