Duplicate Entire Workbook after Changing a Cell Value to the Next Available Value in Column (VBA)

zach9208

Board Regular
Joined
Dec 15, 2015
Messages
117
I am looking for a macro code to loop a unique code. I need cell C4 of my first sheet to be changed to the value based on a column on another sheet. I need it to grab the next cell of this same column, insert it in C4, and hit enter. Following that, I need the entire workbook, including hidden sheets, to copy to a new workbook and be named what C4 changed to.

I need this to loop this procedure until I hit an empty cell in that column.

I ultimately need this to generate 70 different workbooks with the name of value in C4. In case you are wondering, C4 is a cell that changes a ton of sumifs to generate a unique report for each specific client. I also need all the cells to keep their formating and formulas as I have a dropdown list linked to access data.

I have scoured the internet for a code like this and have not found anything quite like this. Thanks in advance!
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,215,056
Messages
6,122,907
Members
449,096
Latest member
dbomb1414

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