Hello,
I have a basic knowledge of VBA and I can read and write simple vba for excel 2003.
Below is the vba code I am struggling with.
![]()
Please Login or Register to view this content.
Basically what I am wanting to do, but I am stuck on, is to repeat the formulas above but for the next cell so for example I want it to do this
Select Case Range("AN2").Value
Case Is = "AMOUNT"
Range("AG2").Value = "DECIMAL"
Range("AH2").Value = "18"
Range("AI2").Value = "3"
Then move on to this
Select Case Range("AN3").Value
Case Is = "AMOUNT"
Range("AG3").Value = "DECIMAL"
Range("AH3").Value = "18"
Range("AI3").Value = "3"
As each cell will have a value in from a determined list i have set out i want it to repeat this until it hits a blank cell.
Hope I made this understandable it's very hard for me to explain.
Any help is appreciated, I am sure there is a much simplier way to the way i have done, at the moment all the code is doing is moving on to the next blank cell and repeating the formula only on cell AG2 etc (which I am aware i am telling it to do) but I am unsure how to move this to the next cell and repeat the formula.
Thank you.
Bookmarks