+ Reply to Thread
Results 1 to 5 of 5

Finding only 1 instance not multiple

  1. #1
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Finding only 1 instance not multiple

    Hi guys,

    This is some code that I wrote a while back and I just realised that it needs a slight modification which I am struggling to do (come to think of it I can never seem to do this part).. I hope someone can help.


    I realised that if someone enters in a server name.. and if that server name is associated to 2 applications then only 1 of the applications will be copied(what ever one appears in the list first)... The code was fine when this would never happen, though now it is happening.

    I need some how for the code to continue to look through the list and copy all of the lines that the sever is associated too, rather than stopping at 1.



    Below is my full sub for this function (ignore the 'Now add all the FindRng that are not found part)


    Full sub
    Please Login or Register  to view this content.
    Last edited by SarahPintal; 07-27-2010 at 01:37 AM.

  2. #2
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: Need to copy all matches not just 1 instance

    More specifically it is this portion of code:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: Need to copy all matches not just 1 instance

    Any thoughts?

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

    Re: Need to copy all matches not just 1 instance

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

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

    Free DataBaseForm example

  5. #5
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    209

    Re: Need to copy all matches not just 1 instance

    i tried this code .. adding a loop for FindRng2 though it still only finds the once instance and moved along the code...

    Please Login or Register  to view this content.

+ 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