Re: $$Excel-Macros$$ Other than Active Cell clear. ClearContents

2017-01-01 Thread Chandra Sekaran
Dear all,

Basically i need  Other than Active cell of column should clear . some time
 below code  is not working and excel itself not working.
Which is highlighted  code .. i need  better code for this.


'**

Private Sub Worksheet_Change(ByVal Target As Range)


If Not Intersect(Target, Range("F2:F159")) Is Nothing Or Target.Cells.Count
> 1 Then

If Target.Cells.Count > 1 Then Exit Sub


On Error Resume Next



  With Sheets("Sheet2")

.Range("data").Cells(2, 1).Value = "*" & Target.Cells.Value & "*"

  End With


*Range(ActiveCell.Offset(-2, 0), Range("mysel")).ClearContents*

*Range(ActiveCell.Offset(1, 0), Range("myends")).ClearContents*


ElseIf Not Intersect(Target, Range("I2:I159")) Is Nothing Or
Target.Cells.Count > 1 Then

If Target.Cells.Count > 1 Then Exit Sub




On Error Resume Next


With Sheets("Sheet3")

.Range("CritProdMAT").Cells(2, 1).Value = "*" & Target.Cells.Value & "*"



  End With



*Range(ActiveCell.Offset(-2, 0), Range("MYMSEL")).ClearContents*


*Range(ActiveCell.Offset(1, 0), Range("EMYMSEL")).ClearContents*


  End If

End Sub


'***

could you  help me

Regards

chandru



On Sat, Dec 31, 2016 at 3:00 PM, Chandru  wrote:

> Dear all,
>
> I have basic Query ,  i have to enter  D: D column only,   D2 has some
> vlaue , D8 has value   i am going to enter cell D5  .
> if going enter Any cell of D Column above and below  Cell  should be
> ClearContents automatically .
>
> could you please help me .
>
> Chandru
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at https://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ Other than Active Cell clear. ClearContents

2016-12-31 Thread Chandru
Dear all,

I have basic Query ,  i have to enter  D: D column only,   D2 has some 
vlaue , D8 has value   i am going to enter cell D5  .
if going enter Any cell of D Column above and below  Cell  should be 
ClearContents automatically . 

could you please help me .

Chandru

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.