Open all the files in a folder delete column 'A' and save the files

SriDurga

New Member
Joined
Aug 30, 2022
Messages
19
Office Version
  1. 2019
Platform
  1. Windows
Hello all,
I have 10 to 15 files in a folder which needs to get updated every day.
Folder name: Summary
File names: different each time
I need to open each file, delete column 'A' and save each file.
Kindly help me with a macro to do the task.

Thanks in advance.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
There are lots of posts out there you can find if you do a Google search on "Excel VBA loop through all files in a folder".
Here is one: Loop Through all Files in a Folder using VBA

Adding the part about deleting column A is pretty trivial. You can get that part of the code by using the Macro Recorder (turn on the Macro Recorder and record yourself deleting column A in any file, and you will have the code that you need).
 
Upvote 0
Solution
There are lots of posts out there you can find if you do a Google search on "Excel VBA loop through all files in a folder".
Here is one: Loop Through all Files in a Folder using VBA

Adding the part about deleting column A is pretty trivial. You can get that part of the code by using the Macro Recorder (turn on the Macro Recorder and record yourself deleting column A in any file, and you will have the code that you need).
Thank you so much
 
Upvote 0
You are welcome.
Glad I was able to help!
:)
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,665
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