+ Reply to Thread
Results 1 to 5 of 5

VB code to call a macro......?

  1. #1
    Thyagaraj
    Guest

    VB code to call a macro......?

    Dear Friends,

    I need the VB code to call a specific macro from an addin when ever
    excel application is opened and call another macro when ever the excel
    application is closed.

    How ca this be done.......?


    Thanks in advance

    Regards
    Thyagaraj


  2. #2
    Corey
    Guest

    Re: VB code to call a macro......?

    In the Workbook:


    Private Sub Workbook_Open()
    call macro x
    End Sub

    ___________________________

    Private Sub Workbook_Close()
    call macro x
    End Sub

    Corey....
    "Thyagaraj" <haithyag@yahoo.com> wrote in message
    news:1153195565.928111.56880@b28g2000cwb.googlegroups.com...
    > Dear Friends,
    >
    > I need the VB code to call a specific macro from an addin when ever
    > excel application is opened and call another macro when ever the excel
    > application is closed.
    >
    > How ca this be done.......?
    >
    >
    > Thanks in advance
    >
    > Regards
    > Thyagaraj
    >




  3. #3
    NickHK
    Guest

    Re: VB code to call a macro......?

    Same answer to your previous post, use personal.xls.
    Or put the code in the same events of your add-in.

    NickHK

    "Thyagaraj" <haithyag@yahoo.com> wrote in message
    news:1153195565.928111.56880@b28g2000cwb.googlegroups.com...
    > Dear Friends,
    >
    > I need the VB code to call a specific macro from an addin when ever
    > excel application is opened and call another macro when ever the excel
    > application is closed.
    >
    > How ca this be done.......?
    >
    >
    > Thanks in advance
    >
    > Regards
    > Thyagaraj
    >




  4. #4
    Thyagaraj
    Guest

    Re: VB code to call a macro......?


    NickHK wrote:
    > Same answer to your previous post, use personal.xls.
    > Or put the code in the same events of your add-in.
    >
    > NickHK
    >
    > "Thyagaraj" <haithyag@yahoo.com> wrote in message
    > news:1153195565.928111.56880@b28g2000cwb.googlegroups.com...
    > > Dear Friends,
    > >
    > > I need the VB code to call a specific macro from an addin when ever
    > > excel application is opened and call another macro when ever the excel
    > > application is closed.
    > >
    > > How ca this be done.......?
    > >
    > >
    > > Thanks in advance
    > >
    > > Regards
    > > Thyagaraj
    > >


    Dear NickHK,

    I am unable to get the code, can u just tell me what exact code to put
    and where to put ( whether in the work sheet or in a module)

    Regards
    Thyagaraj


  5. #5
    NickHK
    Guest

    Re: VB code to call a macro......?

    You need to select ThisWorkbook, then the Open and/or BeforeClose events.

    NickHK

    "Thyagaraj" <haithyag@yahoo.com> wrote in message
    news:1153197139.544900.43630@m73g2000cwd.googlegroups.com...
    >
    > NickHK wrote:
    > > Same answer to your previous post, use personal.xls.
    > > Or put the code in the same events of your add-in.
    > >
    > > NickHK
    > >
    > > "Thyagaraj" <haithyag@yahoo.com> wrote in message
    > > news:1153195565.928111.56880@b28g2000cwb.googlegroups.com...
    > > > Dear Friends,
    > > >
    > > > I need the VB code to call a specific macro from an addin when ever
    > > > excel application is opened and call another macro when ever the excel
    > > > application is closed.
    > > >
    > > > How ca this be done.......?
    > > >
    > > >
    > > > Thanks in advance
    > > >
    > > > Regards
    > > > Thyagaraj
    > > >

    >
    > Dear NickHK,
    >
    > I am unable to get the code, can u just tell me what exact code to put
    > and where to put ( whether in the work sheet or in a module)
    >
    > Regards
    > Thyagaraj
    >




+ 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