Excel: VBA to copy content from cell in active row -


i need assign function button in excel. want have button value of first column in active row , copy cell, or better assign "variable" used in lookup formula of cell.

i have tried variants, example this:

range("a" & (activecell.row)).copy ("h2") 

this gives

copy method of range class failed

i'm beginner in vba scripting don't know how move forward this.

since wrote you're interested in cells value:

range("h2").value = cells(activecell.row, 1).value 

Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -