+ Reply to Thread
Results 1 to 4 of 4

Workbook before close event

  1. #1
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Workbook before close event

    Hi

    I wish to use the above event and this is the first time I have tried it, however I cannot get it to work no matter what I do. I am sure I am doing something really basic wrong but cannot work it out.

    To try it out I cut and pasted the example from VBA help

    Please Login or Register  to view this content.
    No result when closing, I tried it in 2000, XP and 2007, same result.

    I also tried the following

    Please Login or Register  to view this content.
    Any guidance would be appreciated

    Regards


    Jeff

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Are you pasting the code in Thisworkbook

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Workbook before close

    Thanks a lot I knew it was going to be something basic, I had the code everywhere BUT there, works fine now.

    Thanks again

    Regards

    Jeff

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem

    Glad I could help

    VBA Noob

+ 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