+ Reply to Thread
Results 1 to 6 of 6

Baseball Position Selection Chart

  1. #1
    Registered User
    Join Date
    05-11-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Baseball Position Selection Chart

    Hi everyone,

    I have been looking for a way to modify a positional spreadsheet for our softball team so that based on each inning as I highlight a position, it will highlight that same position in another colour for the rest of the names on the team. For example: If I highlight '1B' for the 1st inning beside Dusty in yellow, all of the other '1B' beside the rest of the names in the 1st inning will be highlighted red. The goal for this exercise is to prevent selecting duplicate positions on an inning by inning basis.

    Any help would be greatly appreciated!

    Thank you!
    Attached Files Attached Files
    Last edited by jonnotron; 05-11-2016 at 03:15 PM. Reason: Added Attachment

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Baseball Position Selection Chart

    This is kind of a tall order, but it would help if you could provide the actual spreadsheet. I doubt anyone is going to take the time to reproduce it. And instead of color, would it be OK to replace the position with an "X". The reason being is that Excel can't fire an event based on a change in color. However, if you are willing to push a button, then you can color the cell and push the button or map the macro to a Control Key such as CTRL-W or some other seldom used combination).

    It helps that the format is rigid this makes referencing other cells easier: it can be done with formulas and offsets.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    05-11-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Baseball Position Selection Chart

    Thanks for the reply.

    As a very light user of Excel i wasnt sure how involved it would be to do what im looking for. I have edited my original post and included the excel file.

    Thanks again for your reply and any help going forward!

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Baseball Position Selection Chart

    I think I got this one. It was fun to put together.

    Start off by clicking CTRL-W. This will clear all assignments. This also fills an array with the positions and clears out all previous assignments. So you should do this before using the program.

    Warning: the program is very sensitive to the way the data is laid out. If you insert rows or columns, you may break it. You can add additional players at the end as long as you keep the same structure for each player. Also make sure the positions are all spelled consistently. For example, RF had a following space. I’ve corrected all that for this spreadsheet.

    Basically if you copy and paste a player, it should work.

    To assign a player, select the cell and press CTRL-Q. This will shade the cell to yellow and shade all other cells for the other players in the same inning to red.

    If you change a player from say 2B to SS, the blocks recalculate. So 2B opens up for other players and SS is shaded yellow for the player.

    Likewise, if Eric were pitching and you call in John H, when you select John H and press CTRL-Q, John H will be shaded Yellow and Eric (and everyone else) will be shaded red for the pitcher position.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-11-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3
    This is amazing! Thank you so much. Exactly what i was looking for. Is it all done with macros?

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Baseball Position Selection Chart

    Yes it is. The highly-organized structure of the sheet made it a lot easier to accomplish: it took a bit of high-school algebra to figure out which "box" a selection was in and to loop through the players. If you really want to see what's going on "under the hood" press ALT-F11 and it will bring up the VB editor. I have some comments in the code that kind of explain what I was trying to do.

    Good luck with the team.

+ 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. Replies: 3
    Last Post: 02-17-2016, 10:04 AM
  2. Set position of chart
    By gclode in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2015, 05:05 PM
  3. Can't display wins / losses in a line chart (Baseball)
    By DavidJ726 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-22-2013, 07:14 PM
  4. Replies: 3
    Last Post: 03-17-2010, 05:42 PM
  5. Print Selection without changing position on paper
    By dansditties in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-22-2007, 08:05 AM
  6. How to set the chart position exactly?
    By ramkumar_cpt in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-11-2006, 09:30 AM
  7. Changing chart title changes position of chart
    By Bing in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2005, 05:06 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