+ Reply to Thread
Results 1 to 2 of 2

Run macro when cell changes to call another macro

  1. #1
    Registered User
    Join Date
    05-10-2017
    Location
    New York, United States
    MS-Off Ver
    Office 2016
    Posts
    3

    Run macro when cell changes to call another macro

    Hi all!

    I wrote a code that makes a command button appear or disappear based on the value of cell J2 that uses the data validation function to allow the user to choose from a list (the list of which is on a hidden worksheet). However, this macro does not work unless I run it manually from the VBA editor. Is there a code that will call this macro whenever the user makes a different selection from the list in J2?

    Thanks!

  2. #2
    Registered User
    Join Date
    05-10-2017
    Location
    New York, United States
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Run macro when cell changes to call another macro

    Update: I solved this myself!

    After trying code after code for two days (keep in mind I'm new to VBA and everything I've learned is from Google searches), I used the following codes to make this work:

    Please Login or Register  to view this content.

    The code didn't work properly until I put it in the proper sheet rather than a general module.

+ 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. Replies: 2
    Last Post: 08-13-2014, 06:39 PM
  2. Replies: 1
    Last Post: 08-13-2014, 05:46 PM
  3. Macro code to call a macro if a certain cell's value is change
    By mm671750 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2014, 12:37 PM
  4. Call/Run Macro using cell's value
    By always_learning in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-13-2012, 02:08 AM
  5. Call macro - Possible to use macro name from cell?
    By Carlsbergen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2009, 07:49 AM
  6. call macro X by cell value
    By cyote101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2006, 04:20 PM
  7. How do i call a macro from a cell
    By KhanhNguyen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2006, 06:50 AM

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