|
|
|
date: Mon, 30 Jun 2008 03:30:00 -0700,
group: microsoft.public.word.vba.addins
back
Re: "Find and Replace" in multiple open documents in word 2007
As to the questions re: Excel vs Word in the addin department. Take a look
at the relative number of Excel people to Word people. In some forums the
Excel thread count outnumbers Word thread count 10-1.
E.g. on one forum:
Excel threads: 11,633
Word threads: 2,057
And...there you go. When you have that much activity, you get more stuff
happening. Plus (and I could be wrong) it seems that the Word object model
seems so strange to people that they avoid making robust things like formal
add-ins. Wee macros, sure. Even sophisticated macros, but in general I find
the majority of Word users do not grasp the full power of what it can do.
Unlike (and I could be wrong) a lot of Excel users who WANT to make Excel
dance and sing. And understand that it can.
fumei wrote:
>I do not have 2007, and refuse to use it. So I do not know if you can still
>do the same with it. But...you can loop through the Documents collection,
>and action each one. Something like:
>
>Dim aDoc As Document
>Dim r As Range
>
>For Each aDoc in Application.Documents
> Set r = aDoc.Range
> With r.Find
> .Text = "yadda"
> .Replacement.Text = "whatever"
> .Execute Replace:=wdReplaceAll
> End With
>Next
>
>will replace all "yadda", in all open documents, with "whatever". There is
>no need to either select each document, or even make them active. The Range
>object - set for each document - takes care of it.
>
>>Is there any free addin or program which could "find and replace" a word/text
>>string etc. in multiple open documents in word 2007 or could allow us to
>[quoted text clipped - 4 lines]
>>plenty of features but hardly any notable/worthy for word. I am unable to
>>understand why is it so?
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200806/1
date: Mon, 30 Jun 2008 20:20:54 GMT
author: fumei via OfficeKB.com u37563@uwe
Re: "Find and Replace" in multiple open documents in word 2007
"fumei via OfficeKB.com" wrote:
> As to the questions re: Excel vs Word in the addin department. Take a look
> at the relative number of Excel people to Word people. In some forums the
> Excel thread count outnumbers Word thread count 10-1.
>
> E.g. on one forum:
>
> Excel threads: 11,633
> Word threads: 2,057
>
> And...there you go. When you have that much activity, you get more stuff
> happening. Plus (and I could be wrong) it seems that the Word object model
> seems so strange to people that they avoid making robust things like formal
> add-ins. Wee macros, sure. Even sophisticated macros, but in general I find
> the majority of Word users do not grasp the full power of what it can do.
>
> Unlike (and I could be wrong) a lot of Excel users who WANT to make Excel
> dance and sing. And understand that it can.
>
And, to add one more reason, because Excel handles the relationship between
VBA code and their container differently than Word does, often times, the
best way of creating/distributing code with Excel is to create an actual
Add-in as opposed to a template. In fact, there is a workbook format called
"*.xla" (Microsoft Excel Add-In), which Word does not offer.
date: Wed, 2 Jul 2008 09:15:01 -0700
author: Jean-Guy Marcil
|
|