Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to copy header/footer info?

HI,
I am using Excel 2000 for development.
The problem I have is when I copy a sheets contents I do not get the header
information.
I would like to be able to set the new sheets header/footer equal to the
copied sheet.

Any suggestions on how to copy the header/footer information via a macro?

--
Capt'n Roy

))))º Think Fish <º((((<

To reply to my mail: Remove 2313 from email address.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to copy header/footer info?

copy the sheet, don't copy the cells.

Dim sh as Object
With ActiveWorkbook
.Sheets("Template").Copy After:=.sheets(.sheets.count)
set sh = .sheets(.Sheets.count)
End with
MsgBox "Please rename this new sheet." & vbCrLf & _
"Right Click the new sheet tab." & vbCrLf & _
"Then choose RENAME."

'
' select button then delete it
'
sh.Shapes("Button 1").Delete
sh.Range("B4").Select

==================
Otherwise,

Worksheets(2).PageSetup.LeftHeader = Worksheets(1).PageSetup.LeftHeader
and so forth.

--
Regards,
Tom Ogilvy




"Capt'n Roy" wrote in message
...
HI,
I am using Excel 2000 for development.
The problem I have is when I copy a sheets contents I do not get the

header
information.
I would like to be able to set the new sheets header/footer equal to the
copied sheet.

Any suggestions on how to copy the header/footer information via a macro?

--
Capt'n Roy

))))º Think Fish <º((((<

To reply to my mail: Remove 2313 from email address.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to copy header/footer info?

Tom,
Thasnkks for the help.

--
Capt'n Roy

))))º Think Fish <º((((<

To reply to my mail: Remove 2313 from email address.

"Tom Ogilvy" wrote in message
...
copy the sheet, don't copy the cells.

Dim sh as Object
With ActiveWorkbook
.Sheets("Template").Copy After:=.sheets(.sheets.count)
set sh = .sheets(.Sheets.count)
End with
MsgBox "Please rename this new sheet." & vbCrLf & _
"Right Click the new sheet tab." & vbCrLf & _
"Then choose RENAME."

'
' select button then delete it
'
sh.Shapes("Button 1").Delete
sh.Range("B4").Select

==================
Otherwise,

Worksheets(2).PageSetup.LeftHeader = Worksheets(1).PageSetup.LeftHeader
and so forth.

--
Regards,
Tom Ogilvy




"Capt'n Roy" wrote in message
...
HI,
I am using Excel 2000 for development.
The problem I have is when I copy a sheets contents I do not get the

header
information.
I would like to be able to set the new sheets header/footer equal to

the
copied sheet.

Any suggestions on how to copy the header/footer information via a

macro?

--
Capt'n Roy

))))º Think Fish <º((((<

To reply to my mail: Remove 2313 from email address.






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
Change Header & Footer Info w/ Worksheet Option Buttons Ryan H Excel Discussion (Misc queries) 0 December 8th 09 03:09 PM
Format header/footer info? L.S. Excel Discussion (Misc queries) 2 October 30th 09 07:25 PM
Can I copy header & Footer into new file? A little stuck[_2_] Excel Discussion (Misc queries) 1 September 2nd 09 04:31 AM
Copy of Header-Footer in Excel raj74 Excel Discussion (Misc queries) 3 July 31st 08 05:07 AM
Is it possible to copy a header/footer from one worksheet to anoth DLC Excel Discussion (Misc queries) 1 September 28th 05 02:01 PM


All times are GMT +1. The time now is 06:51 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"