+ Reply to Thread
Results 1 to 7 of 7

Macro works in every folder except dropbox folder

  1. #1
    Registered User
    Join Date
    12-27-2014
    Location
    Valladolid, Spain
    MS-Off Ver
    2007
    Posts
    3

    Macro works in every folder except dropbox folder

    Hi,
    I'm new in this forum, so I'm not sure if this has been already asked before.
    I have a macro that takes all the data from the csv that exist in the same folder where the xlsm is. If you move the xlsm to another folder, it does the same with the csv that are in the new folder, because I used "ActiveWorkbook.Path". The problem is that it works in every folder except dropbox folder. My objective is to be able to run that xlsm from other computers.
    The message that appears says:
    "Run-time error '1004'. report.csv could not be found. Check the spelling of the file name, and verify that the file location is correct..."
    The highlighted sentence is: Workbooks.Open archi
    Report.csv really exists in that folder. How can I solve it? This is the code:

    Please Login or Register  to view this content.
    Thanks!
    Last edited by alansidman; 12-27-2014 at 09:12 AM. Reason: code tags

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Macro works in every folder except dropbox folder

    When you are in the code, Press F to step through each line of code, find out where the code thinks "Archi" is

    I am not sure what you mean by drop down folder?

  3. #3
    Registered User
    Join Date
    12-27-2014
    Location
    Valladolid, Spain
    MS-Off Ver
    2007
    Posts
    3

    Re: Macro works in every folder except dropbox folder

    Thanks for your answer davesexcel
    The macro works perfectly in traditional folders. Archi refers to every csv which is in the same folder.
    The problem is that I want to run that macro from other computers, so I'm trying to use a shared folder. For example, a dropbox folder (synchronised in my computer), but the macro doesn't work there. I've tried with dropbox, egnyte and google drive folders and the problem is always the same...
    Any thoughts? Does that kind of folders need something else?
    Thanks!

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Macro works in every folder except dropbox folder

    It sounds something like a SharePoint server

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,877

    Re: Macro works in every folder except dropbox folder

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    12-27-2014
    Location
    Valladolid, Spain
    MS-Off Ver
    2007
    Posts
    3

    Re: Macro works in every folder except dropbox folder

    Any other ideas?
    My objective is to refresh the spreadsheet with new data running that macro, and let different people run the macro from different places. As I said "ActiveWorkbook.Path" works perfectly in every folder in my computer, except in the shared folders, which is what I wanted.

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Macro works in every folder except dropbox folder

    Is it a shared folder or a Sharepoint folder?

+ 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: 11-20-2014, 03:18 AM
  2. Access DB on shared folder (SharePoint/SkyDrive/DropBox)
    By kvam123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-31-2013, 11:24 AM
  3. Replies: 1
    Last Post: 03-12-2013, 04:45 AM
  4. Bizarre problem assigning macro to object; works in one folder, not another.
    By jdsmithks in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2009, 04:50 PM
  5. Replies: 6
    Last Post: 08-11-2006, 03:41 PM

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