PDA

View Full Version : ActiveDocument.Styles("Normal") = True



white_flag
06-23-2011, 12:53 AM
hello
Can some one tell me how can I put this condition:
If in the curent document Style "Normal" exist do code Else...

I put this one but it is not good

If ActiveDocument.Styles("Normal") = True Then ...etc

Dave
06-23-2011, 04:41 AM
I guessing that you need to check and see if the selection, paragraph, line, section etc. has the style format rather than the whole active document something like....

If Paragraph.Style = "Normal" then

HTH. Dave

Paul_Hossler
06-23-2011, 05:49 AM
I always thought that 'Normal' style always existed in the doc, but as Dave says, an paragraph might not have that style applied

What are you trying to do?

Paul

white_flag
06-23-2011, 09:33 AM
thx guys but I solved in an different way.