+ Reply to Thread
Results 1 to 3 of 3

need help displaying Message Box if worksheet is not open

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    need help displaying Message Box if worksheet is not open

    Hello,

    I am trying to write a macro that looks for a worksheet to be open and if not then to display a message box telling the user to open it. The data file is generated by another system and has a different suffix evey time it is run and may not be saved on the users machine.

    I have found some code that looks for the workbook using a partial file name. It works fine in finding the file, but if the file is not open nothing happens. I can't figure out the correct logic statement in combination with the loop.

    If the file is not found i would like to provide the message box and terminate the macro.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    07-27-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    198

    Re: need help displaying Message Box if worksheet is not open

    This may get you closer to what you are looking for.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: need help displaying Message Box if worksheet is not open

    xLJer

    - absolutey perfect -

    Thanks for the quick response and excellent solution!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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