+ Reply to Thread
Results 1 to 8 of 8

VBA What is this error all about when I run my macro?

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    Quezon City
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    75

    VBA What is this error all about when I run my macro?

    When I use this macro in my table an error appear.

    Please Login or Register  to view this content.
    SEE ATTACHMENT BELOW:
    12345.JPG

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA What is this error all about when I run my macro?

    Your file could have got corrupted. Try creating your file again with the codes and formats again and check.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-17-2013
    Location
    Quezon City
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    75

    Re: VBA What is this error all about when I run my macro?

    Quote Originally Posted by arlu1201 View Post
    Your file could have got corrupted. Try creating your file again with the codes and formats again and check.
    What do you mean creating file again? COPY or RENAME my FILE again?

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA What is this error all about when I run my macro?

    No, create it from scratch. Open a blank file and copy parts from the corrupted file into this file, code, formats, tables, formulae, everything.

  5. #5
    Registered User
    Join Date
    07-17-2013
    Location
    Quezon City
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    75

    Re: VBA What is this error all about when I run my macro?

    Quote Originally Posted by arlu1201 View Post
    No, create it from scratch. Open a blank file and copy parts from the corrupted file into this file, code, formats, tables, formulae, everything.
    Ok, I will try to copy sheet/paste data/import module and etc. to a new file.

  6. #6
    Registered User
    Join Date
    07-17-2013
    Location
    Quezon City
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    75

    Re: VBA What is this error all about when I run my macro?

    After I create a copy of my sheet to my new file, I've seen this in my Name Manager and I can't delete it.

    Some of it duplicate and cannot delete but some of them can edit and modify.

    See attachment below:
    123456.JPG

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA What is this error all about when I run my macro?

    Looks like the named ranges are still referring to the other workbook which you have. Is it affecting your macro? If not, then maybe once your file is working, you can delete the corrupted one and clear these duplicate named ranges.

  8. #8
    Registered User
    Join Date
    07-17-2013
    Location
    Quezon City
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    75

    Re: VBA What is this error all about when I run my macro?

    I haven't finish yet copying all of the sheet. But I've seen a lots of duplicated named range in my Name Manager. My other macro works fine. But I am being scared error happen again after I finish copying files when I don't get rid that earlier.

    My question is do duplicated named ranges that I cannot delete nor edit. Ok for a while???

    Example of the scenario:
    In my named range:
    clear1- CANNOT be edit/delete - referring to previous copied workbook
    clear1- CAN be edit/delete - referring to my new workbook
    clear1- CANNOT be edit/delete - referring to previous copied workbook

    NOTE: I edit and correct the reference of the [1] clear1 but still the [2] clear1 still there (Still I can't delete nor edit).
    Last edited by mcmunoz; 10-16-2013 at 09:18 PM.

+ 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] Simple Calendar pop up macro --> error Run-time error '424': Object required
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 10:38 AM
  2. Print Macro / module error & Update / Clear Macro error
    By mal.b.graham in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-28-2012, 06:40 PM
  3. [SOLVED] Macro error - Run time error 1004 (App defined/Object Defined error)
    By jlax34 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2012, 03:02 PM
  4. Excel Macro Error - Run time error 1004 - Paste method of worksheet class failed
    By kvflynn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2012, 10:51 AM
  5. [SOLVED] Macro Error: Compile error: Named argument not found
    By A.S. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2005, 05:15 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