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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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