+ Reply to Thread
Results 1 to 6 of 6

Two buttons - Randomly or Alphabetically

  1. #1
    Registered User
    Join Date
    10-15-2013
    Location
    Cibolo, TX
    MS-Off Ver
    Excel 2013
    Posts
    15

    Two buttons - Randomly or Alphabetically

    I have created a spreadsheet that helps a local Teacher set up a seating chart for her high school class.
    It currently pulls from a list in another tab known as "mylist" which covers E3 - E40

    I would like to add two buttons:

    One that fills in the seats alphabetically in the order I have originally set the seating chart up (This is so she can learn her students name in the first few weeks)
    The second button will randomly place the students in the seats (after she knows their names)

    I would like it to place the First Name on the top line and then the Last Name underneath it on the bottom line (I haven't figured out how to do this yet automatically. Notice some names don't automatically do this because the wrap).
    The alphabetically does NOT snake. It goes from front to back and then front to back...
    Attached Files Attached Files
    Last edited by jltjr75; 08-25-2019 at 02:34 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Two buttons - Randomly or Alphabetically

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    10-15-2013
    Location
    Cibolo, TX
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Two buttons - Randomly or Alphabetically

    Perfect AlphaFrog. I was able to embed those into my Buttons nicely. Is there a way to place the First Name on the top line and then the Last Name underneath it?

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Two buttons - Randomly or Alphabetically

    Quote Originally Posted by jltjr75 View Post
    Is there a way to place the First Name on the top line and then the Last Name underneath it?
    I don't understand what that means.

  5. #5
    Registered User
    Join Date
    10-15-2013
    Location
    Cibolo, TX
    MS-Off Ver
    Excel 2013
    Posts
    15
    Quote Originally Posted by AlphaFrog View Post
    I don't understand what that means.
    Sorry for the confusion.
    I mean formatted like this:

    First Name (on top)
    Last Name. (underneath)

    If so great, if NOT, I think she can get used to it.

    Thank you so much for your support.
    Jay

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Two buttons - Randomly or Alphabetically

    On the 1st Period sheet that has the names listed, use this formula in E3 and copy down.

    =C3&" "&CHAR(10)&D3

    Select column E and Format Cells\Alignment\Wrap Text.

    That's it.
    Last edited by AlphaFrog; 08-26-2019 at 01:17 AM.

+ 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] Macro Buttons Resizing and Moving Randomly
    By georgedixon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2017, 10:15 AM
  2. active x buttons randomly resizing and moving
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2015, 03:03 PM
  3. Radio buttons to randomly generate a select range
    By jamiegfinch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2015, 01:07 AM
  4. Macros with buttons, spin buttons, scroll buttons, etc.
    By qqbbppdd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2013, 09:34 AM
  5. How to insert and user of Buttons, Radio buttons, check boxes in excel sheet.
    By krishco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2013, 02:52 AM
  6. Excel resizes buttons and button font size randomly
    By TabulaRasa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2009, 05:06 AM
  7. Problems with Command Buttons Randomly Resizing themselves
    By Blue Aardvark in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2006, 08:10 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