+ Reply to Thread
Results 1 to 4 of 4

Tick box on workbook close

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    Southwest
    MS-Off Ver
    Excel 2003
    Posts
    26

    Tick box on workbook close

    Hi All,

    I've done a search of the forums and can't seem to find what i am looking for.

    I need a check box to appear when a user goes to close the workbook which says some thing like, "have you booked with WFP?" there would then be yes or no option. If the user were to click yes then the workbook would close but if they were to click no then a another message box would appear that would say, "please book with WFP before closing this workbook", this box would simply have an ok button on it which the user would click and the workbook would remain open.

    I hope this makes sense but if you nered any more information then please let me know.


    thanks

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Tick box on workbook close

    if you wanted a checkbox you would need to use a userform.
    Why not simply ask the question, which has a yes/no answer

    Please Login or Register  to view this content.
    code goes in the Thisworkbook object of the workbooks project.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Tick box on workbook close

    use the following code
    HTML Code: 
    If it was really helpful to you then dont forget to hit * button for user reputation

    Regards
    CA Mahaveer Somani
    9785216211

  4. #4
    Registered User
    Join Date
    07-24-2013
    Location
    Southwest
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Tick box on workbook close

    Thanks both, worked perfectly. I'll give you both some rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Closing a Workbook from another workbook: Workbooks.close error: Subscript out of range
    By Coreyusa in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-14-2013, 06:45 PM
  2. Disable close workbook but still force users to close thru command button
    By rathig in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2013, 07:29 AM
  3. Replies: 2
    Last Post: 09-11-2012, 09:42 AM
  4. [SOLVED] Edit code to close all workbooks except active workbook and other specific workbook
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2012, 09:29 PM
  5. Excel 2007 : one tick box selects multiple tick boxes
    By brentroberts in forum Excel General
    Replies: 2
    Last Post: 12-31-2011, 09:29 PM

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