excel - Auto Fill Column -


i have started use vba. wanted know how fill column starting range("k5") , value taken combobox1. example: if range("k5") = 22 range("k6") = 23... final number value of combobox2.

this code now...

dim temperature_1 integer                     'from temperature_1 dim temperature_2 integer                     'to temperature_2 dim k integer dim l integer dim range_degrees integer                         temperature_1 = sheet1.combobox1 temperature_2 = sheet1.combobox2 range_degrees = temperature_2 - temperature_1  k = range("k5") range_degrees                          l = temperature_1 temperature_2                           ......     next l next k     

if wish 'auto fill' column, populate start of range , fill series.

with activesheet     .range("k5") = temperature_1     .range("k5").dataseries rowcol:=xlcolumns, type:=xllinear, step:=1, stop:=temperature_2, trend:=false end 

if wanted increment in 0.05°, change step:=1 parameter desired increment. if wanted fill across row instead of down column, change rowcol:=xlcolumns rowcol:=xlrows. blocking in values series more efficient looping through them.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -