+ Reply to Thread
Results 1 to 3 of 3

ompile error: sub or function not defined' and IsFileOpen is highlighted

  1. #1
    Registered User
    Join Date
    03-29-2016
    Location
    surrey, england
    MS-Off Ver
    2007
    Posts
    25

    ompile error: sub or function not defined' and IsFileOpen is highlighted

    I found this code for checking if a workbook is open and if not dispalying a message and ending the subroutine:

    Please Login or Register  to view this content.
    but I'm getting a 'compile error: sub or function not defined' and IsFileOpen is highlighted.

    What have I done wrong?

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: ompile error: sub or function not defined' and IsFileOpen is highlighted

    I suspect that there is a function called IsFileOpen somewhere in the original code which has not been copied across.
    Martin

  3. #3
    Registered User
    Join Date
    03-29-2016
    Location
    surrey, england
    MS-Off Ver
    2007
    Posts
    25

    Re: ompile error: sub or function not defined' and IsFileOpen is highlighted

    you were right, thanks.

+ 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. IsFileOpen function not found
    By deepika.shinde in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2015, 09:05 AM
  2. Replies: 1
    Last Post: 10-22-2015, 05:50 AM
  3. VBA ERROR: run time error 1004: Application-defined or Object-defined error in excel 2013
    By AnanthKrishna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2015, 06:16 AM
  4. Why do i get Sub or Function not defined on If IsFileOpen?
    By Pipen88 in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2014, 02:28 PM
  5. [SOLVED] Error " Run-time error '1004': application defined or object defined error
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2013, 07:26 AM
  6. Application Defined or Object Defined Error, Command Button and Vlookup Function
    By stevedomer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2011, 11:20 PM
  7. IsFileOpen function not working correctly
    By rjtools in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2008, 01:42 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