+ Reply to Thread
Results 1 to 2 of 2

Run Macro When Select Cell

  1. #1
    Andibevan
    Guest

    Run Macro When Select Cell

    Hi All,

    I know you can run a macro when a new variable is entered in a cell, but can
    you run a macro when a cell is selected?

    Ta

    Andi



  2. #2
    Mike Fogleman
    Guest

    Re: Run Macro When Select Cell

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Not Application.Intersect(Range("J1:J100"), Target) Is Nothing Then
    'Call your Macro
    Else
    End If
    End Sub

    Change the Intersect Range to whatever cell or range you want as the
    trigger.
    This code goes in the Worksheet Module, not a general module.

    Mike F


    "Andibevan" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi All,
    >
    > I know you can run a macro when a new variable is entered in a cell, but
    > can
    > you run a macro when a cell is selected?
    >
    > Ta
    >
    > Andi
    >
    >




+ 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