Hi
Thanks for replay
this is a part of the code:
Dim ScreenUpdate As CScreenUpdate
Set ScreenUpdate = New CScreenUpdate
bFlag = 1
nSnCount = 0
nLabelCount = 0
While (bFlag Or (nSnCount < nMaxCountNo))
Dim strCurrNo As String
If (0 = bFlag) Then
WordBasic.NextCell
End If
strCurrNo = WordBasic.[LTrim$](str(nStartNo + nSnCount))
EingabeZeile astrZeile(1), anLenZeile(1), anPosNo(1), strCurrNo, _
MyDlg.Bold1, MyDlg.Italic1, MyDlg.Under1, _
MyDlg.Absatz1
EingabeZeile astrZeile(2), anLenZeile(2), anPosNo(2), strCurrNo, _
MyDlg.Bold2, MyDlg.Italic2, MyDlg.Under2, _
MyDlg.Absatz2
EingabeZeile astrZeile(3), anLenZeile(3), anPosNo(3), strCurrNo, _
MyDlg.Bold3, MyDlg.Italic3, MyDlg.Under3, _
MyDlg.Absatz3
nLabelCount = nLabelCount + 1
If (nLabelCount >= nLabelCountNo) Then
nLabelCount = 0
nSnCount = nSnCount + 1
End If
bFlag = WordBasic.NextCell()
Wend
Ende:
End Sub
' ***********************************************
Private Sub EingabeZeile(strZeile As String, _
nLenZeile As Long, _
nPosNo As Long, _
strCurrNo As String, _
fBold, _
fItalic, _
aUnder, _
aAbsatz)
If (0 <> nLenZeile) Then
WordBasic.FormatFont _
Bold:=fBold, _
Italic:=fItalic, _
Underline:=aUnder
WordBasic.FormatParagraph Alignment:=aAbsatz
If (0 <> nPosNo) Then
WordBasic.Insert WordBasic.[Left$](strZeile, nPosNo - 1) + strCurrNo + _
WordBasic.[Right$](strZeile, Len(strZeile) - nPosNo)
Else
WordBasic.Insert strZeile
End If
End If
End Sub
I know this code is old but it works fine until Word 2010.
Is there a simple way to identify witch part need time?