Passing URL data to Excel

Nilios

New Member
Joined
Oct 28, 2011
Messages
6
So I think I saw something about this on this site but I cannot seem to find it anymore. Either way, I don't think it was answered.

What I am trying to do is pass a value from SharePoint into Excel by adding the value in the URL when opening the Excel file (which opens in Excel and NOT the browser).

The URL would be as follows:

http://<site>/excelfile.xls?key=1234

The problem is, though I can get the path no problem into Excel, I need the "Key" value that is in the URL however this doesn't come through, the path ends at the .xls text. I would open this in the browser where the value can be captured but that just creates chaos with open objects especially when I close it and open it again.

I have looked at doing this a number of ways., even as far as trying to get the text of the macro security warning (since the full filename with the key value is there) but have had no luck.

Any ideas on how I can go about getting this value into Excel?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

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