+ Reply to Thread
Results 1 to 2 of 2

Import .frm Application Defined Error

  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    Elk River
    MS-Off Ver
    Excel 2010
    Posts
    18

    Import .frm Application Defined Error

    I have the following code in one of my workbooks, and the issue I am having is that I can step through it and make it function no problem, but when the macro is run on startup I get an application defined error. Anybody have some insight? Maybe another option? I suppose I could try On Error Resume Next, but that isn't exactly how I would like to tackle the issue.

    It fails at the Export, (where does it export too?)

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Import .frm Application Defined Error

    Hello Shermer321,

    The Kill statement is used to remove files from your disk, not modules from a VB Project. Here is the corrected code.

    You don't need to worry about the hidden FRX module as this is automatically deleted with the UserForm.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. [SOLVED] Error 1004: Application-defined or object-defined error on Range(Cells(x,y)) syntax
    By winch in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2013, 11:02 AM
  2. [SOLVED] run-time error '1004' application-defined or object-defined error - Excel 2007
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 02:46 AM
  3. Replies: 2
    Last Post: 09-12-2012, 01:01 PM
  4. Replies: 0
    Last Post: 05-14-2012, 11:59 PM
  5. Macro - Run-time Error '1004': Application defined or object defined error
    By robby10 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-14-2010, 07:55 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