+ Reply to Thread
Results 1 to 6 of 6

use vba to find simular names and copy values into cells

  1. #1
    Registered User
    Join Date
    09-25-2011
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    4

    use vba to find simular names and copy values into cells

    Hey!

    I just started with vba and now I want a little help to find a good way to solve my problem

    I have made a sheet where you can see what I want help with.

    : I want a macro to automatic take the change from sheet "games" (the change are in cell I2 and J2) copy it into the table on sheet "table". The macro is suppose to find the right place automaticly. It should search after the Team names from sheet "games" and search in sheet "Table". Find the next open cell (YELLOW IN TABLE) and copy the value in!

    Hope you understand the problem! If you just can help my with the Home team macro I suppose I can make it work.

    Thanks in advance! :D
    Anthony Moody
    Attached Files Attached Files

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

    Re: use vba to find simular names and copy values into cells

    hi, AnthonyMoody, please check attachment, run code "test"
    Attached Files Attached Files
    Last edited by watersev; 09-25-2011 at 11:27 AM.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: use vba to find simular names and copy values into cells

    This is not possible with the Sheet "Games" as you have it, there are to many linked formulae, if we try to use it the values change as we go. So the calculations will have to be done separately in VBa.

    First we have to have some rules clarified.
    If you look at Sheet "Games" I have modifeid your formula anchors and created 3 scenarios, you will see that one returns FALSE, what should it be?

    Forget the VBa in this workbook, it's just a starter that revealed this problem.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    09-25-2011
    Location
    Norway
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: use vba to find simular names and copy values into cells

    thanks a lot for the respons
    watersev solved the problem thanks a lot :D
    You are awsome!

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

    Re: use vba to find simular names and copy values into cells

    @AnthonyMoody, please redownload file, the code has been modified, new file: EXCEL%20SAMPLE(11).xls

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: use vba to find simular names and copy values into cells

    So you have no intention to include other games in your worksheets ...

    I agree that watersevs' solution works, but only for one game.
    What happens when you enter the weeks' results?
    How is the error I pointed out handled?

+ 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