Hello,
I want to select a (moving) Range of cells so I can change some format on these cells
If my numberofcriteria =2 in this case I want to select Range "I7:K9"
-----------------------------
My code is
Dim numberofcriteria As Integer
numberofcriteria = Range("c7").Value
StartRange = Cells(7, 9)
EndRange = Cells(7, 9).Offset(numberofcriteria, numberofcriteria)
Cells(StartRange, EndRange).Interior.ColorIndex = 19
It got an error mesage when I run the code
-------------------------------
Thanks for your help
I want to select a (moving) Range of cells so I can change some format on these cells
If my numberofcriteria =2 in this case I want to select Range "I7:K9"
-----------------------------
My code is
Dim numberofcriteria As Integer
numberofcriteria = Range("c7").Value
StartRange = Cells(7, 9)
EndRange = Cells(7, 9).Offset(numberofcriteria, numberofcriteria)
Cells(StartRange, EndRange).Interior.ColorIndex = 19
It got an error mesage when I run the code
-------------------------------
Thanks for your help