Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    X close form... (2000 sr 1)

    stupid and simple question...
    I want to associate, when press on the "x" userform a macro, how to?
    Example:
    When i click on X to close the userfor, start "call my_macro"

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: X close form... (2000 sr 1)

    You can use the QueryClose event of the UserForm:

    Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
    Call My_Macro
    End Sub

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: X close form... (2000 sr 1)

    i am very stupid.... i have already see this option in property of userform and i have associate this to a database property:-(...
    Sorry for your time.
    Sal.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •