Only getting this error if the number of lines I need pasted is less than 2. Otherwise it works like a charm.
Here's my code:
Range("AT2").Select
ActiveCell.Formula = "=('RF Engineer Only'!$M$1)"
Range("AT2").Select
'Debug.Print "Cell: AT" & RFTabCnt + 1
Selection.AutoFill Destination:=Range("AT2:AT" & RFTabCnt + 1)
When I only want to paste one line that error pops up on the Slection.Autofill line.
I've tried an if statement for RFTabCnt > 1, and I get a similar error if I try to narrow the Destination range to just "AT2" ...
Any clues?
------------------
'How to Keep Your Databases from becoming Overwhelming!' thread181-293590
joshua.peters@attws.com
------------------
Here's my code:
Range("AT2").Select
ActiveCell.Formula = "=('RF Engineer Only'!$M$1)"
Range("AT2").Select
'Debug.Print "Cell: AT" & RFTabCnt + 1
Selection.AutoFill Destination:=Range("AT2:AT" & RFTabCnt + 1)
When I only want to paste one line that error pops up on the Slection.Autofill line.
I've tried an if statement for RFTabCnt > 1, and I get a similar error if I try to narrow the Destination range to just "AT2" ...
Any clues?
------------------
'How to Keep Your Databases from becoming Overwhelming!' thread181-293590
joshua.peters@attws.com
------------------