Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disabling Row Select from Header

Does anyone know where you can disable row selection via the left-click
on the row header? I have a spreadsheet that will not allow the entire
row to be selected when a left-click is performed in the row header.
The select all button will not respond to a left-click either. I need
to mimic this behavior in another workbook, but I cannot find where, or
how to do that. Thank you in advance for any information on this.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Disabling Row Select from Header

Use the selectionchange event

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
if Target.Address = Target.EntireRow.Address then
application.EnableEvents = False
Target(1).Select
application.EnableEvents = True
End if
End Sub

You could use the workbook level equivalent as well.

New to events? See Chip Pearson's page on events

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy


"n30l1th1c" wrote in message
oups.com...
Does anyone know where you can disable row selection via the left-click
on the row header? I have a spreadsheet that will not allow the entire
row to be selected when a left-click is performed in the row header.
The select all button will not respond to a left-click either. I need
to mimic this behavior in another workbook, but I cannot find where, or
how to do that. Thank you in advance for any information on this.



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
Omit header from first page without embedding header in code ibvalentine Excel Worksheet Functions 6 August 28th 07 05:10 AM
Excel - option to select the same header for mutliple tabs Sarah Beattie Setting up and Configuration of Excel 3 August 31st 06 04:20 PM
I can't select/edit objects. It says [Group] on the header bar. Tomba Excel Discussion (Misc queries) 2 March 30th 06 12:09 PM
Select max value in a row and pick the column header EK Excel Discussion (Misc queries) 8 July 21st 05 02:10 PM
Select header if formula Krista F Excel Worksheet Functions 11 April 11th 05 07:26 PM


All times are GMT +1. The time now is 10:18 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"