+ Reply to Thread
Results 1 to 3 of 3

Worksheet change failing to initiate

  1. #1
    Registered User
    Join Date
    08-15-2017
    Location
    Isle of Man
    MS-Off Ver
    7.0
    Posts
    25

    Exclamation Worksheet change failing to initiate

    Hi

    Have code where I want an action to happen based on a cell value changing.

    The code below works on other cells and sucessfully completes the action, however for some reason this specific cell range fails?

    I cant give an example as it only happens on the actual worksheet( so cant share)

    What elements should i look out for that make this fail ??

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Worksheet change failing to initiate

    Hi,

    Target.Address will return $G$12 which is not the same as $g$12, since the = operator is case sensitive.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Worksheet change failing to initiate

    Hi Si,

    Your code is trying to fire only when the Target.Address some address. Try this instead of
    If Target.Address = "$g$12" Then
    try
    If Target.Address = "$G$12" Then
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] macros should run based off of drop down menu change, is failing to run
    By Butcher1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-18-2014, 02:34 PM
  2. Date Lookup to initiate data populating another worksheet
    By Crhodes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2013, 04:32 PM
  3. [SOLVED] (Email worksheet) Show MsgBox when failing to save temp file
    By timmye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2013, 11:47 PM
  4. adding a date to cell a1 worksheet on open failing?
    By techexpressinc2 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-01-2011, 03:03 PM
  5. Macro to initiate on a cell's change in value
    By GuruWannaB in forum Excel General
    Replies: 6
    Last Post: 11-11-2008, 02:06 PM
  6. [SOLVED] How do I initiate a macro directly in a worksheet?
    By AMMPro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2006, 06:05 PM
  7. 2003 Shared Worksheet Protection Settings Failing For My 2000 User
    By JWarnick-SHH in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-17-2006, 03:10 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