+ Reply to Thread
Results 1 to 4 of 4

Save location based on another cell

  1. #1
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Save location based on another cell

    Hi so I have this line in my code:

    Please Login or Register  to view this content.
    But what I want to do is take the "2018" part and change the year based on the value of sheet "Weeks" J2.


    This is whole code if needed:

    Please Login or Register  to view this content.

    i.e if J2 = 2020

    then the outputfile would read


    Please Login or Register  to view this content.
    Many thanks in advance

  2. #2
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Save location based on another cell

    Perhaps the following?
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-21-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    409

    Re: Save location based on another cell

    Yes that works great. Took me a while to test but working perfectly

    Saved me quite a while in programming.

    It won't let me give you reputation as I gave it to you for the last thread but I do really appreciate it.

  4. #4
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Save location based on another cell

    Glad I could help!

+ 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. Save PDF to different location based on choice user
    By SjoisW in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2017, 07:34 AM
  2. change path for save location based upon text in a cell
    By wardy212 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2016, 08:34 AM
  3. Need help with code to save file in a folder location based on a cell value
    By msantucci in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2015, 05:56 PM
  4. [SOLVED] Macro to Save File to Location Folder Based on Date in Cell
    By John_Day83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2013, 05:34 PM
  5. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  6. Macro with cell reference as a name, but prompt for save location and save as csv
    By tomham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2012, 06:21 PM
  7. Save specific sheet to location based on contents of cell
    By KJL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2012, 08:08 AM

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