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.