What's the matter with this syntax? Can't I paste a single cell into multiple cells? This errors on "Application-Defined or Object-Defined Error"
![]()
Cells(1, 1).Copy Sheets("Pasted Zip Codes").Range(Cells(3, 1), Cells(3, 15))
What's the matter with this syntax? Can't I paste a single cell into multiple cells? This errors on "Application-Defined or Object-Defined Error"
![]()
Cells(1, 1).Copy Sheets("Pasted Zip Codes").Range(Cells(3, 1), Cells(3, 15))
You haven't properly qualified all the relevant Cells properties:
![]()
With Sheets("Pasted Zip Codes") Cells(1, 1).Copy .Range(.Cells(3, 1), .Cells(3, 15)) end with
Everyone who confuses correlation and causation ends up dead.
Either fully qualify Cells or try this.
![]()
Cells(1, 1).Copy Sheets("Pasted Zip Codes").Cells(3, 1).Resize(, 15)
If posting code please use code tags, see here.
Romperstomper, I am pasting from the activesheet to another, so this solution doesn't work. Do you really need that many periods before cells and before Range?
Maybe try:
![]()
Sub JiptasticC() Range("A1").Copy Sheets("Pasted Zip Codes").Range("A3:O3") End Sub
Jiptastic
romperstomper's code will work, it is copying from the active sheet to 'Pasted Zip Codes'.
@Jiptastic
It does work and does exactly what you described. If it doesn't work for you, I have to assume you copied something wrongly (or added an extra full stop in front of the first Cells call)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks