+ Reply to Thread
Results 1 to 6 of 6

VBA Code: Dialogue for FileOpen and Saveas on Specific File Path

  1. #1
    Registered User
    Join Date
    11-07-2016
    Location
    Barbados
    MS-Off Ver
    2010
    Posts
    24

    VBA Code: Dialogue for FileOpen and Saveas on Specific File Path

    I am hoping that someone can assist. I need a VBA code that will prompt the user to open an excel file from one folder and save as an XML or any type of file for that matter in another folder.

    So for example, Open folder on File Path A, Select excel File, Open and Save as XML file (or any other file) in File Path B.

    Any suggestions?

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: VBA Code: Dialogue for FileOpen and Saveas on Specific File Path

    May be this?

    Please Login or Register  to view this content.
    Teach me Excel VBA

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: VBA Code: Dialogue for FileOpen and Saveas on Specific File Path

    See if this works for you:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Registered User
    Join Date
    11-07-2016
    Location
    Barbados
    MS-Off Ver
    2010
    Posts
    24

    Re: VBA Code: Dialogue for FileOpen and Saveas on Specific File Path

    Quote Originally Posted by Arkadi View Post
    See if this works for you:

    Please Login or Register  to view this content.
    I tried this but it's not giving me the option to save as an XML file, only different types of excel files.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: VBA Code: Dialogue for FileOpen and Saveas on Specific File Path

    Odd, on my system it shows much more than just excel files, xml, html, csv etc all show up

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: VBA Code: Dialogue for FileOpen and Saveas on Specific File Path

    You may need to make sure that excel is associated with xml files in windows I suppose. Try right clicking an xml file in windows explorer, and choose open with. Does excel show up? If not then manually choose another app, and use excel to open it. Does that change anything?

+ 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. [SOLVED] Can vba change the default path of IE save as file dialogue box?
    By mrkhchan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-07-2015, 10:45 AM
  2. [SOLVED] SaveAs file path that references cell value
    By swood15 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2014, 01:45 PM
  3. [SOLVED] File SaveAs path from Userform Field
    By SymphonyTomorrow in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2014, 03:50 PM
  4. Code to list the folder path and sub folder path of a specific file
    By kalai1587 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2013, 03:51 AM
  5. Using SaveAs & changing the path a file is saved at
    By penny in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-07-2008, 11:24 AM
  6. SaveAs File Path from Word to Excel
    By armster in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2007, 07:11 AM
  7. SaveAs File Path Method
    By kartune85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2006, 03:00 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