+ Reply to Thread
Results 1 to 3 of 3

How to trigger a macro on a worksheet on the event of user-input?

  1. #1
    Registered User
    Join Date
    01-19-2005
    Posts
    3

    Question How to trigger a macro on a worksheet on the event of user-input?

    Hi,

    I want to trigger a macro on a worksheet when user inputs new rows, but i don't know which event to use

    If you have any tip, please help me.

    Thanx in advance !

  2. #2
    Registered User
    Join Date
    06-21-2004
    Location
    Phoenix, Az
    Posts
    30

    Arrow

    Dim Currentrow As Integer

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Row <> Currentrow Then Call mymacro(Target.Row)

    End Sub
    Function mymacro(ByVal newRow As Integer)
    MsgBox "new row"
    Currentrow = newRow
    End Function

  3. #3
    Registered User
    Join Date
    01-19-2005
    Posts
    3
    Thank you very much !

    By your suggestion, i can solve it now .

    Cheers !

+ 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