+ Reply to Thread
Results 1 to 2 of 2

Macro to insert a formula, if not a drop down data validation

  1. #1
    Registered User
    Join Date
    05-09-2022
    Location
    Lebanon
    MS-Off Ver
    2019
    Posts
    4

    Macro to insert a formula, if not a drop down data validation

    Hi all,

    So I am not really good at VBA, i am just trying to loop in column G starting from row 31 till end of worksheet. If, the macro finds "Supervisor", i want to add the drop data validation in its corresponding H column. If not data Matched, add a certain vlookup formula in column H. I want the Macro to run automatically when changes happen in Column G without having to click to run the macro.

    So I tried the following for one cell, but i am unaware how to proceed further to loop in the two columns, and it is just not overwriting column H when the condition doesn't match :

    Please Login or Register  to view this content.
    Kindly your help would be much appreciated.
    Regards,
    MA

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    Re: Macro to insert a formula, if not a drop down data validation

    try below, untested

    Please Login or Register  to view this content.

+ 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. How to Apply Data Validation Drop Down List Using VBA Macro
    By Cybex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2022, 01:37 PM
  2. [SOLVED] Macro that changes data validation drop down box selection
    By rexreinke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2020, 09:25 AM
  3. Assign macro to data validation drop down list
    By CindyD123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2019, 08:04 PM
  4. Need a macro that cycles through all clients from data validation drop down list
    By nalanis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2018, 12:11 PM
  5. [SOLVED] Run macro when data validation drop down box is changed code bug help
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2016, 08:21 AM
  6. Replies: 1
    Last Post: 05-06-2014, 04:59 AM
  7. Macro runs from Data Validation Drop Down List Selection
    By flindy87 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-28-2013, 11:45 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