+ Reply to Thread
Results 1 to 7 of 7

Make a button that rolls a die and shows it in a popup

  1. #1
    Registered User
    Join Date
    06-06-2014
    Posts
    4

    Make a button that rolls a die and shows it in a popup

    I'm building a character sheet for a D20 game and I'd like to have a button for the skills so I could just click it and it would roll 1-20 + skill and then popup the result. RandBetween (1,20)+E14 is simple in a regular cell, but I don't know how to turn it into a button.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Make a button that rolls a die and shows it in a popup

    Hello zerocyber,

    Welcome to the Forum.

    Maybe the attached sample Workbook, could help you get on track.

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    06-06-2014
    Posts
    4

    Re: Make a button that rolls a die and shows it in a popup

    Quote Originally Posted by Winon View Post
    Hello zerocyber,

    Welcome to the Forum.

    Maybe the attached sample Workbook, could help you get on track.

    Regards.
    I saw the dice when I searched, but it doesn't popup and I'm not looking to spend hours trying to figure out a single bit of code. This will be the sole bit of code I need for the sheet. Roll 20+cell value, output to popup or target cell.

  4. #4
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Make a button that rolls a die and shows it in a popup

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-06-2014
    Posts
    4

    Re: Make a button that rolls a die and shows it in a popup

    Quote Originally Posted by Excelnoub View Post
    Please Login or Register  to view this content.
    The MsgBox part works. I have a button that makes a popup, but I don't know how to get it to do RandBetween(1,20)+E14.

  6. #6
    Registered User
    Join Date
    06-06-2014
    Posts
    4

    Re: Make a button that rolls a die and shows it in a popup

    Please Login or Register  to view this content.
    That seems to work for random 1-20, but now I can't figure out how to make it add in a number from a cell.

  7. #7
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Make a button that rolls a die and shows it in a popup

    If it's plus a number of a certain cell then:

    Please Login or Register  to view this content.
    Try this (untested)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Click a button on popup
    By JM_Brazil in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 01:38 PM
  2. [SOLVED] Popup window that shows cells on worksheet
    By ChristineJ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2012, 02:21 PM
  3. Coping specific rolls of a sheet to a specific rolls in another sheet
    By shamade2107 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-14-2008, 06:35 AM
  4. Making g a Popup window that shows results of a search
    By oblufire in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2007, 12:26 AM
  5. [SOLVED] How to make excel popup windows
    By Darren1o1 in forum Excel General
    Replies: 0
    Last Post: 04-13-2006, 05:35 AM

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