![]() |
|
#15
|
|||
|
|||
|
Thanks for the comment! I am trying - but obviously "very trying" to you!!! I hope I have posted the code tags correctly?!!
Have copied and pasted the instructions you gave and applied them to the macro for DavidCoupe. When I run it I get the message Compile error:Ambiguous name detected:OpenDoc As my Macros were all created using the Word links- View\Macros\RecordMacro I would have expected the codes created to run without changing. Not all PC users have the skills ( as my posts confirm!) to change the coding Code:
Call OpenDoc("E:\DOCUMENTS\COUPE\D_C.dotm")
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:=""
End Sub
Last edited by macropod; 09-15-2012 at 03:16 AM. Reason: code re-structure |
|
|
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 |