+ Reply to Thread
Results 1 to 5 of 5

how to run macro or msgbox when Worksheet does not exist/exist

  1. #1
    Forum Contributor
    Join Date
    03-11-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    252

    how to run macro or msgbox when Worksheet does not exist/exist

    Hi,
    I want to run vba according to criteria value on column "B1: B5" sheet that exist or not the code is
    Please Login or Register  to view this content.
    if one of the cells in column "B1:B5"did not contain the name(except blank) of the sheet then msgbox appear if all exist run Macro1
    thanks for help
    Last edited by herukuncahyono; 08-14-2013 at 10:54 PM.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: how to run macro or msgbox when Worksheet does not exist/exist

    Edit: This should work now.

    Please Login or Register  to view this content.
    Last edited by millz; 08-14-2013 at 09:35 PM.

  3. #3
    Forum Contributor
    Join Date
    03-11-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    252

    Re: how to run macro or msgbox when Worksheet does not exist/exist

    hi millz,
    what if one of the value in column "B1:B5" ( e.g --> B5) is empty but still run macro1...?

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: how to run macro or msgbox when Worksheet does not exist/exist

    You mean you want to run macro1 even if there are only 4 worksheet names and one of the cells is blank?
    If I understand you correctly, try this:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-11-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    252

    Re: how to run macro or msgbox when Worksheet does not exist/exist

    hi millz
    correct...
    thanks for helps

+ 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. Check range if multiple names exist then show msgbox
    By c.pedersen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 06:23 AM
  2. Show MsgBox if mentioned Sheet does not exist
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2011, 04:30 PM
  3. Replies: 4
    Last Post: 06-18-2006, 01:10 PM
  4. Replies: 3
    Last Post: 03-11-2006, 02:50 PM
  5. Replies: 0
    Last Post: 03-10-2006, 05:55 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