OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Word Count in Macros? really URGENT...

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
jashiu
General User
General User


Joined: 27 Jan 2005
Posts: 9

PostPosted: Thu Jan 27, 2005 6:42 am    Post subject: Word Count in Macros? really URGENT... Reply with quote

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


jashiu Servus diabolicus Dei
Back to top
View user's profile Send private message
8daysaweek.co.uk
Super User
Super User


Joined: 29 Nov 2003
Posts: 2130
Location: UK

PostPosted: Thu Jan 27, 2005 7:02 am    Post subject: Reply with quote

http://www.8daysaweek.co.uk/downloads.htm#WordCount

HTH Smile,
_________________
James
www.8daysaweek.co.uk - A User-Focused OOo site
Back to top
View user's profile Send private message Visit poster's website AIM Address
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Thu Jan 27, 2005 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message
jashiu
General User
General User


Joined: 27 Jan 2005
Posts: 9

PostPosted: Thu Jan 27, 2005 12:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group