Results 1 to 5 of 5

VBA- Works when cell value changes (manually) but not when cell formula value changes

Threaded View

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    VBA- Works when cell value changes (manually) but not when cell formula value changes

    As title suggests, the below VBA code only works when the cell value is changed when a value is entered manually and not when the value changes as a result of a simple =SUM formula;

    Private Sub Worksheet_Change(ByVal Target As Range)
    Select Case Target.Address
    Case "$W$18"
        If Target.Value > 0 Then
            Chk_2On
        Else
            Chk_2Off
        End If
    End Select
    End Sub
    
    Sub Chk_2On()
    ActiveSheet.CheckBoxes("Check Box 59").Visible = True
    End Sub
    Sub Chk_2Off()
    ActiveSheet.CheckBoxes("Check Box 59").Visible = False
    End Sub
    Cell $W$18 contains the =SUM formula.

    Thanks for the help in advance.

    Glen
    Last edited by glenwalcuch; 08-28-2015 at 05:48 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 15
    Last Post: 08-21-2015, 03:43 PM
  2. Run code when cell value changes by formula (not manually)
    By manolotevi in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-03-2015, 01:38 PM
  3. Replies: 4
    Last Post: 02-15-2015, 01:04 PM
  4. Code works when cell is manually changed only the first time and not with vba
    By sdl2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2014, 08:18 PM
  5. Replies: 3
    Last Post: 12-12-2014, 02:42 PM
  6. Manually click in cell for the formula to work
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2013, 10:14 AM
  7. Delete Cell Value but keep the cell formula through VBA and Manually
    By dev.amit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2010, 08:22 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