Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Hide Row and Column Headings

The following hides the Row and Column Headings for the activesheet. How can
it be adjusted to apply to the whole workbook

Sub HideRowAndColHeadings()
Windows("TestBook.xls").DisplayHeadings = False
End Sub

Thanks Sandy


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Hide Row and Column Headings

Sub HideRowAndColHeadings()
Dim sh as Worksheet, sh1 as Worksheet
Application.ScreenUpdating = False
set sh1 = Activesheet
for each sh in Workbooks("TestBook.xls").Worksheets
sh.Activate
Windows("TestBook.xls").DisplayHeadings = False
Next
Application.ScreenUpdating = True
sh1.Activate
End Sub

--
Regards,
Tom Ogilvy


"Sandy" wrote:

The following hides the Row and Column Headings for the activesheet. How can
it be adjusted to apply to the whole workbook

Sub HideRowAndColHeadings()
Windows("TestBook.xls").DisplayHeadings = False
End Sub

Thanks Sandy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Hide Row and Column Headings

try:
put this code under thisworkbook
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Windows("book1.xlsx").DisplayHeadings = False
End Sub

--
Regards,

Sebation.G
"Sandy" ...
The following hides the Row and Column Headings for the activesheet. How
can it be adjusted to apply to the whole workbook

Sub HideRowAndColHeadings()
Windows("TestBook.xls").DisplayHeadings = False
End Sub

Thanks Sandy



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Hide Row and Column Headings

Hi
In the ThisWorkBook code module put this

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Application.Screenupdating = False
HideRowAndColHeadings
End Sub

bit oblique, but it does the job eventually!
Paul


On May 24, 2:36 pm, "Sandy" wrote:
The following hides the Row and Column Headings for the activesheet. How can
it be adjusted to apply to the whole workbook

Sub HideRowAndColHeadings()
Windows("TestBook.xls").DisplayHeadings = False
End Sub

Thanks Sandy



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to hide column headings & row numbers? Ian Jemmett[_2_] Excel Discussion (Misc queries) 2 April 30th 10 12:32 PM
EXCEL-2000 column headings hide from data CRHIV Excel Discussion (Misc queries) 3 February 25th 10 05:34 PM
Worksheet has numeric column headings. Change to alpha headings? Be Frank Excel Discussion (Misc queries) 1 June 18th 08 04:22 PM
How do you hide column and row headings in Excel? B143 Excel Worksheet Functions 2 February 9th 06 08:15 PM
How to hide the column headings displayed by Excel at the left of. pc300 Excel Discussion (Misc queries) 1 January 28th 05 07:11 PM


All times are GMT +1. The time now is 03:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"