+ Reply to Thread
Results 1 to 5 of 5

Disable/Enable Save,SaveAs & Sendto in File Menu based on condition

  1. #1
    Forum Contributor
    Join Date
    03-28-2008
    Location
    India, bangalore
    MS-Off Ver
    Excel 2003,2007
    Posts
    216

    Disable/Enable Save,SaveAs & Sendto in File Menu based on condition

    Hi

    I have some data in row A2= A1000 all with value "OK", Now i want to put stop if any of those row is not OK then do not allow the user to Save, Save as or Sendto in File Menu and throw up a msgbox saying "In Cell A501 the value is not OK Please investigate and type OK till then Save, SaveAs & Send option will not work' All I want is, force the user to make OK in all the cells from A2-A1000 if so, then allow him to save, or Save As or Send email.

    Thanks for your help
    Last edited by aravindhan_31; 02-16-2011 at 03:33 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Disable/Enable Save,SaveAs & Sendto in File Menu based on condition

    A lot of OKs!

    You can certainly cancel Saving. Checking for blank cells would be faster than looping through each cell

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    03-28-2008
    Location
    India, bangalore
    MS-Off Ver
    Excel 2003,2007
    Posts
    216

    Re: Disable/Enable Save,SaveAs & Sendto in File Menu based on condition

    Thanks roy,

    it working.. but the user can still cheat. without clicking save or Save as he can click the SendTo > mailattachment.I want to stop this as well.

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Disable/Enable Save,SaveAs & Sendto in File Menu based on condition

    Why don't you fill the OK's, using VBA ?



  5. #5
    Forum Contributor
    Join Date
    03-28-2008
    Location
    India, bangalore
    MS-Off Ver
    Excel 2003,2007
    Posts
    216

    Re: Disable/Enable Save,SaveAs & Sendto in File Menu based on condition

    No the OK is automatically populates by a IF formula based theon the values in column B to H

    The this code works i will change the alert message accordingly.

+ 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