Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Copy formats from row 2 down to nRows

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Copy formats from row 2 down to nRows

Rows("2:2").copy
Rows("3:"&nRows).Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:= False

--
kassie

never stop learning




"Meltad" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Copy formats from row 2 down to nRows

Try to fix this row
Rows("3:3 & nRows").Select

to
Rows("3:" & nRows).Select

Regards,
Stefi

€˛Meltad€¯ ezt Ć*rta:

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Copy formats from row 2 down to nRows

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.


"Kassie" wrote:

Rows("2:2").copy
Rows("3:"&nRows).Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:= False

--
kassie

never stop learning




"Meltad" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro to copy formats shaji Excel Discussion (Misc queries) 1 February 19th 10 02:25 PM
copy formats vlookup Andre Ronda Excel Worksheet Functions 1 September 4th 06 09:20 PM
nRows range within SUMIF Meltad Excel Programming 1 August 17th 06 12:12 PM
Copy Number Formats SteveS[_4_] Excel Programming 9 October 13th 04 02:42 AM
using array to copy formats as well... Gbiwan Excel Programming 3 February 19th 04 07:34 PM


All times are GMT +1. The time now is 08:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"