+ Reply to Thread
Results 1 to 3 of 3

Add question if you need to change the source directory (File) first then run code.

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Add question if you need to change the source directory (File) first then run code.

    The problem with the code is The source directory (File) the user points to might change from time to time.

    I need for the user to be able and change source directory (File) when it needs to be changed.

    Once you run it now it works but if you need to change where the file is located you cant its all automatic.

    Maybe a pop up question at start saying do you need to change the source directory if user says "no" then it proceeds on
    but if they say "yes" then it jumps down in code to where they choose the directory (or File).
    Then the code you just gave me will utilize that source directory and you can choose the file within that directory just like it is now. Sorry for the change up but this will help others too.

    Again thanks for your reply.




    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Add question if you need to change the source directory (File) first then run code.

    Please Login or Register  to view this content.
    Last edited by protonLeah; 09-23-2017 at 03:33 PM.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: Add question if you need to change the source directory (File) first then run code.

    I added the addition but now when I choose the file location i get an runtime error, it says automation error and unspecified error...i highlighted the section it directed me too.


    Please Login or Register  to view this content.

+ 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: 13
    Last Post: 05-20-2017, 10:44 AM
  2. VB code to Look for file in directory
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-18-2015, 04:57 PM
  3. [SOLVED] Change directory using VBA file save as
    By jwlamb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-06-2013, 09:29 PM
  4. Change directory to specified file path
    By Adventuyre_Harry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2013, 06:42 AM
  5. Need VBA code to search file in directory and sub-directory and show result
    By johnchencanada in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2012, 11:13 PM
  6. Replies: 1
    Last Post: 11-01-2009, 05:01 AM
  7. Change directory before File->Open
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2006, 01:35 PM

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