| View previous topic :: View next topic |
| Author |
Message |
jashiu General User

Joined: 27 Jan 2005 Posts: 9
|
Posted: Thu Jan 27, 2005 6:42 am Post subject: Word Count in Macros? really URGENT... |
|
|
Hi!
I`m kinda newbie with oOo but I really need to write a specific macro using Writer.
I need to extract the number of words in a single document using the File/Preferences/Statistics/Wordcount ... i browsed through the whole help and manuals that I could put my hands on, but I found nothing.
Is there any way to use the word count feature in a macro? The thing is that I have to put it in a file afterwards...
thanx for attention..
jashiu Servus diabolicus Dei |
|
| Back to top |
|
 |
8daysaweek.co.uk Super User


Joined: 29 Nov 2003 Posts: 2130 Location: UK
|
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8979 Location: Lexinton, Kentucky, USA
|
Posted: Thu Jan 27, 2005 8:16 am Post subject: |
|
|
| Assuming you want to put it in the same file then you don't need a macro to access OO's word count. Insert > Fields > Other > Document tab, select Statistics then Words and insert the field. |
|
| Back to top |
|
 |
jashiu General User

Joined: 27 Jan 2005 Posts: 9
|
Posted: Thu Jan 27, 2005 12:20 pm Post subject: |
|
|
cool!
so there is a ready mackro for that! .. but is there a vb function that I could use in my own macro that`d give me a number of words as a result???
jashiu |
|
| Back to top |
|
 |
|