+ Reply to Thread
Results 1 to 4 of 4

Runtime error 32813 - Method 'Name' of object '_VBComponent' failed

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    12

    Runtime error 32813 - Method 'Name' of object '_VBComponent' failed

    I am trying to rename a module which leads to the run time error. In the below code, 'vbComp.name = moduleName', this line is causing the run time error. When I looked on it more, I found that the same module already exists and because of that it not allowing it to rename. Even though I called Remove reference, it is actually not removing the reference.. I tried Doevents, I called the remove reference code in a separate procedure as I shown below.. Still after executing the code, the module is not removed.

    Some additional information. So basically this code is being called in 'a.xla' and the XLAName being passed is a different xla 'b.xla'

    Please Login or Register  to view this content.
    I have also posted the same question in StackOverFlow and VBForums.
    https://stackoverflow.com/questions/...ect=1#69733375
    https://www.excelforum.com/excel-pro...ml#post5587525
    Last edited by Rayner; 10-27-2021 at 11:28 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Runtime error 32813 - Method 'Name' of object '_VBComponent' failed

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-27-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Runtime error 32813 - Method 'Name' of object '_VBComponent' failed

    Hi. I tried to post the links, but it is not allowing me to post the link!!!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Runtime error 32813 - Method 'Name' of object '_VBComponent' failed

    Try again. You now have 10 posts, so should be able to. If not, post the link with TWO spaces added to it.

+ 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. Runtime error: Method 'show' of object failed
    By gpt2 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-25-2021, 10:14 AM
  2. Runtime Error - Method Value of Object Range failed
    By livinsc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-10-2019, 08:55 AM
  3. VBA error: runtime error 1004 : Method range of object - 'Global' failed.
    By Afjio12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2019, 04:37 AM
  4. [SOLVED] Runtime Error '1004' Method 'Range' of object '_Worksheet' failed
    By ovalstar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2013, 02:15 PM
  5. [SOLVED] runtime error 1004 method save of object _workbook failed
    By madhatter40 in forum Excel General
    Replies: 1
    Last Post: 06-22-2013, 07:30 AM
  6. Runtime error .. 20028018: Method value of object range failed
    By petca059 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2010, 04:40 AM
  7. runtime error 1004 method range of object global failed
    By dreamz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2006, 03:25 PM

Tags for this Thread

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