Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6496
    LuK
    Member

    Hi everybody,

    could anybody tell me, how it´s possible to save a document into a new path with new filename in a macro?

    The following values opens only the Save As dialog box:

    fileName = “de020076o$tempMakeOfflinefilelist.txt”
    document.Save [ FileName ]

    or

    fileName = “filelist.txt”
    document.Save [ FileName ]

    Thx and regards
    Thorsten

    #6500
    Yutaka Emura
    Keymaster

    LuK wrote:
    Hi everybody,

    could anybody tell me, how it´s possible to save a document into a new path with new filename in a macro?

    The following values opens only the Save As dialog box:

    fileName = “de020076o$tempMakeOfflinefilelist.txt”
    document.Save [ FileName ]

    or

    fileName = “filelist.txt”
    document.Save [ FileName ]

    Thx and regards
    Thorsten

    document.Save [Filename] should work. Is this VBScript or JavaScript?

    #6501
    LuK
    Member

    It´s an VBS Macro and I also tried to open and save into a local directory, but this also displayes the Save as dialog box.

    regards
    Thorsten

    #6508
    Yutaka Emura
    Keymaster

    Yutaka wrote:

    LuK wrote:
    Hi everybody,

    could anybody tell me, how it´s possible to save a document into a new path with new filename in a macro?

    The following values opens only the Save As dialog box:

    fileName = “de020076o$tempMakeOfflinefilelist.txt”
    document.Save [ FileName ]

    or

    fileName = “filelist.txt”
    document.Save [ FileName ]

    Thx and regards
    Thorsten

    document.Save [Filename] should work. Is this VBScript or JavaScript?

    I don’t know why you have this issue. You should make sure the destination folder is not write-protected. The above macros should not prompt a Save As dialog box if the folder is not read-only.

    #6512
    LuK
    Member

    The folder is´nt write protected. But in all cases (store on local temp directory (C:temp) and on network share) the save as dialog box appears. :-(

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.