Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Don - Please help on another subject - headers

On this same directory workbook. I have a header that I want on all pages.
I made changes to the ALL ws and then I recorded a macro that would take the
text from ALL ws and copy to LAST_TITLE ws. It worked when I was recording
the macro, but when I run the macro - all I get is the screen jumping and
nothing changes. I need to do the same on the ALL footer. I am trying to
make this 'task' of updating the directory easy for the actual user who will
need to update. And I thought that my creating macros would be so nice. So
far the 2 macros I created aren't working - it must be me.

Sub Header()
'
' Header Macro
'

'
Sheets("ALL").Select
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = _
"&""Times New Roman,Bold Italic""&14Central Lakes
College&""Arial,Bold""&10" & Chr(10) & "Brainerd/Staples Campus Telephone
Directory €“ Klick 2008"
.RightHeader = ""
.LeftFooter = "&7Update 12/15/08"
.CenterFooter = _
"&8 E-Mail address is: 1st initial of 1st name, last
" & Chr(10) & "Names in BOLD are members of the Presidents
Cabinet" & Chr(10) & "PLEASE NOTE Extensions that are 83-- can only be dialed
internally"
.RightFooter = "&7Page &P of &N"
.LeftMargin = Application.InchesToPoints(0.41)
.RightMargin = Application.InchesToPoints(0.25)
.TopMargin = Application.InchesToPoints(0.75)
.BottomMargin = Application.InchesToPoints(0.83)
.HeaderMargin = Application.InchesToPoints(0.3)
.FooterMargin = Application.InchesToPoints(0.3)
.Zoom = 82
.PrintErrors = xlPrintErrorsDisplayed
.OddAndEvenPagesHeaderFooter = False
.DifferentFirstPageHeaderFooter = False
.ScaleWithDocHeaderFooter = True
.AlignMarginsHeaderFooter = False
.EvenPage.LeftHeader.Text = ""
.EvenPage.CenterHeader.Text = ""
.EvenPage.RightHeader.Text = ""
.EvenPage.LeftFooter.Text = ""
.EvenPage.CenterFooter.Text = ""
.EvenPage.RightFooter.Text = ""
.FirstPage.LeftHeader.Text = ""
.FirstPage.CenterHeader.Text = ""
.FirstPage.RightHeader.Text = ""
.FirstPage.LeftFooter.Text = ""
.FirstPage.CenterFooter.Text = ""
.FirstPage.RightFooter.Text = ""
End With
Sheets("LAST_TITLE").Select
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Don - Please help on another subject - headers

If desired, send your wb to my address below with complete desires and
before/after examples. When I have time I will take a look.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ConnieM_brd" wrote in message
...
On this same directory workbook. I have a header that I want on all
pages.
I made changes to the ALL ws and then I recorded a macro that would take
the
text from ALL ws and copy to LAST_TITLE ws. It worked when I was
recording
the macro, but when I run the macro - all I get is the screen jumping and
nothing changes. I need to do the same on the ALL footer. I am trying to
make this 'task' of updating the directory easy for the actual user who
will
need to update. And I thought that my creating macros would be so nice.
So
far the 2 macros I created aren't working - it must be me.

Sub Header()
'
' Header Macro
'

'
Sheets("ALL").Select
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = _
"&""Times New Roman,Bold Italic""&14Central Lakes
College&""Arial,Bold""&10" & Chr(10) & "Brainerd/Staples Campus Telephone
Directory €“ Klick 2008"
.RightHeader = ""
.LeftFooter = "&7Update 12/15/08"
.CenterFooter = _
"&8 E-Mail address is: 1st initial of 1st name, last
" & Chr(10) & "Names in BOLD are members of the Presidents
Cabinet" & Chr(10) & "PLEASE NOTE Extensions that are 83-- can only be
dialed
internally"
.RightFooter = "&7Page &P of &N"
.LeftMargin = Application.InchesToPoints(0.41)
.RightMargin = Application.InchesToPoints(0.25)
.TopMargin = Application.InchesToPoints(0.75)
.BottomMargin = Application.InchesToPoints(0.83)
.HeaderMargin = Application.InchesToPoints(0.3)
.FooterMargin = Application.InchesToPoints(0.3)
.Zoom = 82
.PrintErrors = xlPrintErrorsDisplayed
.OddAndEvenPagesHeaderFooter = False
.DifferentFirstPageHeaderFooter = False
.ScaleWithDocHeaderFooter = True
.AlignMarginsHeaderFooter = False
.EvenPage.LeftHeader.Text = ""
.EvenPage.CenterHeader.Text = ""
.EvenPage.RightHeader.Text = ""
.EvenPage.LeftFooter.Text = ""
.EvenPage.CenterFooter.Text = ""
.EvenPage.RightFooter.Text = ""
.FirstPage.LeftHeader.Text = ""
.FirstPage.CenterHeader.Text = ""
.FirstPage.RightHeader.Text = ""
.FirstPage.LeftFooter.Text = ""
.FirstPage.CenterFooter.Text = ""
.FirstPage.RightFooter.Text = ""
End With
Sheets("LAST_TITLE").Select
End Sub


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
lookup using column headers and row headers Memphus01 Excel Discussion (Misc queries) 1 April 13th 09 04:57 PM
Two Headers, one subject column and various columns with data ILoveMyCorgi Charts and Charting in Excel 5 October 21st 08 05:48 PM
Hide Column Headers but not row (Headers) Kevan Gradwell Excel Programming 1 March 16th 07 05:59 PM
No Subject Charts and Charting in Excel 0 June 5th 05 12:00 AM
No Subject Excel Worksheet Functions 0 March 4th 05 12:00 AM


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