Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Header & Footer make template for multiple users

I´m looking for a possibility to program a template for excel 2003 where the
file creator and the creation date automatically appear in the header and or
footer.

Is there any code to program this and how do i make it as a template on all
computers through the entire company?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Header & Footer make template for multiple users

I think you'll need more than a template file. There are somethings that aren't
available just through templates.

But you could create a template file with a macro that adds the stuff you want
to the header/footer.

The macro in the template workbook could look something like:

Option Explicit
Sub auto_open()

Dim wks As Worksheet

With ThisWorkbook
If .Path = "" Then
For Each wks In .Worksheets
With wks.PageSetup
.LeftFooter = Application.UserName
.RightFooter = Format(Date, "mm/dd/yyyy")
End With
Next wks
End If
End With

End Sub


I'd put the template file in a common network folder that is accessible to
everyone.

Then I'd use MSWord to tell Office where to find these templates.
Inside MSWord
tools|Options|File Locations|Workgroup templates
(I'd try to use the UNC path \\server\sharename\folder\folder instead of the
mapped drive, too.)

Excel will use that location--although excel doesn't have a nice way to set that
folder location.


HeintjeHB wrote:

I´m looking for a possibility to program a template for excel 2003 where the
file creator and the creation date automatically appear in the header and or
footer.

Is there any code to program this and how do i make it as a template on all
computers through the entire company?


--

Dave Peterson
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 problems cliffhanger79 Charts and Charting in Excel 4 November 7th 05 08:03 PM
Header & Footer Excel 2003 juliasl0 Excel Discussion (Misc queries) 2 November 4th 05 02:37 PM
How can I insert "&" in Header & Footer? Regina Man Excel Discussion (Misc queries) 2 September 26th 05 02:32 PM
add a header and or footer to all sheets/tabs Sharon Excel Discussion (Misc queries) 1 September 14th 05 07:46 PM
Template for header in charts Helge Stenstroem Charts and Charting in Excel 1 May 14th 05 10:54 AM


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