+ Reply to Thread
Results 1 to 2 of 2

Conditional Saving

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    UAE
    MS-Off Ver
    Excel 2007
    Posts
    5

    Conditional Saving

    I have a excel file that has the variance between Budget and Actual sales for each quarter. Users are required to quantify each reason for the variance for each quarter and 6 rows are provided for each type of comment. The 7th row is called" Misc" which balances the rest of the unanswered variance. Hence the final total of all the explanations will ultimately be equal to the variance. The users should not be able to save the file until the whole exercise is complete ,meaning that the variances are fully bridged for each quarter. Besides in order to prevent users from using the "Misc" to get away with unexplained reasons, I would like to ensure that the "Misc" is not more than 5% of the total variance. Can someone assist me with the necessary VBA in excel?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Saving

    Here's a start. You need to put the following code into the module for ThisWorkbook. You haven't described your data layout so I can't be more specific than this. If you need further help it would be a good idea to attach your file.
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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