View Single Post
 
Old 04-28-2017, 03:00 PM
ilcaa72 ilcaa72 is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jan 2014
Posts: 27
ilcaa72 is on a distinguished road
Default On .Select, Errors: Cant Execute in Break Mode

here is the code, i am using Step through in the debugger, when i get to .Select it says, "Cant Execute in Break Mode" . it actually stills selects the sentence and I can continue but still displays this error msg. I would like to select the sentence, to visually track the changes.

Anyway to fix this issue? thanks

Code:
If do_DocVars_Exist = 1 Then
    sentNumb = ActiveDocument.Variables("selNumb").Value
    Set prevSent = doc.Sentences(sentNumb)

    With prevSent
        .Select
        .Font.Size = ActiveDocument.Variables("selSize").Value
        .Font.Color = ActiveDocument.Variables("selColor").Value
        .Font.Name = ActiveDocument.Variables("selName").Value
    End With
End If
Reply With Quote