Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Word 2007 VBA - Prevent drag/copy of contentcontrol

Posted on 2014-02-04
2
Medium Priority
?
713 Views
Last Modified: 2014-02-11
In short I have a document template that allows users to add pre defined contentcontrols and these are locked so that they cannot be edited. However if the user drags the contentcontrol it copies the content control. this is unwanted.

How can I prevent the drag/copying of contentcontrols?

TIA
0
Comment
Question by:Philip Pinnell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
Computer Egghead earned 2000 total points
ID: 39845740
0
 
LVL 13

Author Comment

by:Philip Pinnell
ID: 39849601
Sorry, I missed your comment.

I have in the meantime devised my own work around.

What I have done is allowed the deletion but I am trapping the delete event and if it is the contentcontrol that is selected, I don't let the delete happen.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question