+ Reply to Thread
Results 1 to 6 of 6

Not sure this is possible with folder paths and macros

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    73

    Not sure this is possible with folder paths and macros

    When I use the folder path on my computer it works great. However, Dropbox is in slightly different locations on other computers that would need to run the macro. Is there a way to get to the files without modifying the code for ever computer? The only difference in the folder path would be everything up to where Dropbox is in the path and would need to include usernames as below.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Not sure this is possible with folder paths and macros

    You may try:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    05-28-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Not sure this is possible with folder paths and macros

    Your original worked, but what happens if there is not a mydocuments in the path on another computer. Why does the code below not work? Dropbox is the only folder that will be the first folder to be consistent in the path.

    Please Login or Register  to view this content.
    Last edited by jh51745; 03-10-2014 at 02:44 PM.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Not sure this is possible with folder paths and macros

    Dropbox is not native Windows folder therefore such code will not work. If folder will jot always be in Documents I think you must check registry.

  5. #5
    Registered User
    Join Date
    05-28-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Not sure this is possible with folder paths and macros

    Is there another way to search for the Dropbox folder regardless of user and location?

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Not sure this is possible with folder paths and macros

    I do not know. I have not found folder location in registry.

+ 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. Macros Open folder, copy, paste and close the folder
    By hahahahahahaha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2013, 05:03 PM
  2. Macros - Coding Macros - Windows Folder Listings
    By theprofessionalnyc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2013, 02:16 PM
  3. Replies: 1
    Last Post: 03-12-2013, 04:45 AM
  4. Renaming .dat to .csv, run through macros and save in correct folder
    By holly66 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-20-2010, 04:55 PM
  5. Macros to execute in the current folder
    By jay36429 in forum Excel General
    Replies: 1
    Last Post: 11-10-2010, 01:59 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