+ Reply to Thread
Results 1 to 8 of 8

Code required to add details onto a separate sheet in order

  1. #1
    Forum Contributor
    Join Date
    05-14-2015
    Location
    West Yorkshire
    MS-Off Ver
    10
    Posts
    132

    Code required to add details onto a separate sheet in order

    Hi, I'm trying to create a green "ADD" button on the "INPUT" sheet that will add any new codes and details (shown in RED) into the "CODES" sheet.

    The "CODES" sheet needs to be automatically arranged in increasing code value 170045, 170046, 170047 etc... I'm not sure if this is possible?

    Also if a current saved code is entered it needs to overwrite the old code, not add a new entry. I hope that makes sense.

    Any help would be greatly appreciated.
    Attached Files Attached Files

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

    Re: Code required to add details onto a separate sheet in order

    Hi CPAC,

    Here's a suggestion:

    Please Login or Register  to view this content.
    GC Excel

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

  3. #3
    Forum Contributor
    Join Date
    05-14-2015
    Location
    West Yorkshire
    MS-Off Ver
    10
    Posts
    132

    Re: Code required to add details onto a separate sheet in order

    Hi, Thank you for the help. It seems not to work when it gets to the sort codes, any ideas?

    Thanks...

  4. #4
    Forum Contributor
    Join Date
    05-14-2015
    Location
    West Yorkshire
    MS-Off Ver
    10
    Posts
    132

    Re: Code required to add details onto a separate sheet in order

    'Sort codes
    'ws2.Cells(1).CurrentRegion.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlYes

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

    Re: Code required to add details onto a separate sheet in order

    Are you data starting in A1 of the CODES sheets as in your sample workbook?

  6. #6
    Forum Contributor
    Join Date
    05-14-2015
    Location
    West Yorkshire
    MS-Off Ver
    10
    Posts
    132

    Re: Code required to add details onto a separate sheet in order

    Hi the "CODES" sheet needs to be automatically arranged in increasing code value 170045, 170046, 170047 etc... does this make sense?

    Code values start in A2, A1 is text is this the issue?

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

    Re: Code required to add details onto a separate sheet in order

    I don't understand why it doesn't work. Sort is ok when I test with your sample file.
    Can you share the file that has problems?

  8. #8
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Re: Code required to add details onto a separate sheet in order

    Of try using bubbleSort
    Please Login or Register  to view this content.
    "Presh Star Who has help you *For Add Reputation!! And mark case as Solve"

+ 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. Code required to add new details to a separate sheet
    By CPAC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2018, 07:11 AM
  2. [SOLVED] coverting a list of employees details into team lists on a separate sheet.
    By chrisk67 in forum Excel - New Users/Basics
    Replies: 21
    Last Post: 12-23-2016, 06:12 AM
  3. Replies: 7
    Last Post: 03-20-2016, 12:06 PM
  4. [SOLVED] Sample -Required to update Summary Details in Each Tab of Split data at end using VBA Code
    By Ram_G in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2016, 05:40 AM
  5. Auto copying onto separate sheet help required
    By Treetots3 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-12-2012, 10:05 AM
  6. Display details in a separate sheet
    By satyamkoli in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-18-2011, 02:33 AM
  7. Reference descending order in separate sheet
    By pfchang in forum Excel General
    Replies: 2
    Last Post: 07-24-2009, 08:43 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