Prevent File Save Dialog appearing?

I have been using Excel 2010 to create Word Documents and then use .SaveAs to save the newly created file without any issues
When I moved to Office 2013 the same code now presents a File Save dialog box.
I have researched the issue and can find no way to prevent the Dialog appearing (and worse regardless of the user selection the Excel code crashes)
The following is a simplified version of the troublesome code
Sub TestWordSaveAs2()
Dim InvoiceProFormaFileName As Variant
Dim NewFileName As String
Dim WordApplication As Object
Dim WordDoc As Object
  ' Prompt for a word document
  InvoiceProFormaFileName = Application.GetOpenFilename(FileFilter:="Word Documents, *.docx", Title:="Any Word File", MultiSelect:=False)
  Set WordApplication = CreateObject("Word.Application")
  Set WordDoc = WordApplication.Documents.Open(InvoiceProFormaFileName) ' Open the pro-forma invoice
  ' Create a new name
  NewFileName = Replace(InvoiceProFormaFileName, ".docx", "2.docx")
  WordDoc.SaveAs2 Filename:=NewFileName, FileFormat:=16, AddtoRecentFiles:=False ' <======= this line Shows the File Save Dialog and then fails
  WordDoc.Close SaveChanges:=0 ' wdDoNotSaveChanges
  ' Finished with the Word Application so can close
  WordApplication.Quit
End Sub
Thank you in advance

