+ Reply to Thread
Results 1 to 7 of 7

Creating a pop-up timeline

  1. #1
    Registered User
    Join Date
    03-02-2013
    Location
    Drunen, Netherlands
    MS-Off Ver
    Excel 2007, 2010
    Posts
    23

    Creating a pop-up timeline

    Hello All,

    Since i discovered the magic world of VBA in Excel i wanti to use it for more and more possibilities. What i want to do now is creating a pop-up timeline in an excel sheet and my question is, is this possible and how can i do this the best? So what i got is a normal timeline with the month data in a row (march - arpil - may and so on) and the activity in a column. The activity duration is visible with different (filled cell) colors.

    What i want to crate is a textline or button that can be pressed for example you got action 1, action 2, action 3 and a timeline that mathes the action pops-up.
    I already experimented a bit with an userform (see attached document) but the problem with this is that it doesnt seem to detect colors.

    Also dont mind the programming in the attached excel sheet since i only wanted to program action 1 but it also shows part of the other timelines.

    Thx in advance!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Creating a pop-up timeline

    Click Action 1 to see 2 suggestions. Map1test.xlsm

    Regards
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    03-02-2013
    Location
    Drunen, Netherlands
    MS-Off Ver
    Excel 2007, 2010
    Posts
    23

    Re: Creating a pop-up timeline

    Quote Originally Posted by tehneXus View Post
    Click Action 1 to see 2 suggestions. Attachment 231341

    Regards
    Thx alot tehneXus! Just got a few questions. First of all what do the 'lvl1' and 'listform' in the useform and programing add? i just want to show the 'normal' color timeline, which can also be showed without those 2.

    Second i want to know how i can show the other timeline's with new userforms. Which lines need to be adjusted? I try'd to adjust
    Please Login or Register  to view this content.
    but this doesnt see to work, i still shows the first timeline and not the timeline that starts in row 13.

    Thx in advance and thank you for getting me this far!

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Creating a pop-up timeline

    Hi,

    the ListBox is the one that was in your file already, i just left it there, the ListView "lv1" is the first example, if you don't need them -> delete.

    About listbox/view: you cannot change the background color of a single item in VBA !

    The 2nd solution is like a puzzle with labels created at runtime in loops.

    Please download the latest version: Listbox and view are removed, if you want to change the range adapt the start row and start column at the beginning of the code.
    Map1test_v2.0.xlsm

    Regards

  5. #5
    Registered User
    Join Date
    03-02-2013
    Location
    Drunen, Netherlands
    MS-Off Ver
    Excel 2007, 2010
    Posts
    23

    Re: Creating a pop-up timeline

    Ah exactly what i assumed with the listbox and lv1 Thx alot for the help your really to awesome, cheers mate!

  6. #6
    Registered User
    Join Date
    03-02-2013
    Location
    Drunen, Netherlands
    MS-Off Ver
    Excel 2007, 2010
    Posts
    23

    Re: Creating a pop-up timeline

    Hello all, i stumbled upon 1 (last) little problem. In the posted example we were working out of 1 active sheet, the problem is that in my worksheet i got the timeline in sheet 3 and the action button in sheet 1. People cant see sheet 3 so i need to call the code and the timeline (that stands in sheet 3) in sheet 1 with the button. In the code i saw that 'active worksheet' was used which causes, when im in sheet 1, the timeline not to pick up the good timeline out of sheet 3. I try'd to adjust the active worksheet to sheet 3 but it doesnt seem to work, could anyone help me with this last little problem? Thx in advance!

    The document: Testmap.xlsm

  7. #7
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Creating a pop-up timeline

    Hi,

    try this one: Timelines_Labels.xlsm

    If the worksheet name with the timelines will change adapt this in the code, other things to adapt are commented in the code.

    Regards

+ 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