Identifying a content control in a Word 2013 document and accessing the current "text" value of the control.

I'm new to VBA and need to better understand the syntax for identifying, accessing control "value" and setting the value from a user form.
My task is this, I have a word document containing the new Content Controls. I need to be able to access each individual control to initialize a UserForm control. I then need to update the "values of the controls on exiting the UserForm. Can someone
proved some simple sample code showing this functionality? I have surmised that the "range" attribute holds the value of the control but I need the textual or logical value of the control.
Thanks.

Hi Gunteacher,
My task is this, I have a word document containing the new Content Controls. I need to be able to access each individual control to initialize a UserForm control. I then need to update the "values of the controls on exiting the UserForm.
What's content control you are using? Based on my understanding, we can indentify the content control by its tag and get the value of content control and initialize the control on the userform in the initialize event of userform. For example,
code below is that get the text of rich text content control:
ActiveDocument.ContentControls(1).Range.Text
And here are some helpful links about content control for your reference:
ContentControl Object (Word)
Working with Content Controls
What did you mean "I then need to update the "values of the controls on exiting the UserForm."? Did you mean that when the values of content control is changed, it should update the control on the user form which was open before?
As far as I know, there is no such event suitable for this secnario. If you want content control to support this event, I suggest that you submit the feedback from the "Smile Face" at the top right corner of Word.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • I am running Acrobat X Pro on Windows 7 in Parallels. I have tried to install the Acrobat updates, but they won't install. Today I tried to create a pdf from a Word 2013 document and it crapped out. I tried to uninstall Acrobat and got Error 1310. Error w

    I am running Acrobat X Pro on Windows 7 in Parallels. I have tried to install the Acrobat updates, but they won't install. Today I tried to create a pdf from a Word 2013 document and it crapped out. I tried to uninstall Acrobat and got Error 1310. Error writing to file: c:\Config.Msi\feea.rbf. What do I do?

    Hi Beverly ,
    Please refer to the following and see if this helps.
    https://helpx.adobe.com/creative-suite/kb/error-1310-error-writing-file.html
    Regards
    Sukrit Dhingra

  • Is there a way to programmatically save a Word 2013 document into a Word 2010 in compatibility mode?

    Hi,
    I have a Word 2013 document that I want to open in Word 2010.  The problem is this document has a repeating section content control and if I open it in Word 2010, the content control is removed so the data won't be seen.  Is there any way programmatically
    to save the document in Word 2010 compatible mode?  So that I can open in both Word 2013 and 2010.  By the way, I'm using C# and OpenXML for this.
    Thanks.

    Hi,
    Based on my tested, I created a "Rich Text" content control in Word 2013, and it'll works fine in Word 2010.
    As far as I know, in Word 2013, content controls provide three key improvements: improved visualization, support for XML Mapping for Rich Text content controls, and a new content control for repeating content.
    Please see the article "What's new with content controls in Word 2013" it may be helpful to you.
    If you have any further question about coding/programing, please post your question to MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes&sort=lastpostdesc
    Regards,
    George Zhao
    TechNet Community Support

  • Removing Ink from Word 2013 document

    Hi there
    I have a word 2013 document with ink markings on it and I am finding it difficult to delete or remove them. I do not have a tablet or stylus, and am finding it impossible to remove these stubborn ink markings. Any help would be appreciated, I have already
    tried creating a "delete all ink" macro per an often cited YouTube tutorial, with no luck.

    Hi,
    Ink for Word is an addon to Microsoft Word that brings enhanced annotation support to Word documents.
    Have you tried the option of Reject All Changes and Stop Tracking under REVIEW tab?
    On the Review tab, in the Tracking group, click the arrow next to
    Show Markup, select Ink. Then in Changes
    group, click Reject All Changes and Stop Tracking or Accept All Changes and Stop Tracking in
    Accept and Reject list.
    Please have a try and feel free to post back.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • How to repair a corrupted word 2013 document?

    Yesterday I was working on a very important Microsoft Word (2013) document, when it suddenly crashed. Upon trying to reopen the file Word said: “The
    file is corrupted and cannot be opened”. I have tried all of the other methods of restoring it, such as opening it in a different program, or opening it and choosing "open and repair" in MS Word.

    When a Word document file is corrupted, then you can try several methods to recover it:
    1. First of all, you can try the recovery function integrated with Microsoft Word, as follows:
    1) On the File menu, click Open.
    2) In the Look in list, click the drive, folder, or Internet location that contains the file that you want to open.
    3) In the folder list, locate and open the folder that contains the file.
    4) Select the file that you want to recover.
    5) Click the arrow next to the Open button, and then click Open and Repair.
    You may find more information about this at:
    http://office.microsoft.com/en-us/word-help/recover-the-text-from-a-damaged-document-HP005189610.aspx (for Word 2003)
    http://support.microsoft.com/kb/893672/en-us (for Word 2007/2010/2013)
    2. Second, since Word 2003, it provides a "Document Recovery" or "AutoRecover" mechanism so that when Word is shutdown abnormally, the Word file being edited will be recovered when Word is launched next time, which makes the file recovery possible.
    See below:
    http://support.microsoft.com/kb/316951/
    http://support.microsoft.com/kb/827099/
    http://office.microsoft.com/en-us/word-help/do-you-want-to-view-recovered-files-again-HA010354297.aspx
    http://office.microsoft.com/en-us/word-help/automatically-save-and-recover-office-files-HP010140729.aspx
    http://office.microsoft.com/en-us/word-help/recover-your-office-files-HP010354299.aspx
    http://office.microsoft.com/en-us/word-help/use-the-document-recovery-task-pane-to-recover-files-HP003078411.aspx
    http://office.microsoft.com/en-gb/word-help/use-the-document-recovery-task-pane-to-recover-your-files-HP010140613.aspx
    for more detailed information.
    3. If 1 and 2 does not work, then you may try third-party tools such as DataNumen Word Repair at
    http://www.datanumen.com/word-repair/
    It provides a free demo version so that you can try to see if the data you want can be recovered or not.
    Good luck!

  • DOC should be a normal Word document and we should be able to define the header style

    Hi Team,
    We are facing a issue with the pre assigned headers assigned by Adobe acrobat Pro Xl.
    Our actual requirement is as follows:
    1. As we convert a PDF to DOC there shouldn't be any pre assigned headers (header levels defined).
    2. DOC should be a normal Word document and we should be able to define the header style.
    We have tried working out on the same but nothing is going our way.
    We tried couple of step which are as follows:
    1. Deleting pre assigned TAG's.
    2. Clearing headers with the help of Touch Up Reading Order Tool (TURO).
    Request you to kindly revert on the same.

    1. As we convert a PDF to DOC there shouldn't be any pre assigned headers (header levels defined).
    You cannot control how Acrobat creates the word file.
    2. DOC should be a normal Word document and we should be able to define the header style.
    The word file is a normal Word document file. You may wish it was designed for it to be easiest to edit. Acrobat is making a Word file to most reliably resemble the original pdf file. I have no trouble creating any header style I want. The text in the header frequently consists of text boxes. Acrobat does this to insure accurate representation of the pdf file.

  • Cannot convert pdf to word - just spins and says retrievin current session status - has been doing it for days

    Cannot convert pdf to word - just spins and says retrievin current session status - has been doing it for days

    Hi da522811,
    Are you still having trouble converting files? It sounds as though you may be trying to convert via Reader, is that correct? If so, please try logging out, and then logging back in. You may need to log out via the web interface at https://cloud.acrobat.com if you don't have access to the Sign Out button in Reader.
    Please let us know how it goes.
    Best,
    Sara

  • Can I recover the database to the current time using a backup control file?

    Can I recover the database to the current time using a backup control file? How far can I recover this database?
    I have an Oracle 10g(10.2.3) database on RHEL4.3 system.
    I have lost all the current control files and all the online redo logs, archived redo logs and all other files are OK.
    Now I have to recovery this database using a backup control file.
    Can I recover the database without any data lost?

    If
    a) it was a Shutdown Abort or an Instance Crash (i.e. backgrounds died on detecting loss of redo logs),
    b) redo logs are lost
    c) data files are intact
    You'd have to
    a) Restore datafiles
    b) Do an Incomplete Recovery to the last available ArchiveLog
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Display the Current Running Files in the Label Control

    I have a label control in Windows Form Application, and i have the application to display the building and progress of the projects in the label control using C# code. Along with the update of the label, the progress bar should also show progress simultaneously,
    according to the building of the project. How should i do this ??
    Thanks.
    Tanmay

    Hello All;
    I want to know how can i display the current running project in the label control along side the same, i want to  display the progress of the files that are build successfully through a progress bar.
    What i need to do is when i click the button named as "Build" in the GUI it will display the selected projects to build from the CheckedListbox into the label control placed in the GUI.
    Please, provide me some hint regarding the same.
    Thanks.
    Tanmay
    Hello,
    It depends on what your application is and how you build these files, if possible you could share them with us.
    The most common way to display the progress, is to set the text for that label before or after we execute the line building these files.
    You could place the lines setting the text or change the progressbar.value before or after the building lines.
    Here is a simple sample using progressbar with a backgroundworker.
    http://stackoverflow.com/questions/12126889/how-to-use-winforms-progress-bar
    Regards,
    Carl 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Does "Erase All Content and Settings" remove or retain the current IOS version on the device

    I want to give my iPhone 3GS w/IOS 6 to a family member.  When I "Erase All Content and Settings", will it remove or retain the current IOS version on the device?

    The version that is installed will remain.

  • Userform controls disappearing in Word 2013/Windows 8.1 with High-Res display - DLL error?

    I have a .dotm file with a large number of modules and userforms. Creating new documents from the template works fine on almost every computer I've tested it on (hundreds), but I've run into a setup that fails consistently.
    Two different Samsung ATIV 9's with a high res display and Windows 8 (64bit)/Office 2013 show the same problem:
    When opening a new document based on the template for the first time, it works fine. If I open the VB editor, everything looks normal, userforms are intact.
    On the second and all consecutive attempts, it throws a "Type Mismatch" error. Opening the VB Editor, I get a compile error on lines of code referencing components of the first userform (alphabetically). Opening that userform, it shows only a blank
    multi-page control, and all the other controls are missing - hence the new compile errors on controls that used to exist. If I remove that userform and save the file, the project compiles, but opening a new document from the template will result in "Word
    has stopped working..."
    I can actually reproduce this behavior starting from scratch - new blank document, save as a .dotm. Create a new userform and add a multipage control. Clicking any control in the toolbox to add it to the form will result in a "Type Mismatch" error,
    even though there's no VBA code. I can then successfully add the control to the form. But, once I save and reopen the template, the multi-page control is blank, and the other controls I put on it disappear.
    I at one point got an error from the VB Editor that it "could not open macro storage" and the included help suggested that might be due to an incorrect version of vbe7.dll.
    The only copy of vbe7.dll I could find was at:
    c:\Program Files\Microsoft Office 15\root\vfs\ProgramFilesCommonX86\Microsoft Shared\VBA\VBA7.1
    The dll version was 7.1.10.44
    I tried replacing that file with a vbe7.dll file from a working computer (version 7.0.15.89 from c:\Program Files (x86)\Common Files\microsoft shared\VBA\VBA7), but that just resulted in the VB editor not loading at all.
    I have tried both a 32bit Click-to-run version of Office 2013, and installing off a CD with 64bit Office 2013, both had exactly the same error.
    The reason I'm wondering if it's a high-DPI display related error is that googling about vbe7.dll errors, I came across this hotfix:
    http://support.microsoft.com/kb/2880496/en-us
    which claims it "Fixes various Visual Basic for Applications (VBA) issues with displays on high-DPI devices."
    Neither the 32bit or 64bit installer for that hotfix would run, they said there was no affected programs installed.
    My reasoning for suspecting a hardware/DLL incompatibility is this:
    1) It's not the template or the VBA code, since those work elsewhere and the same behavior happens with any file with a userform
    2) It's not the Office version, since both 32/64 bit, MSI and Click-to-run didn't work
    3) It's not Windows 8.1, since this same template works fine on other machines
    4) The first time I open the template on the affected machines, it works fine - but the template is shipped compacted and decompiled. After I open it once and then close, Word has compiled the code and corrupted it somehow, because whatever the first userform
    was in the list shows up as blank.
    5) It feels hardware-specific, since out of hundreds of machines, I've only seen this behavior on two of the same laptop model - seems like too much of a coincidence.
    Is there any chance the VBE in Office 2013 is somehow incompatible with this hardware? If that might be the case, does anyone have any idea how I'd go about testing and/or fixing it?
    Any thoughts are much appreciated.

    Hi Chris,
    Try the following.
    Download the IDT Audio installer on the link below and save it to your Downloads folder.
    http://ftp.hp.com/pub/softpaq/sp59501-60000/sp59861.exe
    When done, open windows Control Panel, open Device Manager and open up Sound, Video and Game Controllers.  If you see an entry for IDT HD Audio ( or very similar IDT entry ), right click the device and select Uninstall - you should also get a prompt to remove the current driver, tick the box to allow this and then proceed with the uninstall.  If there was no IDT entry, just proceed below.
    When complete, shut down the notebook, unplug the AC Adapter and then remove the battery.  Hold down the Power button for 30 seconds.  Re-insert the battery and plug in the AC Adapter.
    Tap away at the esc key as you start the notebook to launch the Start-up Menu and then select f10 to enter the bios menu.  Press f5 to load the defaults ( this is sometimes f9, but the menu at the bottom will show the correct key ), use the arrow keys to select 'Yes' and hit enter.  Press f10 to save the setting and again use the arrow keys to select 'Yes' and hit enter.
    Let Windows fully load - it will automatically load an audio driver, but just let this complete.  Then open your Downloads folder, right click on the IDT installer and select 'Run as Administrator' to start the installation.  When this has completed, right click the speaker icon in the Taskbar and select Playback Devices.  Left click 'Speakers and Headphones' once to highlight it and then click the Set Default button - check if you now have audio.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Multiple users, same color in Word 2013 document

    A document that was uploaded to a content management system, downloaded and worked on by other users who exchanged the document via e-mail, then uploaded again, had the same color for two users after being downloaded once more. The two users still had the
    same color after I shut everything down and logged back in again. All other users (there were about six in all) had individual colors.
    How can I fix this problem, so that each user has a separate color--not just four users having separate colors and two users sharing a color? There certainly were colors that were not in use in the document (green, yellow, silver, etc.).
    Because the document resided in a content management system, I was referred to this forum instead of the more general Word 2013 forum. Any help would be very much appreciated!

    Hi,
    I'm not sure what color it is in your post, font color or else?
    Please also explain the user's process to handle the document, if possible, step by step, so that I can have a better understanding.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Microsoft Word 2013 Documents open as full version documents on two computers sporadically

    Hello,
    We have a customer site with a perplexing problem that occurs very sporadically.
    Our customer has a large word document called “Green Book” that tracks all customer jobs, new, pending and completed in a large tabled document that can sometimes span up to 300 pages. Yes we are aware we probably should convince the customer to run an Access
    database but have not had the expertise in-house to date to date to do this but that is off the scope of this topic for now….
    The problem that is driving our customer (and us) nuts is that user A will open Green book quite happily, user B will turn up to work some 3 hours later and get a full read / write version of the document. If user B opens up the document immediately or within
    a few minutes of user A the document will predicably come up with a “this document is in use by user xx” and give the end user an option to open the document as read only which would be fine if only this would work that way every time.  Having a second
    user open Green book inadvertently as read / write creates pandemonium when two users have conflicting edits to the document as they both think they have the original.
    Every time our techs have been onsite we’ve been unable actually reproduce the problem for ourselves mainly because we seldom get three spare hours to wait and the office is flat out during business hours with end users reluctant to spare their machines
    at the best of times…
    The problem extends only to this file, no connectivity problems to other files, email or internet surfing have ever been reported so can only assume the core network is solid.
    In a nutshell here is a summary of our customer’s network configuration that was part of a network upgrade done at the beginning of May this year:
    N.B. all hardware (BIOS / firmware), operating systems and software has all been patched up to the latest possible versions both on desktop and server level.
    HP Proliant ML350 Gen8 Server – 48 GB RAM, 2 TB RAID 10 10K SAS drives on a smart Array P400i
    HP server runs Microsoft HyperV 2012 R2 (latest updates applied)  and runs two guest OS:
    SBS 2011 Server (32 GB RAM) that acts as File Server (that originally shared Green Book) / Exchange server
    Windows Server 2012 R2 – RDS / Terminal Server (12 GB RAM) (this server now shares Green book)
    Trend Micro Worry Free Advanced Version 9.0 in use with real time scan disabled on servers but enabled on desktops.
    New late model HP Procurve Gigabit switch installed.
    Desktop Computers are HP EliteDesk 8300 Computers running Windows 8.1 Pro / Office 2013 Home and Business on 4 GB RAM.
    In a nutshell here is a summary of the troubleshooting steps / workarounds all unsuccessfully attempted to date:
    Ensured Green Book from is saved in latest DOCX format not legacy .DOC format
    Turned off server auto-disconnect (done on server not workstations) after 15 minutes feature on  Windows server to rule out disconnected sessions giving User B’s computer a false impression it is the only user with access to Green Book    
          http://  Support.microsoft.  com/kb/297684
    With above setting in effect I’ve instructed an end user to leave a document open for over an hour and do a
    net files command on the SBS file server to confirm that user A still had a session lock on that file (which they did) to rule out a disconnect giving user B’s computer a false impression it had an exclusive access lock on the file.
    Opportunistic locking on server has been disabled.
    Setup a dedicated server with a connection limit of one user at a time to each of these “sensitive files”. Quickly abandoned this as it was more trouble than  it was worth getting user to close Word to release file lock despite document being closed.
    Moving Green book from SBS  server to a shared folder on Windows 2012 R2 terminal server (no auto disconnect parameter set). Still has the same problem!
    In desperation I’ve setup remote desktops for all affected users and put shortcuts on desktop a local C drive copy of Green book. Because it looks different to their desktop and Word is slow anyway users objected and I was forced to allow end users again
    to open green book again from their individual servers.
    What did the customer run before and what were the issues with Green Book?
    Customer ran a Dell PowerEdge T300 Server with 8 GB of RAM and 600 GB mirrored SATA drives on SBS 2008 and Dell workstations running Windows XP SP3 / Office 2007.
    Green Book was always slow because of Word being very slow with 300 + pages of tabled information.
    No file sharing / locking issue as reported above was ever reported.
    If anyone can share any experiences on this or shed any light on the problem we would be eternally grateful…

    I quoted this from your cross-post, by MVP Paul Edstein.
    "Your description suggests a network problem, with the
    networking software losing track of the fact the file is already
    open.
    That said, you might find it useful to store documents intended for
    shared editing in a OneDrive folder. This is designed to allow two or more
    people can edit a word document concurrently.
    Once you have OneDrive
    operational, click OneDrive in the header of a SharePoint or Office 365 site,
    then click the ellipsis (…) to the right of the entry. Then click ‘Share’ and
    invite the other user to view or edit the document, and click ‘Share’ once more.
    To add to the list of people already sharing a document, click the ‘Shared with’
    icon in the ‘Sharing’ column and invite the additional person to view or edit
    the document, and click ‘Share’ once more.
    When someone invites you to
    share a document, you’ll typically receive an email notification with a link to
    the document. Clicking the link opens the document. If you have edit permission,
    your changes are automatically saved.
    For more info, see:
    http://office.microsoft.com/en-us/sh...102772333.aspx "

  • Sample Word 2013 documents in Arabic, Chinese, Hebrew, Japanese, & Korean?

    Hi;
    Can someone (actually 5 someone's) please post a sample docx file where it has just a line of text in Arabic, Chinese, Hebrew, Japanese, or Korean and is created in Word 2013 where Windows & Word are both the local version for Arabic, Chinese, Hebrew,
    Japanese, & Korean.
    Please don't set any formatting. Have it be the default font, style, etc. I want to get what Word uses as the default for all settings for each language. For Chinese, if possible, one from PRC and one from Taiwan.
    Thank you - dave
    Who will win
    The Windward International Collegiate Programming Championships?

    Hi,
    Due to the limitation of my resources here, currently I'm not able to do the same with other languages, I really apologize if I brought you any inconvenience.
    As I mentioned in another post, the default fonts depend upon the version of Office, they change in different versions:
    http://social.technet.microsoft.com/Forums/en-US/f4615e44-8804-4ba4-bab7-1e76513e2d15/what-is-the-default-font-for-cjk-bidi?forum=word
    The results I got about Simplified Chinese and Traditional Chinese were from Office 2013, Windows 8.1, both local versions.
    Actually the default font can be set easily, I hope this can be a little helpful:
    http://support.microsoft.com/kb/291291
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • RoboHelp 9 not generating Word 2013 document

    I am trying to generate a Word document (Word 2013) from RH9. It goes through the generation process and just before it would normally offer to view the result (the Word document) the following message appears:
    'A supported version of Microsoft Word does not exist. Please install Microsoft Word 2000 or newer'
    Any ideas greatly appreciated.

    That will be because you are not using a supported version.
    Rh11 is the only version that supports 2013. You may find that if you right click the print layout and select properties, then you will be able to generate but no other way will work. You will not be able to import Word documents.
    You can have both 2010 and 2013 installed if you have the licences. Just run 2010 before using it with Rh.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • PDF generation , FOP and Oracle Express DB

    Am I right in assuming that you can't use the FOP PDF generation utility with Oracle Express Edition Database? i.e. no oc4j directory etc.. regards Paul P

  • Manual removal of failed resource

    I have a failed Hyper-V role in my HA cluster that I cannot remove.  The role shows in the cluster but any operation (including remove) fails with null pointer errors.  If I look at Hyper-V on the node that is supposed to be running that role, no VM

  • Elements 10 - Location of temp video files

    Hi all, I imported a video into Elements 10 for Mac, and then it crashed while manipulating the video. When I restarted the project, the video clips don't appear anymore. However, my HDD still has lost space from the project. Can someone tell me wher

  • Streaming data from cRIO

    Hi everybody, This is quite a general question and I am looking for some pointers\opinions\suggestions. I want to stream data from several channels at diffferent rates from my cRIO to the host PC. As far as I can see there are three options: 1)  Use

  • ThinkPad Boot Screen - T510

    About 30% of the time when I start the computer it gets stuck at the ThinkPad Screen "To interrupt normal start up press blue button" I have to shut down and restart the machine by pressing the power button, then things are fine. I am running Windows