This is a blog which will post useful infomation about fixing computer errors. To help people troubleshoot errors, speed up computers and share good apps.

9/23/2016

CRASH AND POSSIBLE DATA LOSS: Inserting ContentControls in tables with VBA [Word 2010] Tech Support

CRASH AND POSSIBLE DATA LOSS: Inserting ContentControls in tables with VBA [Word 2010]

Hello everyone,

I'd like to report a probable severe issue with word 2010.

By inserting a ContentControl (I tried with a checkbox) in a table cell that already contains a ContentControl, Word 2010 crashed.
In some cases, I even lost ALL my VBA code by saving the recovered file version (I could not manage to reproduce that, though).

Can someone replicate it?

In my Document, I had a 3 by 8 table and a active x button that ran the code posted below.

Best,

Francesco

--- VBA CODE ---

Option Explicit

Private Sub CommandButton1_Click()

Dim curDoc As Document
Set curDoc = Documents("Document.docm")

Dim curTable As Table
Set curTable = curDoc.Tables(1)

Dim row As Integer, col As Integer
row = 2
col = 4
Call curTable.Cell(row, col).Range.ContentControls.Add(wdContentControlCheckBox)
Call curTable.Cell(row, col).Range.ContentControls.Add(wdContentControlCheckBox)

End Sub

Anwsers to the Problem CRASH AND POSSIBLE DATA LOSS: Inserting ContentControls in tables with VBA [Word 2010]

Download SmartPCFixer for Free Now

If you want two check boxes in the same cell, then use

Option Explicit
Private Sub CommandButton1_Click()
Dim curDoc As Document
Dim curTable As Table
Dim row As Integer, col As Integer
Dim oRng As Range
    Set curDoc = ActiveDocument
    Set curTable = curDoc.Tables(1)
    row = 2
    col = 4
    Set oRng = curTable.Cell(row, col).Range
    oRng.End = oRng.End - 1
    ActiveDocument.ContentControls.Add (wdContentControlCheckBox), oRng
    oRng.Collapse wdCollapseEnd
    ActiveDocument.ContentControls.Add (wdContentControlCheckBox), oRng
End Sub

instead

Open Action Center by clicking the Start button Picture of the Start button, clicking Control Panel, and then, under System and Security, clicking Review your computer's status.

Make sure your computer has at least the minimum amount of random access memory (RAM) required to run the program that is displaying the error. Look for the program requirements online or in the packaging information.

Recommended Method to Repair the Problem: CRASH AND POSSIBLE DATA LOSS: Inserting ContentControls in tables with VBA [Word 2010]:

How to Fix CRASH AND POSSIBLE DATA LOSS: Inserting ContentControls in tables with VBA [Word 2010] with SmartPCFixer?

1. Download Error Fixer . Install it on your computer.  Click Scan, and it will perform a scan for your computer. The errors will be shown in the scan result.

2. After the scan is finished, you can see the errors and problems which need to be fixed.

3. When the Fixing part is finished, your computer has been speeded up and the errors have been removed


Related: How Can You Update & Download NVidia 6100, 6800 GS/XT Display Driver v.260.89 WHQL,Where to Download NVidia GeForce 8800 GT WHQL-certified driver v.196.21,How to Update & Download NVidia GeForce Go 7400 Display Driver v.260.19.12,[Solved] Download NVidia GeForce GTX 460M Driver v.331.82,Download NVidia Quadro Plex Model IV VGA Driver v.304.43 Certified,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.8.17.12.6686,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.11.6.0.1030,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.9.3.0.1019,Method to Update & Download ASUS K41VD Intel INF Update Driver v.9.1.1.1015,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver
Read More: Troubleshooting:Copy from Adobe Reader on to Word Starter Error,[Anwsered] Creating a Macro to import an arbitrary file into excell.,Troubleshoot:Create Hover Popup for Words in Document Terms Glossary Error,How to Fix Error - creating labels in Word from Excel document?,Corrupt Files/System Freeze/Moving Large Files,Closing Internet Explorer causes error,Compare 2 Tables and Calculate the PROFIT Faster,Computer goes to Windows Boot Manager after Start,Connect to one of my network computer remotely when don't allow exception box Marked,computer locking up randomly
Share:

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Sample Text

Copyright © Fix Your PC Errors & Speed Up Your PC | Powered by Blogger Design by ronangelo | Blogger Theme by NewBloggerThemes.com