J
Jan Eliasen
Hi
I have written a macro for Word that fills text from textfiles into
specific places in my word-document.
My problem is, that if I step through the code in the debugger, then
everything works just fine, but if I run the macro then it fails.
My document looks like this:
2.1 Headline
2.1.1 Subheadline
2.1.2 Subheadline 2
2.2 Headline 2
2.3 Headline 3
2.4 Headline 4
My problem is that it is only in 2.4 it doesn't work. The output is
supposed to be like this:
2.4 Headline 4
text, more text and a lot of more text
But the output is actually something like
2.4
2.5 text, more tet and a lot of more text
2.6 Headline 4
But only when running the macro and not when I step through it. Does
anyone have any ideas?
Thanks in advance!
I have written a macro for Word that fills text from textfiles into
specific places in my word-document.
My problem is, that if I step through the code in the debugger, then
everything works just fine, but if I run the macro then it fails.
My document looks like this:
2.1 Headline
2.1.1 Subheadline
2.1.2 Subheadline 2
2.2 Headline 2
2.3 Headline 3
2.4 Headline 4
My problem is that it is only in 2.4 it doesn't work. The output is
supposed to be like this:
2.4 Headline 4
text, more text and a lot of more text
But the output is actually something like
2.4
2.5 text, more tet and a lot of more text
2.6 Headline 4
But only when running the macro and not when I step through it. Does
anyone have any ideas?
Thanks in advance!