+ Reply to Thread
Results 1 to 15 of 15

Yahtzee Scorecard - A project

  1. #1
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    57

    Yahtzee Scorecard - A project

    Hi All,

    Trying to make a scoresheet for Yahtzee. I've got the basics done, but one thing I really want to do is to have a macro which will ask for how many players and their names and fill in the gaps. I have no idea how to do this.

    I've attached what I've done so far.Yahtzee.xlsm

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Yahtzee Scorecard - A project

    you forgot bonus yatzee! also why not lay it out just like the yatzee scorecard but instead of game 1,game2 across the top put the players names in there
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Yahtzee Scorecard - A project

    Also forgot pairs.

    I think you should look into creating a userform that launches on start up.
    Asking for player names.
    Please take time to read the forum rules

  4. #4
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Yahtzee Scorecard - A project

    Quote Originally Posted by martindwilson View Post
    you forgot bonus yatzee! also why not lay it out just like the yatzee scorecard but instead of game 1,game2 across the top put the players names in there
    Yeh, I've been thinking of how to put bonus yahtzee into a formula that will automatically add 100 points if you put 5 in 1s or 10 in 2s etc, if the yahtzee score has already got 50 in it.

    I thought that was how scorecards are laid out. I'm doing it from memory, so I could be wrong.

    Dom

  5. #5
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Yahtzee Scorecard - A project

    Quote Originally Posted by Steffen Thomsen View Post
    Also forgot pairs.

    I think you should look into creating a userform that launches on start up.
    Asking for player names.
    Yes that sounds right. Is that easy to do?

    Dom

  6. #6
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Yahtzee Scorecard - A project

    Fairly, im sure you can do it if you read a little about it.

    You can read a little about userforms here

    And then you can learn a little of entering data to a sheet here

    Last but not least you can read a little about workbook open and close events here

    When starting to code this, and you run into trouble or parts you don understand, then just post a question and im sure you will get lots of replies.

  7. #7
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Yahtzee Scorecard - A project

    Thanks for that, also, what did you mean I'd forgotten pairs?

  8. #8
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Yahtzee Scorecard - A project

    I couldn't se

    1 pair, same as 2 of a kind
    2 pairs, when you roll 2 sixes and 2 fives

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Yahtzee Scorecard - A project


  10. #10
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Yahtzee Scorecard - A project

    Ok,

    I've created the userform and the code to go with it, and set up the splash screen, but getting an error.

    Any ideas?

    DomYahtzee.xlsm

  11. #11
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Yahtzee Scorecard - A project

    Try this instead

    Try to write code withou selecting and activating cells and sheets
    When coding a userform, you have 2 reference the sheet!

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Yahtzee Scorecard - A project

    Changed it, but still getting 'run time error 9'

    Dom

  13. #13
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Yahtzee Scorecard - A project

    Hi,

    It because the sheet reference didn't match.

    Try this

    Please Login or Register  to view this content.
    And then place this in the ThisWorkbook module

    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    08-14-2009
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Yahtzee Scorecard - A project

    Excellent, got it working now, just need to force it into full screen mode with no toolbars ribbons, or headings. Is there an easy way to do this?

    Thanks,

    Dom

  15. #15
    Registered User
    Join Date
    12-20-2008
    Location
    Arkansas
    MS-Off Ver
    2010
    Posts
    87

    Re: Yahtzee Scorecard - A project

    Also notice that the program fails if less that four names are entered.

+ 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