+ Reply to Thread
Results 1 to 3 of 3

VBA Script to save&close excel worksheet after a single cell changes via conditonal format

  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    VBA Script to save&close excel worksheet after a single cell changes via conditonal format

    I need a VBA script to save and close the worksheet after a cell changes colour due to conditional formatting (ive already done).

    Basically I have a progress bar that fills up more and more everytime a form tick box is ticked.. e.g. 4 tick boxes. once they click 2 its 50% full.

    I need the script/macro to recognise when the final cell is green because it is 100%complete - save and close the work book.


    any ideas?

    thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Lightbulb Re: VBA Script to save&close excel worksheet after a single cell changes via conditonal fo

    why don't you just run a simple VBA code to check for the 04 tick boxes under the Worksheet_Change event - if all of em are checked, then just save & close the workbook using
    Please Login or Register  to view this content.
    if the conditional formatting depends only and only on the tickboxes that this should work fine.

  3. #3
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: VBA Script to save&close excel worksheet after a single cell changes via conditonal fo

    I have MINIMUM experience with VBA. So to be honest, at this exact moment I do not know how to do that. I am VERY rusty lol.

    appreciate the reply.

+ 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. Replies: 1
    Last Post: 10-25-2013, 06:10 PM
  2. Replies: 5
    Last Post: 05-10-2013, 09:35 AM
  3. Script to Send a Single Worksheet from a Workbook via Email Based on a Cell Value
    By cstavr1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2012, 04:00 PM
  4. Excel VB script which locks cell after single use in shared work book
    By yashwanth2014 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-16-2008, 02:20 PM
  5. Save a single worksheet in Excel as a single file.
    By Dakota in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 02-22-2006, 12:55 PM

Tags for this Thread

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