vba - Object required error, copy paste loop -


i trying copy range 1 sheet other can not code run out error(object-required). can please correct going wrong.

in addition need code repeat process 20 times; want list have 20 duplicates of each value. should make loop , run code 20 times? or there faster way this?

thank you.

sub update_fsku()  'range of list in final tab dim trowfg integer dim browfg integer  'range of existing list in final tab dim trowf integer dim browf integer  'application.screenupdating = false browf = (activesheet.range("a" & rows.count).end(xlup).row) + 1 worksheets("finished good").activate trowfg = 2 browfg = (activesheet.range("a" & rows.count).end(xlup).row) + 1  range("a2:" & "b" & browfg).copy  sheets("final").activate.range("a" & browf).pastespecial  end sub 

activate doesn't return value, can't chain .range() onto it.

try:

sheets("final").range("a" & browf).pastespecial 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -