Vba code voor het kopieren van celwaarde in Word

Status
Niet open voor verdere reacties.
Op onderstaande controle:

Code:
Sub VulWDtekst(ccTitle As String, ccText As String)
 [COLOR="#FF0000"]   Dim ccs As ContentControls[/COLOR]
    Dim cct As ContentControl
    
    With wrdDoc
        Set ccs = .SelectContentControlsByTitle(ccTitle)
        Set cct = ccs(1)
        cct.Range.Text = ccText
    End With
End Sub
 
Het probleem is opgelost.

In Excel had ik de MS Word Libary 14 niet aangevinkt.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan