Word2003 'Not Responding' after Find and Replace

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been wrestling with this for a couple days now, and am desperate to
resolve this.
As part of a larger project to segregate a large log file into several
smaller ones more focused on a particular action I am designing a macro.
Most of the macros seem to work fine. Most are Find and Replace macros,
stripping extraneous tab spaces, spaces, /n, /r and such.
Part of my effort was to have the paragraphs on each line convert to
LineFeeds, the convert something else so I could Select.Paragraphs(1)

When I tried either ^p or ^13 replaced with ^l or ^11, I would see the
document update with linefeeds, but I couldn't get focus on the document, and
Task Manager would display 'Not Responding', and also show WINWORD.EXE memory
consumption growing by 4K avery 1-5 seconds.

Anyone have any clues?
 
RCHaynes said:
Part of my effort was to have the paragraphs on each line convert to
LineFeeds, the convert something else so I could Select.Paragraphs(1)

What does this mean? It is gibberish.
If you want help with macro coding, you need to explain better what you are
trying to do and post your problem code in one of the vba forums. It sounds
as though you have managed to create an endless loop.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
My apologies for being unclear.
The document starts as an extremely large log file.
Every line ends as a paragraph (^p)
I would like to create a macro that replaces every occurence of ^p with ^l.
Then I would use a text string in the file to create ^p, yeilding several
paragraphs containing lines, rather than what I currently have, which is 60K+
'paragraphs' each consisting of a line.

After this operation is successful, another Sub would be executed that would
define a Range, select the ActiveDocument.Paragraphs(1) as the range, Cut it,
open a new Document, Paste the cut, Save As with a new filename, and return
to the main document for what is now the new Paragraphs(1), and repeat until
StoryLength = 1, indicating we've reached the EOF.

The main objective is to manipulate a large log file into several small
files, to be used as a debugging/troubleshooting resource.

The problem is, that once Word has completed the conversion, it hangs.
According to Task Manager, it is 'Not Responding'. Attempting to use the
Microsoft Office Application Recovery tool.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top