Re: Word 200 Macro using replace



"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.



.



Relevant Pages

  • Re: Word 200 Macro using replace
    ... returns aren't part of the template, they come from the XML file. ... The macro recorder has limitations. ... However, when I run the macro, I still get the prompt. ...
    (microsoft.public.word.docmanagement)
  • Re: Create WordML via XSLT with embedded macros
    ... then apply the transform to an XML file using MSXML (or a .NET XML ... You can't get the macro to show up by applying the transform to an already ... > It maybe that I am missing something in my XSLT file. ...
    (microsoft.public.word.vba.general)
  • What Not to Do (a cautionary tale)
    ... script that reads in an XML file and an ERB template, ... to the template, and writes out the result to a file. ... and all hell broke loose as a result. ... Don't upgrade your Ruby environment unless you need to ...
    (comp.lang.ruby)
  • plugin architecture - repost
    ... I am building an application to help researcher record the outcomes of their ... These outcomes are document across a number of paper forms. ... I've created a number of these 'template' files. ... to use a specific template, I open the XML file, deserialize it, add data to ...
    (microsoft.public.dotnet.languages.vb)
  • "value substitution/population" in template XML using XPath
    ... I need to populate a large number of "template" XML files ... indicated in a seperate XML data file as, ... another XML file. ...
    (comp.text.xml)