+ Reply to Thread
Results 1 to 4 of 4

How to paste values that stick into dynamically generated cells

  1. #1
    Registered User
    Join Date
    12-12-2020
    Location
    Cananda
    MS-Off Ver
    office 365
    Posts
    10

    How to paste values that stick into dynamically generated cells

    I have setup some excel sheets for paper trading stocks. Please see attached.
    Column C is a dynamically changing price, every 15 seconds.
    Column G is a stop loss price, It is calculated from C minus 4%, what I would like to do is have it be static, that is once calculated, not to keep changing with the value of C.
    Column E calculates to see if the current price (C) is lower than the stop loss price G and if yes then enters the the stop loss price into column E.
    My problem is two fold, first of all the Stop loss price G is always changing with C, second if I could stop the G from changing, the value in E would appear and disappear with the fluctuations in cell C. How can I make values "stick" in G once they are calculated and in E once the IF statement is true, so that it does not change again when the IF statement becomes False.
    Thank you in advance for any help.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to paste values that stick into dynamically generated cells

    This will require VBA, so I'm moving your thread to that section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How to paste values that stick into dynamically generated cells

    Possibly this solution in the sheet module

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-12-2020
    Location
    Cananda
    MS-Off Ver
    office 365
    Posts
    10

    Re: How to paste values that stick into dynamically generated cells

    Thank you Maniacb, That worked great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 10-04-2018, 05:46 AM
  2. Dynamically generated Shell command
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2016, 02:31 PM
  3. code to paste the content of specific cells into the email generated by VBA
    By garfen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-26-2015, 07:28 PM
  4. How to Create Dynamically Generated Word List
    By GoodManRob in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-28-2014, 11:24 AM
  5. [SOLVED] Use VBA to download a dynamically generated image from the web.
    By nponoBegHuk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2012, 09:51 AM
  6. creating pop-up menu from dynamically generated column values
    By bcamp1973 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-12-2007, 01:11 PM
  7. Dynamically Generated Range using Macro
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2006, 03:15 AM

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