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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,224,396
Messages
6,178,389
Members
452,844
Latest member
Shebl

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