Thread: Macro errors
View Single Post
 
Old 09-18-2012, 02:59 AM
muster36 muster36 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Aug 2011
Posts: 23
muster36 is on a distinguished road
Default

This is the entire Code for this Macro (as per the code you sent originally for the other macros)
I have attached the file which it is meant to open and which is a letter heading with the recipient's address entered and the Macro finishing where the date is to be inserted

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:=""
Attached Files
File Type: doc LETTER.doc (23.0 KB, 7 views)
Reply With Quote