#31
|
|||
|
|||
Point taken! But if mother was new to area and country and did not speak the language, she would need much more help.
Is this what you need? Macro_MM.docx LETTER.doc |
#32
|
||||
|
||||
No, neither of those files is any good. I need one that contains the code module that's generating the error. Neither of those files has a code module (FWIW docx files cannot have code modules. For Word, only doc, docm, dot and dotm files can have code modules).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#33
|
|||
|
|||
Where do I find the Code Modules?? The File I sent was a *.doc file
I am out of my depth - which is probable very obvious. Perhaps I should drown in my sea of ignorance and leave you in peace! |
#34
|
||||
|
||||
When you run the code and it fails, if you press 'Debug', the vb editor opens with the errant line highlighted. On the left, should be a list of 'Projects'. If you cancel the debug mode and click on the Project window, a particular code module should be highlighted. The filename immediately above that is the one for the file containing the macro. That is the file I need.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#35
|
|||
|
|||
I try to run the macro by View/Macro/ViewMacros/highlighting the macro 'MMM' and /Run. I then get the error message. Closing that error window I then press Debug and nothing happens. No highlighting and there is no list of Projects. but the error Macro is as follows
Code:
Sub MMM() ' ' MMM Macro ' 'Call OpenDoc("E:\DOCUMENTS\MMM\LETTER.doc") Selection.MoveDown Unit:=wdLine, Count:=6 End Sub Sub OpenDoc(StrDoc As String) Documents.Open FileName:="StrDoc", ConfirmConversions:=False, ReadOnly:= _ False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:= _ "", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _ Format:=wdOpenFormatAuto, XMLTransform:="" Sub MMM() ' ' MMM Macro ' 'Call OpenDoc("E:\DOCUMENTS\MMM\LETTER.doc") Selection.MoveDown Unit:=wdLine, Count:=6 End Sub Sub OpenDoc(StrDoc As String) Documents.Open FileName:="StrDoc", ConfirmConversions:=False, ReadOnly:= _ False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:= _ "", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _ Format:=wdOpenFormatAuto, XMLTransform:="" |
#36
|
||||
|
||||
It's just wasting your time and mine continually going back and forth with the same content. Until you can post a document containing all the code, I'm not going to waste any more of my time on this issue. At the very least, I would expect to see both the code you started out with, or the code I first posted, plus the code you're having trouble with.
If you don't know how to identify which document contains your code module, despite me telling you how to do so, find someone who does.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#37
|
|||
|
|||
I am very grateful for your continuing patience in this saga which has been very frustrating for us both. I will leave this post now as, I agree, it is getting us nowhere. Thank you for all your input.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Errors in Outlook.pst | Rik_StHelens | Outlook | 0 | 12-20-2010 09:40 AM |
Strange errors | omirza | Excel | 0 | 02-05-2010 01:30 PM |
Encryption XOR - any errors??? | Word Doc | Word | 1 | 10-08-2009 12:57 AM |
COM Automation Errors | ivanm | Word | 0 | 03-23-2009 07:02 PM |
How do you fix ost in use errors? | enviroko | Outlook | 0 | 10-23-2008 09:49 AM |