+ Reply to Thread
Results 1 to 3 of 3

UDF Logic for Changing Signal

  1. #1
    Registered User
    Join Date
    03-13-2009
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    98

    UDF Logic for Changing Signal

    I am currently testing a trading platform provided by bloomberg. However it currently doesnt have the ability to continously execute orders. In sheet named Signal, Cell B2 is dynamic and can change any time to "BUY","SELL" or "EXIT". Each time this cell changes, Sheet named Execution, the last row in the sheet needs to be copied and dragged one row lower with all formula's within the cells. Also Cells in Column E( Under heading Side) must be the same as Signal in Cell B2 in the signal sheet. So each time the Signal changes in Cell B2 (Sheet= "SIGNAL"), the last row in Sheet ="Execution" must be copy and dragged 1 row lower with Side= Cell B2 in Sheet= "Signal".

    Is this possible using a UDF?
    Attached Files Attached Files
    Last edited by sajeel; 01-04-2011 at 01:11 PM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: UDF Logic for Changing Signal

    Please Login or Register  to view this content.
    This is worksheet event code, which means that it needs to be
    placed in the appropriate worksheet code module, not a standard
    code module. To do this, right-click on the sheet tab, select
    the View Code option from the menu, and paste the code in.

  3. #3
    Registered User
    Join Date
    03-13-2009
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    98

    Re: UDF Logic for Changing Signal

    Thanks for that Bob. I would like to do exactly the same with the change in signal however this time instead of copying and dragging the entire last row of Sheet "Execution", I only require 2 cells in sheet "Execution" to be filled. In sheet "Signal", Cell B2 and Cell C2 need to be copied and pasted into the last empty column. i.e 1st Cell B2 from "Signal" needs to be pasted into last row of Column E of sheet "Execution" and then Cell C2 needs to be pasted into last row of Column B of sheet "Execution". This is because Coulmns C,D,F,G,H,I,J will be pre filled to infinte rows all the way down in sheet "Execution".

    I have done an example highlighted in Sheet " Signal" with the same colour formats copy-pasted in Sheet "Execution".
    Attached Files Attached Files
    Last edited by sajeel; 12-21-2010 at 03:21 PM. Reason: Figured out what was required however different requirment

+ 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