+ Reply to Thread
Results 1 to 5 of 5

Worksheet change dont work well with formula

  1. #1
    Registered User
    Join Date
    01-12-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    7

    Question Worksheet change dont work well with formula

    I have this VBA that works very well with the worksheet change but when I use formula in the range stated, it doesnt work when there is a change in formula result then it will change all the cell with formula to non-formula cell value.
    Any one able to help so the VBA able to work on the range with formula.
    I want to make range D:D fill with formula (e.g. A1/B1)

    Please Login or Register  to view this content.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Worksheet change dont work well with formula

    A formula calculation will not trigger the Change event. You'll either need to monitor the cells that the formula refers to, or use the Worksheet_Calculate event.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    01-12-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    7

    Re: Worksheet change dont work well with formula

    I tried that but no success and it just messed up everything that works well previously

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Worksheet change dont work well with formula

    That doesn't really help us to help you. What did you try exactly and what actually happened?

  5. #5
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Worksheet change dont work well with formula

    Quote Originally Posted by dairin View Post
    I tried that but no success and it just messed up everything that works well previously
    If you can provide a specific example (possibly with a workbook attached) on what you tried, AND what didn't work as you would have expected to work
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

+ 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. [SOLVED] Dont trigger code if i delete some value from range Worksheet change event
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2017, 07:48 AM
  2. [SOLVED] Worksheet Change Event Is very Slow To work copy formula and paste
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2017, 07:12 AM
  3. Worksheet change event copy paste dont call a macro
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2017, 04:26 PM
  4. problem is i dont know what formula would work here
    By anon125 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2016, 03:28 PM
  5. [SOLVED] Formula in macro dont work with mixed number and letters
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-22-2014, 10:37 AM
  6. Replies: 0
    Last Post: 09-24-2012, 12:02 PM
  7. toolbar macros that dont change when worksheet is renamed
    By marlin40 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-21-2005, 03:25 PM

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