Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2019, 09:38 AM
ziggle314 ziggle314 is offline Using Unicode for Document Properties Windows 10 Using Unicode for Document Properties Office 2016
Novice
Using Unicode for Document Properties
 
Join Date: Dec 2018
Posts: 4
ziggle314 is on a distinguished road
Default Using Unicode for Document Properties

I have some templates for documenting engineering parts that contain advanced document properties that contain part numbers. The use of properties allows me to use the template for many different part numbers by just changing a property.



Recently, I have wanted to include some Unicode characters in these part numbers. Specifically, non-breaking hyphens. When I try to use non-breaking hyphens in a part number, I get what appears to be spaces.

Is there any way to use Unicode in a property that is scattered throughout my document?
Reply With Quote
  #2  
Old 03-01-2019, 12:59 PM
Charles Kenyon Charles Kenyon is offline Using Unicode for Document Properties Windows 10 Using Unicode for Document Properties Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
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

I do not know.

Consider using Mapped Content Controls.
Mapped Content Controls by Greg Maxey, MVP

Two tools for creating these:
If you only need one or two, you can rename some of the ones already built into Word.
Repeating Data Using Document Properties Content Controls and Other Mapped Content Controls
Reply With Quote
  #3  
Old 03-01-2019, 01:20 PM
ziggle314 ziggle314 is offline Using Unicode for Document Properties Windows 10 Using Unicode for Document Properties Office 2016
Novice
Using Unicode for Document Properties
 
Join Date: Dec 2018
Posts: 4
ziggle314 is on a distinguished road
Default Thanks

This is an option that I am not familiar with. I will check it out. Thanks!
Reply With Quote
  #4  
Old 03-02-2019, 02:30 AM
gmayor's Avatar
gmayor gmayor is offline Using Unicode for Document Properties Windows 10 Using Unicode for Document Properties Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
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

You cannot use such characters in custom document properties as you have discovered, however Charles' suggestion is a good one and mapped controls are easily inserted and then copied and pasted to all the locations required. Using the addin mentioned by Charles http://www.gmayor.com/insert_content_control_addin.htm you can insert a mapped control and then enter the value into it. You can then lock the control against editing (also available from the add-in of the control's properties) and the value you have entered can be reproduced anywhere in the document by simply copying and pasting and the lock will prevent the value from being accidentally changed (as a change in one mapped control will be reproduced in all the copies).

If you want to change the value, unlock the control from the add-in (which will unlock all the mapped copies also) make the change then lock again. Thus you can use an unlocked control in the document template and lock it as required (or not) when the value has been applied.
__________________
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
  #5  
Old 03-02-2019, 03:34 PM
ziggle314 ziggle314 is offline Using Unicode for Document Properties Windows 10 Using Unicode for Document Properties Office 2016
Novice
Using Unicode for Document Properties
 
Join Date: Dec 2018
Posts: 4
ziggle314 is on a distinguished road
Default Question on Security Issue

Hi Graham,

I downloaded your addin and installed it, but I am getting a security warning.



I have enabled macros.



Thoughts on how to proceed?
Reply With Quote
  #6  
Old 03-02-2019, 07:59 PM
Charles Kenyon Charles Kenyon is offline Using Unicode for Document Properties Windows 10 Using Unicode for Document Properties Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
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

  1. It is a Very BAD idea to enable all macros.
  2. Unless you have a specific reason for doing so, you do not want to trust access to the vba project object model.
Did you install it by placing it in the Word Startup Folder?
That should be a Trusted Location in your Trust Center settings.
Reply With Quote
  #7  
Old 03-03-2019, 05:47 PM
ziggle314 ziggle314 is offline Using Unicode for Document Properties Windows 10 Using Unicode for Document Properties Office 2016
Novice
Using Unicode for Document Properties
 
Join Date: Dec 2018
Posts: 4
ziggle314 is on a distinguished road
Default Still Not Working

The macro settings I show here were temporary to try to see what the problem could be. This is a brand-new computer running Office 365. After running the installer, I see that the Word Start folder is a trusted location and the installer put one file in there:Custom Content Control Ver 3.8.dotm.

I continue to get the same error as before.
Reply With Quote
  #8  
Old 03-03-2019, 10:05 PM
gmayor's Avatar
gmayor gmayor is offline Using Unicode for Document Properties Windows 10 Using Unicode for Document Properties Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
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

It seems that your security is overzealous about third party templates with macros. This could be attributable to your AV software. Some AV software is restrictive about third party documents. Frankly much AV software is more of a hindrance than a help to Office users. If you are using third party AV software, checkout its settings and get it to trust Office documents.

Without interference from AV software, the trusted folder system is supposed to overcome security issues with documents and templates. If it still doesn't work: ....

Change Word's macro security to Disable all Macros with Notification. Close Word. Move the template out of that folder and then open it in Word as if it was a a document. You should get a security warning prompt about the macros. Enable the macros then File > Save As with the same name into the Word Startup folder. That should in theory give you ownership of the file.
__________________
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

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Unicode for Document Properties Automate document properties Ted C Word VBA 11 08-04-2014 06:31 AM
Using Unicode for Document Properties Updating Document Properties without using advanced properties dialogue thedr9wningman Word VBA 3 01-20-2014 05:56 PM
Key shortcut to access document properties eroock Word 0 12-11-2012 10:54 AM
Using Unicode for Document Properties Add custom document properties into document NicBodkin Word 8 05-05-2011 09:09 AM
document properties issues charris1980 Word 0 04-29-2009 12:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:57 PM.


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