+ Reply to Thread
Results 1 to 8 of 8

Cell referencing in a DDE link formula?

  1. #1
    Registered User
    Join Date
    03-02-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    10

    Cell referencing in a DDE link formula?

    This is a continuation to my thread started in the general forum (HERE) that has transformed into a macro question.

    I am using a DDE server to pull stock/option quotes into my spreadsheet. I am able to call to the server and symbols directly by using this formula:

    =STIDDE|Q!'MSFT,1'

    STIDDE = server
    Q! = quotes
    MSFT = Microsoft
    1= field type (1 = Last Price, 2 = Bid, 3 = Ask, etc)

    My problem comes when trying to automate the formula so that the 'field type' cells change with a change in the stock symbol.

    INDIRECT/INDIRECT.EXT cell referencing doesn't work (#REF! error), so I am curious if it's possible to create a macro that will create the correct formula and update cells from the DDE links.

    Any ideas?
    Last edited by stack; 03-03-2009 at 03:46 PM.

  2. #2
    Registered User
    Join Date
    03-02-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Cell referencing in a DDE link formula?

    I recorded a simple macro that is very similar to the indirect function, where the values of the cell are pasted in another (the referenced DDE link formula). Is it possible to create an event that selects the formula bar, then presses 'Enter'?

    Here is where I am so far:

    C27 has the stock symbol that I want to be able to change, then referenced to in E27. F27 has the pasted value that I want to execute (press Enter). I tried to record the macro but it hardcodes the formula, instead of the events of highlighting the formula bar and pressing enter.

    E27 ="=STIDDE|Q!'"&$C27&",1'"
    Please Login or Register  to view this content.
    Is there a workaround?
    Last edited by stack; 03-04-2009 at 11:02 AM.

  3. #3
    Registered User
    Join Date
    03-02-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Cell referencing in a DDE link formula?

    All opinions/questions/advice accepted

  4. #4
    Registered User
    Join Date
    03-02-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Cell referencing in a DDE link formula?

    Not one suggestion? Is there something very obvious that I'm not aware of here?

  5. #5
    Registered User
    Join Date
    03-02-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Cell referencing in a DDE link formula?

    2nd to last bump!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Cell referencing in a DDE link formula?

    It's obviously not an easy one since you got no replies and hard to find things googling it...

    Here are couple I found... don't know if you came across them or not?

    http://www.mrexcel.com/archive/Links/25861.html

    http://social.msdn.microsoft.com/Sea...de%20link&ac=3

    Hope you get it sorted... If you do. Please post back the solution as this has been asked many times without real resolution.. as far as I can see.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Registered User
    Join Date
    07-31-2013
    Location
    Manaus, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Cell referencing in a DDE link formula?

    Was there ever a solution to this problem?

    I am trying to achieve the same..

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Cell referencing in a DDE link formula?

    marioiturri,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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