+ Reply to Thread
Results 1 to 10 of 10

problem with showing on/off tabs with shapes

  1. #1
    Registered User
    Join Date
    04-24-2020
    Location
    TEL AVIV
    MS-Off Ver
    365
    Posts
    12

    problem with showing on/off tabs with shapes

    hello
    i am tring to create a smart sheet with option to chose a tab that will show a specific "window".
    i want that each time that I push a tab it will change color as well as showing the specific "window".
    I have 10 tabs
    I messed up with the code
    I attached the excel worksheet , and the code .

    thanks a head for your help.
    Attached Files Attached Files
    Last edited by TAPAS158; 04-26-2020 at 05:58 PM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: problem with showing on/off tabs with shapes

    Hi there,

    Take a look at the attached version (deleted - see P.S.) of your workbook and see if it does what you need. It uses the following code:

    Please Login or Register  to view this content.

    The main worksheet ("Buttons") contains the ten selection buttons shown in your original workbook. There is just a single (i.e. not ten) "window". This window displays the texts appropriate to the current selection, and takes these texts from a table on the "Texts" worksheet - this approach probably makes the workbook easier to maintain.

    Each of the ten selection buttons calls the SAME routine ("GetSelection").


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M



    P.S. The wrong version of the workbook was attached and has been deleted. The correct version is attached to post #4.
    Last edited by Greg M; 04-26-2020 at 08:07 AM. Reason: P. S. added

  3. #3
    Registered User
    Join Date
    04-24-2020
    Location
    TEL AVIV
    MS-Off Ver
    365
    Posts
    12

    Re: problem with showing on/off tabs with shapes

    thanks for the responce
    i am tring to run it but it still doesn't want to work
    I attached the pic I get . the error I get is : Compile ERROR: variable not defined


    thank you so much for the help
    Attached Images Attached Images

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: problem with showing on/off tabs with shapes

    Hi again,

    Sorry, my BAD!!!

    I attached the wrong (non-macro-enabled!) version of the workbook.

    See if the attached version works better.

    Hope this helps - as before, please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-24-2020
    Location
    TEL AVIV
    MS-Off Ver
    365
    Posts
    12

    Re: problem with showing on/off tabs with shapes

    so first of all thank you so much for your help, It works just great.
    and i just wanted to say that for many years i was using excel only for simple info and data collecting program with out trying do more with it , and it is just amazing .

    thanks again

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: problem with showing on/off tabs with shapes

    Hi again,

    Many thanks for your feedback.

    and it is just amazing .
    It certainly is! I have been working with Excel for 30+ years, and I am still discovering new ways to use it

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

  7. #7
    Registered User
    Join Date
    04-24-2020
    Location
    TEL AVIV
    MS-Off Ver
    365
    Posts
    12

    Re: problem with showing on/off tabs with shapes

    Hello ,
    so i started adding links to each shape, and a new problem came up .
    it is impossible to add links to each shape ? i mean I am changing the tabs moving between them but
    I cant add new link as the one from the first tab is already there?

    is it even possible?

  8. #8
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: problem with showing on/off tabs with shapes

    Hi again,

    so i started adding links to each shape, and a new problem came up

    Are you talking about hyperlinks? That may not be the best approach to use.

    Do you want each of the various "text shapes" to bring you to an appropriate worksheet? If so, please post a list of the worksheet names and their associated "texts" (cartilage, humerus shaft fractures etc.) and I'll see what I can do - if you want to post only a list of some of the worksheets and "texts" I'll try to set up the workbook so that you can add the remaining information yourself.

    Regards,

    Greg M

  9. #9
    Registered User
    Join Date
    04-24-2020
    Location
    TEL AVIV
    MS-Off Ver
    365
    Posts
    12

    Re: problem with showing on/off tabs with shapes

    Hello,
    Yes, I am trying to add a hyperlink to each "text shape."
    I am adding a link to a web page (a google drive folder).

    I attached the original file and a second file with examples for the links to the given "text shape," I have all the links. Still, I can/ want to learn how to add it appropriately.

    Thank you so much ahead.
    Last edited by TAPAS158; 05-01-2020 at 04:56 PM.

  10. #10
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: problem with showing on/off tabs with shapes

    Hi again,

    Take a look at the attached workbook and see if it does what you need.

    The original "HighlightButton" and "ResetButtons" routines have not been changed.

    The remainder of the code has been rewritten as follows:

    Please Login or Register  to view this content.

    A new table (M1:V14) has been added to the "Texts" worksheet. This table contains the texts of the various webpage addresses that you want to associate with the "menu buttons". I've included the addresses you sent me, so you just need to add the remaining addresses in the appropriate cells of the new table.


    Hope this helps - as before, please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

+ 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. Chart Elements From Different Tab Showing Up on Other Tabs
    By digitalgravity in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-20-2019, 05:22 AM
  2. Seet tabs not showing
    By GGurrola in forum Excel General
    Replies: 11
    Last Post: 01-13-2019, 10:33 PM
  3. showing/hiding shapes with chosen value
    By mlaskowski in forum Excel General
    Replies: 3
    Last Post: 09-06-2014, 11:28 AM
  4. Mutiple tabs showing same data until F9
    By Mrid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2011, 06:05 AM
  5. Tabs/sheets not showing
    By tiggy00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2010, 07:27 AM
  6. showing all tabs at bottom of page
    By derwood in forum Excel General
    Replies: 2
    Last Post: 11-13-2005, 03:25 PM
  7. Sheet tabs not showing - 2003
    By Gordon in forum Excel General
    Replies: 5
    Last Post: 07-08-2005, 09:05 AM

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