Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2016, 09:48 AM
silverspr silverspr is offline Bookmark content controls Windows 8 Bookmark content controls Office 2010 64bit
Novice
Bookmark content controls
 
Join Date: Apr 2011
Posts: 24
silverspr is on a distinguished road
Default

HI, I was trying to stay away from macros...my users are sometimes challenged by having to enable macros....

But I will take a look at the mapping potential.

Building on what was recommended earlier i.e. using table cells to pull/reference content controls. In my summary table I've linked to the content control value (text) which is B2 of the summary table. I'm trying to convert the text comment "Highly Accomplished" to a weighted value, however it doesn't seem to work unless I use the bookmark ref.

here is the formula I'm using:


{ IF { =B2 }="Unaccept*" "0" { IF { =B2 }="Develop*" ".25" { IF { =B2 }="Fully*" ".50" { IF { =B2 }="Commend*" ".75" { IF { =B2 }="Highly*" "1.0" "WTF" } } } } }
Reply With Quote
  #2  
Old 06-12-2016, 04:12 PM
silverspr silverspr is offline Bookmark content controls Windows 8 Bookmark content controls Office 2010 64bit
Novice
Bookmark content controls
 
Join Date: Apr 2011
Posts: 24
silverspr is on a distinguished road
Default

hi Greg,
I'm using word 2013, the mapping addin doesn't want to play nice. Anything to do with mapping or closing even causes word to crash. probably needs a clean install!

I forge forward albeit slowly...

thanks
Reply With Quote
  #3  
Old 06-12-2016, 02:41 PM
macropod's Avatar
macropod macropod is offline Bookmark content controls Windows 7 64bit Bookmark content controls Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
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 silverspr View Post
So am I back to your original recommendation to reference the table and cell of the source content control...arghhh.

I do want the cross reference to update when changed at the "source" control.
The simplest way remains as per post #4 and, if you want to enforce the auto-updating of the calculations, use a ContentControlOnExit macro code as:
Code:
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)
ActiveDocument.Fields.Update
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 06-12-2016, 04:02 PM
gmaxey gmaxey is offline Bookmark content controls Windows 7 32bit Bookmark content controls Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Paul,

Perhaps I'm missing something. I don't believe you can get a cross reference to a non-numeric value in a table cell e.g., cell content = "Highly" and the OP indicates aversion to macros.

The OP can display "Highly" in a dropdown CC and store the value 1 in the node. Accordingly it seems to me that if the OP will accept macros then #15 may be easy enough.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #5  
Old 06-12-2016, 04:19 PM
macropod's Avatar
macropod macropod is offline Bookmark content controls Windows 7 64bit Bookmark content controls Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
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

Ah, I hadn't seen silverspr's last post (#16) when I replied - the forum software only advises of the first reply after one's last visit and, when I replied, didn't see that the thread now has a second page. I agree that formulae won't work for cells containing text - they can be used for retrieving the numeric content of cells containing alpha-numeric content, but not the text. Accordingly, the only viable option will be to either:
• switch from content controls to formfields and use field coding for the calculations; or
• drive the whole process via a ContentControlOnExit macro, with or without the mapping you suggested.

silverspr: If you store the macro in the document's template and store the template in a trusted location, there'll be no need for your users to enable them each time one of these documents is created/opened.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 06-12-2016, 04:19 PM
gmaxey gmaxey is offline Bookmark content controls Windows 7 32bit Bookmark content controls Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Works fine here with 2007 through 2016. I don't know where you are but it could be your regional settings. You can try mapping your document with that macro I sent you or send your document to me and I'll try to map if for you.

You can use the feedback link on my website to contact me.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #7  
Old 06-13-2016, 08:39 PM
silverspr silverspr is offline Bookmark content controls Windows 8 Bookmark content controls Office 2010 64bit
Novice
Bookmark content controls
 
Join Date: Apr 2011
Posts: 24
silverspr is on a distinguished road
Default

Hi Greg
still couldn't get the CC add-in to work after an office 2013 reinstall and repair. The macro worked though!!! The mapped CC are fantastic...it stores the value from the combo box another bonus. And its simple to use! Thank u thank u! Is there a way to get both the title and value property from a combo box using this method? I know I'm pushing the envelope but thought I'd ask....actually I could store the value as alpha numeric!
Reply With Quote
  #8  
Old 06-14-2016, 03:54 AM
gmaxey gmaxey is offline Bookmark content controls Windows 7 32bit Bookmark content controls Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Since the nodes are built based on the CC title, oNode.Basename will return the node name and hence the title. Note however that nodes names can't have spaces so any space in the CC title is replaced with an underscore.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #9  
Old 06-14-2016, 03:55 AM
gmaxey gmaxey is offline Bookmark content controls Windows 7 32bit Bookmark content controls Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Is there anyway you could send me website feedback using the Contact link on my website? I would like to test you document here to see if it crashes the add-in here.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #10  
Old 06-14-2016, 05:19 AM
silverspr silverspr is offline Bookmark content controls Windows 8 Bookmark content controls Office 2010 64bit
Novice
Bookmark content controls
 
Join Date: Apr 2011
Posts: 24
silverspr is on a distinguished road
Default

sure will do
Reply With Quote
Reply

Tags
bookmark;content control



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA for content controls ciresuark Word VBA 1 03-10-2015 03:14 PM
Calculate Age From Content Controls kintap Word VBA 10 07-02-2014 09:25 AM
Content Controls in Headers ejungk99 Word 2 06-16-2014 04:02 PM
Bookmark content controls Content Controls Sammie0Sue Word 6 11-06-2013 10:56 PM
Bookmark content controls Grouping Content Controls cksm4 Word VBA 2 03-01-2011 12:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:44 AM.


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