+ Reply to Thread
Results 1 to 2 of 2

Help hiding 5 different shapes with same button

  1. #1
    Registered User
    Join Date
    03-06-2018
    Location
    MX
    MS-Off Ver
    2010
    Posts
    17

    Question Help hiding 5 different shapes with same button

    Hello,

    I am trying to hide several shapes with the same button. Those shapes represent the number of cards that are available when selecting a day of the month.

    Let's say for the sake of example and simplicity, that i have a button to open a form to schedule an event. One person selects August 20th and picks "BANANA", then another person also selects August 20th and picks "APPLE", and yet another person selects August 20th and picks "ORANGE".

    As you can see, three people selected the date August 20th. So when i go to the calendar and select the cell with August 20th, three shapes appear indicating what corresponds to each one (in this case, BANANA, APPLE, ORANGE - one for each shape, since each is an aactual event).

    I can make the Three cards appear (up to five). If there are five, I make five appear, if there is only one event then just one card appears.


    But what I would like, is that when I select August 20th and there are three events (BANANA, APPLE, ORANGE), instead of the three shapes appearing at the same time, I would like to have a NEXT button. So I created a shape as a triangle to make it look like a next button). With this setup, I can only toggle between only two shapes, but not up to five.

    I get the information from an INDEX into a table. let's say that it looks for the date in the table that feeds from the userform, and it gives me let's say in A1 BANANA, then in A2 APPLE, and in A3, ORANGE. If only one event is that date, it only fills A1, or if there are 5 events, it fills A1, A2, A3, A4, A5.

    With this logic, I assumed it could be as simple as just hide the shapes depending on the cells A1:A5 being blank or not. If I have three events, then A1, A2, A3, will NOT be blank, but A4 and A5 will.

    But the problem is that it only obeys to ONE instruction, and it doesn't cycle between the shapes! i want to have Shape1 show, then click the "next" button and hide Shape1 and show Shape2, then hide Shape2 and show Shape3, and cycle or just hide the next button.

    TL:DR
    I would just like to be able to hide an show shapes cycling between each other with the same button (shape1 hides, shape2 shows, then shape2 hides, shape3 shows, shape3 hides, shape4 shows, etc.)

    Thank you very much!

    I appreaciate all your time and support!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Help hiding 5 different shapes with same button

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. [SOLVED] Shapes changing size and position when hiding columns
    By trimmjens in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2015, 11:49 AM
  2. showing/hiding shapes with chosen value
    By mlaskowski in forum Excel General
    Replies: 3
    Last Post: 09-06-2014, 11:28 AM
  3. [SOLVED] How to remove or hiding sizing handles in excel shapes
    By hmaleki in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2013, 07:01 AM
  4. [SOLVED] Hiding Shapes According to Values in a Cell
    By Dalton626 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2013, 04:20 PM
  5. [SOLVED] Hiding Shapes
    By Dalton626 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2013, 02:07 AM
  6. Hiding columns in excel without hiding form button
    By rename in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2013, 01:38 AM
  7. Hiding option button (radio button) when hiding row
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-13-2012, 07:19 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