Microsoft Office Forums


Reply
Thread Tools Display Modes

XL Sheet Display

 
 
someone
Guest
Posts: n/a

 
      03-10-2010, 05:45 AM
Hi,
I am using Excel 2003.
For some sheets I do not want the Row & Column Headers showing, so in
Tools > Options > View then in the "Window options" I uncheck the box "Row
& Column headers". By doing this I can set each sheet individually. Some
have the headers showing others not.
What I want to do is a similar thing for the "Horizontal scroll bar" and
also the "Vertical scroll bar" settings. However when I uncheck these boxes,
the scroll bar for ALL sheets is not shown. I cannot set each sheet
individually, ie some showing and some not showing the scroll bars.
Can what I am attempting to do actually be done? Is it a feature of
Excel 2003 that this is the way it is? Is there anything else that I can do?
Any help or suggestions will be very much appreciated.
Thanks.
Brian.

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a

 
      03-10-2010, 12:57 PM
You could have a sheet_activate macro to hide and then unhide on deactivate

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"someone" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I am using Excel 2003.
> For some sheets I do not want the Row & Column Headers showing, so in
> Tools > Options > View then in the "Window options" I uncheck the box
> "Row & Column headers". By doing this I can set each sheet individually.
> Some have the headers showing others not.
> What I want to do is a similar thing for the "Horizontal scroll bar"
> and also the "Vertical scroll bar" settings. However when I uncheck these
> boxes, the scroll bar for ALL sheets is not shown. I cannot set each sheet
> individually, ie some showing and some not showing the scroll bars.
> Can what I am attempting to do actually be done? Is it a feature of
> Excel 2003 that this is the way it is? Is there anything else that I can
> do?
> Any help or suggestions will be very much appreciated.
> Thanks.
> Brian.


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a

 
      03-10-2010, 01:01 PM
You could use a couple of event macros. You'd want them to check when you
changed sheets--or when you changed workbooks.

If you want to try, this would go in the ThisWorkbook module:

Option Explicit
Dim SheetNames As Variant
Private Function OnSheetNamesList(ShtName As String) As Boolean

Dim res As Variant

If IsArray(SheetNames) = False Then
Call SetArray
End If

res = Application.Match(ActiveSheet.Name, SheetNames, 0)

OnSheetNamesList = CBool(IsNumeric(res))

End Function
Private Sub Workbook_Activate()
Call DoTheWork _
(ShouldBeVisible:=OnSheetNamesList(ShtName:=Active Sheet.Name))
End Sub
Private Sub Workbook_Deactivate()
Call DoTheWork(ShouldBeVisible:=True)
End Sub
Private Sub Workbook_Open()
If IsArray(SheetNames) = False Then
Call SetArray
End If
End Sub
Private Sub SetArray()
'list of names that show the scrollbars
SheetNames = Array("sheet1", "sheet3", "sheet5")
End Sub
Private Sub DoTheWork(ShouldBeVisible As Boolean)
With ActiveWindow
.DisplayHorizontalScrollBar = ShouldBeVisible
.DisplayVerticalScrollBar = ShouldBeVisible
End With
End Sub
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Call DoTheWork(ShouldBeVisible:=OnSheetNamesList(ShtNam e:=Sh.Name))
End Sub

If you're new to macros:

Debra Dalgleish has some notes how to implement macros here:
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

someone wrote:
>
> Hi,
> I am using Excel 2003.
> For some sheets I do not want the Row & Column Headers showing, so in
> Tools > Options > View then in the "Window options" I uncheck the box "Row
> & Column headers". By doing this I can set each sheet individually. Some
> have the headers showing others not.
> What I want to do is a similar thing for the "Horizontal scroll bar" and
> also the "Vertical scroll bar" settings. However when I uncheck these boxes,
> the scroll bar for ALL sheets is not shown. I cannot set each sheet
> individually, ie some showing and some not showing the scroll bars.
> Can what I am attempting to do actually be done? Is it a feature of
> Excel 2003 that this is the way it is? Is there anything else that I can do?
> Any help or suggestions will be very much appreciated.
> Thanks.
> Brian.


--

Dave Peterson
 
Reply With Quote
 
someone
Guest
Posts: n/a

 
      03-10-2010, 09:51 PM
Hi Don & Dave,
Thank you for your suggestion.
I have done some work with macros but this one is advanced for me. It
might take me a while to get it right but I will let you know what success I
have.
Your help is very much appreciated. Thank you again.
Brian.


"someone" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I am using Excel 2003.
> For some sheets I do not want the Row & Column Headers showing, so in
> Tools > Options > View then in the "Window options" I uncheck the box
> "Row & Column headers". By doing this I can set each sheet individually.
> Some have the headers showing others not.
> What I want to do is a similar thing for the "Horizontal scroll bar"
> and also the "Vertical scroll bar" settings. However when I uncheck these
> boxes, the scroll bar for ALL sheets is not shown. I cannot set each sheet
> individually, ie some showing and some not showing the scroll bars.
> Can what I am attempting to do actually be done? Is it a feature of
> Excel 2003 that this is the way it is? Is there anything else that I can
> do?
> Any help or suggestions will be very much appreciated.
> Thanks.
> Brian.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Cheque of Different sizes from the same Worksheet kanwalno1@gmail.com Excel Newsgroup 9 06-01-2010 04:23 AM
Display of the database forest8 Access Newsgroup 3 03-17-2010 12:35 PM
sorting protected sheet not working Keith G Hicks Excel Newsgroup 6 03-04-2010 02:14 AM
Pub 2007: Not enough multiple copies per sheet km2002 Publisher 0 03-01-2010 06:11 AM
Showing the display text from a drop down in an expression box Alex Angas Infopath Newsgroup 1 02-24-2010 12:38 PM



All times are GMT. The time now is 02:20 PM.