monte carlo vba

Upload: blazen-minic

Post on 05-Jul-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/15/2019 Monte Carlo VBA

    1/2

    Sub c_p_v()

    '

    ' Monte Carlo Simulation around NPV @ pre-defned discount rate

    '

    ' Keboard S!ortcut" Ctrl#S!i$t#v

    '

      S!eets(%Scenario &nalsis%)Select

      ane(%NPVValue%)Select

      SelectionCop

      S!eets(%MC Simulation%)Select

      *or i + , o .,,,

      ane(%/% 0 1 # i)Select

      SelectionPasteSpecial Paste"+2lPasteValues3 4peration"+2lNone3 S5ip6lan5s _ 

      "+*alse3 ranspose"+*alse

      Ne2t i

      7nd Sub

    Sub c_p_c()

    '

    ' Monte Carlo Simulation around 8 @ pre-defned purc!asin price

    '

    ' Keboard S!ortcut" Ctrl#S!i$t#C

    '

      S!eets(%Scenario &nalsis%)Select

      ane(%8%)Select

      SelectionCop

      S!eets(%MC Simulation%)Select

      *or i + , o .,,,

  • 8/15/2019 Monte Carlo VBA

    2/2

      ane(%M% 0 1 # i)Select

      SelectionPasteSpecial Paste"+2lPasteValues3 4peration"+2lNone3 S5ip6lan5s _ 

      "+*alse3 ranspose"+*alse

      Ne2t i

      7nd Sub