Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Error in grouping rows in excel using VB

Hi all-

Some code I used from a previous thread- this code allows a user to
double click a row to ungroup or group it. Works great, until you
double click a row that isn't grouped. I then get this error:

"Unable to set the Showdetail property of the Range class". Anyone know
of a way around this?

Here is the code I'm using in Excel 2002.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range,
Cancel As Boolean)
Target.EntireRow.ShowDetail = Not Target.EntireRow.ShowDetail
End Sub

Thanks in advanced!

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
Grouping Rows in Excel 2007 Philip J Smith Excel Discussion (Misc queries) 2 December 12th 08 12:25 PM
Grouping Rows Seftyby Excel Worksheet Functions 1 October 3rd 08 02:18 PM
grouping error in Excel 2003/2007 Pivot table connect to offline c KT[_2_] Excel Worksheet Functions 0 June 4th 08 04:41 AM
Error on grouping [email protected] Excel Discussion (Misc queries) 2 January 4th 07 11:12 AM
Grouping Rows Moz Excel Discussion (Misc queries) 0 July 21st 06 05:33 AM


All times are GMT +1. The time now is 12:24 PM.

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

About Us

"It's about Microsoft Excel"