+ Reply to Thread
Results 1 to 8 of 8

Why do Sheet Tabs move to Right

  1. #1
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Why do Sheet Tabs move to Right

    In the attached workbook, the Sheet 1 and Sheet 5 tabs show on the left, while on Sheets 2 and 3 they show on the right.

    What is happening here? Shortcut Key? How does this happen?
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Why do Sheet Tabs move to Right

    not in my excel !
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Why do Sheet Tabs move to Right

    Hi

    Under the advanced options, for the two central sheets, the display option for the sheet "Show sheet right-to-left" has been ticked.
    Hope that helps,

    Colin

    RAD Excel Blog

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Why do Sheet Tabs move to Right

    thats why its not in my excel 97 then lol

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Why do Sheet Tabs move to Right

    Hey Colin,

    You are absolutely correct!! I never knew!!

    My thinking was the Excel Options were for the whole workbook. Now I see changes can be made to individual worksheets too.

    I have to create another box in my mind dealing with worksheet tabs.

    For the add-on question,

    I've been telling people that the Worksheet(1).Name will be the worksheet that is the first one on the left. This is wrong if they set Tabs to the Right. PLEASE tell me that tabs Right To Left isn't the default for Arabic Language!!

    I just tested it and if you set the Tabs to the right, Worksheets(1) will be on the right not the left. I guess I need to be more specific when telling Worksheet(1) is on the left.
    Last edited by MarvinP; 04-10-2011 at 01:16 PM.

  6. #6
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Why do Sheet Tabs move to Right

    Yep, Worksheets(1).Name returns the name first worksheet in the Worksheets collection (the collection is 1-based). That worksheet might even be hidden, in which case it won't be the first sheet on the right or on the left!

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Why do Sheet Tabs move to Right

    Hey Colin,

    I totally get what you are saying but computers just don't get it. They are so literal. When you said:
    That worksheet might even be hidden, in which case it won't be the first sheet on the right or on the left!
    that may have been a little wrong.

    It will still be indexed as number 1 and we can get to it by WorkSheets(1).Name but it won't be visible.

    I guess this is the problem with Object Oriented Programming Languages. Visible is different than Exists or Indexed.

    Programming also becomes a problem as Worksheet(1).Select comes back an error if it is hidden, but works fine if you don't try to to select it.

    Not only do we need to know the names of all these objects in Excel we also need to know if they are visible or not to see if our code will work. I've got the same problem with PivotTable filters, in you can't hide all of them or the code complains and gives back an error. I guess we are used to this, like #Div/0! errors.

    Thanks again for the Right to Left Sheet info.

  8. #8
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Why do Sheet Tabs move to Right

    Hi,
    that may have been a little wrong. It will still be indexed as number 1 and we can get to it by WorkSheets(1).Name but it won't be visible.
    That was exactly my point?!

+ 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