I tried the code that was posted on VBA code that was posted back way back on page1. The purpose was to build a DDE code that referenced other cells. It only particially works for me.
When I typed TOSDDE("AAPL","BID"), a dynamic number was return. However when I replace the code with TOSDDE(A1,B1) and entered AAPL into cell A1 and BID into cell B1, I get the answer
#NAME?
What I want to do is simple, but it looks like it might be hard to do because of the limitations of DDE for Excel code static nature.
I first plan on getting the market price for AAPL. From this I plan on getting the changing 4 strikes above the underline and the changing 4 strikes below the underline. I then plan on getting the Option prices for the 8 strikes using this method.-- There is a nice Ceiling function in Excel that can get me the strike immediately above the underline stock market price. From this I can generate the other strikes. I simply need to enter the Strike interval. For Apple it is 2.5
So basically a DDE string is retrieving a Dynamic Market price and this is used as input to Generate another DDE string to retrieve the first strike price above the underline stock market price.
Does anyone have a method to do this??
Regards