B
bhims
hi,
i am migrating an application from word 2000 to word 2007. during the
process i am facing trouble using shapes command.
the application is supposed to identify lines and store it in other
location.
the code i am using is:
doc.Application.Selection.WholeStory()
int_wordcount = doc.Application.Selection.Words.Count
doc.Application.Selection.HomeKey(Unit:=Word.WdUnits.wdStory)
For Each wline In doc.Shapes
If wline.Type = 9 Then ' Check for picture type as line
wline.Select()
..............
its working fine with word 2000, but in word 2007 its reading alternate
lines; as in it would detect 1st and 3rd line and leave 2nd and 4th.
i am unable to understand why is it happening.
can some1 pls help.
thanks
i am migrating an application from word 2000 to word 2007. during the
process i am facing trouble using shapes command.
the application is supposed to identify lines and store it in other
location.
the code i am using is:
doc.Application.Selection.WholeStory()
int_wordcount = doc.Application.Selection.Words.Count
doc.Application.Selection.HomeKey(Unit:=Word.WdUnits.wdStory)
For Each wline In doc.Shapes
If wline.Type = 9 Then ' Check for picture type as line
wline.Select()
..............
its working fine with word 2000, but in word 2007 its reading alternate
lines; as in it would detect 1st and 3rd line and leave 2nd and 4th.
i am unable to understand why is it happening.
can some1 pls help.
thanks