PC Review


Reply
Thread Tools Rate Thread

deleting cells that are controlled by target code

 
 
NDBC
Guest
Posts: n/a
 
      24th Jul 2009
I have columns that are set up to automatically respond when they contain the
target cell. The code below all works fine. My problem is that when I
finished I need to clear these cells. I am currently doing this by selecting
a range and making it equal to "". This causes an error in the code below. Is
there some way of disabling the target code when I delete the range.

Thanks

If Target.Column = 11 Then
Target.Offset(0, 1) = WorksheetFunction.Max(Range("L:L")) + 1

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      24th Jul 2009
Pls do NOT post in more than one group.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"NDBC" <(E-Mail Removed)> wrote in message
news:3E45DFCC-9B84-47E6-8F00-(E-Mail Removed)...
>I have columns that are set up to automatically respond when they contain
>the
> target cell. The code below all works fine. My problem is that when I
> finished I need to clear these cells. I am currently doing this by
> selecting
> a range and making it equal to "". This causes an error in the code below.
> Is
> there some way of disabling the target code when I delete the range.
>
> Thanks
>
> If Target.Column = 11 Then
> Target.Offset(0, 1) = WorksheetFunction.Max(Range("L:L")) + 1
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting cells that are controlled using Target code NDBC Microsoft Excel Misc 2 24th Jul 2009 12:26 AM
VBA code to RUN Solver mutiple times (on different target cells) BEETAL Microsoft Excel Programming 8 26th Feb 2009 05:23 AM
Linking to cells on a spreadsheet with controlled access =?Utf-8?B?RE9PR0lF?= Microsoft Excel Programming 1 15th Aug 2007 04:52 PM
big problem: source-controlled web site, referenced code not updating KJ Microsoft ASP .NET 1 7th Aug 2006 05:40 PM
Help - loop through cells in a range that are not together (several different cells as Target) Marie J-son Microsoft Excel Programming 4 3rd Apr 2005 09:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 PM.