+ Reply to Thread
Results 1 to 2 of 2

VBA Code Help needed to move Account Number rows to different shet

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    ohio
    MS-Off Ver
    Excel 2003
    Posts
    3

    VBA Code Help needed to move Account Number rows to different shet

    I been surfing the web and trying to figure out a formula to solve a work issue i'm having. I have a spreadsheet everymonth that contains about 10,000 lines in it. I would like to get a VBA together to help make the sorting process easier. I want it to sort by Column B which contains the account number, but i want it to only sort by the first 6 digits of the account number. Example :In Column B, 030-445-4955-49449-000 , but i would like the sorting to be done by 030-445. The first six digits represent a department within my company and the last digits are their expense line. I found this code on-line, but it takes all the different account number in B and sorts them. Can anyone help me tune this code to me needs? Thank you in advance.
    Please Login or Register  to view this content.
    Last edited by hollywoodbob; 04-16-2014 at 12:42 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA Code Help needed to move Account Number rows to different shet

    Hi and welcome to the forum.

    Unfortunately your post does not comply with Rule 3 of our Forum
    RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] Code needed to move rows to different worksheet based on date
    By collinlo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2012, 11:28 AM
  2. Replies: 1
    Last Post: 09-07-2012, 12:00 PM
  3. [SOLVED] need Macro code for validation of account number
    By tmprao27 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-17-2012, 06:30 AM
  4. Summing Rows based on Account Number
    By chalaki in forum Excel General
    Replies: 1
    Last Post: 06-21-2011, 02:12 PM
  5. Shet Number Position
    By Sheets number position in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2005, 08:05 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