Results 1 to 3 of 3

Working with WorkBook Close event and Personal.xlsb files

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Working with WorkBook Close event and Personal.xlsb files

    If Workbooks.Count <2 Then Application.Quit Else ActiveWorkbook.Close
    I have noticed that when i have added some VBA to my Personal file, that the above code when run now does not work as it view the Personal file as another workbook.

    But if I simply change (<2) to (<3) then other users whoi dod not have a personal file may have other excel workbooks closed on them without wanting.


    Is there a simply way around this?

    Is there a line i can use to establish if the other WorkBook name is the Personal file?
    Last edited by coreytroy; 04-08-2013 at 11:35 PM.

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