Excel VBA Looping formula to change Range -
i've written code manipulate data in l9 : dc9
, need repeat l10 : dc10
, l11 : dc11
, etc.. i've tried for next
loop replacing value in range li:dci
, specifying (i
) 9 30 error. how can make loop function?
my current version of excel 2013
what looking syntax this
sub looprows() dim integer = 9 30 activesheet.range("l" & & ":dc" & i).interior.color = rgb(100, 100, 100) next end sub
this example formats color of cell in each row. notice how use for-loop create looping range selection.
Comments
Post a Comment