Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Re-execute all UDF programmatically
Hi,
I'd like to know how I can loop through all Formula / UDF in all worksheets in a workbook programmatically? Do SpecialCells be useful here? Do the returned Ranged (by SpecialCells) contains multiple range? TIA. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Re-execute all UDF programmatically
Thanks Gary, is there a way to loop and touch every formula throughout the
workbook? I want to make sure all formulae are touched, under my certain criteria . Thanks, "Gary''s Student" wrote: Try: Sub macx() Dim w As Worksheet For Each w In ActiveWorkbook.Worksheets w.Activate ActiveSheet.Calculate Next w End Sub -- Gary''s Student "Peter" wrote: Hi, I'd like to know how I can loop through all Formula / UDF in all worksheets in a workbook programmatically? Do SpecialCells be useful here? Do the returned Ranged (by SpecialCells) contains multiple range? TIA. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Re-execute all UDF programmatically
You need to use Application.Calculatefull not sheet.calculate.
see http://www.decisionmodels.com/calcsecretsh.htm for more details on using the various calculate methods from VBA. see also http://www.decisionmodels.com/calcsecretsj.htm for advice on writing UDFs. Charles ______________________ Decision Models FastExcel 2.2 Beta now available www.DecisionModels.com "Peter" wrote in message ... Thanks Gary, is there a way to loop and touch every formula throughout the workbook? I want to make sure all formulae are touched, under my certain criteria . Thanks, "Gary''s Student" wrote: Try: Sub macx() Dim w As Worksheet For Each w In ActiveWorkbook.Worksheets w.Activate ActiveSheet.Calculate Next w End Sub -- Gary''s Student "Peter" wrote: Hi, I'd like to know how I can loop through all Formula / UDF in all worksheets in a workbook programmatically? Do SpecialCells be useful here? Do the returned Ranged (by SpecialCells) contains multiple range? TIA. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Execute a sub in a different project | Excel Discussion (Misc queries) | |||
Re-execute all UDF programmatically | Excel Programming | |||
concatenate and then execute? | Excel Worksheet Functions | |||
Execute a program from within VBA | Excel Programming | |||
Could not execute | Excel Worksheet Functions |