I am trying to copy a autofiltered range to a new sheet. The number of autofiltered rows is inserted into the new sheet at a certain point and then the copied range is copied and pasted over in the new inserted rows. I've got everything I need, but my usual methods of pasting aren't working.
rwno is the rwno for the find using the set found function
rwncnt is the number visible rows
rng.select
selection.autofilter field:=col1,criteria1:=index
rwcnt = application.worksheetfunction.subtotal(3,range("A2:A" * lrbom2))
rng.specialcells(xlcelltypevisible).select
selection.copy
newbom.activate
newbom.range("A" & rwno + 1 & ":A" & rwno + rwcnt).entirerow.insert
cells(rwno+1,1).select/Range("A" & rwno +1).select
activesheet.paste