+ Reply to Thread
Results 1 to 4 of 4

Calling macro on cell change

  1. #1
    Registered User
    Join Date
    08-24-2005
    Posts
    26

    Question Calling macro on cell change

    Hi.
    I want to call a macro when some text is changed in a cell. How do you reckon that can be done?

    I tried calling the macro from worksheet_change method but that did nothing for some reason.

    Cheers

  2. #2
    Registered User
    Join Date
    08-24-2005
    Location
    Philippines
    Posts
    75
    Worksheet_Change should work... maybe the prob is in your macro...

    the ff code illustrates this (as what happens in my worksheet):

    Private Sub Worksheet_Change(ByVal Target As Range)
    MsgBox "Cell " & Target.Address & " now contains " & Target.Value
    End Sub



    Quote Originally Posted by schoujar
    Hi.
    I want to call a macro when some text is changed in a cell. How do you reckon that can be done?

    I tried calling the macro from worksheet_change method but that did nothing for some reason.

    Cheers

  3. #3
    Registered User
    Join Date
    08-24-2005
    Posts
    26

    Question Let me redefine my problem

    Worksheet_change works for all data that is typed into the cells.
    But the data I am concerned with at the moment is chosen rom a picklist.




    Quote Originally Posted by T-容x
    Worksheet_Change should work... maybe the prob is in your macro...

    the ff code illustrates this (as what happens in my worksheet):

    Private Sub Worksheet_Change(ByVal Target As Range)
    MsgBox "Cell " & Target.Address & " now contains " & Target.Value
    End Sub

  4. #4
    Registered User
    Join Date
    08-24-2005
    Location
    Philippines
    Posts
    75
    by "picklist", do you mean the Data Validation list or list from "Pick From Drop-down List..." context menu?
    both still work for me...

    what list are you using? (aside from the 2 above)



    Quote Originally Posted by schoujar
    Worksheet_change works for all data that is typed into the cells.
    But the data I am concerned with at the moment is chosen rom a picklist.

+ 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