Macro that keeps the existing values and updates the next vacant cell

Pratap 1987

Board Regular
Joined
Feb 28, 2011
Messages
95
Hi,

I have a workbook with 3 Sheets named 'Data', 'Count' and 'Output'.

Sheet1 (Data) - A data from a notepad is copied and pasted to this sheet. And a macro (Named "CountAll") is executed.

Sheet2(Count) - Once the Macro (Named "CountAll") is completed - This sheet reflects the count of Individual items in 'C' Column. And the total count (Master Count) of Column 'C' is reflected in 'D1' Cell.

Sheet 3 (Output) - This sheet contains the individual date (01/03/2011,
01/04/2011 ……… 12/31/2011) of the whole year in Column A. And the Master Count (From D1) cell is updated manually in the B Column (B1, B2 …… B350).

I am looking for a coding that updates the counts automatically in B Column (B1, B2 …… B350) everytime when I ran the first macro (Named "CountAll").

Rules : -

A) First time when I run the First Macro (Named "CountAll") - It should update the value (Master Count) from D1 Cell (Available in Sheet 2 - Count) into the B1 Cell.

B) Second time when I run the First Macro (Named "CountAll") - It should update the value (Master Count) from D1 Cell (Available in Sheet 2 - Count) into the B2 Cell keeping the value in B1 Cell (as the same).

C) The coding should continue update the value from D1 Cell to B Column everytime when I run the macro and should keep the previously available values in b Column.

Please let me know for any additional details.
I would highly appreciate if someone gets me a coding to automate the Manual activity.

Thank you!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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