I am new at vba and i want to make a macro for my daily routine. I successfully manage big part of them with your helps here, but i stuck a section.
What i want : I have a analysis file, and it comes with months, beginning of code i am asking how many months have in file and want to know which of them.
Sub Makro2()
howmanymonths= Application.InputBox(prompt:=ActiveSheet.Name & " how many months?", Type:=1)
For first = 1 To howmanymonths
nay = Application.InputBox(prompt:=ActiveSheet.Name & " First?", Type:=1)
Next first
End Sub
For example, there are totally 3 months and i answered first "3",then next question i replyed "7" so nay = 7, but when its in loop next will be "8" and "9"
but how i can create nay1, nay2,nay3 or till what last months.
Maybe a better solution? Please help me.
naypart. You created a loop that will ask you the value ofnayfor every month. What exactly do you want to do?dict.add Key, Value. you can retrieve values by key as dict(keys)