Multiply different excel files based on a cell value in a master file and rename them

annamemma

New Member
Joined
Feb 7, 2023
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
Hi!

I am trying to find an automated process in VBA for a very time-consuming task. This is my monthly table:
column A
Column B
Column C
Column D
Store type
How many stores?
Type of file template
New name of the file
Store 1
4
1. 2023_Store 1_C1._feb.xlsx2123 Store 1
Store 2
2
1. 2023_Store 2_C2._feb.xlsx2123 Store 2
Store 3
4
1. 2023_Store 3_C3._feb.xlsx2123 Store 3

For each type of store, I have a specific template I have to use and I have to multiply them depending on how many times it is mentioned in column B.

Any chance I can automate this process using VBA? I'm no expert in it, I can just make basic stuff in VBA..

Any help would be greatly appreciated!

Thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi!

I am trying to find an automated process in VBA for a very time-consuming task. This is my monthly table:
column A
Column B
Column C
Column D
Store type
How many stores?
Type of file template
New name of the file
Store 1
4
1. 2023_Store 1_C1._feb.xlsx2123 Store 1
Store 2
2
1. 2023_Store 2_C2._feb.xlsx2123 Store 2
Store 3
4
1. 2023_Store 3_C3._feb.xlsx2123 Store 3

For each type of store, I have a specific template I have to use and I have to multiply them depending on how many times it is mentioned in column B.

Any chance I can automate this process using VBA? I'm no expert in it, I can just make basic stuff in VBA..

Any help would be greatly appreciated!

Thanks!
and I forgot to add. I have to rename them at the end of the process like so: "2123 Store 11","2123 Store 12","2123 Store 13", "2123 Store 14" - because there are 4 stores using this type and so so.
 
Upvote 0

Forum statistics

Threads
1,224,735
Messages
6,180,638
Members
452,992
Latest member
TokugawaIesuma

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