Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-27-2015, 02:46 AM
JacquesW JacquesW is offline Fieldupdate before saving and save document where documentname is resut of field values Windows 7 32bit Fieldupdate before saving and save document where documentname is resut of field values Office 2010 32bit
Novice
Fieldupdate before saving and save document where documentname is resut of field values
 
Join Date: Jan 2012
Posts: 21
JacquesW is on a distinguished road
Default Fieldupdate before saving and save document where documentname is resut of field values

I am a novice in macro and VBA. I know a little of macro's and I am not afraid tot experiment with VBA.

My question is:
I created a document with a number of fields in it.
There are also crosslinks to fields in the header.
When the document is closed by a user I want the following to happen:
1. Fields are updated (also the crosslinks in the header and or footer)
2. A popup appears that gives the user a choice between:


- saving as .docx or
- saving as .pdf
of course thereafter the code to execute the users choice: .docx or .pdf.

When executing that code I want the documentname pre filled as a result of a prefix plus the date plus the values that the user has filled in in three fields.

sometjhing like this:
VBP [yyyymmdd] [value field 1] [value field 2] [value field 3].docx or .pdf
"VBP 20150226 Surname 00045678 salary.docx"

The user then only can choose the location where to save the document.

I know for a novice I am asking a lot at once.
At the same tine I do not know if this is best done in VBA or with a macro?

I hope someone can help me.
Reply With Quote
 

Tags
field update, save as docx, save as pdf



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fieldupdate before saving and save document where documentname is resut of field values How can I save a Word Document as a PDF file with a merged field filename? kp2009 Word VBA 5 08-27-2015 11:45 PM
Fieldupdate before saving and save document where documentname is resut of field values Summing up values in a Single Merge Field Beowolf Mail Merge 1 03-07-2014 03:26 PM
Save merged document as concatenated merge field values texas791 Word VBA 4 02-25-2014 07:35 PM
Word ask to save template whenever i save a derived document jorbjo Word 3 10-04-2012 10:52 AM
Need to save QlikOCX Plugin as image while saving the PPT udaya.kumar PowerPoint 0 06-09-2012 11:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:02 PM.


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