Thanks for your advice first. However I am not so smart to udnerstand what
you said. Can you give me more examples (or a example) of what you say, pls
~~
Million Thanks ~
> Thanks for your advice first. However I am not so smart to udnerstand what
> you said. Can you give me more examples (or a example) of what you say,
> pls
Just include the following 3 lines at the end of your macro
DoEvents
DoEvents
DoEvents

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
> Thanks for your advice first. However I am not so smart to udnerstand what
> you said. Can you give me more examples (or a example) of what you say,
> pls
Just include the following 3 lines at the end of your macro
DoEvents
DoEvents
DoEvents
The idea behind this is to tell Windows to catch up with what has been going
on in Word.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
VBALover - 01 Jan 2005 13:53 GMT
Oh.... let me try it first. Thanks ~~~
^_^
> > Thanks for your advice first. However I am not so smart to udnerstand what
> > you said. Can you give me more examples (or a example) of what you say,
[quoted text clipped - 8 lines]
> The idea behind this is to tell Windows to catch up with what has been going
> on in Word.
VBALover - 02 Jan 2005 18:14 GMT
oh... I fail..
the error still com out.. Any more suggestion?
here is my code:
' reset format for 4th Col
With Selection.Cells
DoEvents
With .Borders(wdBorderLeft)
.LineStyle = wdLineStyleSingle
DoEvents
.LineWidth = wdLineWidth150pt '<--- Error always come out from
this line
End With
DoEvents
With .Borders(wdBorderRight)
.LineStyle = wdLineStyleSingle
.LineWidth = wdLineWidth050pt
End With
.Borders(wdBorderTop).LineStyle = wdLineStyleNone
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
End With
With Options
.DefaultBorderLineStyle = wdLineStyleSingle
.DefaultBorderLineWidth = wdLineWidth050pt
End With
Selection.Font.Bold = False
> > Thanks for your advice first. However I am not so smart to udnerstand what
> > you said. Can you give me more examples (or a example) of what you say,
[quoted text clipped - 8 lines]
> The idea behind this is to tell Windows to catch up with what has been going
> on in Word.