Consulting

Results 1 to 7 of 7

Thread: Can't exit design mode...

  1. #1
    VBAX Regular
    Joined
    Feb 2005
    Posts
    82
    Location

    Can't exit design mode...

    We have a form here at work that opens in design mode and on opening an error message pops up: "Can't exit design mode because Control 'Label10' can not be created" It does have a Document_Open event that seems not to be able to run, because the form is in design mode.

    I found this: http://support.microsoft.com/default...b;en-us;166784 article which seems to address the problem, however I still can't fix it. We are using Word 2002.

    One of the resolutions is: "Open your Normal.dot, access the control, and then save and close the Normal.dot template." What does it mean to access the control? I have tried deleting the label and re-creating it, to no avail. All help is appreciated.

    Thanks,
    Bill

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    I've not come across this before but if your work are ok with you posting the document (or PM/email), I could have a dig at it.
    K :-)

  3. #3
    VBAX Regular
    Joined
    Feb 2005
    Posts
    82
    Location
    I probably shouldn't attach the files, as I'm sure they are proprietary. This is more of a learning exercise than a needed fix. The company is moving away from this form next year and I had some free time so I wanted to see if I could figure out what was failing. Thanks anyway.

  4. #4
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Can you at least describe what occurs in Document_Open?

    Is this really from normal.dot, or from another template?

  5. #5
    VBAX Regular
    Joined
    Feb 2005
    Posts
    82
    Location
    [VBA]Public Sub Document_Open()

    Dim cmb As Object

    title = "Help Text - People Perfomance Process"
    MsgBox title, vbOKOnly
    With ActiveWindow
    .View.TableGridlines = False
    .View.FieldShading = wdFieldShadingNever
    End With

    Application.ScreenUpdating = False

    For Each cmb In ThisDocument.InlineShapes
    If cmb.OLEFormat.ClassType = "Forms.ComboBox.1" Then
    With cmb.OLEFormat.Object
    .AddItem " "
    .AddItem "Outstanding"
    .AddItem "Exceeds expectations and targets"
    .AddItem "Meets expectations and targets"
    .AddItem "Approaches expectations and targets"
    .AddItem "Does not meet expectations and targets"
    .AddItem "Not Applicable"
    End With
    End If
    Next

    ActiveDocument.ShowSpellingErrors = False
    Options.UpdateFieldsAtPrint = True

    Application.ScreenUpdating = True

    End Sub[/VBA]

    It's not from Normal.dot but an added template named Service.dot

  6. #6
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hi,

    I've seen this error before and it was in a document whit over 500 ActiveX-controls.

    Somewhere one of the controls or other document elements got corrupted and I can't remember if I got the problem solved or not. (I think by rebuilding parts of it but am not sure)

    But a large number of ActiveX-controls is always a heavy load for Word to process and takes up tons of time to open. (and is therefore worth rethinking the design)

    HTH,
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  7. #7
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Anything with 500+ ActiveX controls DEFINITELY requires rethinking design. That is ridiculous. Totally silly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •