Custom Funtions

jonc31

Board Regular
Joined
Aug 20, 2009
Messages
83
I am really confused at this point. I created a custom function in vba that goes to another tab in the same workbook and grabs a correspoding number based off the statements in the function. The thing is when I intially enter the formula it is grabbing the correct data but if I update the tab the next day the formula is not updating with the new value.

How do you get custom functions to continually recalculate?
 
MrK, Looking at the UDF, Tabname!D:D would need to be INDIRECT("'"&Tabname&"'!D:D") or similar, likewise for the other instances of Tabname, defeating the object of trying to make a non-volatile formula.

What I supplied is not a UDF, it is a native excel formula solution. The TabName I indicated in the formula was merely a placeholder for where the true TabName should be placed. The ranges should be directly referenced in the formula.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
What I supplied is not a UDF, it is a native excel formula solution. The TabName I indicated in the formula was merely a placeholder for where the true TabName should be placed. The ranges should be directly referenced in the formula.

That is perfectly obvious, I was refering to the OP's UDF, not your suggestion.

If you read the code and the description, it is suggested that Tabname is subject to change, so your native formula "solution" would mean editing the formula on a daily basis to change the Tabname instead of having a consistant formula that points to the source of the Tabname.
 
Upvote 0
That is perfectly obvious, I was refering to the OP's UDF, not your suggestion.

If you read the code and the description, it is suggested that Tabname is subject to change, so your native formula "solution" would mean editing the formula on a daily basis to change the Tabname instead of having a consistant formula that points to the source of the Tabname.

Even so, using a UDF to loop through data to perform a dual condition lookup is incredibly ineffecient, especially as a volatile formula. Any time native formulas can be used, even volatile ones, it would be highly desired.

Jonc31, can you please clarify the purpose of this UDF, as well as what elements are subject to change?
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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