+ Reply to Thread
Results 1 to 6 of 6

Generate File path that has been created from another macro to Cell

  1. #1
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Question Generate File path that has been created from another macro to Cell

    Good Morning

    I have the following Macro that someone helped me with, It was moving some files over to the end location but now it doesnt seem to be doing that, What I wanted to do is write the final folder path to Cell F2 once it has run through the macro.

    Please Login or Register  to view this content.
    I then have this Macro set up to move the files

    Please Login or Register  to view this content.
    I will change this line

    Please Login or Register  to view this content.
    To point to the cell with the final path string in it

    Please Login or Register  to view this content.
    I assume that will work?
    Last edited by dave1983; 08-22-2014 at 05:59 AM.

  2. #2
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: Generate File path that has been created from another macro to Cell

    Change
    Const strDestinationPath As String = "Sheets("Move & Rename").Range("F2").Value" to

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Generate File path that has been created from another macro to Cell

    Thanks for that, all I need to do now is have the path string from the macro below be filled into cell F2.

    Anyone know how this can be added to the macro

    Please Login or Register  to view this content.
    Last edited by dave1983; 08-22-2014 at 09:01 AM.

  4. #4
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Generate File path that has been created from another macro to Cell

    Bump!!!!!!!!

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Generate File path that has been created from another macro to Cell

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-17-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Generate File path that has been created from another macro to Cell

    I actually added the line of code you suggested into my existing macro and it has done the required job, here is the new macro just incase any one needs it for reference

    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. Generate path of a file in column and send email as attachment based on a cell value
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2013, 02:01 AM
  2. Create macro to generate hyperlink to a specific file from cell
    By Tranen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2012, 12:23 AM
  3. Macro to display File path on Cell Mouse over
    By Mysore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2012, 01:25 AM
  4. macro to include cell contents b1 in file path
    By martindwilson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2008, 07:42 AM
  5. Automatically generate Code for a worksheet created by a macro
    By jthompson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2008, 06:56 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