+ Reply to Thread
Results 1 to 7 of 7

Runtime 9 Error on computer but not on the other

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    4

    Runtime 9 Error on computer but not on the other

    I am getting a Runtime 9 error for the below on one PC but not on another. I did notice that there are other Menus listed on the PC that continues to get errors but not on the one working properly. Any suggestions?

    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 08-10-2017 at 04:39 PM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Runtime 9 Error on computer but not on the other

    Hi welcome to the forum.
    How about first telling us which version of excel is being used on each machine?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    08-10-2017
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    4

    Re: Runtime 9 Error on computer but not on the other

    Thank you! Both machines are running on Excel 2016.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Runtime 9 Error on computer but not on the other

    What is the value of 'PositionOrMacro' ?
    What is the strring value for 'Caption'?
    Tow things
    1. We cannot test since we do not have the list of pop-up menu items and my guess this is 'inherited' from code written before version 2007 appeared?
    2. Have both systems set the correct reference in the VBA project? you need a vba reference for 'msoControlPopup' to work and if you set Option Explicit you get that error too if you have not set the reference

  5. #5
    Registered User
    Join Date
    08-10-2017
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    4

    Re: Runtime 9 Error on computer but not on the other

    Would it be helpful if you had the whole string for that sub? And yes the code was written in I believe was 97.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Runtime 9 Error on computer but not on the other

    I would need the file that you are testing but then you would have to make sure that the data is non-private and non-sensitive.
    If it;s just about the code for the menu, you could empty the cell's contents and attach the file with with the macros included

  7. #7
    Registered User
    Join Date
    08-10-2017
    Location
    Seattle, WA
    MS-Off Ver
    2016
    Posts
    4

    Re: Runtime 9 Error on computer but not on the other

    Thank you for you continued help!
    The document does have some sensitive information, and is protected let me break into it and I will get you the file.

+ 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] Mac throwing error - Runtime Error 429 - ActiveX Component Can't Create Object
    By harman83 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-28-2018, 11:04 PM
  2. Runtime error '1004': Paste special method of range class error.
    By Daryl Zer0 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-05-2014, 01:44 AM
  3. [SOLVED] VBA Error: Runtime Error 1004: AutoFilter method of Range class failed
    By jl22stac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 07:27 PM
  4. [SOLVED] Runtime-error '1004' cannot access the file, depending on the computer
    By yuichi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2012, 06:05 PM
  5. [SOLVED] Compile Error: Can't find project or library (1 computer has the error, another does not?)
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 06-28-2012, 12:09 PM
  6. runtime error 3265 error in a VBA Query to pull info from ERP Database
    By NBVC in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-12-2010, 03:59 PM
  7. Excel xmlHTTP object error message - system/runtime error
    By Porky2007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2007, 09:36 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