You should use Application.Volatile
in the top of your function:
Function doubleMe(d)
Application.Volatile
doubleMe = d * 2
End Function
It will then reevaluate whenever the workbook changes (if your calculation is set to automatic).
More Related Contents:
- Excel is calculating a formula with a VBA function as an error unless it is re-entered
- Function Overloading and UDF in Excel VBA
- using a sheet in an excel user defined function
- Save excel file multiple times with file names in another workbook.
- Read/Parse text file line by line in VBA
- How do I find the last column with data?
- Excel VBA: Answer gets “stuck”
- How to insert a picture into Excel at a specified cell position with VBA
- Save multiple sheets to .pdf
- Having multiple Excel instances launched, how can I get the Application Object for all of them?
- filter out multiple criteria using excel vba
- Excel VBA autofilter all but three
- Cells.Find() Raises “Runtime Error 91: Object Variable or With Block Not Set”
- Excel VBA code to copy a specific string to clipboard
- Merge values of column B based on common values on column A
- How to import a table from web page (with “div class”) to excel?
- Excel VBA – Range.Copy transpose paste
- How can I run VBA code each time a cell gets its value changed by a formula?
- How to convert 32 bit VBA code into 64 bit VBA code
- Referencing Excel Userform Control Name Value From String (VBA)
- Outputting Excel rows to a series of text files
- Countif With Multiple OR Criteria
- Vlookup to copy color of a cell
- every possible combination of the contents of 2 columns in excel
- How to delete rows in Excel based on criteria using VBA?
- Macro to export MS Word tables to Excel sheets
- VBA: Modify chart data range
- VBA Excel simple Error Handling
- How to do a “Save As” in vba code, saving my current Excel workbook with datestamp?
- How to save semi-colon delimited csv file using VBA?