ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hide names of columns and rows by code. (https://www.excelbanter.com/excel-programming/391943-hide-names-columns-rows-code.html)

Robert[_33_]

Hide names of columns and rows by code.
 
Hello,

I was wondering if there is some sort of command to hide the ABCDE and
12345etc...

Robert


Jim Cone

Hide names of columns and rows by code.
 

Sub CanYouSeeThem()
If TypeName(Selection) = "Range" Then
ActiveWindow.DisplayHeadings = Not ActiveWindow.DisplayHeadings
End If
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Robert"
wrote in message
Hello,
I was wondering if there is some sort of command to hide the ABCDE and
12345etc...
Robert


Robert[_33_]

Hide names of columns and rows by code.
 
Thanks a lot. Works perfect.

Ronert


On 24 jun, 20:08, "Jim Cone" wrote:
Sub CanYouSeeThem()
If TypeName(Selection) = "Range" Then
ActiveWindow.DisplayHeadings = Not ActiveWindow.DisplayHeadings
End If
End Sub
--
Jim Cone
San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware

"Robert"
wrote in message
Hello,
I was wondering if there is some sort of command to hide the ABCDE and
12345etc...
Robert




JLGWhiz

Hide names of columns and rows by code.
 

ActiveWindow.DisplayHeadings = False 'Off
ActiveWindow.DisplayHeadings = True 'On


"Robert" wrote:

Hello,

I was wondering if there is some sort of command to hide the ABCDE and
12345etc...

Robert




All times are GMT +1. The time now is 05:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com