danilobiccari
New Member
- Joined
- Feb 22, 2018
- Messages
- 3
Hello,
I am looking to automate the following process using a macro:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]DATE[/TD]
[TD]TOTAL[/TD]
[TD]1-Sep-17[/TD]
[TD]TOTAL (based indirectly on C1)[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]2-Sep-17[/TD]
[TD]TOTAL (based indirectly on C2)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]3-Sep-17[/TD]
[TD]TOTAL (based indirectly on C3)[/TD]
[/TR]
[TR]
[TD]...[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
1. Change the DATE in A1 using the date in C1.
2. Copy the corresponding TOTAL in B1 (a number based on the date in A1) to D1.
3. Change the DATE in A1 using the date in C2.
4. Copy the corresponding TOTAL in B1 to D2.
5. Change the DATE in A1 using the date in C3.
2. Copy the corresponding TOTAL in B1 to D3.
...
(etc.)
I am having trouble with how to record this macro, as some cells are static, and some are dynamic.
Any assistance would be greatly appreciated.
Thank you!
Danilo
I am looking to automate the following process using a macro:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]DATE[/TD]
[TD]TOTAL[/TD]
[TD]1-Sep-17[/TD]
[TD]TOTAL (based indirectly on C1)[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]2-Sep-17[/TD]
[TD]TOTAL (based indirectly on C2)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]3-Sep-17[/TD]
[TD]TOTAL (based indirectly on C3)[/TD]
[/TR]
[TR]
[TD]...[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
1. Change the DATE in A1 using the date in C1.
2. Copy the corresponding TOTAL in B1 (a number based on the date in A1) to D1.
3. Change the DATE in A1 using the date in C2.
4. Copy the corresponding TOTAL in B1 to D2.
5. Change the DATE in A1 using the date in C3.
2. Copy the corresponding TOTAL in B1 to D3.
...
(etc.)
I am having trouble with how to record this macro, as some cells are static, and some are dynamic.
Any assistance would be greatly appreciated.
Thank you!
Danilo