Code not working on some computer

  • hi guys,


    below is the code which KJBox had help me before. The code works fine and does what it is suppose to do. But for some reason it does rename sheets or update formula for some of the staff. the error code which comes up is :


    Run-time Error '1004': Method 'select' of object_worksheet' failed


    http://www.ozgrid.com/forum/showthread.php?t=200862&page=2



    can someone help me update the below code:


  • Re: Code not working on some computer


    is it on the .name = s line? I suspect that you are trying to name the worksheet something invalid here (such as a name that already exists).

  • Re: Code not working on some computer


    no its not that, I have tried the same file on my computer it works, but if try on other computer I fails

  • Re: Code not working on some computer


    hi guys, I have tried the find what was different to on other computer and only thing that stand out they have an addin called as Esri Maps.


    Can anyone suggest how do I deactivate this addin and reactive on close of file?

  • Re: Code not working on some computer


    Is the other computer using different Windows and Office versions to your system (including 32 or 64 Bit)?

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • Re: Code not working on some computer


    no we all have same system except some computers have got this extra add-in and they are not able to use the macro.

  • Re: Code not working on some computer


    Which line actually causes the error? There are no Select statements in your code that I can see.

    Rory
    Theory is when you know something, but it doesn’t work. Practice is when something works, but you don’t know why. Programmers combine theory and practice: nothing works and they don’t know why

  • Re: Code not working on some computer


    Have you tried disabling that add-in on a machine that has it, then trying to run the code?

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • Re: Code not working on some computer


    hi guys, I have tried to disable the addin, however this is not a normal addin which can be disabled, only thing you can do is uninstall the software (which I cant do).


    There is no such error, but it does not rename the sheet or change the cell reference. So the code does create the sheet copy of Sheet 1, but does not rename the sheet as 2 (its shows as 1(2) ...) and cell reference does not change from column b to H in new sheet

  • Re: Code not working on some computer


    Hi,
    I don't know how you tried to disable Esri Maps, but having found how to enable it, maybe this will help you disable it.
    https://doc.arcgis.com/en/maps…ently-asked-questions.htm
    I don't know if it will allow you to un-check the box.


    The only other suggestion I have is to take the issue up with the Esri Maps people, since it is their software integration to Office which conflicts with Office.


    Cheers!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!