Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2011, 01:58 PM
macropod's Avatar
macropod macropod is offline How to get the number of words in the file (please see details)? Windows 7 32bit How to get the number of words in the file (please see details)? Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Jamal,
Quote:
Originally Posted by Jamal NUMAN View Post
i'm not sure if it is can be developed so that it ignors the count of words in certain pages. for example: the words in the cover page and page of refernces are not counted.
This would be difficult to do, because there is no way for a macro to determine which pages might be cover pages and reference pages. The best you could do is to get a word count based on a pre-selected range.


Quote:
Originally Posted by Jamal NUMAN View Post
why the word count in the micro doesn't count the number of words if we select certain paragraph or pages? instead, it gives the total for all words in the document.
If you only want the word count for a selected range, change ‘ActiveDocument’ to ‘Selection’. Do note that, if you do this, the word counts for footnotes & end notes will relate to those anchored in the selected range, regardless of where they’re physically located. Header & Footer counts are based on one count per Section in the selected range (provided that Section is not linked to a previous one).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 04-09-2011, 02:15 PM
Jamal NUMAN Jamal NUMAN is offline How to get the number of words in the file (please see details)? Windows XP How to get the number of words in the file (please see details)? Office 2007
Expert
How to get the number of words in the file (please see details)?
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Default

Sorry bothering you again.

i've switched the ‘ActiveDocument’ to ‘Selection’ but didn't work...still counts the whole word in the document

the image is attached

what i might have done wrong?

thank you

regards

Jamal



Quote:
Originally Posted by macropod View Post
Hi Jamal,

This would be difficult to do, because there is no way for a macro to determine which pages might be cover pages and reference pages. The best you could do is to get a word count based on a pre-selected range.
If you only want the word count for a selected range, change ‘ActiveDocument’ to ‘Selection’. Do note that, if you do this, the word counts for footnotes & end notes will relate to those anchored in the selected range, regardless of where they’re physically located. Header & Footer counts are based on one count per Section in the selected range (provided that Section is not linked to a previous one).
Attached Images
File Type: jpg yhClip_62.jpg (132.6 KB, 16 views)
Reply With Quote
  #3  
Old 04-14-2011, 03:10 AM
Jamal NUMAN Jamal NUMAN is offline How to get the number of words in the file (please see details)? Windows XP How to get the number of words in the file (please see details)? Office 2007
Expert
How to get the number of words in the file (please see details)?
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question

Thank you for your patience Paul.

But really I’m stuck again with more manual work.

The Macro that you have developed still can’t count only the selected words despite the fact that I’ve switch the “activedocument” to “selection”

Please, see the attached image. In this document the total words count is 9. The selected ones are 5. But the Macro gives the total words count but not the selected ones!!!!!

How could I get the count for the selected words only using your great Macro?

Thank you

Jamal






Quote:
Originally Posted by Jamal NUMAN View Post
Sorry bothering you again.

i've switched the ‘ActiveDocument’ to ‘Selection’ but didn't work...still counts the whole word in the document

the image is attached

what i might have done wrong?

thank you

regards

Jamal
Attached Images
File Type: jpg wordcountClip_71.jpg (72.2 KB, 13 views)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
When Printing a file Sources/Details included BigTunz Word 0 03-01-2010 01:24 AM
Hide contact details AndyKC Outlook 0 01-25-2010 11:00 PM
Transfer of account details to Outlook 2003 on Windows7 taralastair Outlook 1 01-04-2010 01:24 PM
Printing task details STEVEK Outlook 0 11-11-2009 06:02 AM
Entering Contact details GemmaD Outlook 0 12-18-2008 06:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft