excel - Changing values of a specific column within a range -
i want set values of column within current selected range. example, current selected range (which vary) a5:d10, want values in column b of range "something". i'm guessing like:
activecell.columns("b").value="something"
thanks.
you use intersect()
function...
sub intersection_example() dim rngb range dim rngresult range set rngb = columns("b") set rngresult = intersect(selection, rngb) rngresult.value = "something" end sub
Comments
Post a Comment