Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem Copying Header/Footer

Hi,
I am using Excel 2000. When I copy a Sheet and and paste it in another
sheet I do not get the header footer information.
How can I copy the header foooter information also or How can I set the
header/footer information to be used on all sheets in the book?

Any help will be greatly appreciated.

This is the marco I am having the user to run:

Sub AddSheet_Click()
'
' AddSheet_Click Macro
' Macro recorded 9/26/2003 by Sweetie Management LLC
'

'
' copy the template
'
Sheets("Template").Select
Cells.Select
Selection.Copy
'
' add a new sheet
'
Sheets.Add
ActiveSheet.Select

'
' paste the template to the new Sheet
'
Cells.Select
ActiveSheet.Paste

'
' rename sheet
'
MsgBox "Please rename this new sheet." & vbCrLf & _
"Right Click the new sheet tab." & vbCrLf & _
"Then choose RENAME."

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

End Sub


--
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 Problem Copying Header/Footer

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


--
Regards,
Tom Ogilvy

Capt'n Roy wrote in message
...
Hi,
I am using Excel 2000. When I copy a Sheet and and paste it in

another
sheet I do not get the header footer information.
How can I copy the header foooter information also or How can I set the
header/footer information to be used on all sheets in the book?

Any help will be greatly appreciated.

This is the marco I am having the user to run:

Sub AddSheet_Click()
'
' AddSheet_Click Macro
' Macro recorded 9/26/2003 by Sweetie Management LLC
'

'
' copy the template
'
Sheets("Template").Select
Cells.Select
Selection.Copy
'
' add a new sheet
'
Sheets.Add
ActiveSheet.Select

'
' paste the template to the new Sheet
'
Cells.Select
ActiveSheet.Paste

'
' rename sheet
'
MsgBox "Please rename this new sheet." & vbCrLf & _
"Right Click the new sheet tab." & vbCrLf & _
"Then choose RENAME."

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

End Sub


--
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
Header and Footer PAL Excel Worksheet Functions 2 January 7th 09 06:42 PM
Header and Footer hsvgal Excel Worksheet Functions 1 December 18th 08 01:27 PM
HEADER & FOOTER James8309 Excel Worksheet Functions 1 September 15th 08 07:51 AM
Header/Footer VirginiaKim Excel Discussion (Misc queries) 2 June 20th 08 09:21 PM
header/footer Talladega Setting up and Configuration of Excel 2 June 15th 07 11:54 AM


All times are GMT +1. The time now is 05:24 PM.

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"