+ Reply to Thread
Results 1 to 2 of 2

File picker help

  1. #1
    Forum Contributor
    Join Date
    03-12-2014
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    138

    File picker help

    Hi

    I have a file that I would like to open using VBA and then copy column a, then paste into my worksheet column d to update it

    The file I want to open is in a shared file and there is a choice of week to select

    eg.

    the macro would follow the file path and then prompt to choose the required week file, then when the week file is selected it will open and copy column A and paste into column D of my worksheet then close the selected week file

    Any help appreciated
    Last edited by shrubfact; 02-27-2017 at 10:05 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: File picker help

    Firstly, use the macro recorder to record yourself completing all these actions manually, then you'll have some base code to work with.

    You can use the command GETOPENFILENAME to prompt a user to select the file to open, see here: https://msdn.microsoft.com/en-us/lib.../ff834966.aspx

    And here is how you specify the directory it starts in: https://social.msdn.microsoft.com/Fo...e?forum=isvvba

+ 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] Copy range from workbook opened with a file picker
    By potga in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2016, 09:33 AM
  2. [SOLVED] file-picker thinks it is a folder-picker if the folder picker runs first?
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-01-2016, 01:14 PM
  3. [SOLVED] How to step through in a file picker macro
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2014, 09:07 PM
  4. File Picker
    By rajwar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2014, 11:46 AM
  5. File dialog list picker
    By julhs in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2013, 12:42 PM
  6. File picker in excel 2007
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-14-2012, 12:01 AM
  7. File Picker problem
    By noodle48 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2011, 11:49 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