Posts by filo65

    Re: Is A Do Loop Efficient


    billyj


    This code works poerfectly now. The use of True in the Select case staement is to achieve the so call C-type Shortcircuit ( this boost performances )); Excel up to now - maybe the 2007 has chaged - proofs all conditions in a if...then using select case true ( for OR ) or false ( for and ) allows you to break your proofing as soon one TRUE condition is met ( in case of OR ) or a FALSE one ( in case of AND ). BE CAREFULL using it


    see: http://www.ozgrid.com/forum/showthread.php?t=41814


    HTH


    Filippo

    Re: Is A Do Loop Efficient


    billyj,


    I changed a little bit your code, trying to make more efficient your if statements.
    it should be much faster now.



    filippo

    Re: Adding A Digit Into Column Of 2 Sheets


    assuming you answer yes to both questions, place this code in a module



    filippo

    Re: Dynamic Formula For Reuters Feeds


    Robert,


    I couldn't find the old way, but you could try this solution


    Assumptions:
    You enter your WKN ( Bond code ) in column B, Formulas related are in the range C:L.
    Please adapt it to your needs, if it helps. Still if you can get PowerPlus, RtGet functions will make your live much easier.


    filippo

    Re: Formula For Pv Factor


    Reafidy,


    -concerning the round is because the data mgiv provided had only 4 digits
    -concerning the formula, it depends: up to one/one and a half years, it's normally used the simple actualization, that is = C / (1 + r% * dt ) ( they are normaly deposit rates calculated normally on a ACT/360 day basis ); above the one year mark ( market convention ) one normally switch to a compound actualization = C * (1 + r% )^t, because you assume the capital to be reinvested at same rate for the time t ( day convention: ACT/ACT, 30/360, etc. ) which actually is not the case, but it's easy and fast to calculate ( basically it assumes a flat yield curve ). Normally in financial markets on the base of deposit, futures and swap rates, one calculate a zero curve ( with the bootstrapping method ) and from there a REAL the discount curve, for each maturity.
    having that you can calculate the pv any of your investments.


    filippo

    Re: Application Ontime - Stopping It?


    if I remember well it should be


    Code
    on error resume next
    application.ontime ""
    on error goto 0


    the "on error" statement is necessary because stopping the ontime call raise an error ( I believe it's some Excel bug )


    filippo

    Re: Dynamic Formula For Reuters Feeds


    RobertWhite,


    If you have a computer provided by REUTERS, it is standard install.


    I must have somewhere a way to solve your problem using the old way, but I will be able to check only tomorrow.


    filippo