Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2022, 06:18 PM
starmumbai starmumbai is offline Dynamic Header and footer in word document based upon company selected in excel. Windows 10 Dynamic Header and footer in word document based upon company selected in excel. Office 2016
Novice
Dynamic Header and footer in word document based upon company selected in excel.
 
Join Date: Jan 2022
Posts: 3
starmumbai is on a distinguished road
Default Dynamic Header and footer in word document based upon company selected in excel.

Dear All,

Request your help with the scenario.

I would need help in changing the header and footer in word document based upon the company selected in the excel (Cell-B9).Can you please assist with VBA code which will help achieve it.



Company
MAX LTD
I am attaching the word and excel documents.

Thankyou in Advance!
Attached Files
File Type: docx Word Template.docx (14.8 KB, 6 views)
File Type: xlsx Excel.xlsx (9.0 KB, 6 views)
Reply With Quote
  #2  
Old 01-28-2022, 11:16 PM
gmayor's Avatar
gmayor gmayor is offline Dynamic Header and footer in word document based upon company selected in excel. Windows 10 Dynamic Header and footer in word document based upon company selected in excel. Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,103
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Change the document to a merge document and make the worksheet merge compatible. Merge to a new document. See attached.
Attached Files
File Type: docx Word Template.docx (17.0 KB, 7 views)
File Type: xlsx Excel.xlsx (8.2 KB, 6 views)
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 01-29-2022, 06:42 AM
starmumbai starmumbai is offline Dynamic Header and footer in word document based upon company selected in excel. Windows 10 Dynamic Header and footer in word document based upon company selected in excel. Office 2016
Novice
Dynamic Header and footer in word document based upon company selected in excel.
 
Join Date: Jan 2022
Posts: 3
starmumbai is on a distinguished road
Default

Thankyou Graham

This solutions provided by you worked wonders.
Reply With Quote
  #4  
Old 02-01-2022, 11:32 PM
starmumbai starmumbai is offline Dynamic Header and footer in word document based upon company selected in excel. Windows 10 Dynamic Header and footer in word document based upon company selected in excel. Office 2016
Novice
Dynamic Header and footer in word document based upon company selected in excel.
 
Join Date: Jan 2022
Posts: 3
starmumbai is on a distinguished road
Default

Hi Graham,

Need your expertise on more thing,whenever i convert the template from word to pdf the format changes(eg.lines in bold is change to light font when converted to pdf)

Please assist.

Thanking you in advance
Shomik
Reply With Quote
  #5  
Old 02-02-2022, 10:12 PM
gmayor's Avatar
gmayor gmayor is offline Dynamic Header and footer in word document based upon company selected in excel. Windows 10 Dynamic Header and footer in word document based upon company selected in excel. Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,103
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

PDF attributes can appear to change when not viewed at 100% magnification. Are you sure this isn't the issue? Otherwise how are you creating the PDF?
You might find the PDF option in E-Mail Merge Add-in useful.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy a selected range of a document to a new document with preserving formatting,header and footer RobertDany Word VBA 10 08-10-2021 04:04 AM
Adding text to the header and footer without removing all other content in the header and footer digitalelise Word VBA 2 10-23-2019 02:58 AM
Dynamic Header / Footer for ALL documents Abri Word 3 08-13-2015 04:40 AM
Dynamic Dashboard on company intranet LabProARW Excel Programming 0 12-16-2014 07:46 AM
Dynamic Header and footer in word document based upon company selected in excel. Need help creating a Word document that is populated based on certain selected values alidaanish Word 1 01-10-2014 10:44 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft