How to force a function to be calculated

mtheriault2000

Well-known Member
Joined
Oct 23, 2008
Messages
826
Hello

A cell contain a private function
Code:
D18 = Get_NamedString()
The function work well when I select the cell then press enter.

As this cell function is linked to a global variable, how could I code it to be updated automatically. Even the recalculate button from the tool bar doen not modify the value

Code:
Public Function Call_GetNamedString() As String
   Dim String_i As String
   String_i = GV_GetNamedString("DataString", "error ")
   Call_GetNamedString = String_i
End Function
'

How could I force the cell to call the function at least every 500 millisecond or even 1 second

Martin
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

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