+ Reply to Thread
Results 1 to 2 of 2

Can I write a Macro into an IF Function?

  1. #1
    Registered User
    Join Date
    05-30-2006
    Posts
    3

    Question Can I write a Macro into an IF Function?

    DATA TABLE ___________________ /|\ DDE
    TIME / OPEN / HIGH / LOW / CLOSE /|\ PRICE

    Greetings. I am requesting assistance. I have a data table which contains the following columns: TIME, OPEN, HIGH, LOW, CLOSE. This information was obtained separately from a Dynamic Data Exchange, which has only one field: PRICE.

    My goal is to record new HIGH values in the current HIGH cell. I attempted to do so with the following: "=if(PRICE>HIGH, PRICE, HIGH)" but it does not work because once PRICE dips under the old HIGH value, the old HIGH value returns. Needless to say, the new HIGH value was not recorded.

    I've written a macro that can perform this, but I can not monitor each data table to run the macro when required. I have sought to incorporate the macro into an IF Function, but have not yet found a way. Perhaps there is a better approach I have not thought of yet.

    Any assistance would be greatly appreciated. Thanks.

  2. #2
    Registered User
    Join Date
    05-14-2006
    Posts
    33
    You could try recording a list of prices and using the Max function to find the highest value.

+ 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