engrfurqan
Programmer
- Jan 5, 2009
- 20
I want to go through with all the formatting in use in a word document and collect some description i am using the following code but it is not working
sub test()
dim sty as style
for each sty in activedocument.styles
if sty.inuse = true the
msgbox(sty.font.name)
end if
next
end sub
this program gives the name times new roman but im using some other fonts.
Regards,
Furqan
sub test()
dim sty as style
for each sty in activedocument.styles
if sty.inuse = true the
msgbox(sty.font.name)
end if
next
end sub
this program gives the name times new roman but im using some other fonts.
Regards,
Furqan