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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -