+ Reply to Thread
Results 1 to 9 of 9

Clickable annual wheel

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    DK
    MS-Off Ver
    Excel 365
    Posts
    19

    Clickable annual wheel

    Hi,

    I'm currently trying to set up a clickable 'annual wheel' menu selection of month/year, which is made of 12 month and 4 year segments (see attached, picture/shapes are currently ungrouped)

    I would like to achieve that when any of the segments are clicked that it changes the cell value for months in H1 and for years in H2, which are then the basis for further processing.

    Any guidance is very welcome.

    Cheers,
    Daniel
    Attached Files Attached Files
    Last edited by daredan; 08-29-2014 at 06:22 AM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Clickable annual wheel

    Hi daredan,

    I love your wheel. Try the attached file. However, I didn't implement the year part, because I didn't see any Year segments.

    This is how I approached your problem:
    a. Macro 'RenameAciveShape()' was used to rename the segments to 'Jan' thru 'Dec'.
    b. Macro 'AssignOnActionTextToWheelSegments()' was used to assign Macro 'WheelEventHandler()' as the Event Handler for all Shapes on the Sheet.
    c. Macro 'WheelEventHandler()' processes CLICKS on the Wheel and puts the month in cell 'H1'.

    Code follows (ordinary code module such as 'Module1'):
    Please Login or Register  to view this content.
    Lewis
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-05-2013
    Location
    DK
    MS-Off Ver
    Excel 365
    Posts
    19

    Re: Clickable annual wheel

    Thanks a stack Lewis. I'll start implementing and understanding your approach and will save a version including years when done. I should be able to include this part as it'll be hardly any different from your solution for the months.
    /Daniel

  4. #4
    Registered User
    Join Date
    11-05-2013
    Location
    DK
    MS-Off Ver
    Excel 365
    Posts
    19

    Re: Clickable annual wheel

    Hi again,

    I hate to admit it, but although I consider myself having at least some basic VBA knowledge this seems to exceed my current horizon (I'll have to work on that).

    I tried to incorporate your macro with the revised annual wheel (months and years) in the file, where I intend to use it, but failed both to activate your code so that the month would be updated (now in B2) and also to include the year as it's not just some simple copying of the monthly code. Also when I try to initially run the RenameActiveShape it only returns with a Runtime 438 'Object doesn't support this property or method'.

    So I have included now the whole thing, where the wheel is supposed to work in, which is a recurring task list plus a Gantt chart visualisation. For the latter I have another problem, but that's already posted in the chart section of this forum.

    Sorry for the troubles - really appreciate that it's generally working fine

    /Daniel
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-05-2013
    Location
    DK
    MS-Off Ver
    Excel 365
    Posts
    19

    Thumbs up Re: Clickable annual wheel

    Good day,
    I've solved the issue by using a simple macro per shape. Works like a charm as well.
    Please Login or Register  to view this content.
    Admit it could potentially be more fancy, but does what it's supposed to do.

    Cheers,
    Daniel

  6. #6
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Clickable annual wheel

    Hi Daniel,

    I want to apologize for two things:
    a. The problems you were having.
    b. I missed your second post from yesterday at 9:57AM

    I like your solution much better than mine. I was trying to avoid extra code, but cause unintended consequences instead.

    For the future you can simplify things a little. You can replace
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    I wouldn't change anything now, because what you have works.

    Lewis

  7. #7
    Registered User
    Join Date
    11-05-2013
    Location
    DK
    MS-Off Ver
    Excel 365
    Posts
    19

    Re: Clickable annual wheel

    No worries Lewis. Without your help I might still be stuck, so thanks for your guidance.
    Cheers,
    Daniel

  8. #8
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Clickable annual wheel

    some changes to
    1) Sub WheelEventHandler
    2) shapes name
    3) formulas in cells

    AnnalWheel_DRAFT_V2.xlsm

  9. #9
    Registered User
    Join Date
    11-05-2013
    Location
    DK
    MS-Off Ver
    Excel 365
    Posts
    19

    Re: Clickable annual wheel

    Interesting approach on the formula. Thanks.
    Also like the compressed macro.

+ 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. Cells not clickable
    By rageshprasad in forum Excel General
    Replies: 5
    Last Post: 05-15-2014, 07:52 PM
  2. Replies: 1
    Last Post: 05-07-2014, 06:19 PM
  3. Clickable Counter
    By samwright in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2013, 09:49 AM
  4. Calculating Average Annual Returns from a Series of Annual Returns
    By Bruinsfan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2012, 09:50 PM
  5. [SOLVED] clickable buttons
    By Murph in forum Excel General
    Replies: 2
    Last Post: 06-22-2005, 03:05 PM

Tags for this Thread

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