+ Reply to Thread
Results 1 to 4 of 4

runtime error 9 subscript out of range

  1. #1
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    runtime error 9 subscript out of range

    Hi i am getting "runtime error 9 subscript out of range" whit the below mention code when i change the name using back space. Please help me how change the name by using backspace.

    Error marked here

    "With Sheets(mysheet)"

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: runtime error 9 subscript out of range

    The _CHANGE event triggers with each and every keypress, so it may be the wrong choice. If you switch to the _EXIT event, that won't trigger until you finish typing and attempt to leave the form field. That means backspacing would be safe.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: runtime error 9 subscript out of range

    When you get error press Debug and add a watch for mysheet (select "mysheet" in your code, right-click, Add watch).
    You will able to see value of variable mysheet. Make sure you have a sheet with that name.

  4. #4
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Re: runtime error 9 subscript out of range

    Please send me the codes. where have to change?

+ 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 '9' : Subscript out of range
    By Sanjibghosh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2016, 08:23 AM
  2. [SOLVED] Runtime error 9 - Subscript out of range
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2016, 01:34 PM
  3. i am getting a subscript out of range runtime error 9
    By jeaniekeen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2015, 04:51 PM
  4. runtime error 9 subscript out of range help
    By skate1991 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-24-2014, 02:37 PM
  5. [SOLVED] Runtime Error 9 - Subscript out of range
    By Swalih in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2014, 01:52 AM
  6. Runtime Error 9: Subscript out of Range
    By murugavelmsc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2011, 12:33 AM
  7. [SOLVED] Runtime Error '9' Subscript out of range HELP
    By Brandon Johnson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2006, 01:50 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