Leftfield question re worksheet security
- garry cook
- Community Contributor
- Posts: 209
- Joined: Thu May 22, 2008 7:45 am
- OLAP Product: TM1
- Version: Various
- Excel Version: Various
Leftfield question re worksheet security
Well, I've tried various Excel VBA forums to no avail and figured what the hell, I'll ask round here incase anyone's come across this before and found a solution seeing as TM1 is so Excel heavy.
Essentially, on a worksheet which is security locked (as in normal Tools/Protection), if the "allow users to select locked cells" is unticked when setting (ie, users can only select unlocked cells), suddenly Ctrl & PgUp/PgDown stops functioning correctly and suddenly works in exact same manner as Alt & PgUp/PgDn - ie, rather than moving tabs in the workbook, it shoots off to the right/left of the current worksheet. Works fine if you allow locked cells to be selected (but obviously not changeable).
Anyone come across this before and have a way round it? Driving me nuts on a multitab file not being able to move tabs with Ctrl PgUp/Dn when the security gets set.
TIA
Essentially, on a worksheet which is security locked (as in normal Tools/Protection), if the "allow users to select locked cells" is unticked when setting (ie, users can only select unlocked cells), suddenly Ctrl & PgUp/PgDown stops functioning correctly and suddenly works in exact same manner as Alt & PgUp/PgDn - ie, rather than moving tabs in the workbook, it shoots off to the right/left of the current worksheet. Works fine if you allow locked cells to be selected (but obviously not changeable).
Anyone come across this before and have a way round it? Driving me nuts on a multitab file not being able to move tabs with Ctrl PgUp/Dn when the security gets set.
TIA
-
- Site Admin
- Posts: 6645
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Leftfield question re worksheet security
Sorry Garry, it's a known bug that's persisted over many versions. I know that Ron De Bruin (one of the survivors in the Excel newsgroups that I used to inhabit back when I had the time, and which I still lurk in from time to time) has reported it as a bug on a few occasions. However obviously MS feels that designing new user interfaces which destroy years of accumulated knowledge and skills takes priority over fixing broken functionality.garry cook wrote:Well, I've tried various Excel VBA forums to no avail and figured what the hell, I'll ask round here incase anyone's come across this before and found a solution seeing as TM1 is so Excel heavy.
Essentially, on a worksheet which is security locked (as in normal Tools/Protection), if the "allow users to select locked cells" is unticked when setting (ie, users can only select unlocked cells), suddenly Ctrl & PgUp/PgDown stops functioning correctly and suddenly works in exact same manner as Alt & PgUp/PgDn - ie, rather than moving tabs in the workbook, it shoots off to the right/left of the current worksheet. Works fine if you allow locked cells to be selected (but obviously not changeable).
Anyone come across this before and have a way round it? Driving me nuts on a multitab file not being able to move tabs with Ctrl PgUp/Dn when the security gets set.
(And yes, the bug DOES still exist in Excel 2007. The big advantage of using 2007 though is that it takes you so naffing long to find where you protect the sheet (it's on the Review tab, by the way... I mean, "Review", naturally, where else would it be?) that you give up in frustration and simply don't bother protecting the sheet. See? That's MS looking out for you.)
Your only option is to have both select locked cells and select unlocked cells on, or both off. Or to just live with the difference in functionality, annoying as it is.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- paulsimon
- MVP
- Posts: 808
- Joined: Sat Sep 03, 2011 11:10 pm
- OLAP Product: TM1
- Version: PA 2.0.5
- Excel Version: 2016
- Contact:
Re: Leftfield question re worksheet security
Hi Garry
I can't say that I ever use that keyboard shortcut. However, one possible work around might be to use OnKeys to intercept that key stroke and then write some VB to make it do what you want it to do.
Regards
Paul Simon
I can't say that I ever use that keyboard shortcut. However, one possible work around might be to use OnKeys to intercept that key stroke and then write some VB to make it do what you want it to do.
Regards
Paul Simon
- garry cook
- Community Contributor
- Posts: 209
- Joined: Thu May 22, 2008 7:45 am
- OLAP Product: TM1
- Version: Various
- Excel Version: Various
Re: Leftfield question re worksheet security
Thanks chaps, OnKeys intercept works perfectly well (except for having to check what tab you're in before doing .previous/.next.select other wise get error when you try to tab off the end of the file).
Btw Alan, 873 posts already??? I thought that conquering Rome / Medieval Europe / building an empire (with boats!) would have stopped you getting that high a post count even if your job didn't
Btw Alan, 873 posts already??? I thought that conquering Rome / Medieval Europe / building an empire (with boats!) would have stopped you getting that high a post count even if your job didn't

-
- Site Admin
- Posts: 6645
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Leftfield question re worksheet security
Yes, good call by Paul there. I should have thought of that; it probably didn't occur to me since I've never used the "one on / one off" combination when locking.garry cook wrote:Thanks chaps, OnKeys intercept works perfectly well
Or just check that the sheet that you're going to is in bounds.garry cook wrote:(except for having to check what tab you're in before doing .previous/.next.select other wise get error when you try to tab off the end of the file).
Code: Select all
Sub SwitchSheetsDown()
If ActiveSheet.Index < ThisWorkbook.Sheets.Count Then
ThisWorkbook.Sheets(ActiveSheet.Index + 1).Activate
End If
End Sub
Sub SwitchSheetsUp()
If ActiveSheet.Index > 1 Then
ThisWorkbook.Sheets(ActiveSheet.Index - 1).Activate
End If
End Sub
I have learned this from my quest for global domination; the ability to multitask is a necessity. (Well, semi-global domination, my old buddy Vlad Putin wants a chunk as well. And we think so much alike that I just couldn't say no...)garry cook wrote:Btw Alan, 873 posts already??? I thought that conquering Rome / Medieval Europe / building an empire (with boats!) would have stopped you getting that high a post count even if your job didn't
But sadly old chap, with a mere 15 posts in our year and a bit of existence you really are letting the "Legends of The Old Applix Forum" side down quite badly. You'll never make the OLAP Allstars series of "Survivor" at this rate...
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- garry cook
- Community Contributor
- Posts: 209
- Joined: Thu May 22, 2008 7:45 am
- OLAP Product: TM1
- Version: Various
- Excel Version: Various
Re: Leftfield question re worksheet security
Ach, just cause I don't post doesn't mean I don't keep my eye on it. Too bloody busy these days to reply much and besides, you chaps are doing such a good job of helping folk out that I'm always too late to reply to much anyway.But sadly old chap, with a mere 15 posts in our year and a bit of existence you really are letting the "Legends of The Old Applix Forum" side down quite badly. You'll never make the OLAP Allstars series of "Survivor" at this rate...
Thanks for the code Cap'n Kirk, works a treat

- Steve Vincent
- Site Admin
- Posts: 1054
- Joined: Mon May 12, 2008 8:33 am
- OLAP Product: TM1
- Version: 10.2.2 FP1
- Excel Version: 2010
- Location: UK
Re: Leftfield question re worksheet security
So busy in fact, he's even working Saturdays 
Did find that same issue on one of my files but its not used enough for me to have tried finding a way around it. Would be useful to post the whole code in the useful tips section, i'm sure others will find it handy

Did find that same issue on one of my files but its not used enough for me to have tried finding a way around it. Would be useful to post the whole code in the useful tips section, i'm sure others will find it handy

If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
- John Hobson
- Site Admin
- Posts: 330
- Joined: Sun May 11, 2008 4:58 pm
- OLAP Product: Any
- Version: 1.0
- Excel Version: 2020
- Location: Lytham UK
- Contact:
Re: Leftfield question re worksheet security
While you're on can you have a word with the guys who sit at the front of your Eurofighter thingies and ask them to turn down the afterburners whilst they are flying over my house. I swear they make our foundations shake.Ach, just cause I don't post doesn't mean I don't keep my eye on it

John Hobson
The Planning Factory
The Planning Factory
- Steve Vincent
- Site Admin
- Posts: 1054
- Joined: Mon May 12, 2008 8:33 am
- OLAP Product: TM1
- Version: 10.2.2 FP1
- Excel Version: 2010
- Location: UK
Re: Leftfield question re worksheet security


If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
- John Hobson
- Site Admin
- Posts: 330
- Joined: Sun May 11, 2008 4:58 pm
- OLAP Product: Any
- Version: 1.0
- Excel Version: 2020
- Location: Lytham UK
- Contact:
Re: Leftfield question re worksheet security
My cat purses his lips when he hears the noise from the Eurofighter so it can be hard tell what direction he's facing in 

John Hobson
The Planning Factory
The Planning Factory