+ Reply to Thread
Results 1 to 6 of 6

Displaying Binomial trees in excel

  1. #1
    Registered User
    Join Date
    03-10-2010
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    5

    Displaying Binomial trees in excel

    Hi all,
    First of all im sorry if such a thread exists...

    What i wanted to know if anyone knows a way to display data in excel(using VBA), where the data is in a binary tree form, as follows:

    \1

    The no of periods can vary from 3-10 periods ( or more at times)

    What i want is to either have a way to display it as follows:

    \1

    But as be able to have trees of different size plus be able to include some info such as the no of periods(at the bottom of each column) and be able to add the initial data from which the data was created. (the code i used above to create a tree like that has two problems: 1. i cant put any labels such as the no of periods and such 2. i need a button to return back to the userform from which the data was taken)

    OR
    if the above is not possible, i need a way to have a user form the data as it is in the worksheet. Ive thought of textboxes but then i'll have LOTS of them to put since i have about 10 worksheet with different trees of different size

    Thx in advance for answering
    Last edited by darklide; 03-10-2010 at 09:38 AM.

  2. #2
    Registered User
    Join Date
    03-10-2010
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Displaying Binomial trees in excel

    No one can help me? :S (sorry for double post)

    Im kinda desperate now.

    Ive nearly completed my project, all i need is a way to display the data from arrays(or binomial trees in my case) in a userform.

    Could anyone tell me a simple way to do that? Having part of an excel sheet displayed in the userform....Not just listbox please, ive tried but the effects are not that good

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Displaying Binomial trees in excel

    One way would be to copy the range of cells as an image and display the image.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    03-10-2010
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Displaying Binomial trees in excel

    thx but how can i do that? :S

    Should i paste it in a label? or something like that?

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Displaying Binomial trees in excel

    Assuming the tree changes between usage you would want to do it via code rather than copy/paste.

    The example has code for copying a shape from the sheet to an image control.
    http://www.andypope.info/vba/userformdraw.htm

  6. #6
    Registered User
    Join Date
    03-10-2010
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Displaying Binomial trees in excel

    thx a lot will try to do it then tell you if i manage or not

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1