So che sembra semplice, ma apparentemente non lo è.Come si passa un intervallo a un sottotitolo in VBA di Word?
Se scrivo questo in Word VBA, dice sempre "tipi incompatibili" - perché? E come posso farlo funzionare?
Sub GetRange()
Dim r As Range
Set r = ActiveDocument.Paragraphs(5).Range
ProcessRange (r)
End Sub
Sub ProcessRange(r As Range)
Debug.Print "This generates an error (incompatible types)- why?"
End Sub