+ Reply to Thread
Results 1 to 5 of 5

IF Statement

  1. #1
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Exclamation IF Statement

    Hi all

    I have a Piece of code that works when a cell changes its value.

    I want to try and get it to work when only cells in coloumn B change

    I thought the best way would be with using an IF statement but i am unsure on the code to write and get it to work.

    This is the code that i have at the moment.

    Please Login or Register  to view this content.
    I want to add in at the start an IF statement that IF the Target Cell is in Coloumn B then Carry on Else Exit Sub.

    Any Help with the code or a way in doing this will be great.

    Thanks

    Tom
    Last edited by t0m46; 01-24-2010 at 01:48 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF Statement

    Please take a few minutes to re-read the forum rules, and then edit your post to add code tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Thumbs up Re: IF Statement - SOLVED

    Hey

    Sorry Didnt Know About the Code Quotes. Changed Now,

    Not To Worry I have Sorted it Out now anyway.

    Have Done it like this is anyone else was interested.

    Please Login or Register  to view this content.
    Thanks

    Tom
    Last edited by t0m46; 01-24-2010 at 01:47 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF Statement

    Spot on. You can also add it into the existing statement:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Oxford
    MS-Off Ver
    Excel 2003, 2007 and 2010
    Posts
    120

    Re: IF Statement

    Thanks, that Works Well as reduces the amount of code.

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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