Hi all,
I'm trying to build my own recurring to regarding to the budgets for Google Adwords that I have used. But I'm stuck, maybe you guys can help me.
The structure of my excel is as follwing:
<colgroup><col><col></colgroup><tbody>
</tbody>
What i'm trying to do is to make a code that can help me with dividing the total budget with the running time and divide proportional in to as much columns as the running time has. One extra addition to this is that it has to start on different months. When I fill in 3 in the start month colum it has to start on march. When it's 5 it has to start on may etc. etc.
I already found a code what almost helped me with this but not exact with what a want:
<colgroup><col><col></colgroup><tbody>
</tbody>
Can someone help me with this?
Thanks a lot!
I'm trying to build my own recurring to regarding to the budgets for Google Adwords that I have used. But I'm stuck, maybe you guys can help me.
The structure of my excel is as follwing:
<tbody> </tbody> |
<colgroup><col><col></colgroup><tbody>
</tbody>
What i'm trying to do is to make a code that can help me with dividing the total budget with the running time and divide proportional in to as much columns as the running time has. One extra addition to this is that it has to start on different months. When I fill in 3 in the start month colum it has to start on march. When it's 5 it has to start on may etc. etc.
I already found a code what almost helped me with this but not exact with what a want:
Option ExplicitSub DivideValue() Dim LR&, LoopCtr1&, LCol&, Ans# Application.ScreenUpdating = False LR& = Cells(Rows.Count, "A").End(xlUp).Row For LoopCtr1& = 1 To LR& Step 1 Ans# = Cells(LoopCtr1&, "A").Value / Cells(LoopCtr1&, "B").Value LCol& = Cells(LoopCtr1&, "B").Value - 1 With Range(Cells(LoopCtr1&, 3), Cells(LoopCtr1&, 3 + LCol&)) .Value = Ans# .NumberFormat = "$#,##0.00" End With Next LoopCtr1& Application.ScreenUpdating = TrueEnd Sub</pre> |
<colgroup><col><col></colgroup><tbody>
</tbody>
Can someone help me with this?
Thanks a lot!