excel - Get cell to equal value from cell above -


i trying cell g in active row equal value of validation list row above. here's code:

range("g" & activecell.row).value = range("g" & activecell.row - 1).value 

the problem copies entire validation list, , don't want that, want value selected in validation list copied cell.

please can show me going wrong?

it might easier use r1c1 formatting instead of a1. can reference rows r[-1]c6 getting previous row , column g. if don't want column g actual current column, instead of r[-1]c6, put r[-1]c.

the cell referencing style can changed in options menu.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -