+ Reply to Thread
Results 1 to 5 of 5

search and select range in macro

  1. #1
    Registered User
    Join Date
    05-26-2011
    Location
    Cambridge, MA
    MS-Off Ver
    Excel 2007
    Posts
    3

    search and select range in macro

    Hi All, I'm creating a database from scanned copies of addresses. So far I have a LONG list of data that is luckily separated by the company name being in bold. I would like to run a macro that figures out that the record is from bold to bold (offset -1,0), so I can transpose it on a separate sheet in order to have each record on a separate row.

    Does anyone have a suggestions on how I can select a range from bold to bold (offset by -1,0)?! Or any other suggestion? Another major list coming my way will be separated by an empty cell.

    I would be super grateful if someone can help me out with this!
    Thanks,
    Liz

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: search and select range in macro

    hi, tigerlilyliz, can you post sample workbook showing original data and the result you need to obtain?

  3. #3
    Registered User
    Join Date
    05-13-2011
    Location
    New Zealander in London
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: search and select range in macro

    Quote Originally Posted by tigerlilyliz View Post
    I would like to run a macro that figures out that the record is from bold to bold
    Liz
    Hi Liz,

    A quick and dirty function you could use which would return all of the bold characters within a string of text would be:
    Please Login or Register  to view this content.
    Paste this to a new module, then in your spreadsheet, use the formula:
    =GetBolds(A1)
    ...where A1 contains a line of text you want to get the bold characters out of.

    Copy this function down for each of the addresses in your list to extract the bold characters.

  4. #4
    Registered User
    Join Date
    05-26-2011
    Location
    Cambridge, MA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: search and select range in macro

    Dr. Name
    Home:
    Street
    Sao Paulo, 01411-011 Brazil
    Name2
    address
    phone number
    Name
    Address
    phone number
    city, state

  5. #5
    Registered User
    Join Date
    05-26-2011
    Location
    Cambridge, MA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: search and select range in macro

    Thanks, Tarquinious. I'll give it a whirl.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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