+ Reply to Thread
Results 1 to 3 of 3

Run Macro after value change from drop down list

  1. #1
    Registered User
    Join Date
    06-29-2005
    Posts
    77

    Run Macro after value change from drop down list

    Hi

    I have read several related threads but can't find the answer.

    I want to trigger a macro when I select a value from a scroll down list in a cell.

    Let's say A1 has a validation list of 5 numbers:

    1
    2
    3
    4
    5

    When I select a value from the scroll down list it will not trigger the macro to run. If I double click on the cell *after* I have selected from the drop-down list, and *then* hit enter, the macro will run.

    Please Login or Register  to view this content.

    But that sort of defeats the point of using the scroll down list.

    Any ideas would be appreciated.
    Thanks

    tx

    btw, I have had some trouble with the search function for this board. anybody else having the same trouble?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then
    Application.Run "Book1!Macro1"
    End If
    End Sub

  3. #3
    Registered User
    Join Date
    06-29-2005
    Posts
    77
    Looks like the " " marks made the difference. Thanks. Works great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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