Hi,
I have create a doc file and a excel file in my pc, after I run the code you have provided ,and choose the doc file I just created, it runs without any save dialog. And My Office is Pro Plus 2013 .
I have upload my sample to OneDrive, you can download it here:
http://1drv.ms/1DhnMe5
When you run this sample, will this show the save dialog again ?
To narrow down this issue, can you create a new empty word and choose it in the excel, does it will happen again? if it is convenient, can you share the doc file you're using? Have you update your office ?
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to write binary data to browser - File Save dialog

    Hi,
    problem:
    i have a working webservice and i get binary data from that webservice.
    my dynpro java  already works and i have byte[] b which has my binary result.
    what i want:
    when the user clicks on the button, the action onActionGetResult() is executed and inside this method, the byteArray b exists. what can i do, to say the dynpro application that it should  send the binary data direct to the browser, so that the "File Save Dialog" appears and the user can save the file to the harddisk
    any ideas?

    I've found the solution:
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(
    res.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()),
    res.getResourceName());
    window.show();
    this worked for me

  • Windows File Save dialog freezes a virtual folder

    We have a shell namespace  extension that presents a remote document repository as a virtual  folder in the Desktop folder. When the File Save dialog box is opened from  within Adobe Reader or  Acrobat version 9, our  virtual folder appears inactivated. Even though the common dialog box displays  the items in the folder, it is not possible to select any of the items, e.g.,  using a mouse click or key code press.
    Note that the same common  dialog when running in open mode works fine. Our virtual folder is enabled, and  an item can be selected for the Open action. It appears that the problem shows  up only when the Save dialog runs from within Adobe Reader 9 or Acrobat  9.
    The problem appears to be  limited to Windows 7 and Vista. XP does not have the  problem.
    I would like to know  why and how the save dialog gets disabled, and would like to know how  to prevent the dialog from disabling the  virtual folder. 

    Hi,
    I have followed the example you mentioned to save a picture to the folder shortcut, and the name won't change to the shortcut. Also the picture would be saved into the original folder.
    Here is the steps I did:
    1. Create a folder named New folder in My documents:
    2. Select it and then press ctrl + C and right-click on destop choose paste shortcut(named New folder-Shortcut);
    3. Right-click on a picture in one webpage then open the save picture as dialog box;
    4. Navigate to the desktop folder shortcut and double-click into it, the file name field won't change;
    5. My machine is Windows 7 Enterprise SP1.
    Would you please tell some more details on how you saved the picture?
    In addition, there might be some other applications triggered this action, we may take a look with process monitor:
    The download link here:
    Process monitor
    And here is a blog talking about how to use it:
    Process Monitor - Hands-On Labs and Examples
    If possible, please redo the action, then upload the result into onedrive and paste the link here.
    Best regards
    Michael Shao
    TechNet Community Support

  • Download file in struts - File save dialog not showing up

    Hi,
    The issue i have is - the file save dialog box which should be displayed on file download is not showing up.
    I have a DAO being called from the Action form SaveDocumentAction which extends DispatchAction and has a download(mapping, request, response,..) method. Below are relevant portions of my code.
    public void showDocument(DocumentTO Doc, HttpServletResponse response){
    //get filename etc
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition", "attachment; filename=myFile.txt");
    OutputStream out = response.getOutputStream();
    //code for writing from input file to out
    I shld be getting a File Save dialog after response.setHeader(), but I am not. Can anyone tell me where I am going wrong. I have printed SOPs and all print fine, even the file writing part.

    Put this code into a servlet rather than a JSP.
    JSP are for returning text based HTML pages. It adds extra carriage returns into the response that will corrupt the file, and prevent the dialog showing up.
    This code is much better off being in a servlet
    If you are using a FileInputStream, you should be using a ServletOutputStream rather than the JSP writer: response.getOutputStream()
    When dealing with file input in a JSP/Servlet you should use the methods of ServletContext. getRealPath() turns a website relative file into a real location on disk. getResourceAsStream() opens the file for you. getResourceAsStream() is more reliable as it will work even if the web app is deployed in a packed WAR.
    Cheers,
    evnafets

  • File Save dialog box not showing correct file name while saving file

    hi
    Currently, after the Submit button is hit, the File Save dialog box is displayed. If the user saves the file and then opens it then the output appears correct however if the user chooses to open the file without saving on the local machine then the correct viewer is not used to display the file. The name of the file is defaulted as qotSCopPrint.jsp and the default file viewer for jsp files is chosen to view the file. The format of the file is obviously not text (it is either pdf or rtf) so the output shows binary characters.

    data : v_repid like sy-repid.
    parameters : p_file like rlgrap-filename.
    initialization.
    v_repid = sy-repid.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = v_repid
                dynpro_number = syst-dynnr
                field_name    = 'P_FILE'
           IMPORTING
                file_name     = p_file.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • Presenter forces permanentely the file save dialog even for unchanged documents

    Presenter permanentely forces the "Do you want to save the changes ..." file save dialog to appear even for unchanged documents when I try to close it.
    To confirm the saving all times is not the solution because then I will loose the file's time/date stamp for the last real change.
    Not confirming the saving can be risky in case of any changes to the document which I am not aware anymore for that moment.
    Especially in case of having multiple documents open - this drives me really crazy.
    Deactivating the Adobe Presenter Add-in would solve the issue - so it is a problem related to Adobe Presenter (and not related to Powerpoint).
    I am using:
    Adobe Presenter 9.0.2
    Microsoft Office Professional Plus 2010
    Windows 7, 64 bit, Service Pack 1
    Thanks for your help
    Stefan

    The easiest way to solve the problem is to temporarily deactivate Adobe Presenter when you don't need it.
    In PowerPoint, go to File / Options / Add-Ins, select "COM Add-Ins" at the bottom of the window and click "Go".
    Then un-check the Adobe Presenter PowerPoint COM AddIn:
    You can easily reverse the process when you next need to use Presenter.

  • Presenter forces the file save dialog even for unchanged documents

    Presenter always forces the "Do you want to save the changes ..." file save dialog to appear even for unchanged documents.
    To confirm the saving all times is not the solution because then I will loose the file's time/date stamp for the last real change.
    Not confirming the saving can be risky in case of any changes to the document which I am not aware anymore for that moment.
    Especially in case of having multiple documents open - this drives me really crazy.
    Deactivating the Adobe Presenter Add-in would solve the issue - so it is a problem related to Adobe Presenter (and not related to Powerpoint).
    I am using:
    Adobe Presenter 9.0.2
    Microsoft Office Professional Plus 2010
    Windows 7, 64 bit, Service Pack 1
    Thanks for your help
    Stefan

    The easiest way to solve the problem is to temporarily deactivate Adobe Presenter when you don't need it.
    In PowerPoint, go to File / Options / Add-Ins, select "COM Add-Ins" at the bottom of the window and click "Go".
    Then un-check the Adobe Presenter PowerPoint COM AddIn:
    You can easily reverse the process when you next need to use Presenter.

  • Media Encoder, No File Save Dialog with New XDCam Project

    I've started a new project last night and I got it edited toda
    y. It's XDCam 24P timelines, very simple linear
    string of short 45 second clips of interviews with executives.
    The timeline behaves normally in every respect. Except, when I attempt to render it to any format in Media Encoder, I never get the File Save As dialog. I press OK and the Media Encoder settings goes away, then, a second later, reappears. It took me a few moments to realize something was wrong.
    I rebooted the computer, thinking Premiere was just corrupt in memory, as sometimes happens, but after a fresh start, the same behavior with the Media Encoder. Now I'm really worried, because this is a corporate event video with a deadline.
    Just to check, I tried opening a prior project and tried to render anything in that project. This time I get the Save As dialog, which is expected. So I return to the corporate event project and try again to render anything within that project. The encoder settings keeps redrawing when I press OK and I cannot save anything.
    Thinking my project was corrupted, I copied the assets and made a new project and pasted them into the new, blank project. Once again, I cannot render anything. All I get is a redraw out of the Media Encoder settings screen.
    This is a very simple project. There is nothing unusual about it that could cause this freakish behavior, except the lighting used at the event was mostly yellow. Apparently it doesn't like something about my footage, but I cannot re-shoot this one-time corporate event! If a reboot didn't fix it, and other projects still work normally, then it's a real head-scratcher. This is new behavior that I've not encountered in 3 years of using CS3.
    I'm out of ideas. If it's XDCam my footage, then I'm dead in the water here!

    FOUND THE PROBLEM!
    I have several timelines in the project, and most of them are titled things like "window dub w/timecode". I found one that was titled "interviews" and tried to render that. The Save dialog appeared, only when I rendered from THAT timeline. So I started to look for differences between the timelines.. then it dawned on me that all the timelines that don't render have the "/" character in the title. Adobe should warn that this character is not allowed, rather than allow it and then behave weirdly. Could have saved me hours of thrashing about!

  • Pasting from a web page into a File-Save dialog no longer works; causes a freeze-up

    When I place an order on Amazon, I copy the order number, then print the invoice to .pdf. When the file save dialog comes up, I paste in the order number as part of the file name. I used to, that is. At some point the pasting part no longer worked: nothing (visible anyway) is pasted, but something is happening, as the file save process hangs, and I have to use task manager to kill it. Then, the print process is trashed - if you try to print again, you get an error - and I have to restart Firefox to clear that.
    This copy/paste procedure works fine in IE & Chrome.

    The only way I was able to reproduce what you described is to run the script after copying a picture.
    Here is a refined version.
    It make two attempts to grab text items from the clipboard.
    If both failed, it send an error message.
    --[SCRIPT table2text]
    Enregistrer le script en tant qu'Application ou Progiciel : table2text.app
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:
    Il vous faudra peut-être créer le dossier Applications.
    Copiez vos données dans le Presse-papiers.
    menu Scripts > table2text
    Le presse-papiers sera alimenté par le composant Text ou utf8 du contenu initial.
    +++++++
    Save the script as an Application or an Application Bundle: table2text.app
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:
    Maybe you would have to create the folder Applications by yourself.
    Copy your block of datas to the Clipboard.
    menu Scripts > table2text
    The Clipboard will be filled with the text or the utf8 component of its original contents.
    Yvan KOENIG (Vallauris, FRANCE)
    4 février 2009
    --=====
    on run
    try
    set the clipboard to (the clipboard as text)
    on error
    try
    set the clipboard to (the clipboard as «class utf8»)
    on error
    if my parleFrancais() then
    error "Pas de données texte dans le presse-papiers !"
    else
    error "No valid text data in the Clipboard !"
    end if
    end try
    end try
    end run
    --=====
    on parleFrancais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z = "Annuler")
    end parleFrancais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE mercredi 4 février 2009 21:49:14)

  • File Save Dialog does not show web folders

    Hi.
    My system is SAP ECC 6.0. From custom abap program, I need to be able to navigate to a sharepoint folder and save a file to it. I call METHOD cl_gui_frontend_services=>file_save_dialog for this. I have already mapped/added the SharePoint site (ex. http://abc/xyz/) to My Network Places. However, when I run my program, the File Save Dialog does not show the web folders in the said sharepoint site. Any clue to what I'm missing here? In WiinExplorer, I have no issue navigating/accessing the web folders.
    Thanks in advance.

    project manager
    um, yeah.
    Should not need the project manager simply to see new files added to a directory in a Open/Save dialog window since last opening the app.
    I did a scan, a extended scan, opened all the little turn down arrows of the
    full path to the directory I knew there to be the new files and yes, Logic
    shows them there in the "Project manager".
    BUT Logic still does not show the files in the Open/Save dialog windows.
    This is strange because even simple app like TextEdit can show
    new files in it's Open/Save dialog function windows without the need of
    a project manager.
    I have to quit and re-launch each time to see any new files?

  • How to get a file save dialog box on button click

    Hi All,
    I have  some text  and I want to write this text in to a  file.Then I want to save this file to my local system using a file save dialog box so that I can choose the location where I want to save this file.Please tell me how can I do this in WebDynpro.
    If I cannot get the File save Dialog Box then how can I give the path while creating the new file so that it is created on my local system  as the application is running on server.
    Regards
    Rahul

    Hi Rahul,
    Sometime back I was also facing the same requirment and there are only two solutions to it one is what Armin suggested to use the file download UI element the other one you can get from this link How to write a file on our local machine using Web Dynpro
    Regards
    Sid

  • Web Dynpro file save dialog - for portal

    Hi everyone,
    I am currently building a Web Dynpro application in which I need to display a File Save Dialog popup on the Netweaver Portal.
    Now, I used the standard file_save_dialog method from the class CL_GUI_FRONTEND_SERVICES, but this gives me a dump on the Portal saying: Exception condition "NOT_SUPPORTED_BY_GUI" raised.
    I believe that this is because the method file_save_dialog displays the popup in the backend but cannot render the functionality on the front-end portal.
    Please advice if there is any suitable method / function module which does the same functionality and is compatible with the front-end.
    Thanks in advance for your help....
    Kind Regards,
    Shailesh.

    hello friend,
    you can use two different approach to achieve your requirement:
    1. using filedownload control in Webdynpro ( CL_WD_FILE_DOWNLOAD )
    2.
    CALL METHOD cl_wd_runtime_services=>attach_file_to_response
          EXPORTING
              i_filename      = 'Sales.xls'
              i_content       = xstr
              i_mime_type     = 'EXCEL'
              i_in_new_window = ABAP_FALSE
              i_inplace       = ABAP_FALSE
    Hope it helps.
    Best Regards,
    Jerry

  • Oracle BPM 10.3 File Save Dialog Box

    Hi,
    I am using Oracle BPM 10.3. Can anybody tell me that how to get a File Save Dialog box in the method. On the method call i want to call Save Dialog box which will save the file on the local computer.
    Thanks
    Edited by: user9293762 on Sep 2, 2010 9:35 AM

    The compilation within Studio works with a bit smaller (like 35MBytes) project, thus I think the problem is some sort of memory handling.
    The problem comes up while it is trying to compie/load 'external resources': it still works with 512M or even 256M of heap before this operation.
    Some weird thing is that I cannot set Xmx >640M, nor launcher.XXMaxPermSize > 1024M (winXP SP2, 2G RAM). While I'm sure that nothing is hacked around the memory allowance of Windows (i.e. how much memory does it allow for particular executables), I think this operation should be tested to work even on 256M heap...
    On the other hand, the ANT compilation works well.
    Well, almost well.
    I have had some errors in my project, which ALBPM6.0 said to be OK, like defining a String array attribute 'not null' and setting no default value; or defining some object to be abstract and instantiating it.
    However these errors are not always reported, e.g. during catalog compilation: XY must be explicitly instantiated before being used since it does not have a default initialization... thus made it static (however, it has been used as static all the time).
    I had to hack CatalogPublisher a bit so that I can read them on stdout, and correct those syntax errors.
    For this possibility, iterate over the non-empty foCheckerListener.getPresentationErr() in CatalogPublisher after checkXO().

  • Set default filename for file save dialog

    Hi,
    I am using AxAcroPDF control to view pdf files in windows forms.
    Is there any option to set the default filename in the save dialog?
    Thanks for your help.
    Freedon

    Hi,
    I've found a solution.
    public void Open(string filePath)
    axAcroPDF.LoadFile(filePath);
    //this will set the correct name in the save file dialog.
    axAcroPDF.src = filePath;
    Thanks for your help.
    Freedon

  • Set default filename for file save dialog on Save button click

    Hi,
    I am using AxAcroPDF (version 9.0) control to view pdf files in windows forms (C#). The pdf loads into the viewer in the form. Now, when I click on the Save button in the viewer, a Save dialog pops up with a default filename having complete path info.
    If I have loaded the pdf file into AxAcroPDF viewer with filename:
    "C:\Documents and Settings\KB_Kravi\My Documents\CustomerList.pdf"
    then in the save dialog, the default filename will be:
    "C_Documents_and_Settings_KB_Kravi_My Documents_CustomerList.pdf"
    Is there any option to set the default filename in the save dialog to some short name, instead of this lengthy name?
    Thanks,
    Ravi.

    Hi,
    I've found a solution.
    public void Open(string filePath)
    axAcroPDF.LoadFile(filePath);
    //this will set the correct name in the save file dialog.
    axAcroPDF.src = filePath;
    Thanks for your help.
    Freedon

Maybe you are looking for

  • GPIB Control of Spectrum analyser

    Hi There I have a HP 8591 EM spectrum analyser and EMC receiver I wish to control this via GPIB. I would basically like to control everything from my PC if possible which covers everything on the front panel and to pull of all the data for analysis m

  • Need help to upconvert LabVIEW 3.1 to LabVIEW 2011

    Hello, I will be greatly appreciate it if anyone can help me convert the LV file from version 3.1 to version 2011. Thanks. Attachments: HP8510A.LLB ‏2916 KB

  • Building a loader inside of a scene

    Hey Everyone I have a quick question (I think). I have some old AS2 code from a client that has a loader in scene 1 and the movie in scene 2. I built and external loader in a separate SWF but they want the loader, and movie to be in the same SWF but

  • FF4 keeps logging me out, password and username are not remembered

    After upgrading to FF4 I have the problem that Firefox is logging me out from certain websites. This happens randomly, sometimes when I close Firefox, sometimes the next day. I previously had Firefox 3.XX and never had this problem. I have checked th

  • Buying A New DVD Burner and putting It in This ...... ?

    Could you put a new DVD Drive/ Burner in a 2000 G4 Powermac with 10.1.5 OS 864MB Ram 30Gb HD. It has only a CD-Rom in it now. The Processor speed is 466Mhz. So getting a new drive would help or would it not work ? Also would this LACIE D2 Dvd+-RW dou