borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Visual Basic And .pdf .doc files)Next Topic (Problem with OpenRecordSet) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Word Macro Runtime Error 6124
Poster Message
freemarketmike
Level: Trainee

Registered: 30-04-2009
Posts: 1

Ads by Lake Quincy Media
icon Word Macro Runtime Error 6124

I've created a simple userform which updates content controls in a Word letter.  (Nothing to difficult here.)  The form runs superbly on my computer, but when I've e-mailed it to someone else to use it, they get the error:

Run-time error '6124': You are not allowed to edit this selection because it is protected.

Upon hitting debug, it highlights the first line of code which updates one of the content controls:

ActiveDocument.SelectContentControlsByTitle("UniversityName").Item(1).Range.Text = txtUName.Text


I've made sure there is no protection on this document.  Does anybody know why the code runs fine on my computer but not on someone else's?  

Thanks!
-Mike

[Edited by freemarketmike on 30-04-2009 at 02:30 PM GMT]

30-04-2009 at 10:08 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Word Macro Runtime Error 6124
Previous Topic (Visual Basic And .pdf .doc files)Next Topic (Problem with OpenRecordSet) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder