+ Reply to Thread
Results 1 to 9 of 9

Macro Help - Modify macro to save as to specific location

  1. #1
    Registered User
    Join Date
    12-07-2011
    Location
    South Florida
    MS-Off Ver
    Excel 2010
    Posts
    16

    Macro Help - Modify macro to save as to specific location

    Currently have this macro running, which does a save as and names the file based on the value in cell B3. I would like to modify this macro so it also saves the file to a specific directory (example C:/dropbox).

    Please Login or Register  to view this content.
    Last edited by scoochUM; 01-30-2014 at 10:28 AM. Reason: Added code tags

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro Help - Modify macro to save as to specific location

    Welcome to the forum.

    We'd like to help you but first..

    Pls take some minutes to read forum rules and specially-in this case- rule#3 and add code tags around your code.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    12-07-2011
    Location
    South Florida
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Macro Help - Modify macro to save as to specific location

    Got it, thanks! Sorry for being a NooB!

    Quote Originally Posted by Fotis1991 View Post
    Welcome to the forum.

    We'd like to help you but first..

    Pls take some minutes to read forum rules and specially-in this case- rule#3 and add code tags around your code.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro Help - Modify macro to save as to specific location

    Thanks for understanding.

    Give a try to this.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-07-2011
    Location
    South Florida
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Macro Help - Modify macro to save as to specific location

    Didn't work, it saves the file still as name in cell but saved to desktop instead of specified folder. Also, created a new workbook and gave the following error:

    Run-time error '1004':

    Microsoft excel cannot access the file C:/C877B220. There are several possible reasons:
    The file name or path does not exist
    The file is being used by another program
    The workbook you are trying to save has the same name as a currently open workbook

    Any thoughts?

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro Help - Modify macro to save as to specific location

    In my tests, macro works like this.

    saves the file with the name of cell b3 AND create a new one with name "C:\dropbox.xls"..

    VBA isnot my strong card so sorry but no other idea.

  7. #7
    Registered User
    Join Date
    12-07-2011
    Location
    South Florida
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Macro Help - Modify macro to save as to specific location

    Just to make sure we are on the same page, I am not trying to create 2 separate files (I think that's what you're saying). I'm trying to save the file with the name in cell b3 & just save this same file to a specific folder (in example, c:/dropbox).


    Quote Originally Posted by Fotis1991 View Post
    In my tests, macro works like this.

    saves the file with the name of cell b3 AND create a new one with name "C:\dropbox.xls"..

    VBA isnot my strong card so sorry but no other idea.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro Help - Modify macro to save as to specific location

    Exactly!!

  9. #9
    Registered User
    Join Date
    12-07-2011
    Location
    South Florida
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Macro Help - Modify macro to save as to specific location

    Any other ideas????

+ 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. Replies: 0
    Last Post: 07-11-2013, 02:08 AM
  2. Replies: 1
    Last Post: 06-30-2013, 05:58 PM
  3. [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
  4. macro - Save in .xls format/to specific location/name from entered data/show message
    By mimichan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2012, 10:38 AM
  5. macro to save workbook with specific type and location
    By wolfm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2011, 02:36 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