Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Leave the Cell unchanged

I have a formula which chacks the contents of a cell, if
it is ok I want to leave it otherwise I want to copy the
contents of another cell into the active cell. How do I do
this
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Leave the Cell unchanged

=IF(A1="OK","",B 1)

but this is caveated with the fact that it cannot go into A1, as you can't
test itself.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Gerrym" wrote in message
...
I have a formula which chacks the contents of a cell, if
it is ok I want to leave it otherwise I want to copy the
contents of another cell into the active cell. How do I do
this



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Leave the Cell unchanged

If Range("A1").Value = "OK" then
Range("B9").Copy Destination:=Activecell
End If

--
Regards,
Tom Ogilvy

"Gerrym" wrote in message
...
I have a formula which chacks the contents of a cell, if
it is ok I want to leave it otherwise I want to copy the
contents of another cell into the active cell. How do I do
this



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
Excel 2002 - How to keep the formulas unchanged ? Mr. Low Excel Discussion (Misc queries) 9 November 6th 06 04:28 PM
How to keep a cell ref in formula unchanged when the ref cell move Clifton Ford Excel Discussion (Misc queries) 2 March 14th 06 04:55 PM
How do I leave formula cell blank if 2nd reference cell is empty? Liana S Excel Discussion (Misc queries) 2 October 21st 05 04:38 PM
Need IF statement that leaves value unchanged milt Excel Worksheet Functions 0 November 11th 04 09:29 PM
Need IF statement that leaves value unchanged milt Excel Worksheet Functions 1 November 11th 04 09:17 PM


All times are GMT +1. The time now is 04:59 AM.

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"