+ Reply to Thread
Results 1 to 6 of 6

Find number, change background colour, loop.

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    canberra
    MS-Off Ver
    Excel 2003
    Posts
    3

    Find number, change background colour, loop.

    Hi all,

    I'm just getting started with macros and have so far been able to search for all of my solutions. However I seem to be stuck.

    I am looking for a macro that will
    1. open a search box
    2. i entre text and click search
    3. if a match is found the background colour is changed
    4. a new search box open.
    5. repeat until i click cancel.

    Is this possible and if so any suggestions for code?

    Thanks heaps!
    Last edited by rjtedge; 11-09-2011 at 07:52 PM.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Find number, chnage background colour, loop.

    Hi
    try this

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-08-2011
    Location
    canberra
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find number, chnage background colour, loop.

    Hey,

    I'm not sure what is happening, but when I try to run the code nothing seems to happen after the search box opening.

    When i click seach another search opens without changing anything?

    I have both text and numbers, would this effect it?

  4. #4
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Find number, change background colour, loop.

    My apologies, I made an error in the code
    try this:

    Please Login or Register  to view this content.
    Last edited by NickyC; 11-09-2011 at 12:31 AM. Reason: add code tags

  5. #5
    Registered User
    Join Date
    11-08-2011
    Location
    canberra
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find number, change background colour, loop.

    Wow, that is perfect!!

    Thank you so much, everything i had tried was much larger.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Find number, change background colour, loop.

    Hello rjtedge,

    Welcome to the Forum!

    You posted this same question here. We ask that you let us know if you have posted your question elsewhere. This prevents solutions from being duplicated and time from being wasted answering questions that have answers.

    As a new member, please take some time to familiarize yourself with the rules.
    Forum Rules
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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