+ Reply to Thread
Results 1 to 3 of 3

facing error - subscript out of range - In allocating data in sheet name wise

  1. #1
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    facing error - subscript out of range - In allocating data in sheet name wise

    hi guys,

    Need your hands to help me.......here

    im here having data in one sheet, at each row...i have given name of user.
    also i have created sheets for users.
    my code will , move the data in the respective user sheet.

    data from one sheet to other sheet.


    But once i execute the code, im facing error is -
    Run time error 9
    Subscript out of range

    i dont understand why?.
    i said from which column user name has to be picked up and by which select sheet name.
    Dont know.......

    Could anyone fix it!!!!!!. i here by attached the file for your reference. in which enclosed my code.
    Please someone help me...............
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: facing error - subscript out of range - In allocating data in sheet name wise

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: facing error - subscript out of range - In allocating data in sheet name wise

    You are getting the error because some rows have blank cells in that column.

    You can put a condition in your code to skip all rows containing blank cells in column P or have all these rows shifted to another sheet like "blanks" or "temp".
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] I want change the data row wise to coloum wise & coloumn wise to row wise.
    By satputenandkumar0 in forum Excel General
    Replies: 3
    Last Post: 12-20-2012, 08:34 AM
  2. Subscript out of range- sheet naming error?
    By catccc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2010, 01:51 PM
  3. Subscript out of range error when adding a sheet
    By Jeroen1000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2009, 06:17 AM
  4. [SOLVED] Copying Sheet - subscript out of range error
    By GSP@DCS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2006, 09:00 PM
  5. In multiple sheet copy error subscript out of range ?? HELP
    By Eddy Stan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2006, 01:00 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