+ Reply to Thread
Results 1 to 12 of 12

only show i sheet at anyone time

Hybrid View

  1. #1
    Registered User
    Join Date
    01-26-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    93

    only show i sheet at anyone time

    Can the workbook which has 5 sheets only display 1 sheet at any one time.There is a commandbutton on each sheet....so the sheet sequence will be sheet 1 then 2 then 3 then 4 then 5 and back to 1 and through the same number sequence......

    Can the tabs also be invisible/not viewable....There only will be 1 sheet visible at anyone time and to display the next sheet in sequence a commandbutton titled "NEXT PAGE" needs to be selected

    Thank you

    JS
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: only show i sheet at anyone time

    See the attached updated workbook


    Regards, TMS
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-26-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: only show i sheet at anyone time

    Thanks Trevor
    Excellent..Would it be possible to show no sheet Tabs?

    Also the sheets keep jumping up slightly when the commandbutton is selected.Is it possible so the sheets remain static in position when selected

    Thanks again

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: only show i sheet at anyone time

    Would it be possible to show no sheet Tabs?
    That's an Excel workbook option. You need to go into the Excel options to set it. Not sure how you navigate there in 2013. How will people know which sheet they are on?

    the sheets keep jumping up slightly
    That doesn't happen for me. I've switched off screenupdating in the attached updated version. See if that makes a difference.


    Regards, TMS
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-26-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: only show i sheet at anyone time

    Thanks trevor...works great

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: only show i sheet at anyone time

    You're welcome.

  7. #7
    Registered User
    Join Date
    01-26-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: only show i sheet at anyone time

    Hi

    I added a new button called "Last Page"....can it work the same Next Page except in reverse

    Thanks
    Attached Files Attached Files

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: only show i sheet at anyone time

    Yes

    ' Module: Sheet1 (ONE) Class Module
    
    Option Explicit
    
    Private Sub CommandButton1_Click()
    
    sShowSheet "TWO"
    
    End Sub
    
    Private Sub CommandButton6_Click()
    
    sShowSheet "FIVE"
    
    End Sub

    Ensure you are in Design Mode then click on the button to select it. Change the name from CommandButton1 to CommandButton6 in order to differentiate it. Then use the code above. The module for selecting and hiding sheets doesn't change. In reality, each sheet can have CommandButton1 and CommandButton2 but, personally, I think that can be confusing and could mean you'd change the code in the wrong subroutine. But, personal taste.

    If you want to do the same as the Next button, but in reverse, wouldn't that mean it's a Previous button, rather than Last button?

    It's common to see First, Next, Previous and Last for navigation. First would be disabled (greyed out or not visible) on the first sheet. Similarly the Last button.


    Regards, TMS

  9. #9
    Registered User
    Join Date
    01-26-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: only show i sheet at anyone time

    Hi Trevor

    Thanks...having trouble here...as you can probably see a am new to VBA....would you be able to post a filee with the VBA code inserted.I can then study

    Thanks again

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: only show i sheet at anyone time

    See attached workbook.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-26-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: only show i sheet at anyone time

    Thank you ....appreciated

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: only show i sheet at anyone time

    You're welcome.

    Thinking about it, the Next and Previous buttons probably should swap positions but, other than that, it's a working example.

    What it's a working example of, I have no idea

    Regards, TMS

+ 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] Show the date and time in a specific cell of last time we run a macro
    By dragon_m0nsta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2012, 04:49 AM
  2. Replies: 6
    Last Post: 11-29-2011, 09:12 AM
  3. Show Data Lables show Amount & Persentage at the same time
    By ComcoDG in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-29-2008, 04:54 AM
  4. Show timesheet time in and out in regular time versus military tim
    By John in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-11-2005, 01:20 AM
  5. Time Sheet to show hours owed
    By Carolan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-16-2005, 11: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