+ Reply to Thread
Results 1 to 6 of 6

Copy from one Worksheet to multiple sheets

  1. #1
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2010
    Posts
    3

    Copy from one Worksheet to multiple sheets

    I know nothin about VBA and have been doing this the hard way and was wondering if there is VBA code to make this easier.

    What I trying to do is keep track of hockey scores and then copy to the appropriate team sheet, right now I enter the scores on the schedule worksheet and then I filter it and manually copy and paste to team sheet. So basically I want to run a Macro that will filter first from Visitor column and paste to proper team sheet and then from Home Team and paste to proper team sheet
    Attached Files Attached Files
    Last edited by blackmordred; 07-26-2011 at 01:15 PM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Copy from one Worksheet to multiple sheets

    Hi blackmordred and welcome to the forum. I am going to look at this but I am disappointed because you don't have the Winnipeg Jets in your workbook .
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Copy from one Worksheet to multiple sheets

    Quote Originally Posted by blackmordred View Post
    I know nothin about VBA and have been doing this the hard way and was wondering if there is VBA code to make this easier.
    Hi
    I know nothing about Hockey, but I think the code on the attached sheet will do what you want.
    I filled in a few scores on the sheet which I renamed as Master and ran it and it seemed to do what was required.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  4. #4
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Copy from one Worksheet to multiple sheets

    Hey Roger thanks for the help your code comes close, it works with the visitor team but not when it copies the home team, it puts the home team there but not who they were playing against. I will try to work on the code to see if I can get it to work properly.

    Mordred unfortunately I used last years stats that's why no Winnipeg but I too am looking forward to this year with the Jets back in the league.

  5. #5
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Copy from one Worksheet to multiple sheets

    Hi

    Sorry about that.
    In the last but one line of the copying data, it should be using wsM(cells(i,2). value, not (i,4)

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Copy from one Worksheet to multiple sheets

    Thanks Roger that did the trick, very much appreciated

+ 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