Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
FORMAT EXCEL WORKBOOK (PAGE SETUP) ALL AT ONCE INSTEAD OF BY PAGE | Excel Discussion (Misc queries) | |||
copy footer without copying page setup | Excel Discussion (Misc queries) | |||
HOW DO I SETUP A PAGE IN EXCEL TO GIVE TOTALS TO ANOTHER PAGE | Excel Worksheet Functions | |||
Under Page Setup the page option of Ledger - for Office XP | Excel Discussion (Misc queries) | |||
Copying page setup information | Excel Programming |