Trying to use VLOOKUP for files in Dropbox

trietta

New Member
Joined
Jan 8, 2018
Messages
20
First time using dropbox for this. I want to create VLOOKUPs referencing several different files, but the problem is that everything is in Dropbox and I need to download the files to work on them.

Is there any way to create the links without having to download all of the files onto my local drive?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You could download the files to a temporary folder, import the data via vba, then delete the files in the temp folder.

Here is the code I use to download files from a URL:

Code:
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, _
ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long


Function DownloadFileFromWeb(strURL As String, strSavePath As String) As Long
    'strSavePath includes filename
    'returns 0 if download successful
    DownloadFileFromWeb = URLDownloadToFile(0, strURL, strSavePath, 0, 0)
End Function

To my knowledge, you have to download the file for Excel to access it.
 
Last edited:
Upvote 0
Thanks! But when someone else opens the file, since the formulas reference my local drive and their computer is going to reference their local drive, the VLOOKUPs won't work, correct?
 
Upvote 0
Thanks! But when someone else opens the file, since the formulas reference my local drive and their computer is going to reference their local drive, the VLOOKUPs won't work, correct?

Correct, at which point, you'd need to write vba code to perform your lookups and calculations. That way you can dynamically code the file paths of the supporting documents.
 
Upvote 0

Forum statistics

Threads
1,215,756
Messages
6,126,692
Members
449,330
Latest member
ThatGuyCap

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top