J
JB
Hi Folks,
I have a macro which loops through a document which has predefined paragraph
styles and character styles inside these paragraph styles. I'm looping thru
these char styles and storing the selection but when I get to the end of a
para and try to determine the paragraph style I get an error "object
variable or block with not set".
I know why this is happening (selection moves to next line and paragraphs
have different styles which sets selection.style to nothing) but I don't
know the best way around it! Is there a way I can check for a NULL value in
selection.style so I can then say IF NULL then blah blah blah???
Cheers
JB
I have a macro which loops through a document which has predefined paragraph
styles and character styles inside these paragraph styles. I'm looping thru
these char styles and storing the selection but when I get to the end of a
para and try to determine the paragraph style I get an error "object
variable or block with not set".
I know why this is happening (selection moves to next line and paragraphs
have different styles which sets selection.style to nothing) but I don't
know the best way around it! Is there a way I can check for a NULL value in
selection.style so I can then say IF NULL then blah blah blah???
Cheers
JB