+ Reply to Thread
Results 1 to 2 of 2

Macro to copy rows of specific text range to separate sheet

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1

    Macro to copy rows of specific text range to separate sheet

    Hi
    I am new to writing macros and am trying to learn it along the way.
    I needed help on a task where I am trying to write a macro for.

    I have 2 columns and data in both in sheet 1. I need a macro to
    1) sort data in column 1 alphabetically with its respective data into column 2
    2) i then need to find a text range for the sorted data and have those rows along with their columns copied into a sheet 2.

    for example, post sorting in sheet 1, i need
    all words starting with letters A, B, C, D and E are copied to sheet 2
    all words starting with letters F, G, H, I, J go to sheet 3
    all words starting with letters K, L, M, N, O go to sheet 4
    all words starting with letters P, Q, R, S, T go to sheet 5
    all words starting with letters U, V, W, X, Y, Z go to sheet 6
    all words starting with numbers go to sheet 7

    Thanks
    Steve
    Last edited by stevelance99; 04-04-2014 at 09:15 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Need help for a simple macro

    Hi and welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Also, have you looked at using teh macro recorder? It captures your key-strokes and then plays them back on command
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Excel 2010 VB macro to open all files in folder and run a simple macro
    By MSFLNA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2013, 02:54 PM
  2. My macro needs a couple tweeks- Fairly simple copy and paste macro
    By wiebs2334 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2013, 08:02 AM
  3. My macro needs a couple tweeks- Fairly simple copy and paste macro
    By wiebs2334 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 08:23 PM
  4. [SOLVED] Date Macro - Code Breaks - (Simple Macro)
    By aiwnjoo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-12-2010, 05:36 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