+ Reply to Thread
Results 1 to 10 of 10

Application Fail

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    54

    Application Fail

    Anyone have an idea why I am getting an applications fail with this code:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Application Fail

    How have you defined ScrWidth and ScrHeigh?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Application Fail

    If you execute just that snippet, ScrWdith and ScrHeight are empty.
    Have you initiated them elsewhere?

  4. #4
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Application Fail

    Yes- sorry, should tell the whole story.

    The following code is written in a module:

    Please Login or Register  to view this content.

    I then run this code on a push of button. I am getting a fail on ".Top" and if I comment that out it then fails on ".Left" and so on.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Application Fail

    Okay, this does however work for me:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Application Fail

    Without any errors I mean, not sure if you actually get what you were looking for.

  7. #7
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Application Fail

    I still get Run-time error 1004. Method 'Top' of object '_Application' failed

  8. #8
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Application Fail

    Do you have the Public variables and Declare function in a Code module?

    Have you installed a 64 bit Excel?

  9. #9
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Application Fail

    The public variables and Declare function are in a module and I have a 32 bit system.

  10. #10
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Application Fail

    Ok, then I haven't a clue :/

+ 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. How to make a cell display "FAIL" when range of cells is FAIL
    By crazychile in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-18-2017, 04:13 PM
  2. [SOLVED] Obscure VBA error? Application.Run conflicts with Application.GetOpenFileName
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-15-2013, 08:31 PM
  3. [SOLVED] Need a formula for pass/fail based on no. of Y answers but automatically fail if 3a is N
    By Researcher1111 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-15-2013, 10:20 PM
  4. Application.screenupdating fail
    By mmf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-11-2008, 11:43 AM
  5. [SOLVED] Why does Outlook.Application.GetNamespace("MAPI") Fail?
    By Lee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2005, 10:05 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