+ Reply to Thread
Results 1 to 7 of 7

vba popup message code

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    vba popup message code

    Hi,

    Can someone please advise me how I can have a simple popup message box that displays a range of cells (or list range). This is to be used as a reminder so for example I have an option - Top 10 product Yes | No then next to it I would like a hyperlink or similar that pops up with the list of the top 10 products as a reminder.

    Any help would be greatly appreciated, thank you in advance.

    JP

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Where is this list stored?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368
    The list is stored on another sheet, the list is named top10

    Thank you

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can do this with a VBA userform & a listbox. Have you used VBA before?

  5. #5
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368
    Hi,

    I have used vba before and have done a basic userform for adding data but never for extracting data can you guide me through it? Or point me in the right direction?

    Thank you in advance,

    JP

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Use the Insert menu of the VB Editor to add a userform. Then add a Listbox from the Toolbox to he userform.
    Populate he Listbox by using the named range and the userform's initialize event

    Please Login or Register  to view this content.
    You need to then decide how you want to load the form

  7. #7
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368
    Hi,

    Thank you for the quick reply. I would like to call it using a button or a link can you advise how you call Private Subs?

    Thank you again,

    JP

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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