+ Reply to Thread
Results 1 to 6 of 6

VBA to return folder path to cell

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

    VBA to return folder path to cell

    I have code that displays the folder path in msg box

    Please Login or Register  to view this content.
    How can I modify it to return the path to a cell on sheet say (T1)

    Thanks

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VBA to return folder path to cell

    Like this.
    Please Login or Register  to view this content.
    BSB

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

    Re: VBA to return folder path to cell

    It returns a run time error subscript out of range

    any thoughts

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VBA to return folder path to cell

    Sorry, I meant to say change the Sheet name to suit...
    Please Login or Register  to view this content.
    And make sure the file has been saved rather than a freshly created and as yet unsaved one.

    BSB

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

    Re: VBA to return folder path to cell

    Thanks you

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VBA to return folder path to cell

    Happy to help

    BSB

+ 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. concatenating the defualt path of browsefolder() to the user input path or folder name
    By Neverending1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2018, 09:52 AM
  2. [SOLVED] Return Folder Path From Windows Explorer Window
    By Justin H2O in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2016, 08:45 AM
  3. IF(CELL=Folder Path)
    By Dr34m in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2016, 07:46 AM
  4. How to validate an input dat folder/directory path whether the path has any spaces
    By mahendra.asapu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2015, 02:39 AM
  5. Find latest modified folder and return path to cell
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2014, 05:27 AM
  6. 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
  7. Code to return path to Windows Folder
    By mikerickson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2010, 01:36 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