+ Reply to Thread
Results 1 to 3 of 3

Syntax for arrays and loops in VBA

  1. #1
    Registered User
    Join Date
    11-23-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Syntax for arrays and loops in VBA

    Hi,
    I do not code in VBA very often and struggle with loops, so I am hoping that some gurus out there can help me.

    I have a list in Excel and a form in my workbook. This form
    1) enables a user to input a search string into a text box and click search
    2) my VBA so far can take that input text and go to my list, search down all the text descriptions in each cell in column D
    3) if it find the users text in a cell in column D, it copies that row out to a new workbook

    so the result is the user gets a separate workbook with a list of rows where their search string is in the description text that was in column D of my list.

    I want to expand my code to let the user input more than 1 search word and they can separate each word with a #.
    I would like to understand how I can take the user input, use the # delimiter to separate each search string and when my code goes to each description in Column D is searches for each of these search strings rather than just one search string.

    This is the code so far,

    Please Login or Register  to view this content.
    Looking forward to your creativity.
    Last edited by jeffreybrown; 11-23-2012 at 12:09 PM. Reason: As per the forum rules, please use code tags...Thanks.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Syntax for arrays and loops in VBA

    attach a sample file for testing
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    11-23-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Syntax for arrays and loops in VBA

    I am sorry but my work computer and security guidelines do not let me put any sort attachment outside the company.

+ 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