+ Reply to Thread
Results 1 to 11 of 11

Very Small Error In Uniques arrangement Code, Need correction

  1. #1
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Very Small Error In Uniques arrangement Code, Need correction

    Hi Friends,

    I have face small problem with Unique arrangement Code. problem is existing text is erased and un necessary Text was created at D2 cell. may be its requires small correction in my code.

    please find sample worksheet and please correct by modification.

    Thanks.
    Attached Files Attached Files
    Last edited by structo; 09-16-2016 at 05:38 AM.

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Very Small Error In Uniques arrangement Code, Need correction

    If I am checking correct code in workbook then there is problem Cells(i+4, "D") it should be Cells(i+4, 4) coz number of Col D is 4

    Please Login or Register  to view this content.
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Re: Very Small Error In Uniques arrangement Code, Need correction

    Quote Originally Posted by mangesh.mehendale View Post
    If I am checking correct code in workbook then there is problem Cells(i+4, "D") it should be Cells(i+4, 4) coz number of Col D is 4
    Hello friend,

    thank you for explanation, good points. after using your code same error is came kindly test.D2 cell existing text is erased and pasted as "Type3 Books". please fix.

    Thanks.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Very Small Error In Uniques arrangement Code, Need correction

    Start from 3rd row. Not 2nd:

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Very Small Error In Uniques arrangement Code, Need correction

    http://www.excelforum.com/excel-prog...to-larger.html

    Change to
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Re: Very Small Error In Uniques arrangement Code, Need correction

    Quote Originally Posted by mangesh.mehendale View Post
    If I am checking correct code in workbook then there is problem Cells(i+4, "D") it should be Cells(i+4, 4) coz number of Col D is 4
    Hello friend,

    thank you for explanation, good points. after using your code same error is came kindly test.D2 cell existing text is erased and pasted as "Type3 Books". please fix.

    Thanks.

  7. #7
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Re: Very Small Error In Uniques arrangement Code, Need correction

    Quote Originally Posted by jindon View Post
    http://www.excelforum.com/excel-prog...to-larger.html

    Change to
    Please Login or Register  to view this content.
    Hello Jindon friend,

    i am modifying your old code

    How to change your code? where it is placed?

    Thanks.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Very Small Error In Uniques arrangement Code, Need correction

    Deleted............
    Last edited by jindon; 09-16-2016 at 05:51 AM.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Very Small Error In Uniques arrangement Code, Need correction

    Please Login or Register  to view this content.
    Should be r.Value not e

  10. #10
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Re: Very Small Error In Uniques arrangement Code, Need correction

    Quote Originally Posted by zbor View Post
    Start from 3rd row. Not 2nd:
    Thank you friend, now it is worked.

    Thanks.

  11. #11
    Forum Contributor
    Join Date
    08-27-2016
    Location
    INDIA
    MS-Off Ver
    2003,2007,2010
    Posts
    134

    Re: Very Small Error In Uniques arrangement Code, Need correction

    Thank you, Jindon, mangesh.mehendale, zbor.

+ 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] Extract uniques and sort as a Smaller to larger
    By structo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2016, 03:12 AM
  2. [SOLVED] Edit a small code to remove error
    By moonbreakker in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-29-2015, 08:09 AM
  3. [SOLVED] Sort small data
    By namluke in forum Excel General
    Replies: 4
    Last Post: 06-17-2014, 09:43 AM
  4. [SOLVED] Error in Code to Sort, Hide, and PDF Worksheets
    By mbhart in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-04-2014, 04:09 PM
  5. Help me sort this code layout error! Missing inverted comma!
    By ropbasuel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2013, 12:31 AM
  6. Can this small bit of code be combined to one line of code?
    By Wedge120 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2011, 02:00 AM
  7. I have a small error in the macro......help me please
    By carloslp in forum Excel General
    Replies: 0
    Last Post: 04-12-2005, 05:17 AM

Tags for this Thread

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