Solved

Word 2007 VBA - Prevent drag/copy of contentcontrol

Posted on 2014-02-04
2
652 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
2 Comments
 
LVL 2

Accepted Solution

by:
Computer Egghead earned 500 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now