Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2014, 01:29 PM
mthicke mthicke is offline Part of Filename in header Windows 8 Part of Filename in header Office 2013
Novice
Part of Filename in header
 
Join Date: Feb 2014
Posts: 2
mthicke is on a distinguished road
Default Part of Filename in header

I'm writing an architectural specification document. Each word file is named with the division number and division title:
00 00 00 Air Barriers.docx

my header has the same information in it. It looks like this:

Quote:
Project Title_____________________________00 00 00
#00001_____________________________________Divisio n Title


Mar 2014____________________________________Page 3 of 6
What I would like to be able to do is reference the Division Title and Division Number (00 00 00) from the document name. [00 00 00] [Air Barriers].docx

The project Title, ref number (#0001), Issue Date (Mar 2014) should be variables that are linked to my cover page.

Is all of this possible?
Reply With Quote
  #2  
Old 02-21-2014, 03:12 PM
macropod's Avatar
macropod macropod is offline Part of Filename in header Windows 7 32bit Part of Filename in header Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

A Filename field can only output a complete filename, not parts of it, and Word's field codes have no means of parsing the kinds of strings you're working with.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-21-2014, 08:31 PM
Charles Kenyon Charles Kenyon is offline Part of Filename in header Windows 7 64bit Part of Filename in header Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Look into the StyleRef Field.

You could certainly have these items as Document Properties and use Document Property fields to to reference them as well.

Otherwise, you are going to need to do some vba programming, I believe.
Reply With Quote
  #4  
Old 02-25-2014, 12:08 PM
mthicke mthicke is offline Part of Filename in header Windows 8 Part of Filename in header Office 2013
Novice
Part of Filename in header
 
Join Date: Feb 2014
Posts: 2
mthicke is on a distinguished road
Default

Edit:I have re-posted this question as a separate post

Is it possible to add a custom property that I can access when I right-click and go to properties?
Reply With Quote
  #5  
Old 02-25-2014, 02:35 PM
Charles Kenyon Charles Kenyon is offline Part of Filename in header Windows 7 64bit Part of Filename in header Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by mthicke View Post
Edit:I have re-posted this question as a separate post

Is it possible to add a custom property that I can access when I right-click and go to properties?
It is not necessary to repost a question.

No, custom document properties cannot be read from Windows by right-clicking on an icon. Built-In properties including Title, Author, and Tags can, though. If you can adopt one or more of these for your purposes, that would work.

You can read custom document properties via macros.
Reply With Quote
  #6  
Old 02-25-2014, 03:54 PM
macropod's Avatar
macropod macropod is offline Part of Filename in header Windows 7 32bit Part of Filename in header Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by mthicke View Post
Edit:I have re-posted this question as a separate post
Duplicate thread deleted. Please continue the discussion in this thread only.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
file name



Similar Threads
Thread Thread Starter Forum Replies Last Post
Part of Filename in header Custom Header Gallery Quick Part Displays > in 2007 but not 2010 sleake Word 4 10-23-2013 07:10 AM
Part of Filename in header Graphic filename used in header/footer Zorbadog Word 1 10-15-2012 05:43 PM
Error! Filename not Specified mark.lacey Outlook 0 10-12-2011 03:02 AM
Date display in Mod quick part header Jrul John Word 1 08-02-2010 12:17 PM
Filename in footer Dixon Word 3 09-24-2009 09:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:42 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