+ Reply to Thread
Results 1 to 5 of 5

Assigning Data Range from 2 strings of text

  1. #1
    Registered User
    Join Date
    05-04-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Assigning Data Range from 2 strings of text

    Hi,
    Im new to Macros. Im trying to find a string of text assign that to be the top of the data and then find a different string and assign that to be the bottom of the data.
    Then run a loop whilst inside that data range. Am i going about it the right way?
    Attached is a sample data file. Any help would be appreciated. I have made the parts that arent working into comments.
    Thanks, Mat

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by MatF; 05-05-2009 at 06:21 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Assigning Data Range from 2 strings of text

    Can you explain what your final result is supposed to look like, or post an "after" sheet?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-04-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Assigning Data Range from 2 strings of text

    Here is the after sheet before the sort.

    The next step in the macro is to sort by column A and then delete everything else underneath.

    My concern at this point is to get the data range assigned and to do the loop while inside that range.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Assigning Data Range from 2 strings of text

    Maybe like this:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-04-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Assigning Data Range from 2 strings of text

    Thanks JBeaucaire, Worked fantastic!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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