Evaluate string to formula with link to online documents.

Spanja

New Member
Joined
Oct 8, 2018
Messages
1
Dear Sirs,

I have one problem with evaluation function.

[TABLE="class: grid, width: 663"]
<tbody>[TR]
[TD]Online file name[/TD]
[TD]Link made by CONCATENATE funcеion (string)[/TD]
[/TR]
[TR]
[TD]test1 00 123 3123.xlsm[/TD]
[TD]"='http://test.test.com/Manufacturing//[test1 00 123 3123.xlsm]Sheet1'!$B2"[/TD]
[/TR]
[TR]
[TD]test2 90 43 4.xlsm[/TD]
[TD]"='http://test.test.com/Manufacturing//[test2 90 43 4.xlsm]Sheet1'!$B2"[/TD]
[/TR]
[TR]
[TD]test 3 103 3123.xlsm[/TD]
[TD]"='http://test.test.com/Manufacturing//[test 3 103 3123.xlsm]Sheet1'!$B2"[/TD]
[/TR]
</tbody>[/TABLE]

I have a list with the name of the files. Next, using the CONCATENATE function, I create formulas to get value from B2 cell of Sheet1 (formuma is as string).
Then with Evaluate function (VBA code):
Function Eval(Ref As String)​
Application.Volatile​
Eval = Evaluate(Ref)​
End Function​
I tried to evaluate from string to formula, but with doesnt work with online file link.
When I save this files on hard drive, it`s work. If I drive this formula manually (with reference to the online document), everything works.

Any idea what is the reason? How to fix?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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