+ Reply to Thread
Results 1 to 4 of 4

When cell = 0; Save and Close.

  1. #1
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Riyadh
    MS-Off Ver
    Office 365
    Posts
    129

    When cell = 0; Save and Close.

    Hello friends, Hope all is well!

    Can you please help me with the attachment here.
    If and once the cell value of M5 of sheet DB becomes zero can the Workbook Save and close all the current progress.

    Thank you so much in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: When cell = 0; Save and Close.

    See how next macro could help, have look in the file attached
    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Riyadh
    MS-Off Ver
    Office 365
    Posts
    129

    Re: When cell = 0; Save and Close.

    This is great thank you. But can you please help me adjusting the code, so that when workbook opens the code runs automatically?
    I tried to make the adjustments (attachment included) but I am getting Run Time Error 13 – Type Mismatch.

    Thank you so much in advance!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: When cell = 0; Save and Close.

    when workbook opens the code runs automatically?
    Yes it is like that now see macro Workbook_Open()
    But the format of the cells is Text: See file attached
    Attached Files Attached Files
    Last edited by PCI; 10-16-2019 at 12:23 PM.

+ 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 as cell contents & date on close
    By Slams in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-25-2015, 11:36 AM
  2. Save the current worrkbook, save the sheet as .csv and close the workbook
    By SpeediWeb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2015, 06:50 AM
  3. Macro to Save current XLS, then to save as a CSV. Then close CSV and reopen XLS
    By cricker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-02-2014, 06:17 AM
  4. [SOLVED] Save data to cell on close workbook event not working
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2014, 12:52 PM
  5. Replies: 2
    Last Post: 04-10-2014, 07:06 AM
  6. Replies: 1
    Last Post: 10-25-2013, 06:10 PM
  7. Replies: 13
    Last Post: 02-13-2013, 01:00 PM

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