+ Reply to Thread
Results 1 to 2 of 2

Select Case Statement

  1. #1
    Registered User
    Join Date
    03-08-2007
    Posts
    15

    Select Case Statement

    I have the following case statement which take the
    active workbook name as a input

    Select Case ActiveWorkbook.Name
    case is="workbook1.xls"
    do something-------------

    case is="workbook2.xls"
    do something
    end select

    if want to know that if some other workbook is opened not mentioned in the above case statement how wil i generate the error message like unkown xls file

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Juw
    I have the following case statement which take the
    active workbook name as a input

    Select Case ActiveWorkbook.Name
    case is="workbook1.xls"
    do something-------------

    case is="workbook2.xls"
    do something
    end select

    if want to know that if some other workbook is opened not mentioned in the above case statement how wil i generate the error message like unkown xls file
    Hi,

    I think that
    Please Login or Register  to view this content.
    is what you are looking for

    hth
    ---
    Si fractum non sit, noli id reficere.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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