PC Review


Reply
 
 
Sandy
Guest
Posts: n/a
 
      13th Mar 2008
I am trying to achieve

If ActiveCell In Range ("C22:K22,C24:K24") Then

but I require assistance with the correct syntax.

Thanks
Sandy
 
Reply With Quote
 
 
 
 
Ron Coderre
Guest
Posts: n/a
 
      13th Mar 2008
Try something like this:

IF Not Intersect (ActiveCell, Range("C22:K22,C24:K24")) is Nothing THEN

(Not really intuitive, is it?)

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Sandy" <(E-Mail Removed)> wrote in message
news:5B6BB6C6-B6CB-46A8-B998-(E-Mail Removed)...
>I am trying to achieve
>
> If ActiveCell In Range ("C22:K22,C24:K24") Then
>
> but I require assistance with the correct syntax.
>
> Thanks
> Sandy



 
Reply With Quote
 
Sandy
Guest
Posts: n/a
 
      13th Mar 2008
Certainly is not.
Many thanks though Ron.

Sandy

"Ron Coderre" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Try something like this:
>
> IF Not Intersect (ActiveCell, Range("C22:K22,C24:K24")) is Nothing THEN
>
> (Not really intuitive, is it?)
>
> Does that help?
> --------------------------
>
> Regards,
>
> Ron
> Microsoft MVP (Excel)
> (XL2003, Win XP)
>
> "Sandy" <(E-Mail Removed)> wrote in message
> news:5B6BB6C6-B6CB-46A8-B998-(E-Mail Removed)...
>>I am trying to achieve
>>
>> If ActiveCell In Range ("C22:K22,C24:K24") Then
>>
>> but I require assistance with the correct syntax.
>>
>> Thanks
>> Sandy

>
>

 
Reply With Quote
 
Ron Coderre
Guest
Posts: n/a
 
      13th Mar 2008
Glad to help.

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Sandy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Certainly is not.
> Many thanks though Ron.
>
> Sandy
>
> "Ron Coderre" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
>> Try something like this:
>>
>> IF Not Intersect (ActiveCell, Range("C22:K22,C24:K24")) is Nothing THEN
>>
>> (Not really intuitive, is it?)
>>
>> Does that help?
>> --------------------------
>>
>> Regards,
>>
>> Ron
>> Microsoft MVP (Excel)
>> (XL2003, Win XP)
>>
>> "Sandy" <(E-Mail Removed)> wrote in message
>> news:5B6BB6C6-B6CB-46A8-B998-(E-Mail Removed)...
>>>I am trying to achieve
>>>
>>> If ActiveCell In Range ("C22:K22,C24:K24") Then
>>>
>>> but I require assistance with the correct syntax.
>>>
>>> Thanks
>>> Sandy

>>
>>



 
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
Last ActiveCell Steven Microsoft Excel Programming 9 18th Sep 2008 02:32 PM
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Microsoft Excel Misc 1 2nd Oct 2007 08:05 PM
How to Revert to ActiveCell.Formula = format from ActiveCell.FormulaR1C1 = format Karthik Bhat - Bangalore Microsoft Excel Programming 1 9th May 2007 02:37 PM
IF ACTIVECELL contains FIRSTROUNDKO via OfficeKB.com Microsoft Excel Programming 4 3rd May 2006 05:17 PM
how to set activecell? ljb Microsoft Excel Programming 2 18th Nov 2003 04:49 PM


Features
 

Advertising
 

Newsgroups
 


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