Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 224
Default Formatting problem copying sheet

I have a worksheet that if I copy to a new workbook, all is well. But
if I first create a new workbook and then copy this sheet into that
new worbook, the formatting is off -- the copied sheet is much wider
than the source.

I don't see any difference in the page setup properties. Any idea why
it's happening and what I can do about it?


Thanks,

Greg
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Formatting problem copying sheet

Greg Lovern presented the following explanation :
I have a worksheet that if I copy to a new workbook, all is well. But
if I first create a new workbook and then copy this sheet into that
new worbook, the formatting is off -- the copied sheet is much wider
than the source.

I don't see any difference in the page setup properties. Any idea why
it's happening and what I can do about it?


Thanks,

Greg


I suspect...
If you first create a new workbook the copied sheet's 'Normal' format
becomes the new workbook's 'Normal' format. If you copy a sheet to a
new workbook, its 'Normal' format becomes the new workbook's 'Normal'
format.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 224
Default Formatting problem copying sheet

On Sep 28, 6:57*am, GS wrote:
Greg Lovern presented the following explanation :

I have a worksheet that if I copy to a new workbook, all is well. But
if I first create a new workbook and then copy this sheet into that
new worbook, the formatting is off -- the copied sheet is much wider
than the source.


I don't see any difference in the page setup properties. Any idea why
it's happening and what I can do about it?


Thanks,


Greg


I suspect...
If you first create a new workbook the copied sheet's 'Normal' format
becomes the new workbook's 'Normal' format. If you copy a sheet to a
new workbook, its 'Normal' format becomes the new workbook's 'Normal'
format.

--
Garry

Free usenet access athttp://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


Thanks, the culprit was the Normal Style's font size.

FWIW, I found that to accurately get the source workbook's Style data,
that workbook had to be active. And, to set the target workbook's
Style data, that workbook had to be active. So now my code looks
like:

-- activate the source wb.
-- set variables to the source wb's Normal Style's font name and size.
-- activate the target wb.
-- set the target wb's Normal Style's font name and size.

Working fine now.

Greg
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Formatting problem copying sheet

on 9/28/2011, Greg Lovern supposed :
On Sep 28, 6:57*am, GS wrote:
Greg Lovern presented the following explanation :

I have a worksheet that if I copy to a new workbook, all is well. But
if I first create a new workbook and then copy this sheet into that
new worbook, the formatting is off -- the copied sheet is much wider
than the source.


I don't see any difference in the page setup properties. Any idea why
it's happening and what I can do about it?
Thanks,


Greg


I suspect...
If you first create a new workbook the copied sheet's 'Normal' format
becomes the new workbook's 'Normal' format. If you copy a sheet to a
new workbook, its 'Normal' format becomes the new workbook's 'Normal'
format.

--
Garry

Free usenet access athttp://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


Thanks, the culprit was the Normal Style's font size.

FWIW, I found that to accurately get the source workbook's Style data,
that workbook had to be active. And, to set the target workbook's
Style data, that workbook had to be active. So now my code looks
like:

-- activate the source wb.
-- set variables to the source wb's Normal Style's font name and size.
-- activate the target wb.
-- set the target wb's Normal Style's font name and size.

Working fine now.

Greg


Glad you got it resolved! Thanks for the feedback...

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


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
Copying conditional formatting to entire sheet slyguy2183 Excel Discussion (Misc queries) 3 June 10th 08 05:20 AM
Conditional Formatting Precidence when copying to new sheet in 200 MIRA Excel Discussion (Misc queries) 0 April 25th 08 11:43 AM
Retain formatting of Excel sheet when copying data into it [email protected] Excel Discussion (Misc queries) 5 February 27th 08 08:18 PM
Copying formatting of entire sheet Diamontina Cocktail New Users to Excel 5 June 27th 07 10:50 PM
Cell Referencing problem when copying conditional formatting Sarah (OGI) Excel Discussion (Misc queries) 0 April 19th 07 04:54 PM


All times are GMT +1. The time now is 05:15 AM.

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"