[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Worksheet Event Doesn't Work Excel 2007 VBA

Posted on 2012-08-10
Medium Priority
Last Modified: 2012-08-10
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("D5")) Is Nothing Or Target.Cells.Count > 1 Then Exit Sub
ActiveSheet.Shapes("redflagpic").Visible = False

End Sub

Open in new window

Why doesn't this hide the picture?
Question by:Dreamboat
  • 2
LVL 24

Accepted Solution

Steve earned 2000 total points
ID: 38281848
that exact code works for me, so am guessing it may be the name of the object is not correct or not typing into D5, cannot be certain what is the issue. though the code posted is fine.
LVL 22

Author Closing Comment

ID: 38281938
Good enough. I closed all my files, deleted temps, and restarted Excel. Worked. Hm.
LVL 24

Expert Comment

ID: 38281950
If in doubt always go for IT fix #1
turn it off/turn it on again

LVL 93

Expert Comment

by:Patrick Matthews
ID: 38282022

Sorry, but I have to ask: are you sure macros are enabled?



Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question