+ Reply to Thread
Results 1 to 6 of 6

If Target.Address = Range("NamedRange").Address Then - is a conflict with another

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    If Target.Address = Range("NamedRange").Address Then - is a conflict with another

    Hi All,

    I have a little problem, and I am unsure if I am doing this right.
    I have a couple of If statements that seem to conflict with each other. Appreciate any help

    Please Login or Register  to view this content.
    So basically, if I enter one value, the other two cells should automatically populate with the correct answer.
    The three cells have been named per "metres", "yards", & "feet".

    What am I doing wrong?
    Last edited by limewire; 11-01-2022 at 11:00 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: If Target.Address = Range("NamedRange").Address Then - is a conflict with another

    1. You are making changes within a Change Event handler. You need to include Application.EnableEvents = False/True before/after you make changes.

    2. As feet, yards and metres are Named Ranges, they shouldn't be in quotes in your formulae. In the Range statement, yes. In the formula, no.

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: If Target.Address = Range("NamedRange").Address Then - is a conflict with another

    Hi there,

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Registered User
    Join Date
    08-07-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: If Target.Address = Range("NamedRange").Address Then - is a conflict with another

    Perfect, thank you to both of you!

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: If Target.Address = Range("NamedRange").Address Then - is a conflict with another

    From TMS and I - you're welcome

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: If Target.Address = Range("NamedRange").Address Then - is a conflict with another

    Ditto.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] If Target.Cells(1).Address = Range("$B$5": ..(?)..)
    By Marcin4111 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2015, 06:57 AM
  2. Replies: 1
    Last Post: 02-15-2014, 04:05 PM
  3. [SOLVED] Index, Address and CountIF - Finding the "Last" Non Blank Column through named range
    By dluhut in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-15-2013, 12:15 PM
  4. Open files from FTP server (works with "servername" but doesn't work with "ip address")
    By adammsu1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 04:30 PM
  5. Replies: 2
    Last Post: 06-29-2012, 06:32 AM
  6. Replies: 2
    Last Post: 06-24-2012, 02:55 PM
  7. Naming a range inside a formula using "Address"
    By mcke1610 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-23-2007, 12:41 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