+ Reply to Thread
Results 1 to 8 of 8

Problem: Runtime Error 9

  1. #1
    Registered User
    Join Date
    05-21-2020
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    25

    Problem: Runtime Error 9

    Hi,

    I've been having a hard time figuring out how to resolve this error message. I have created the form attached and it is working 100% on my end.

    However, my colleagues keeps getting this Runtime Error 9 and I cant seem to replicate the issue as it directs them to the below string:

    Please Login or Register  to view this content.
    Is there a way to eliminate that "Engine" file and have a direct code that functions the same? I somewhat learned that code in a YouTube tutorial and it functions as either when there is a "New" entry or when I am doing a "Edit" entry. I used for adding entries and when I go and modify an entry as reference.

    I hope there is somewhat a workaround on this one.

    Thanks
    Attached Files Attached Files
    Last edited by aeolusquiniquini; 02-11-2021 at 04:53 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,258

    Re: Problem: Runtime Error 9

    You could just replace Sheets("Engine") with Sheet3 in each case.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    05-21-2020
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Problem: Runtime Error 9

    Thank you sir. I am now having the same Debug Error on my end after replacing the "Engine" with "Sheet3". Any chance for a different approach on this one?

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,258

    Re: Problem: Runtime Error 9

    That's not what I said. I said replace Sheets("Engine") with Sheet3 - i.e.

    Please Login or Register  to view this content.
    or preferably:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-21-2020
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Problem: Runtime Error 9

    I think that did the trick. I apologize if I didnt understood the instructions at first.

    Can I also ask if you can possibly let me know how to generate a random number? So let's say, on the Case Number field, I plan to put a checkbox in case someone forgot to create a case number. But upon ticking the checkbox it still generate a random number to populate on the Case Number field. Is this possible?

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,258

    Re: Problem: Runtime Error 9

    Why do you want a random number for that? Why not just add 1 to the highest previous number?

  7. #7
    Registered User
    Join Date
    05-21-2020
    Location
    Manila, Philippines
    MS-Off Ver
    Office 365
    Posts
    25

    Re: Problem: Runtime Error 9

    The case numbers are uniquely generated by our system. If we were to add 1 if might be an issue in the future generated cases. So I was thinking of just having a random maybe AAAA0000 kinda of number format or maybe like NOCASEXXXX as the format?

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,258

    Re: Problem: Runtime Error 9

    You'd have to check whether you happened to have already used that generated number, so if you can use a unique prefix, you could simply check for the highest number used with that prefix and then add 1 to it. This should really be a different thread though as it has nothing to do with the original question.

+ 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 287 - Auto e-mail with attachment problem
    By mcmarinello in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-12-2018, 04:29 PM
  2. Runtime error 13 problem with a code
    By elmnas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2015, 07:54 AM
  3. Problem with VBA code - runtime error 1004
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2015, 02:22 AM
  4. [SOLVED] Runtime error 9 - can't find the problem
    By Ottoman079 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-25-2013, 09:13 AM
  5. [SOLVED] VBA Code Problem (Excel 2010):Runtime error 424
    By aelgadi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2012, 09:40 AM
  6. 1004 Runtime error problem
    By jp001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2009, 03:23 AM
  7. runtime error 9 problem with this code
    By cuewoz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2006, 09:54 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