text_to_speech in Word 2007

D

dp

I previously followed instructions on having the computer read in Word 2003 &
it worked fine. I am now using 2007 and tried to follow the same directions
from gmayer's site but I am lost. When I try to run the macro I get "MS
Visual Basic Compile error, User-defined type not defined". I dont understand
macros at all - can someone explain what I need to do?
 
J

Jay Freedman

dp said:
I previously followed instructions on having the computer read in
Word 2003 & it worked fine. I am now using 2007 and tried to follow
the same directions from gmayer's site but I am lost. When I try to
run the macro I get "MS Visual Basic Compile error, User-defined type
not defined". I dont understand macros at all - can someone explain
what I need to do?

I believe you missed these paragraphs, just above the first two pictures in
Graham's page:

~~~~~~
Add a reference in the normal project to Microsoft Speech Object Library
(Tools > References...) - see below Locate the reference (first picture) and
add a check mark. It will then join the other checked items (second
picture).

Note:
You must have installed the Speech portion of Excel for the Microsoft Speech
Object Library to be available to the VBA editor.

~~~~~~

Here' some more detail to help you do this step:

After pressing Alt+F11 to open the VBA editor window, click the Tools menu
and choose the References item. That opens the dialog that Graham shows.
Scroll down the list to find the Microsoft Speech Object Library item. Click
it to add a check mark to the box.

If you don't see the Microsoft Speech Object Library item in the list,
you'll have to run the Office 2007 setup from Start menu > Control Panel >
Add/Remove Programs (or, if you have Vista, it's called Programs and
Features), look under the Excel icon, and set the Speech item to "Run from
my computer". Then restart Word and start again in the VBA editor.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
D

dp

Not sure what I did different, but followed your step and now it works.
Thanks for your time.
 
D

dp

I found a MS site for adding voices (besides MS Sam) for text-to-speech and
downloaded "SpSTTIntXP.exe". It downloaded and unzipped ok but did not add
the voices. What do I need to read or do next? Using Windows XP and Word
2007.

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top