+ Reply to Thread
Results 1 to 2 of 2

Disable close workbook but still force users to close thru command button

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Disable close workbook but still force users to close thru command button

    I want the users to complete the tak and exit only through the command button which I have created on the worksheet. I have been trying with the following code, but it also stops when closing through command button (macros). Can any body help me on this?

    This WorkBook Module
    Please Login or Register  to view this content.
    Sheet Module
    Please Login or Register  to view this content.
    Last edited by JosephP; 01-18-2013 at 07:29 AM. Reason: add code tags

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Disable close workbook but still force users to close thru command button

    you need to move the declaration of the variable to a normal module
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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