+ Reply to Thread
Results 1 to 3 of 3

Inserting table into a message box

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Connecticut, U.S.A.
    MS-Off Ver
    Excel 2010
    Posts
    52

    Inserting table into a message box

    Hey everyone - I'm trying to build a macro that will insert a table into a message box. Here is my specific requirement.

    I have a list of players with many rows of data that show player scores for each NBA game. I'm interested in seeing the last 3 gamesthat a player has played where it shows the following fields in the table (by the way, the cells where the players reside are not contiguous...so they are not in alphabetical order):

    Player Name (column A) -- Opponent (column B) -- Date played (column M) -- Total Points (column N)


    I found this code which is a good first step, but it isn't really the solution. I need to add in code to find which rows the last 3 games reside in and create a union, I suppose, that will return those rows.

    Here is the code:

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-25-2014
    Location
    Pennsylvania, US
    MS-Off Ver
    Windows '16
    Posts
    165

    Re: Inserting table into a message box

    Hi - it's going to be impossible without at exemplary workbook, so put one together or upload the workbook if you can. Any reason a listbox wouldn't work?

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Inserting table into a message box

    A message box is far too limited for that purpose. You would need to create a user form to display that much information.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Inserting email message in macro
    By Terry Watson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-25-2015, 06:19 PM
  2. [SOLVED] Warning message before inserting or deleting rows or columns
    By colin.dickson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2015, 03:48 PM
  3. Extracting mail message(outlook) table in the message body
    By andywsw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 10:14 PM
  4. Error Message when inserting row ????
    By conks in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2008, 03:27 PM
  5. Error Message when inserting row ????
    By conks in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-13-2008, 12:18 PM
  6. Inserting a Column Error Message
    By vasski in forum Excel General
    Replies: 2
    Last Post: 04-05-2007, 05:50 PM
  7. [SOLVED] Error message when inserting function
    By Ajay in forum Excel General
    Replies: 0
    Last Post: 04-18-2005, 12:06 PM

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