Copy formats from row 2 down to nRows

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I'm trying to copy row 2 and copy the formats down the sheet to the last row
(I have already defined nRows). I'm having trouble selecting the nRows to
paste into...

Rows("2:2").Select
Selection.Copy
Rows("3:3 & nRows").Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
 
Rows("2:2").copy
Rows("3:"&nRows).Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:= False
 
Thanks (and thanks Stephi), this worked but now I get an error on the paste -
says range is too large...
How can I get around this? My spreadsheet has 22939 rows.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top