Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default copy row heights


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
  #2   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default copy row heights

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

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
GS GS is offline
external usenet poster
 
Posts: 364
Default copy row heights

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
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
Copy Row Heights Arun Excel Discussion (Misc queries) 4 March 24th 09 12:24 AM
Copy row heights lightbulb Excel Discussion (Misc queries) 1 July 29th 08 07:19 PM
Save row heights with VB copy stewart Excel Discussion (Misc queries) 1 November 8th 07 06:24 AM
how to copy row heights from one sheet to another in Excell Hayseed Excel Discussion (Misc queries) 5 April 19th 07 01:34 PM
Excel: copy grid, widths & heights down page: heights wrong! why? K Excel Discussion (Misc queries) 1 June 24th 06 03:06 AM


All times are GMT +1. The time now is 02:23 AM.

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

About Us

"It's about Microsoft Excel"