Scroll bar

Wil Moosa

Well-known Member
Joined
Aug 11, 2002
Messages
893
My present workbook I am working on removes when opening all the controll bars and everything. This is as intended.

For one particular sheet however I need the scrollbar (and only the scroll bar).

What is the code for showing the scroll bar whenever I open this particular sheet and for hiding the scroll bar whenever I close the sheet?

Thanks again
This message was edited by Wil Moosa on 2002-11-17 13:25
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi;

You may try this for "Sheet2"; (place the code to ThisWorkbook part of the VBA)

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Dim data As Boolean
data = False
If Sh.Name = "Sheet2" Then data = True
ActiveWindow.DisplayHorizontalScrollBar = data
ActiveWindow.DisplayVerticalScrollBar = data
End Sub
This message was edited by Raider on 2002-11-17 13:47
 
Upvote 0
It took me some time to figure it out and to get the train running but finally it did.

Çok tesekkür ederim... (don't think too much of it as I got it from the Lonely Planet).
This message was edited by Wil Moosa on 2002-11-17 19:05
 
Upvote 0
sorry for the missing explanation part but, it's nice to hear that the train is running...
 
Upvote 0

Forum statistics

Threads
1,215,883
Messages
6,127,555
Members
449,385
Latest member
KMGLarson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top