+ Reply to Thread
Results 1 to 37 of 37

random name pick list when pressing button it creates separate sheet

  1. #1
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    random name pick list when pressing button it creates separate sheet

    hi,
    i have a sheet name random when clicking on button it opens a new sheet.?
    can someone help with this
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    Here is a solution with a formula:

    Please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: random name pick list when pressing button it creates separate sheet

    Alternative small macro in sheet module.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  4. #4
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    thank you Hans
    where do i paste the formula?

  5. #5
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    hi torachan
    after clicking pick names i get this pop message yy.png
    after creating copy to my workbook it stops working its working but its creating the new sheet still
    Attached Files Attached Files
    Last edited by west123; 11-03-2023 at 01:59 PM.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    where do i paste the formula?
    at the beginning of your random list.

    See attached workbook of Post #2.

  7. #7
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    okay hans let me try that okay ty

    I am not sure where to paste formula I paste on o1 and a3 change the names: to New Names: change a2 to column b and hit f9 and have no idea of what to do next
    when i hit pick names it creates the other sheet
    Last edited by west123; 11-03-2023 at 02:14 PM.

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: random name pick list when pressing button it creates separate sheet

    @west123, have you enabled macros ?

  9. #9
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    macros are enabled when i hit pick names it creates the sheet separate this happens when clicking pick namespp.png

    creates new sheet after having it here [ATTACH]848304ee.png/ATTACH]

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    I have not enabled macros.

    The formula in attached workbook Post #2 is not linked to the button.
    I left the button untouched, so don't press the button.

  11. #11
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    so what do i do? I just don't want it to create a new sheet like in post # 9 i have it in my workbook as random then when i click it creates sheet 1 like in the pictures

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    I just don't want it to create a new sheet
    Don't press the button.

    If you want pick new names, please press F9 or change how many (cell A2)
    Last edited by HansDouwe; 11-03-2023 at 02:25 PM.

  13. #13
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    hans don't seems to work when changing how many names to pick or after hitting f9 nothing happens
    not sure if file got corrupted only works when hitting pick names but open the other sheet

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    Please upload (the esseantial part of) your not working sheet.

  15. #15
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    On your 2 pictures in Post #9 the formula seems to work.

    On the first picture the number in Cell A2 is 5 and there are 5 names in column E.
    On the second picture the number is 1 and there is 1 name (another name) in column E.

    Pressing the button is useless.
    The formula is not linked to the button.
    I haven't changed anything about that.
    I have left the button untoched.

  16. #16
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    here is the file
    Attached Files Attached Files
    Last edited by west123; 11-03-2023 at 02:53 PM.

  17. #17
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    I don't see a file in Post #16, but did you read Post #15 in the meantime.

  18. #18
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    okay yes its works after hitting the button and creates the sheet1 in the picture but not when i do f9, but why can we have it work from the button ?l.png
    this is file 9 in post# 16 and f9 don't work
    Last edited by west123; 11-03-2023 at 02:58 PM.

  19. #19
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    i read post # 15

  20. #20
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    but why can we have it work from the button ?
    Yes we can also.

    Please try my formula of Post #2 and create this macro and assign the button to this macro.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    hans i don't think i can do that,
    i don't even know what your asking me to do, i have zero Knowledge Of VBA or formulas if i knew i would do it or you can tell me in steps and ill do the changes havee no problem with that

  22. #22
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    If you've never implemented a macro before, you're asking me quite a bit and I can't explain it in a few sentences,
    because this is the first macro I've created and implemented for me.

    That's why I've created a solution in Post #2 without a button and without a macro.
    Then I made a solution with a button, because you explicitly asked for it.

  23. #23
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    okay, will have to wait and see if someone else comes with a solution,
    but solution in post#2 don't work don't even know where the formula goes, i mean i can use that option for now, until someone helps with making it work with the button

  24. #24
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: random name pick list when pressing button it creates separate sheet

    In your workbook of Post #16, it doesn't work, because you didn't implement the formula in Post #2.
    The formula must be implemented where you want the result.

    I've done that in sheet random and it works perfectly.

    See attachment.
    Attached Files Attached Files
    Last edited by HansDouwe; 11-03-2023 at 04:45 PM.

  25. #25
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    i don't understand why it don't work for me. i download file unlock and this is what it shows even when i openii.png

    when changing the # in a2 or hit f9 nothing happens

  26. #26
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: random name pick list when pressing button it creates separate sheet

    refer to post#8 & post#9 - this is doing what you asked for - a random selection (number selected) from a list of names.

  27. #27
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    hi, torachan
    not sure if we on the same page, here,
    if you see post #9 bottom picture i have all sheets in the same workbook right inluding Random the last sheet in the workbook.
    when i hit the pick names it creates the above sheet in the picture saparate from the whole workbook why. after the sheet1 creates by itself the one in workbook seems to work but why do i have to have the other open and not just work from within the workbook?"
    Last edited by west123; 11-05-2023 at 07:05 PM.

  28. #28
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: random name pick list when pressing button it creates separate sheet

    You do not have to have both workbooks open - I thought it would be obvious that you would need to place the code in your workbook.
    I found it easier to work with a simple file - I found your file so cluttered and unstable that I did not want compromise.
    I have now put it in your sheet "Random" - it works for me however I give no guarantee it will continue to in your environment.

  29. #29
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    let me give it a try see if it works ty

  30. #30
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    wow thank you so much thats it you did it not sure why it was so confusing ty ty torachan

    just have a question how can i added to my workbook to the latest version can i just make try making copy don't work.
    Last edited by west123; 11-05-2023 at 07:38 PM.

  31. #31
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    tora,
    this is the latest workbook
    Attached Files Attached Files

  32. #32
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,591

    Re: random name pick list when pressing button it creates separate sheet

    west123,
    No button needed.
    Just enter/change number in A2.
    Please Login or Register  to view this content.

  33. #33
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    hi, jindon
    ty for reaching out to help. but inputing any number in a2 doesn't do anything or pick names from the list

  34. #34
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    godd morning tora this is the latest file up to date
    Attached Files Attached Files
    Last edited by west123; 11-06-2023 at 12:59 PM.

  35. #35
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    jindon,
    i after restaring file work, can we have button to work the the same as inputting a # in A2

    in the file in Post # 34 is the latest file up to date

  36. #36
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: random name pick list when pressing button it creates separate sheet

    attached file the name selector works in sheet(Random)
    Attached Files Attached Files

  37. #37
    Forum Contributor
    Join Date
    11-13-2022
    Location
    usa
    MS-Off Ver
    plus 2021
    Posts
    1,886

    Re: random name pick list when pressing button it creates separate sheet

    Fantastic Tora works as it should. thank you so much
    cheers to all glad this works well now

+ 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. [SOLVED] Auto Random for 5 seconds when pressing button draw
    By chaiyya345 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2020, 10:46 PM
  2. [SOLVED] Random Pick from list
    By michael35 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-19-2018, 09:30 AM
  3. Random Pick from list
    By michael35 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-19-2018, 04:21 AM
  4. Replies: 0
    Last Post: 09-26-2011, 12:04 PM
  5. Pick a Random name from a list.
    By David M Fritzke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2006, 12:40 PM
  6. [SOLVED] Pick a Random name from a list.
    By David M Fritzke in forum Excel General
    Replies: 8
    Last Post: 06-06-2006, 10:55 AM
  7. Pick a Random name from a list.
    By David M Fritzke in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2006, 10:55 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