Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi.
I'm using excel 2003. When I open my workbook I have an auto_open routine that strips out all excel features such as row and column headings etc. However, Excel seems to have a mind of its own and when I click on sheet tabs to change sheet I see that the row and heading columns have reapered. Is there any code out there that will strip out what I want just by clicking the sheet tab. Thanks in advance. Gordon |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Row and column headings is a window setting, not a application level setting.
That means that you need to set it for each window as you go there. Place this code in Thisworkbook and you should be good to go... Private Sub Workbook_SheetActivate(ByVal Sh As Object) ActiveWindow.DisplayHeadings = False End Sub -- HTH... Jim Thomlinson "Gordon" wrote: Hi. I'm using excel 2003. When I open my workbook I have an auto_open routine that strips out all excel features such as row and column headings etc. However, Excel seems to have a mind of its own and when I click on sheet tabs to change sheet I see that the row and heading columns have reapered. Is there any code out there that will strip out what I want just by clicking the sheet tab. Thanks in advance. Gordon |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Gordon,
How about something like this... Private Sub Workbook_Open() Dim wks As Worksheet For Each wks In ThisWorkbook.Worksheets If wks.Visible Then wks.Activate With ActiveWindow .DisplayHeadings = False .DisplayHorizontalScrollBar = False .DisplayVerticalScrollBar = False End With End If Next wks End Sub HTH, NickH |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code Conflicts With Worksheet Change Code | Excel Programming | |||
Worksheet_Selection Change code will not allow cell contents to be copied and pasted onto the sheet it's running on | Excel Programming | |||
Change Listbox Sheet reorder code | Excel Programming | |||
Sheet Code Module: copying code to | Excel Programming | |||
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet | Excel Programming |