Russ, Thanks for your help. I had hoped to leave it actually in the
document. If you're going to tell me the only way I can do this is with
a userform object, I'll do that, but on the PC, it allows me to put the
list in the document.
The error is on the Me.
Thanks again,
Jeanne
Jeanne,
> Russ, Thanks for your help. I had hoped to leave it actually in the
> document. If you're going to tell me the only way I can do this is with
> a userform object, I'll do that, but on the PC, it allows me to put the
> list in the document.
>
> The error is on the Me.
I played around with this Sub test() on my MacWord...
Sub test()
MsgBox Me.Name
MsgBox ThisDocument.Name
End Sub
...And I get "invalid use of 'Me'..." when this sub is used in any Project
"Modules" folder code. It does work when used in Project "Forms" folder code
or Project "Microsoft Word Objects" folder code using the ThisDocument
'container?'
And it might work in a Project "Class Modules" folder code, but I don't know
how to set up and call a 'class' to test.
Maybe you are using the code in a different Project folder in MacWord than
WinWord?
> Thanks again,
>
[quoted text clipped - 26 lines]
>>>
>>> Thanks

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
desksideguru@gmail.com - 18 Oct 2006 05:17 GMT
Thanks so much, Russ. It looks as though I will have to create forms
after all.
I appreciate all of your help.
Jeanne
Russ - 18 Oct 2006 08:11 GMT
Jeanne,
An easier solution might be to do a find and replace, and selectively
replace the 'me' in the document code with 'activedocument' when they are
suppose to refer to the currently active document. But don't replace any
'me' that is used in a userform dialog or a ThisDocument module because it
shouldn't be necessary. I.E.
Me.FormatDrop.List() = BookFormats -->
ActiveDocument.FormatDrop.List() = BookFormats
However, that is exactly what this site is saying below. An Document_Open
subroutine should be placed in the **ThisDocument module** of your
**template** and according to my experimenting on the MacWord, the
"Me.FormatDrop.List() = BookFormats" should also work in that module. That's
why I asked if you were using it in the same module as it was being used in
WinWord?
http://word.mvps.org/faqs/macrosvba/DocumentEvents.htm
> Thanks so much, Russ. It looks as though I will have to create forms
> after all.
[quoted text clipped - 59 lines]
>>>>
>>>> Thanks

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID