+ Reply to Thread
Results 1 to 2 of 2

VBA code to open browser, user select location and file, then load in a specific format

  1. #1
    Registered User
    Join Date
    01-05-2012
    Location
    Salinas
    MS-Off Ver
    Excel 2007
    Posts
    22

    VBA code to open browser, user select location and file, then load in a specific format

    Would appreciate any help with this challenge, as it has been a while for me and I am a bit rusty!

    I am looking to have a macro automatically bring up file explorer to select a file, so the user can select a *.txt file that could be in any location (the user selects the location using file explorer then picks the file). The format of the file is delimited by tab and comma and is imported in such a way where some of the fields are specified as text (this had to be done because excel would convert somethings automatically which is what I don't want).

    Once the user selects the file, all the importing with correct text formats in some fields is done automatically.


    Please Login or Register  to view this content.

    Your help is much appreciated!

    THank you.

    Eric

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: VBA code to open browser, user select location and file, then load in a specific forma

    Maybe this will help: https://docs.microsoft.com/en-us/off...ion.filedialog
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Replies: 0
    Last Post: 01-18-2019, 12:51 PM
  2. [SOLVED] Open/Load TEXT file with Specific Date and start at specific Cell
    By chergian in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2017, 09:29 AM
  3. VBA code to allow a user to select and open and excel file into sheet 2
    By EXCELsior44 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2016, 11:46 AM
  4. [SOLVED] Macro to prompt user to select a file and the selected file should saved in location
    By logesh excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2015, 03:43 PM
  5. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  6. [SOLVED] Load a user form and display it at a specific screen location
    By PeterEd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2012, 02:20 AM
  7. open browser window at my given location
    By ilyaskazi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2005, 09:39 AM

Tags for this Thread

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