There are 2 sheets Main File and DBR Report.
Main File is where the data is pasted.Since data is generated for 2 clients (code is AA and US) it contains 2 buttons.
DBR Report contains Template into which data is pasted into specific columns from Main File.
In short, when either of the buttons are clicked, data from Main File is pasted into specific columns in the Template.
When AA button is clicked, data is pasted into the template and column Q is updated with code AA.
Same thing happens when US button is clicked, only column Q is updated with code US.
Below is the code that does this partly -
There are 3 columns in the template which are already updated with certain data
Column A
FR:
TO:
Column B
BA
BA
Column Q
AA
AA
Looking for few additions to the above code as below :
1)Depending on the volume of data in the Main File the macro should add
or deduct rows from the template format.
2)Columns A, B and Q should be duplicated one below the other depending
on the volume of data in the Main File.
3)Macro should create an individual workbook of DBR Report sheet
(where the template is)
4)The new workbook should be named as AA_REACC_Draft_20Apr,
the sheet tab should also reflect as AA_REACC_Draft_20Apr.
5)Since the name contains date, macro should rename the workbook as
well as the sheet tab with date when the macro is run.
Ex :
a)When macro is run on 21Apr,workbook and sheet tab
should be named as AA_REACC_Draft_21Apr
b)When macro is run on 30Apr, workbook and sheet tab
should be named as AA_REACC_Draft_30Apr
6)The new workbook will be saved where the macro is kept.
The above addition should be achieved when AA or US buttons are clicked.
(Any Idea for achieving point 5 is welcome)
Attaching sample sheet with few explanations.
Bookmarks