Can excel Vba search dropbox for a folder or document?


Well-known Member
Feb 24, 2014
Hi Everyone,
I have a problem with dropbox
we have a number of users that have access to my dropbox account but i'm getting problems with them opening other documents in dropbox using VBA with my filepath.

the code "
and the first part "
Fold1 = "Dropbox (ALL)" " work great.
but for some reason Dropbox can give different file paths to the same Document.
for example
Mine is
Dropbox (ALL)\
Caps\Master File.xlsm

but this does not work for others.

so I was wondering, is there a way to say "Find this Document" I whatever folder its in or where it is in my dropbox?
there will only ever be one Document with at name?

Please help with any suggestions as at the moment everytime we add a new user I have to add a new filepath.

below is the code i'm using fir me but I'm happy to try any ideas?



Sub Example_open1()

Fold1 = "Dropbox (ALL)"
Fold2 = "Admin"
Fold3 = "Caps"
WBName = "Master File"

Folds = Fold1 & "\" & Fold2 & "\" & Fold3 & WBName
fd = Environ$("UserProfile") & "\" & Folds & ".xlsm"
Workbooks.Open (fd)
End Sub


Well-known Member
Feb 7, 2012
Office Version
Even if we assume the file is located on a share drive, if there is anything in the path that you use to accesst the file that is unique to your computer and not available to other users, then the other users would not be able to use the same path to access the file. But if the complete file path of drive, directory, and subdirectories are all on only the share drive server,and all users have the same drive designation for the share drive, then they should be able to access the file using the same path.
Last edited:

Forum statistics

Latest member
Shahzad Taimoor

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...