Guest User

Untitled

a guest
Nov 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Function doubleMe(d)
  2. Application.Volatile
  3. doubleMe = d * 2
  4. End Function
  5.  
  6. Public Function doubleMe(d as variant)
  7. doubleMe=d*2
  8. end Function
  9.  
  10. Public Function doubleMe()
  11. Application.Volatile
  12. doubleMe=Worksheets("Fred").Range("A1")*2
  13. end Function
  14.  
  15. Application.Calculation = xlCalculationAutomatic
  16.  
  17. Application.Calculation = xlCalculationManual
  18.  
  19. Public Sub UpdateMyFunctions()
  20. Dim myRange As Range
  21. Dim rng As Range
  22.  
  23. 'Considering The Functions are in Range A1:B10
  24. Set myRange = ActiveSheet.Range("A1:B10")
  25.  
  26. For Each rng In myRange
  27. rng.Formula = rng.Formula
  28. Next
  29. End Sub
  30.  
  31. Public Sub UpdateMyFunctions()
  32. Dim myRange As Range
  33. Dim rng As Range
  34.  
  35. 'Considering The Functions are in Range A1:B10
  36. Set myRange = ActiveSheet.Range("A1:B10")
  37.  
  38. For Each rng In myRange
  39. rng.Formula = rng.Formula
  40. Next
  41. End Sub
Add Comment
Please, Sign In to add comment