Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime error 4198

Status
Not open for further replies.

robgest

Technical User
Sep 1, 2011
3
Having an issue with this one.
Getting this error when I run this VB.... The second "ActiveDocument" part will all highlight yellow.
Code:
Private Sub CommandButton1_Click()
    chDir1 = "C:\CoA\"
    chDir2 = "P:\CoA2\"
    ActiveDocument.SaveAs FileName:=chDir1 & Format(Now(), "mm_dd_yyyy hh mm AMPM"), FileFormat:=wdFormatDocument, _
    LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
    :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
    SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
    False
    ActiveDocument.SaveAs FileName:=chDir2 & Format(Now(), "mm_dd_yyyy hh mm AMPM"), FileFormat:=wdFormatPDF, _
    LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
    :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
    SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
    False
End Sub
 
What is the error message ?
You have sufficient credentials on P:\CoA2\ ? (try a manual save as)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
The error is "Runtime error 4198" and I am addmin. I keep trying diffrent things, but no luck.
 
Runtime error 4198
No error description message ?

I am addmin
Did you try the save as manually ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Figured it out.....
Didn't have the PDF Add-On installed on the 07 Word.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top