Re: Word 200 Macro using replace
- From: "Tony Jollans" <My forename at my surname dot com>
- Date: Wed, 13 Dec 2006 14:28:42 -0000
"By the way, I couldn't delete the returns in the template as the data in
this field is populated from different fields in an XML file. The carraige
returns aren't part of the template, they come from the XML file".
I can see xml becoming an important factor in working with documents - I'd better learn it quickly!
Don't even ask about deleting the carraige returns from the XML file - long
story!
It always is - LOL!
--
Enjoy,
Tony
"Daire" <Daire@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:F10B7BA9-9324-4FAD-BC91-95EA537318B0@xxxxxxxxxxxxxxxx
Hi Tony,
As per my response to Graham's post:
"By the way, I couldn't delete the returns in the template as the data in
this field is populated from different fields in an XML file. The carraige
returns aren't part of the template, they come from the XML file".
Don't even ask about deleting the carraige returns from the XML file - long
story!
"Tony Jollans" wrote:
Perhaps I'm missing the obvious but running a macro to manipulate the
contents of a new document this way seems pointless - can't you just make
the template the way you want it in the first place and dispense with the
macro?
--
Enjoy,
Tony
"Daire" <Daire@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B0F65C50-838A-4907-B123-24F2A37B1ABF@xxxxxxxxxxxxxxxx
> Hi,
>
> I have been searching the web for a solution to my problem but can't > find
> what I want - I hope someone here can help.
>
> I have a .dot file that is used for creating new .doc files. I want to
> create a macro that will run automatically everytime a new .doc file is
> created to replace carraige returns in a particular table with spaces.
>
> My macro goes something like this:
> 1. Edit > Find > 'Extra Description' [I know that the block of text I > want
> to perform the replace in is in the next field to 'Extra description']
> 2. Tab into the next field [where the block of text I want to perform > the
> replace in is]
> 3. Perform a Replace, replacing Paragraph Marks with a space.
>
> My problem is this - when you do a replace, you are prompted with "Word
> has
> finished searching the selection. XX replacements were made. Do you > want
> to
> search the remainder of the document?". When I record the macro, I > click
> No
> on this prompt and stop recording the macro. However, when I run the
> macro, I
> still get the prompt. My clicking on No does not seem to be registered > as
> part of the macro.
>
> Does anyone know a way around this?
>
> Thanks.
.
- References:
- Re: Word 200 Macro using replace
- From: Tony Jollans
- Re: Word 200 Macro using replace
- Prev by Date: Re: making envelopes with outlook express as address book look-up
- Next by Date: Convert Several Files at Once
- Previous by thread: Re: Word 200 Macro using replace
- Next by thread: Different colour backgrounds
- Index(es):
Relevant Pages
|