Hello everybody.
I want to calculate different values using excel vba. For the sake of example i have attached the excel file with this thread. Actually i need it badly.
Thanks for your help to solve my problem.
my sample code which does not works completely shown below.
Sub Calculator()
Dim Cover As Worksheet
Set Cover = Worksheets("Sheet1")
Cover.Activate
With Cover
iyear = Year(Range("F15")) & Month(Range("f5"))
iyeartill = Year(Range("F16")) & Month(Range("f16"))
imonth = Month(Range("f15"))
End With
With Sheets("sheet2").Activate
For counter = iyear To iyeartill Step imonth
counter.Cells(69, 1) = "aa"
Exit For
Next counter
End With
End Sub