R
ritland
I currently log costs for our clients into an excel database. Each
client has their own worksheet which contains the following columns:
Date (A) - Postage (B) - Copies (C) - Fax (D) - Phone (E)
I am given cost sheets to input into the database that are not in
chronological order nor grouped by type. As a result, after I input
the information I find that there are often multiple entries for one
day and often more than one entry per category per day. For instance,
I will have rows 1, 5, and 10 with the same date but with different
costs in each ( R1 - $.40 Postage, R5 - $1.00 Copies, R10 $.30
Postage). What I would like to do is create a VB script that would
automatically run when each worksheet is selected that would do the
following:
(1) Find rows with the same date
(2) Combine the information from the matching rows into one entry (1B
+5B+10B, 1C+5C+10C, ect)
(3) Delete all rows with that date except for the summarized row
I am sure this is possible, but I lack the VB experience to create it.
I assume it will have to loop through an array but I dont know how it
would be set up. Any thoughts or know of any code that would do
something similar that I could modify? Thanks for all your help.
client has their own worksheet which contains the following columns:
Date (A) - Postage (B) - Copies (C) - Fax (D) - Phone (E)
I am given cost sheets to input into the database that are not in
chronological order nor grouped by type. As a result, after I input
the information I find that there are often multiple entries for one
day and often more than one entry per category per day. For instance,
I will have rows 1, 5, and 10 with the same date but with different
costs in each ( R1 - $.40 Postage, R5 - $1.00 Copies, R10 $.30
Postage). What I would like to do is create a VB script that would
automatically run when each worksheet is selected that would do the
following:
(1) Find rows with the same date
(2) Combine the information from the matching rows into one entry (1B
+5B+10B, 1C+5C+10C, ect)
(3) Delete all rows with that date except for the summarized row
I am sure this is possible, but I lack the VB experience to create it.
I assume it will have to loop through an array but I dont know how it
would be set up. Any thoughts or know of any code that would do
something similar that I could modify? Thanks for all your help.