+ Reply to Thread
Results 1 to 2 of 2

Check if Any Cells in current active worksheet are blank before save event

  1. #1
    Registered User
    Join Date
    09-28-2023
    Location
    philippines
    MS-Off Ver
    MS 2302
    Posts
    1

    Question Check if Any Cells in current active worksheet are blank before save event

    Hi Everyone,

    I'm very new with macros and have been learning through youtube videos. I have this form that I put in excel where there should be no blanks when saving unless the save will be cancelled. The macro is working (I think) if all unlocked cells have values but it does not cancel the save if there is a missing value in one unlocked cell. Another thing to note is that there are multiple sheets (but only one can be visible at a time) and the macro should only run through the current visible and active worksheet. The macro code is below for reference. Thank you for the help in advance.


    Please Login or Register  to view this content.
    Last edited by lramos09; 09-29-2023 at 04:31 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,847

    Re: Check if Any Cells in current active worksheet are blank before save event

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    I have added them for you this time.
    Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Save active sheet as PDF using current file name
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-19-2017, 01:51 PM
  2. [SOLVED] How to check if a sheet is active before firing the worksheet change event
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2016, 03:28 PM
  3. [SOLVED] Check if current (active) cell is empty
    By Lycan004 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2015, 10:35 AM
  4. [SOLVED] Highlight blank cells after Worksheet Change Event
    By Twaddy006 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2015, 05:30 PM
  5. Spell Check specific named cells within the active worksheet
    By rlcohen70 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2014, 05:58 PM
  6. Before save event and check if any cells in the specific range are left blank
    By Khowailedg in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-26-2013, 01:33 PM
  7. Save current active sheet only
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2008, 05:03 AM

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