Shown below are two MS Word macros. Each one shows its code from Sub to End Sub
They both work perfectly. The trouble is that I have to run them individually because the first macro turns Word off after it has run. I then have to reload Word to run the second macro.
What I would like to do is link the macros so that they both run when I set the first macro going. How must the code be modified to do the job?
Sub AUSENG()
'
' AUSENG Macro
' Macro recorded 12/5/2006 by G Lind
'
Selection.InlineShapes.AddOLEObject ClassType:="Excel.Sheet.8", FileName:= _
"C:\excel\t2t-1-2.xls", LinkToFile:=False, DisplayAsIcon:=False
ActiveDocument.SaveAs FileName:="\homepage\cricket\gametest\t2t-1-2.htm", FileFormat:=wdFormatHTML, _
LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False
ActiveWindow.View.Type = wdWebView
Application.Quit
End Sub
Sub ENGAUS()
'
' ENGAUS Macro
' Macro recorded 12/5/2006 by G Lind
'
Selection.InlineShapes.AddOLEObject ClassType:="Excel.Sheet.8", FileName:= _
"C:\excel\t2t-2-1.xls", LinkToFile:=False, DisplayAsIcon:=False
ActiveDocument.SaveAs FileName:="\homepage\cricket\gametest\t2t-2-1.htm", FileFormat:=wdFormatHTML, _
LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False
ActiveWindow.View.Type = wdWebView
Application.Quit
End Sub
They both work perfectly. The trouble is that I have to run them individually because the first macro turns Word off after it has run. I then have to reload Word to run the second macro.
What I would like to do is link the macros so that they both run when I set the first macro going. How must the code be modified to do the job?
Sub AUSENG()
'
' AUSENG Macro
' Macro recorded 12/5/2006 by G Lind
'
Selection.InlineShapes.AddOLEObject ClassType:="Excel.Sheet.8", FileName:= _
"C:\excel\t2t-1-2.xls", LinkToFile:=False, DisplayAsIcon:=False
ActiveDocument.SaveAs FileName:="\homepage\cricket\gametest\t2t-1-2.htm", FileFormat:=wdFormatHTML, _
LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False
ActiveWindow.View.Type = wdWebView
Application.Quit
End Sub
Sub ENGAUS()
'
' ENGAUS Macro
' Macro recorded 12/5/2006 by G Lind
'
Selection.InlineShapes.AddOLEObject ClassType:="Excel.Sheet.8", FileName:= _
"C:\excel\t2t-2-1.xls", LinkToFile:=False, DisplayAsIcon:=False
ActiveDocument.SaveAs FileName:="\homepage\cricket\gametest\t2t-2-1.htm", FileFormat:=wdFormatHTML, _
LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
False
ActiveWindow.View.Type = wdWebView
Application.Quit
End Sub