Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Selective clearence

Each cell in the range has data validation - Imput Message
How do I avoid this being deleted also.

Range("C5:D11,G5:G11").Select
Selection.Clear

Thank you if you can help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Selective clearence

Try

ActiveSheet.Range("C5:D11,G5:G11").ClearContents
--
HTH,

Barb Reinhardt



"Gotroots" wrote:

Each cell in the range has data validation - Imput Message
How do I avoid this being deleted also.

Range("C5:D11,G5:G11").Select
Selection.Clear

Thank you if you can help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selective clearence


Use Clearcontents instead of Clear. Clear will remove formating while
clearcontents will only remove text/numbers.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=167403

Microsoft Office Help

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Selective clearence

Sub qwerrty()
Range("A1").ClearContents
End Sub

--
Gary''s Student - gsnu200909


"Gotroots" wrote:

Each cell in the range has data validation - Imput Message
How do I avoid this being deleted also.

Range("C5:D11,G5:G11").Select
Selection.Clear

Thank you if you can help.

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
Selective on Name stew Excel Discussion (Misc queries) 5 September 14th 08 07:53 PM
selective protection Dave[_6_] New Users to Excel 0 February 27th 08 02:15 PM
Selective calculation PH NEWS Excel Worksheet Functions 2 September 21st 06 01:33 PM
Selective Deleting Hesham Excel Programming 3 September 27th 05 09:43 PM
Selective Viewing MBlake[_2_] Excel Programming 5 May 31st 05 07:33 PM


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