PC Review


Reply
Thread Tools Rate Thread

copy row heights

 
 
MikeF
Guest
Posts: n/a
 
      8th May 2010

Have a subroutine that copies a sheet from one workbook to the other, then
copies values, formats, and column widths.

But need it also to copy the row heights/hidden rows.

Any assistance will be sincerely appreciated.
Thanx.
- Mike
 
Reply With Quote
 
 
 
 
CLR
Guest
Posts: n/a
 
      8th May 2010
Maybe someting in here will help.

Sub CopyRowHeights()
Rows("1:20").Select
Selection.Copy
Windows("Book2").Activate
Rows("1:20").Select
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False
Application.CutCopyMode = False
End Sub

Vaya con Dios,
Chuck, CABGx3




"MikeF" <(E-Mail Removed)> wrote in message
news:A13BA0DE-87B6-460C-814E-(E-Mail Removed)...
>
> Have a subroutine that copies a sheet from one workbook to the other, then
> copies values, formats, and column widths.
>
> But need it also to copy the row heights/hidden rows.
>
> Any assistance will be sincerely appreciated.
> Thanx.
> - Mike



 
Reply With Quote
 
GS
Guest
Posts: n/a
 
      9th May 2010
MikeF presented the following explanation :
> Have a subroutine that copies a sheet from one workbook to the other, then
> copies values, formats, and column widths.
>
> But need it also to copy the row heights/hidden rows.
>
> Any assistance will be sincerely appreciated.
> Thanx.
> - Mike


If you are copying a sheet, whether to another workbook OR within the
same workbook, everything copies. Are you saying that your copy
procedure strips some stuff away? It would help if you post your code.
AFAIK, the only thing you should lose is some content of cells with
more than 1024 characters. Otherwise, the copied sheet should be
identical to the original.

Garry


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Row Heights Arun Microsoft Excel Misc 4 24th Mar 2009 12:24 AM
Copy row heights lightbulb Microsoft Excel Misc 1 29th Jul 2008 07:19 PM
Save row heights with VB copy stewart Microsoft Excel Misc 1 8th Nov 2007 06:24 AM
Excel: copy grid, widths & heights down page: heights wrong! why? =?Utf-8?B?Sw==?= Microsoft Excel Misc 1 24th Jun 2006 03:06 AM
how to copy row heights from 1 worksheet to another =?Utf-8?B?c2FkaWU=?= Microsoft Excel Misc 1 25th Nov 2004 01:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:22 AM.