J
John Walker
Hi,
I need to write a fairly complicated macro and am hopeful that someone may
have had to do something similar and could give me advice.
The spreadsheet itself is simple, with these columns:
STATE, VENDOR, DATE1, DATE2, WEIGHT.
When the macro is run we would like the user to be able to enter a starting
and ending date. The macro will then go through every row in the worksheet
and figure out how many days between DATE1 and DATE2 fall within the
user-entered starting/ending date range, and will write the results into
column F for each row.
We also need to group the worksheet by STATE/VENDOR, and give a WEIGHT total
at each group break.
Is all this possible to do with a macro? If anyone has any sample code that
would be greatly appreciated.
Thanks in advance,
John
I need to write a fairly complicated macro and am hopeful that someone may
have had to do something similar and could give me advice.
The spreadsheet itself is simple, with these columns:
STATE, VENDOR, DATE1, DATE2, WEIGHT.
When the macro is run we would like the user to be able to enter a starting
and ending date. The macro will then go through every row in the worksheet
and figure out how many days between DATE1 and DATE2 fall within the
user-entered starting/ending date range, and will write the results into
column F for each row.
We also need to group the worksheet by STATE/VENDOR, and give a WEIGHT total
at each group break.
Is all this possible to do with a macro? If anyone has any sample code that
would be greatly appreciated.
Thanks in advance,
John