Results 1 to 5 of 5

Thread: [RESOLVED] Procedure call on sheet tab clike

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    73

    Resolved [RESOLVED] Procedure call on sheet tab clike

    hi experts
    i m working in VBA ,i have a workbook which contain 3 sheets
    1. PI-template 2. Admin 3. status ,
    i have coded a proedure " Description" in modul "mdDescription".

    i want when sheet2 (Admin) is cliked ,
    the procedure "Description" call on cliked(Admin)

  2. #2
    Addicted Member
    Join Date
    Jan 2006
    Location
    Montreal, Canada
    Posts
    152

    Re: Procedure call on sheet tab clike

    Hi Pandey_om

    put this sub in ThisWorkbook

    VB Code:
    1. Private Sub Workbook_SheetActivate(ByVal Sh As Object)
    2.     If Sh.Name = "Admin" Then
    3.         Call Description
    4.     End If
    5. End Sub

  3. #3
    Lively Member
    Join Date
    Jun 2005
    Posts
    112

    Re: Procedure call on sheet tab clike

    Open the code view for your Admin sheet and paste this

    VB Code:
    1. Private Sub Worksheet_Activate()
    2.     Call Description
    3. End Sub

  4. #4
    Lively Member
    Join Date
    Jun 2005
    Posts
    112

    Re: Procedure call on sheet tab clike

    Too slow on the trigger again.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2006
    Posts
    73

    Re: Procedure call on sheet tab clike

    thanks the experts
    both the mathod working fine.
    my problem solved ,i m happy
    cheerrrrrrrrrrrrrrrrrrrrrrrr

Posting Permissions

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



Click Here to Expand Forum to Full Width