View Full Version : [SOLVED:] Scroll Bars
Paleo
02-01-2005, 12:37 PM
Is there a way to hide the scroll bars? Vertical and horizontal?
Ken Puls
02-01-2005, 12:44 PM
Hi Carlos,
Check Tools|OPtions. Recording a macro while unselecting. :*)
With ActiveWindow
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
End With
Ken Puls
02-01-2005, 12:47 PM
And by the way... same caveats apply as here (http://www.vbaexpress.com/forum/showthread.php?t=1733) when locking down the user interface.
Cheers,
johnske
02-01-2005, 03:08 PM
Hi Paleo,
You can also do vertical and horizontal in one go with
Application.DisplayScrollBars = False
John
Ken Puls
02-01-2005, 03:19 PM
Nice! Thanks John!
Paleo
02-01-2005, 04:04 PM
Hi guys thanks. I agree with you Ken but I was asked to do that and simply didnt know how.
johnske
02-01-2005, 05:46 PM
Just remember to always leave an escape route when playing around with the user interface...
I once played around with it and completely forgot that what I was doing affects ALL the application and not just the active book, and ended up with just a blank white worksheet that had a narrow border and nothing else - no tools, no VBE window (so no way to get back into the code-pane and undo it) and every book I opened was exactly the same...:banghead: :banghead: :banghead:
Took me a helluva while to work out how to get back in :rotlaugh:
(You only make that mistake once though) :devil:
Paleo
02-01-2005, 05:49 PM
I have undone all at the event workbook_beforeclose, but thanks anyway.
johnske
02-01-2005, 06:42 PM
I have undone all at the event workbook_beforeclose, but thanks anyway.Good to see, but for the benefit of visitors or any others reading this (or the other allied thread) that may have accidentally locked themselves out - the shortcut to the VBE window is Alt + F11
Paleo
02-01-2005, 07:12 PM
Well anyway it sets properties back when the workbook is closed, so they just need to do Ctrl + F4.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.