+ Reply to Thread
Results 1 to 6 of 6

Dont trigger code if -1 column of target column has already value Worksheet change event

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Dont trigger code if -1 column of target column has already value Worksheet change event

    hi,
    i am using this code to add some formulas when i input data in range f10:f1000
    if cells(Target.Row, "E") has already formula or value then don't trigger this code

    thank you

    Please Login or Register  to view this content.
    i mean trigger only one time when i put value in range f10:f1000

    for example
    i input some data in range f10
    then this will add this formula to

    a10= formula
    b10= formula
    c10= formula
    d10= formula
    e10= formula

    and again i type some data in f10
    now dont trigger the code because a10, b10, c10.....ae10 have already formulas

    thank
    Last edited by HaroonSid; 07-05-2017 at 08:02 AM.
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dont trigger code if -1 column of target column has already value Worksheet change ev

    When you write a code in Worksheet_Change event and change the value, it is always better to enabelevents set to false/true, otherwise unnecessary event is called.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Dont trigger code if -1 column of target column has already value Worksheet change ev

    Again super perfect

    thank you Jindon Guru Ji

    you made my day

    will it work if If target has value only not formula or need to change code

    thank you

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Dont trigger code if -1 column of target column has already value Worksheet change ev

    Can't add reputation too you

    Capture.JPG

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Dont trigger code if -1 column of target column has already value Worksheet change ev

    Quote Originally Posted by HaroonSid View Post
    will it work if If target has value only not formula or need to change code
    What do you mean?

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Dont trigger code if -1 column of target column has already value Worksheet change ev

    Quote Originally Posted by HaroonSid View Post
    Can't add reputation too you

    Attachment 526324
    You have to add reputation to someone else first then you can add reputation to Jindon again after refreshing the page
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. 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
  3. [SOLVED] Worksheet Change Event Wrongly Trigger
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2014, 11:00 PM
  4. [SOLVED] Setting Target for Worksheet Change Event
    By mrbickelsworth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-19-2013, 02:36 PM
  5. Trigger column value changes in worksheet WS2 based on value change in WS1 column
    By sunny89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2010, 12:04 PM
  6. [SOLVED] Cell value change to trigger macro (worksheet change event?)
    By Neil Goldwasser in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2006, 10:00 AM
  7. Worksheet Change Event-change event to trigger
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-18-2005, 06:05 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