Book

Suggestions


Enter your email address:

Delivered by FeedBurner


Home Page

Bloglines

1906
CelebrateStadium
2006


OfficeZealot

Scobleizer

TechRepublic

AskWoody

SpyJournal












Subscribe here
Add to 

My Yahoo!
This page is powered by Blogger. Isn't yours?

Host your Web site with PureHost!


eXTReMe Tracker
  Web http://www.klippert.com



  Tuesday, March 31, 2009 – Permalink –

Add Captions Programatically

When the project seems overwhelming


Faced with a repetitive task, I often have to make the decision, do I do it by hand again and again? Or do I write or find a macro to do the heavy lifting?
"Have you ever had a document with ten, twenty, or even 100 images, and then as an afterthought decided you wanted to add a caption to each of those images? This is an easy task through the user interface (UI). All you have to do is select each image, one at a time, and choose Insert, then Reference, then Caption. Unfortunately doing this through an image-heavy document is a boring chore and takes up a lot of time.

Fortunately, the Word object model lets you to apply a caption to a selected object. An add-in that does this for you is only a small chunk of code away. The sample add-in accompanying this article demonstrates how to do this. It also demonstrates many other details about working with shapes and images in Word programmatically that are useful to know about."

Working with Word 2003 Images Programmatically




See all Topics

Labels: , ,


<Doug Klippert@ 3:18 AM

Comments: Post a Comment


  Saturday, March 21, 2009 – Permalink –

Readability Evaluation

What grade are you?


Word has a built in tool to determine the level of reading difficulty of a document.

To see the statistics:
  1. On the Tools menu, click Options, and then click the Spelling & Grammar tab
  2. Select the Check grammar with spelling check box
  3. Select the Show readability statistics check box, and then click OK
  4. On the Standard toolbar, click Spelling and Grammar
  5. In 2007, click the Office button in the upper left corner. Click Word Options. Choose Proofing and When correcting spelling and grammar in Word.
When Microsoft Word finishes checking spelling and grammar, it displays information about the reading level of the document.

Each readability score bases its rating on the average number of syllables per word and words per sentence.
Flesch Reading Ease score Rates text on a 100-point scale; the higher the score, the easier it is to understand the document. For most standard documents, aim for a score of approximately 60 to 70. The formula for the Flesch Reading Ease score is: 206.835 - (1.015 x ASL) - (84.6 x ASW) where: ASL = average sentence length (the number of words divided by the number of sentences) ASW = average number of syllables per word (the number of syllables divided by the number of words)
Flesch-Kincaid Grade Level score
Rates text on a U.S. school grade level. For example, a score of 8.0 means that an eighth grader can understand the document. For most documents, aim for a score of approximately 7.0 to 8.0.
The formula for the Flesch-Kincaid Grade Level score is:
(.39 x ASL) + (11.8 x ASW) - 15.59
Readability
Measuring the reading age of books and other reading matter.
Everything you ever wanted know about
readability tests but were afraid to ask.
Wikipedia.com:
 Flesch-Kincaid Readability Test
Support.Microsoft.com:
Frequently Asked Questions About Proofing Grammar

I am working on a law review article dealing with readability. We have found a problem with Microsoft Word's Flesch-Kincaid formula - it does not appear to be accurate. We took a sample text of slightly over 100 words, and ran the check. We then changed the word "report" to statement" (with everything else unchanged) and Word indicated a higher grade level. However, the grade level should not have been affected, since "report" and "statement" are both two-syllable words. It looks like Word is somehow incorporating number of characters in each word into it's Flesch-Kincaid score, which it should not. Any idea what the problem might be?


You're right, Word handles the formula a little differently.
BTW, they say the sample s/b 200+ words for reliability.
See these links:
University of Memphis
and:
Wikipedia





See all Topics

Labels: ,


<Doug Klippert@ 3:45 AM

Comments: Post a Comment


  Thursday, March 12, 2009 – Permalink –

Insert>Fields

Tiny code snippets


Microsoft has included a number of code pieces that you can use without having to haul out the VBA editor. These codes handle such things as page numbers, Table of Contents, Merge data and more.

"Some 80-plus fields are built into Word that provide information about the file and the user; store, display, and manipulate reference information; and link the document to other applications - all without a bit of code."



Automate Word Documents with Minimal Code
By Cindy Meister


Cindy Meister is a Word MVP.

She also works with bobbin-lace. Here is a sample of a Honiton lace butterfly.


Also:

AddBalance.com:
Using { Fields } in Microsoft Word


GMayor.com
Formatting Word Fields with Switches


In 2007 you can use the =(Formula) field.
On the Insert tab look for Quick Parts:






See all Topics

Labels: , ,


<Doug Klippert@ 3:50 AM

Comments: Post a Comment