#1   Report Post  
Ramin
 
Posts: n/a
Default footer

Hi,


Is it possible that if user creates new documents in word or excel,
automatically (date, name, paths and etc) to be added as footer

or is it possible somehow to make domainwide via AD?

Regards,
Ramin

Thanks,
Ramin


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

In Excel, add the following code to Personal.xls

Private WithEvents app As Application

Private Sub app_WorkbookBeforePrint(ByVal Wb As Workbook, Cancel As Boolean)
With Wb.ActiveSheet.PageSetup
.LeftFooter = ActiveWorkbook.FullName
.RightFooter = Format(Date, "dd mmm yyyy")
End With
End Sub

Private Sub Workbook_Open()
Set app = Application
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ramin" wrote in message
...
Hi,


Is it possible that if user creates new documents in word or excel,
automatically (date, name, paths and etc) to be added as footer

or is it possible somehow to make domainwide via AD?

Regards,
Ramin

Thanks,
Ramin




  #3   Report Post  
Stefan Blom
 
Posts: n/a
Default

The following is a basic approach to achieve what you want in Word:
Create a template which includes the following fields in the
footer: { FILENAME \p }, { DOCPROPERTY "Author" }, and { CREATEDATE }.
For { DOCPROPERTY "Author" } it is required that the name of the user is
in the Options dialog box (ToolsOptionsUser Information tab).

For more information about templates, see:

Creating a Template – The Basics (Part I)
http://word.mvps.org/faqs/Customizat...platePart1.htm

What do Templates and Add-ins store?
http://word.mvps.org/faqs/customizat...latesStore.htm

For more about fields, look them up in Word Help.

--
Stefan Blom
Microsoft Word MVP


"Ramin" wrote in message
...
Hi,


Is it possible that if user creates new documents in word or excel,
automatically (date, name, paths and etc) to be added as footer

or is it possible somehow to make domainwide via AD?

Regards,
Ramin

Thanks,
Ramin








Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a different footer in the last page of a section? CrochetRed Microsoft Word Help 4 October 24th 05 05:08 AM
Different number format on different pages NaomiBolderheij Page Layout 2 August 12th 05 11:16 PM
Footer Margins in Page Setup Tami Page Layout 2 June 23rd 05 04:35 PM
Change Footer on pg 2 to be different then the footer on pg 1 Ted Microsoft Word Help 5 January 19th 05 05:45 PM
Same header but even/odd footer (sorry for the new thread) B?atrice Karjalainen Page Layout 1 December 16th 04 12:40 AM


All times are GMT +1. The time now is 06:42 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"