![]() |
#1
|
|||
|
|||
![]()
I am looking for a solution in Word.
Is it possible to choose different footers in a template. We want to use 1 template for our 5 companies, with different adresses, so the footer must contain the right adress of the company. Is there a solution in Word 2010 ? Many thx for your answers! |
#2
|
||||
|
||||
![]()
Hi nielsa,
Is there a reason each branch can't have it's own version of the template?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Hi Paul,
Yes the reason is that the we use one template that is linked with our ERP Navision. Regards, Niels |
#4
|
||||
|
||||
![]()
Hi Niels,
There are various ways of approaching this, using a 'Document_New' macro in the template's 'This Document' module. For example, if you just want text such as a name & address: Code:
Private Sub Document_New() Dim Rslt With ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range While Not Rslt Like "[1-5]" Rslt = InputBox("Which company's details should appear?" & vbCr & "Please input the corresponding number." & vbCr & _ "1: Company A" & vbCr & _ "2: Company B" & vbCr & _ "3: Company C" & vbCr & _ "4: Company D" & vbCr & _ "5: Company E") Wend Select Case Rslt Case 1: .Text = "Company A Name" & vbCr & "Company A Address" Case 2: .Text = "Company B Name" & vbCr & "Company B Address" Case 3: .Text = "Company C Name" & vbCr & "Company C Address" Case 4: .Text = "Company D Name" & vbCr & "Company D Address" Case 5: .Text = "Company E Name" & vbCr & "Company E Address" End Select End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Excuse me for interrupting, but there is a new feature that I love and you might like.
Create a header and select it. Click Insert > Header > Save Selection to Header gallery. I would make a new Category here, something like 1Custom (so it will sort to the top), and give your header a name (perhaps a company name). Delete the header from the page and make the next one, save it to the 1Custom category of the header gallery. Delete it from the page and make the next header, etc. Save the template. Now whenever someone makes a doc using the template, their Header gallery will have the custom choices available. |
#6
|
||||
|
||||
![]()
Hi Kimberly,
For the OP's needs, you'd need to use footers, but the principle is the same. However, without some form of automation, there's a risk that no footer will be inserted. On that front, the code I posted could be adapted to retrieve an entry from the gallery.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]()
Perfect macro, it works.
Many thx Niels |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
soross | Word | 1 | 03-08-2011 01:48 PM |
![]() |
drenriza | Word | 5 | 01-27-2011 12:47 AM |
Headers and Footers | OverAchiever13 | Word | 1 | 05-27-2010 01:30 PM |
Having trouble with footers in Word 2004 | RRae | Word | 0 | 02-26-2010 06:39 AM |
How to type on the back of word template receipts through word ??? | Qintex Solutions llc | Word | 3 | 10-02-2009 07:52 AM |