Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
named argument not found
doing something wrong
recorder with macro recorder worked fine in letterhead now can't find? Dim Word As New Word.Application Dim WordDoc As New Word.Document Word.Visible = True Set WordDoc = Word.Documents.Open("C:\parade\letterhead.doc") With WordDoc Application.Run MacroName:="Macro3" ActiveWindow.Close End With |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
named argument not found
Curt,
I'm not familiar with Word objects, but seems like you missed a "." to qualify the application object as the word application.. Perhaps these lines: Application.Run MacroName:="Macro3" ActiveWindow.Close should be like these: ..Application.Run MacroName:="Macro3" ..ActiveWindow.Close -- Hope that helps. Vergel Adriano "Curt" wrote: doing something wrong recorder with macro recorder worked fine in letterhead now can't find? Dim Word As New Word.Application Dim WordDoc As New Word.Document Word.Visible = True Set WordDoc = Word.Documents.Open("C:\parade\letterhead.doc") With WordDoc Application.Run MacroName:="Macro3" ActiveWindow.Close End With |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
named argument not found
made it go thru as needed now other parts are needing adjustment
thanks Takes a long time to open excel then run macro also said letterhead was locked Thanks Again "Vergel Adriano" wrote: Curt, I'm not familiar with Word objects, but seems like you missed a "." to qualify the application object as the word application.. Perhaps these lines: Application.Run MacroName:="Macro3" ActiveWindow.Close should be like these: .Application.Run MacroName:="Macro3" .ActiveWindow.Close -- Hope that helps. Vergel Adriano "Curt" wrote: doing something wrong recorder with macro recorder worked fine in letterhead now can't find? Dim Word As New Word.Application Dim WordDoc As New Word.Document Word.Visible = True Set WordDoc = Word.Documents.Open("C:\parade\letterhead.doc") With WordDoc Application.Run MacroName:="Macro3" ActiveWindow.Close End With |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VLOOKUP with a Named Range argument | Excel Worksheet Functions | |||
Why Am I Getting the "Named Argument Not Found" Warning? | Excel Discussion (Misc queries) | |||
Named argument not found | Excel Programming | |||
Function (array argument, range argument, string argument) vba | Excel Programming | |||
Compiler Error - Named Argument Not Found | Excel Programming |