+ Reply to Thread
Results 1 to 7 of 7

Running Macros when opening Excel

  1. #1
    Neil Hopkinson
    Guest

    Running Macros when opening Excel

    Is it possible to set up a macro that automatically runs when you open excel?

    Thanks

  2. #2
    Charlie
    Guest

    RE: Running Macros when opening Excel

    If you mean when you open an existing workbook try putting your code in:

    Private Sub Workbook_Open()

    End Sub


    "Neil Hopkinson" wrote:

    > Is it possible to set up a macro that automatically runs when you open excel?
    >
    > Thanks


  3. #3
    Neil Hopkinson
    Guest

    RE: Running Macros when opening Excel

    that's exactly what I mean, thanks

    "Charlie" wrote:

    > If you mean when you open an existing workbook try putting your code in:
    >
    > Private Sub Workbook_Open()
    >
    > End Sub
    >
    >
    > "Neil Hopkinson" wrote:
    >
    > > Is it possible to set up a macro that automatically runs when you open excel?
    > >
    > > Thanks


  4. #4
    Neil Hopkinson
    Guest

    RE: Running Macros when opening Excel

    it doesn't seem to work though, any more ideas?

    "Neil Hopkinson" wrote:

    > that's exactly what I mean, thanks
    >
    > "Charlie" wrote:
    >
    > > If you mean when you open an existing workbook try putting your code in:
    > >
    > > Private Sub Workbook_Open()
    > >
    > > End Sub
    > >
    > >
    > > "Neil Hopkinson" wrote:
    > >
    > > > Is it possible to set up a macro that automatically runs when you open excel?
    > > >
    > > > Thanks


  5. #5
    keepITcool
    Guest

    Re: Running Macros when opening Excel


    the question was when you open excel...

    so you must open a file first that has a workbooK_open eventhandler.

    that can be: any activated addin.
    any file in the xlstart folder
    any file in the folder listed under:
    tools/options/General
    "at startup, open ALL files in"


    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam


    Neil Hopkinson wrote :

    > it doesn't seem to work though, any more ideas?
    >
    > "Neil Hopkinson" wrote:
    >
    > > that's exactly what I mean, thanks
    > >
    > > "Charlie" wrote:
    > >
    > > > If you mean when you open an existing workbook try putting your
    > > > code in:
    > > >
    > > > Private Sub Workbook_Open()
    > > >
    > > > End Sub
    > > >
    > > >
    > > > "Neil Hopkinson" wrote:
    > > >
    > > > > Is it possible to set up a macro that automatically runs when
    > > > > you open excel?
    > > > >
    > > > > Thanks


  6. #6
    Chip Pearson
    Guest

    Re: Running Macros when opening Excel

    Where did you put the Workbook_Open event? It must go in the
    ThisWorkbook code module.


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Neil Hopkinson" <[email protected]> wrote
    in message
    news:[email protected]...
    > it doesn't seem to work though, any more ideas?
    >
    > "Neil Hopkinson" wrote:
    >
    >> that's exactly what I mean, thanks
    >>
    >> "Charlie" wrote:
    >>
    >> > If you mean when you open an existing workbook try putting
    >> > your code in:
    >> >
    >> > Private Sub Workbook_Open()
    >> >
    >> > End Sub
    >> >
    >> >
    >> > "Neil Hopkinson" wrote:
    >> >
    >> > > Is it possible to set up a macro that automatically runs
    >> > > when you open excel?
    >> > >
    >> > > Thanks




  7. #7
    Neil Hopkinson
    Guest

    Re: Running Macros when opening Excel

    I didn't put it in the ThisWorkbook code to start with, I have now though and
    it seems to be working

    Thanks for your help

    "Chip Pearson" wrote:

    > Where did you put the Workbook_Open event? It must go in the
    > ThisWorkbook code module.
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    >
    > "Neil Hopkinson" <[email protected]> wrote
    > in message
    > news:[email protected]...
    > > it doesn't seem to work though, any more ideas?
    > >
    > > "Neil Hopkinson" wrote:
    > >
    > >> that's exactly what I mean, thanks
    > >>
    > >> "Charlie" wrote:
    > >>
    > >> > If you mean when you open an existing workbook try putting
    > >> > your code in:
    > >> >
    > >> > Private Sub Workbook_Open()
    > >> >
    > >> > End Sub
    > >> >
    > >> >
    > >> > "Neil Hopkinson" wrote:
    > >> >
    > >> > > Is it possible to set up a macro that automatically runs
    > >> > > when you open excel?
    > >> > >
    > >> > > Thanks

    >
    >
    >


+ 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