+ Reply to Thread
Results 1 to 9 of 9

Hellp - Subscript Out of range Error

  1. #1
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Hellp - Subscript Out of range Error

    Can some helpt to know what is wrong in the below code -

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Hellp - Subscript Out of range Error

    It works fine for me when I run it like this:
    Please Login or Register  to view this content.
    It creates a new workbook out of the sheet. If you are getting that error I would check the name you have in there for your sheet.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Hellp - Subscript Out of range Error

    It means that there is no sheet with name : "ALL Brand Buyers Request form" exist in ActiveWorkbook.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  4. #4
    Registered User
    Join Date
    06-12-2015
    Location
    Maryland, USA
    MS-Off Ver
    2010
    Posts
    83

    Re: Hellp - Subscript Out of range Error

    wrong sheet name. double check the spelling.
    Got help? Pls give rep.
    If you do R&D learn VBA

  5. #5
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Hellp - Subscript Out of range Error

    Does the Sheet "ALL Brand Buyers Request form" exists in your workbook?
    Make sure the is no extra or trailing spaces.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  6. #6
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Hellp - Subscript Out of range Error

    I am still getting the error-

    Here is the entire code - 2 command button. first - to create the sheet and second - save the sheet to a location. Please check the code

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

  7. #7
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Hellp - Subscript Out of range Error

    Any Help??

  8. #8
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Hellp - Subscript Out of range Error

    The only thing I can think of is that when you click that second button, the activeworkbook, which is probably the one with the button that you just clicked, doesn't have a sheet called "ALL Brand Buyers Request form".

  9. #9
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Hellp - Subscript Out of range Error

    SHeet name is correct i checked it. There is some oroblem with the activesheet when i am using 2 command buttons. I achieve what i am seeking when i use both codes in one command button.

+ 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] Run-time error '9': subscript out of range - error occurs on multiple computers except one
    By BrettE in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2014, 11:19 PM
  2. Defining Array - Runtime error 9, Subscript out of range error
    By MaartenW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2012, 07:32 AM
  3. Runtime Error - Subscript out of range despite On Error statement
    By DoctorG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-28-2006, 11:05 AM
  4. Type Mismatch error & subscript out of range error
    By Jeff Wright in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2005, 03:06 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