Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 05-13-2013, 03:58 PM
macropod's Avatar
macropod macropod is offline Need VBA Function in Word table formula Windows 7 64bit Need VBA Function in Word table formula Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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 nschroeder View Post
I like where you're going, but I'm not sure how to get there. I'm an Excel/Access/VBA guy, but haven't done much in Word/VBA. I figured out how to create a custom Bor1Name property, but it doesn't show up in Quick Parts - Document Properties, so that would imply that the only way to access custom properties is through code. Could you please give more specifics about how to create and update custom properties through code, and then how to use them to populate table fields? I tried to record creating the property, but the macro came up blank.

Thanks for your help.
having created your custom Bor1Name property, you can reference it anywhere in the document via a DOCPROPERTY field, which you can create via Ctrl-F9, then typing 'DOCPROPERY Bor1Name' between the field braces, thus: {DOCPROPERTY Bor1Name}, then pressing F9 to update. Adding fields through code isn't particularly difficult either.

For some code examples using custom document properties, see:
https://www.msofficeforums.com/word-...numbering.html
https://www.msofficeforums.com/word-...ent+propert%2A
https://www.msofficeforums.com/word/...ferencing.html
A thread that discusses both mapped content controls and the use of custom document properties is:
https://www.msofficeforums.com/word-...t-control.html
Although the above examples don't involve other applications (eg Access/Excel), the code for the Word side of things would be much the same - automating Word from those other apps isn't especially complicated.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
function table formula



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need VBA Function in Word table formula Data table search function omtinole Excel Programming 1 07-13-2012 10:03 PM
Formula help in word table mygsdsni Word Tables 3 01-04-2012 02:36 PM
Need VBA Function in Word table formula Would appreciate help with formula or function e_a_g_l_e_p_i Excel 1 03-12-2011 08:53 PM
Need VBA Function in Word table formula Formula and Table Help! steveman1234 Word Tables 2 03-28-2010 06:20 PM
Help with Word table formula fritman99 Word Tables 1 09-02-2009 05:36 PM

Other Forums: Access Forums

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