Results 1 to 10 of 10

VBA to make shape appear based on cell value works but wont trigger with count if formula

Threaded View

  1. #1
    Registered User
    Join Date
    12-20-2019
    Location
    Paris, France
    MS-Off Ver
    Office 365 32 Bit
    Posts
    4

    VBA to make shape appear based on cell value works but wont trigger with count if formula

    I am using this formula to make a shape appear:

    Private Sub Worksheet_Change(ByVal Target As Range)
        
    If Target.Row = 1 And Target.Column = 1 Then _
            Me.Shapes("Oval 4").Visible = (Cells(1, 1).Value >= 1)
                    If Target.Row = 1 And Target.Column = 1 Then _
            Me.Shapes("Zone A").Visible = (Cells(1, 1).Value >= 1)
            
    End Sub
    It works when I manually input the cell value, but when I use a countif formula to calculate the cell value the VBA won't run. Auto calculate is activated in the options menu.

    Please help!
    Last edited by AliGW; 12-20-2019 at 06:35 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Select a shape based on a cell value and update the shape when value changes
    By BigAl99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2013, 12:06 PM
  2. Replies: 4
    Last Post: 10-22-2013, 09:22 AM
  3. Replies: 1
    Last Post: 12-19-2012, 05:29 PM
  4. [SOLVED] Count Rows Based On User Input & Trigger Print Of Pages Out Of Count Result
    By wliang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 02:45 AM
  5. Formula that wont count a cell if its empty
    By bopsgtir in forum Excel General
    Replies: 9
    Last Post: 03-07-2011, 03:25 AM
  6. [SOLVED] How to make a cell trigger a Sound in Excel
    By justice in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2006, 01:45 PM
  7. [SOLVED] How to trigger a selection change between a cell and a shape
    By Gerold Kriechbaumer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2006, 01:35 PM

Tags for this Thread

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