+ Reply to Thread
Results 1 to 7 of 7

Can vba change the default path of IE save as file dialogue box?

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Can vba change the default path of IE save as file dialogue box?

    Hi all,

    Can vba change the default path of IE save as file dialogue box?
    Thanks.

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Can vba change the default path of IE save as file dialogue box?

    Most likely, yes.

    http://support.microsoft.com/en-us/kb/258867
    http://www.slipstick.com/developer/r...key-using-vba/
    Last edited by JasperD; 04-04-2015 at 05:01 AM.

  3. #3
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Can vba change the default path of IE save as file dialogue box?

    Thanks JasperD. Your information is very useful. I wonder VBA can change Registery before.
    by the way, It seem complex.


  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Can vba change the default path of IE save as file dialogue box?

    Hello mrkhchan,

    I have code to do this. Telling me which folder you want to change to will shorten the code. Which folder will be the new default?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Can vba change the default path of IE save as file dialogue box?

    Thanks Leith. In fact, I will call a browser to save file. The object of this browser called open twebst. I am not sure if you hear from it.
    My idea is that I call the twebst object to nagivate a webpage
    then click submit button though the open twebst
    then change the default path of IE save file.
    then copy my filename to the clipboard using MSForms.DataObject
    then I manual ctrl-V the clipboard to the filename.

    only "change the default path of IE save file" I can't write the macro.
    Quote Originally Posted by Leith Ross View Post
    Hello mrkhchan,

    I have code to do this. Telling me which folder you want to change to will shorten the code. Which folder will be the new default?

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Can vba change the default path of IE save as file dialogue box?

    Hello mrkhchan,

    So, do you still the code to change the default folder or can you do this with twebst?

  7. #7
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Can vba change the default path of IE save as file dialogue box?

    maybe my technique is not good enough. I only can use twebst to perform some click or select action.
    If you don't mind, Would you help to provide the methiod of change the deafault folder? Thanks.
    Quote Originally Posted by Leith Ross View Post
    Hello mrkhchan,

    So, do you still the code to change the default folder or can you do this with twebst?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Showing a default file name in GetOpenFilename dialogue box?
    By Granite-Granny in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2014, 10:42 AM
  2. Change Save As path on the download file box (VBA and API)
    By aqpham3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 10:08 AM
  3. [SOLVED] Save As Dialog Box - Default Path and File Name, User Selects Sub Folder from Default Path
    By christenprochaska in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2012, 05:17 PM
  4. Selecting Default Folder in Open File Dialogue Box Problem
    By PaulC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2010, 04:25 PM
  5. VBE, change default path for file import
    By Werner Rohrmoser in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2005, 05:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1