+ Reply to Thread
Results 1 to 6 of 6

If Target address method with range of cells

  1. #1
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    455

    If Target address method with range of cells

    Hi all,

    Looking to run a macro when any cell is changed in range D3:D5 via drop-down box. Currently the cells are set to "select" as default text but the user has the option of choosing choosing a value from 1 - 10.

    test file attached.

    thinking the code to go something like this

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Gti182; 05-15-2017 at 06:32 AM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: If Target address method with range of cells

    Can try this:
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    455

    Re: If Target address method with range of cells

    thanks sintek that works well

    Is it possible to only trigger the macro when a cell is changed to any drop down value other than "select"? at the moment when "select" is chosen it executes the code again.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: If Target address method with range of cells

    Sure, change code to:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-04-2010
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    455

    Re: If Target address method with range of cells

    a beautiful thing! thanks Sintek works flawlessly

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: If Target address method with range of cells

    Pleasure....Thanks for rep point to add....

+ 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. [SOLVED] Target Address after merging cells
    By tanvi_kalra in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-10-2014, 02:45 AM
  3. [SOLVED] Worksheet_Change(ByVal Target As Range) - set to only update when 3 target cells changed?
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2012, 06:40 PM
  4. Target.Address as a Range
    By wotsup in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-03-2012, 06:30 AM
  5. Extending the Range of 'Target.Address'
    By Mhz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2007, 02:08 AM
  6. [SOLVED] Can you use a Range $N$xx:$Q$xx in Target.Address?
    By CRayF in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2005, 08:05 PM
  7. Target.Range.Address Error
    By markshowell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2005, 10:42 AM

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