+ Reply to Thread
Results 1 to 2 of 2

Problem with a macro that saves to an online drive

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2010
    Posts
    92

    Problem with a macro that saves to an online drive

    Hey guys! I have a problem with a macro that saves to a specific online server. The server is currently called Z:\. It however does not save to this directory (which you can find after ChDir) but to my local documents folder. Please help!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,894

    Re: Problem with a macro that saves to an online drive

    Your FileName argument lacks Folder path.
    Please Login or Register  to view this content.
    You'll need to concatenate "Z:\docs\offertes\" & smystring & "\3. Calculatie en offerte\" & Fname

    By default, SaveAs without the path string will save to Excel's default save location (which is usually your documents folder).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ 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: 03-14-2016, 10:54 AM
  2. Replies: 1
    Last Post: 07-12-2012, 11:00 PM
  3. Need Macro that saves a second copy of an Excel spreadsheet to a shared network drive
    By rockhunter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-27-2011, 01:42 PM
  4. Problem running macro that saves into a separate file (2007 issue only)
    By mikeenc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-17-2009, 10:45 AM
  5. Can you store a macro on the Desktop, G-drive or C-Drive
    By XxXElAiNeXxX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2007, 01:40 AM
  6. I need a macro that saves a spreadsheet on two drive at once,
    By Chauncy_G in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2006, 04:15 PM
  7. [SOLVED] Macro drive problem
    By Bobak in forum Excel General
    Replies: 2
    Last Post: 03-20-2006, 03:35 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