- AuthorPosts
- October 28, 2008 at 1:47 pm #6496LuKMember
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
ThorstenOctober 29, 2008 at 12:06 am #6500Yutaka EmuraKeymasterLuK 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
Thorstendocument.Save [Filename] should work. Is this VBScript or JavaScript?
October 29, 2008 at 9:35 am #6501LuKMemberIt´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
ThorstenOctober 30, 2008 at 8:33 am #6508Yutaka EmuraKeymasterYutaka 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
Thorstendocument.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.
October 31, 2008 at 6:56 am #6512LuKMemberThe 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. :-(
- AuthorPosts
- You must be logged in to reply to this topic.