Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: 1 liner

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default


    quick 1 liner required

    what statment should i use to test weather or not a workbook is open??

    Cheers

    Ed

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Yorkshire
    Posts
    213
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi

    I posted a similar question on 12 April the reply works fine.

    Stewart

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    cheers

  4. #4
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-26 03:27, Jackeb wrote:

    quick 1 liner required

    what statment should i use to test weather or not a workbook is open??

    Cheers

    Ed

    If you want a 1 liner then try;


    On Error Resume Next: Set IsOpen = Windows("Book4"): MsgBox Not IsEmpty(IsOpen)






    _________________
    Kind Regards,
    Ivan F Moala
    http://www.gwds.co.nz/excel_files.html - Under Constru

    [ This Message was edited by: Ivan F Moala on 2002-04-26 05:27 ]

  5. #5
    Board Regular
    Join Date
    Mar 2002
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    that is great.... thanx

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •