Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Copying Page SetUp

Greetings !

How do I copy the Page SetUp from one Worksheet to
another ?

I do NOT want to copy it to all sheets.

I'm sure it's a very simple thing, something like

Worksheets(7).PageSetUp = Worksheets(1).PageSetUp
RunTime Error 438:
Object doesn't support this property or method

I also want to copy the Header & Footer -
would they be included?

RClay AT haswell DOT com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Copying Page SetUp

try this for the setups you want

Sub copysetup()
With ActiveSheet.PageSetup
..Orientation = Sheets("sheet7").PageSetup.Orientation
End With
End Sub


"Robin Clay" wrote in message
...
Greetings !

How do I copy the Page SetUp from one Worksheet to
another ?

I do NOT want to copy it to all sheets.

I'm sure it's a very simple thing, something like

Worksheets(7).PageSetUp = Worksheets(1).PageSetUp
RunTime Error 438:
Object doesn't support this property or method

I also want to copy the Header & Footer -
would they be included?

RClay AT haswell DOT com



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Copying Page SetUp


Erm... Thanks, but... it didn't like the double dots, so I
deleted one of them.

And it didn't copy the entire layout - the orientation
remains the same - they were both landscape, anyway.

Is there a "blanket" command that will copy everything, or
do I really have to copy every single individual item in
turn ?


-----Original Message-----
try this for the setups you want

Sub copysetup()
With ActiveSheet.PageSetup
..Orientation = Sheets("sheet7").PageSetup.Orientation
End With
End Sub


"Robin Clay" wrote

in message
...
Greetings !

How do I copy the Page SetUp from one Worksheet to
another ?

I do NOT want to copy it to all sheets.

I'm sure it's a very simple thing, something like

Worksheets(7).PageSetUp = Worksheets(1).PageSetUp
RunTime Error 438:
Object doesn't support this property or method

I also want to copy the Header & Footer -
would they be included?

RClay AT haswell DOT com



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Copying Page SetUp

First, I did NOT send with double dots. Don't know why that happens.

AFAIK you must do this for each part of the page setup that you want to
copy.
Suggest you only use the setup changes needed.
The landscape I gave was an EXAMPLE of how to do it.


"Robin Clay" wrote in message
...

Erm... Thanks, but... it didn't like the double dots, so I
deleted one of them.

And it didn't copy the entire layout - the orientation
remains the same - they were both landscape, anyway.

Is there a "blanket" command that will copy everything, or
do I really have to copy every single individual item in
turn ?


-----Original Message-----
try this for the setups you want

Sub copysetup()
With ActiveSheet.PageSetup
..Orientation = Sheets("sheet7").PageSetup.Orientation
End With
End Sub


"Robin Clay" wrote

in message
...
Greetings !

How do I copy the Page SetUp from one Worksheet to
another ?

I do NOT want to copy it to all sheets.

I'm sure it's a very simple thing, something like

Worksheets(7).PageSetUp = Worksheets(1).PageSetUp
RunTime Error 438:
Object doesn't support this property or method

I also want to copy the Header & Footer -
would they be included?

RClay AT haswell DOT com



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copying Page SetUp

Yes, you have to copy each setting (unless you copy the sheet itself).

Don didn't put in double dots. Some mail software puts in a dot if there is
a dot on the left margin. Otherwise the single dot is interpreted as a
formatting command.

--
Regards,
Tom Ogilvy

"Robin Clay" wrote in message
...

Erm... Thanks, but... it didn't like the double dots, so I
deleted one of them.

And it didn't copy the entire layout - the orientation
remains the same - they were both landscape, anyway.

Is there a "blanket" command that will copy everything, or
do I really have to copy every single individual item in
turn ?


-----Original Message-----
try this for the setups you want

Sub copysetup()
With ActiveSheet.PageSetup
..Orientation = Sheets("sheet7").PageSetup.Orientation
End With
End Sub


"Robin Clay" wrote

in message
...
Greetings !

How do I copy the Page SetUp from one Worksheet to
another ?

I do NOT want to copy it to all sheets.

I'm sure it's a very simple thing, something like

Worksheets(7).PageSetUp = Worksheets(1).PageSetUp
RunTime Error 438:
Object doesn't support this property or method

I also want to copy the Header & Footer -
would they be included?

RClay AT haswell DOT com



.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Copying Page SetUp


This is replicating the fastest manual way...

sheets(array("sheet2","sheet3","sheet4")).select
sheets("sheet3").activate
SendKeys "{enter}"
Application.Dialogs(xlDialogPageSetup).Show



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Robin Clay" wrote:


Erm... Thanks, but... it didn't like the double dots, so I
deleted one of them.

And it didn't copy the entire layout - the orientation
remains the same - they were both landscape, anyway.

Is there a "blanket" command that will copy everything, or
do I really have to copy every single individual item in
turn ?


-----Original Message-----
try this for the setups you want

Sub copysetup()
With ActiveSheet.PageSetup
..Orientation = Sheets("sheet7").PageSetup.Orientation
End With
End Sub


"Robin Clay" wrote

in message
...
Greetings !

How do I copy the Page SetUp from one Worksheet to
another ?

I do NOT want to copy it to all sheets.

I'm sure it's a very simple thing, something like

Worksheets(7).PageSetUp = Worksheets(1).PageSetUp
RunTime Error 438:
Object doesn't support this property or method

I also want to copy the Header & Footer -
would they be included?

RClay AT haswell DOT com



.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Copying Page SetUp

tom..

can i disagree? see my post in same thread.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tom Ogilvy" wrote:

Yes, you have to copy each setting (unless you copy the sheet itself).

Don didn't put in double dots. Some mail software puts in a dot if
there is a dot on the left margin. Otherwise the single dot is
interpreted as a formatting command.


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copying Page SetUp

It is a good suggestion and I am familiar with doing it manually - however,
not perfect.

Print title rows and print title columns and printarea were not transferred.
Most attributes were.

--
Regards,
Tom Ogilvy

"keepitcool" wrote in message
...
tom..

can i disagree? see my post in same thread.


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Tom Ogilvy" wrote:

Yes, you have to copy each setting (unless you copy the sheet itself).

Don didn't put in double dots. Some mail software puts in a dot if
there is a dot on the left margin. Otherwise the single dot is
interpreted as a formatting command.




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
FORMAT EXCEL WORKBOOK (PAGE SETUP) ALL AT ONCE INSTEAD OF BY PAGE fred Excel Discussion (Misc queries) 1 August 11th 08 04:54 PM
copy footer without copying page setup jen_writer Excel Discussion (Misc queries) 2 December 4th 07 06:18 PM
HOW DO I SETUP A PAGE IN EXCEL TO GIVE TOTALS TO ANOTHER PAGE Randy Excel Worksheet Functions 1 February 8th 07 06:15 PM
Under Page Setup the page option of Ledger - for Office XP Turbo Excel Discussion (Misc queries) 2 September 27th 06 02:46 AM
Copying page setup information tbjohnson2 Excel Programming 1 September 1st 03 07:45 PM


All times are GMT +1. The time now is 03:56 PM.

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"