+ Reply to Thread
Results 1 to 5 of 5

Enter path location into FromPath and ToPath on Excel Spreadsheet

  1. #1
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Enter path location into FromPath and ToPath on Excel Spreadsheet

    Hello,

    I have a VBA code which copies files from the Path mentioned into FromPath and pastes the same into the ToPath location.

    As there are multiple folders, so I do not want users every time to go to Visual Basic window to change the Path location.

    Is there a way, where we can create a text box, so users can enter the path location on the sheet and then click on Copy Files button to copy the files.

    I've attached a excel sheet for your reference.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by E5254730; 02-18-2020 at 09:19 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: Enter path location into FromPath and ToPath on Excel Spreadsheet

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Re: Enter path location into FromPath and ToPath on Excel Spreadsheet

    Hello,

    I have a VBA code which copies files from the Path mentioned into FromPath and pastes the same into the ToPath location.

    As there are multiple folders, so I do not want users every time to go to Visual Basic window to change the Path location.

    Is there a way, where we can create a text box, so users can enter the path location on the sheet and then click on Copy Files button to copy the files.

    I've attached excel sheet for your reference in my first thread.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,365

    Re: Enter path location into FromPath and ToPath on Excel Spreadsheet

    Why did you remove the code? Please put it back into the post with the code tags added, as requested.

    Thanks.

  5. #5
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Re: Enter path location into FromPath and ToPath on Excel Spreadsheet

    Apologize, Here is the code :

    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. [SOLVED] Vba to copy a file from a network path and place it to another network path location
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-12-2018, 01:09 PM
  2. Attaching Pictures on Excel Spreadsheet using Path from the Cell Value
    By KrNpRiDe in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-13-2017, 12:54 PM
  3. Replies: 6
    Last Post: 03-30-2015, 04:59 AM
  4. [SOLVED] Enter Line-Break [Alt + Enter] at specific location
    By jewelsharma in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-27-2014, 12:23 AM
  5. Open the excel file location (path) in explorer
    By Arien in forum Excel General
    Replies: 4
    Last Post: 07-19-2013, 05:05 AM
  6. File Path Reference to Location of Open Spreadsheet
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2009, 11:09 AM
  7. select database file path location for excel query
    By GerryE in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-11-2006, 08:30 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