Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2012, 11:21 AM
remodel remodel is offline Help with locking wdPictureContentControl Windows 7 64bit Help with locking wdPictureContentControl Office 2007
Novice
Help with locking wdPictureContentControl
 
Join Date: Oct 2012
Posts: 2
remodel is on a distinguished road
Default Help with locking wdPictureContentControl

I am creating a document that I have multiple picture content controls, and I want to write a macro that will change the properties of each control once the photo is inserted.


Example: User clicks on icon in center of control, *dialog box opens* user chooses file to insert, user clicks "Insert"
At this point I need a macro that changes the properties of the content control to lock the control from editing, and lock it from deletion.
I understand that these options are available from the properties in the designer tab, but I want it automatic on "Insert".

I appreciate any assistance that can be provided.

FYI - I have each content control with it's own individual naming convention so that a script will work for a particular named control instead of the entire document. (Named - 1, 2, 3, etc.)
Reply With Quote
  #2  
Old 10-25-2012, 10:45 PM
macropod's Avatar
macropod macropod is offline Help with locking wdPictureContentControl Windows 7 64bit Help with locking wdPictureContentControl Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

For some code to get you started, see: https://www.msofficeforums.com/word-...ify-table.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
oninsert, wdpicturecontentcontrol

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking a Form lafranceds Word 1 12-12-2010 11:40 AM
locking out word joe Word 0 11-19-2009 02:09 AM
Locking/imbedding text Stjamesg8 Word 1 04-12-2009 08:43 AM
Locking Text Boise User Word 0 01-24-2009 01:55 PM
Locking a Word Document Coach_Patrick Word 1 11-06-2008 12:00 PM

Other Forums: Access Forums

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