LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default selectionchange problem

I have a sheet with three columns filled with validation lists, but whe
the user merge cells to input something, for the cells still contai
validation lists, they don’t allow the users input anything excep
choosing from the lists. Therefore, I tried to use SelectionChang
event to delete the validation lists when the users need entr
something in merged cells.

Followed code does delete the validation list in the merged cells
but when the users select an unmerged cell twice the validation lis
also was deleted. How can I improve my code? I use Excel 2002 SP-1.



Thank you a lots in advance.





Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

If abortproc Then

aboutproc = True

Exit Sub

End If

Dim cRange As Range

Set cRange = ActiveCell.CurrentRegion

If cRange.MergeCells = True Then cRange.Select

With Selection.Validation.Delete

End With

End Su

--
Message posted from http://www.ExcelForum.com

 
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
how to use selectionchange instead of doubleclick event? ghost Excel Discussion (Misc queries) 0 December 24th 08 05:00 AM
Worksheet SelectionChange Event mjack003 Excel Discussion (Misc queries) 2 May 8th 06 08:35 PM
SelectionChange problem Micher Excel Programming 0 January 23rd 04 10:26 PM
SelectionChange - What am I doing wrong? Doug[_9_] Excel Programming 4 January 2nd 04 02:46 AM
SelectionChange code always available René Excel Programming 0 July 13th 03 01:46 PM


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