• Help please: saving html as rtf

    From comicnut@fuse.net@21:1/5 to All on Wed Aug 30 13:15:01 2023
    I'm converting a number of htmls with different filenames to rtf after
    using other macros to reformat.

    I recorded a macro of saving an html file as rtf. Looking at the macro
    in vba, it specifies saving the file as a specific filename to a
    specific directory which would overwrite other files. I want to alter
    this macro to automatically save the filename and directory as the
    current active document

    Any ideas?

    Here's the recorded macro:

    Sub savertf1()
    '
    ' savertf1 Macro
    '
    '
    ChangeFileOpenDirectory "D:\New folder\"
    ActiveDocument.SaveAs2 FileName:="test123.rtf",
    FileFormat:=wdFormatRTF, _
    LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
    :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
    SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
    False, CompatibilityMode:=0
    End Sub

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)