+ Reply to Thread
Results 1 to 5 of 5

Loop & Find problems

  1. #1
    Registered User
    Join Date
    05-10-2008
    Posts
    2

    Loop & Find problems

    I am trying to create a loop Macro that will search for the word "pediatric" in Column C of each Row, and when "pediatric" is found, enter "Peds" in Column E of that row.

    I created this macro using Record and then added a Loop function, but it is not working. I am getting a Loop Do syntax error when I "step into" the macro. As I'm sure will be obvious, I am very much a beginner with macros.

    Can anyone please tell me what mistakes I am making here?

    Thanks very much!

    Please Login or Register  to view this content.
    Last edited by royUK; 05-10-2008 at 10:44 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Welcome to the Forum.

    You need to take the few minutes necessary to read the Forum Rules - see the link below. Your Thread Title needs editing & you haven't used Code tags, I will add these for you now.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Welcome to Exceltip forum

    Please take a couple of minutes and read the forum rules then edit your thread title by following the instructions in the rules (Rule 1) and wrap your VBA code (Rule 3)

    An Announcement thread that covers the rules is at the top of each forum or you may use the link below in my signature.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try this

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-10-2008
    Posts
    2

    Thank you!

    Thank you for your help! Sorry for the errors.

    Mohom

+ 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