Go Back   Trackpads Community > General Discussions > Computer and Technology > Microsoft Applications

Microsoft Applications Discussions about Windows and other MS Products such as Office

Reply
 
LinkBack Thread Tools
Old 06-15-2004, 16:36   #1 (permalink)
Dug4
Civilians

 
Default Value to remain until new value is entered

=IF(Changes!C$10=1,Changes!B$13,IF(Changes!C$10<>1 ,""))

The way it is now:
Places a value of the cell contains a "1"
and nothing if it does not equal a "1".

Would like:
The value to remain the same until the next time a "1" is entered.

For example:
If a "1" is entered on sheet 1 the value of another cell on sheet 1
is placed on sheet 2.
I want that value (on sheet 2) to remain the same until the
information on sheet 1 is changed again.

What do I enter to keep the value on sheet 1 the same until a
new value is entered?

Thx much


---
Message posted from http://www.ExcelForum.com/

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 06-15-2004, 16:37   #2 (permalink)
Frank Kabel
Civilians

 
Default Re: Value to remain until new value is entered

Hi
for this you'll need VBA. Put the following code in your worksheet
module of your "Changes" worksheet
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("C10")) Is Nothing Then Exit Sub
On Error GoTo CleanUp:
With Target
If .Value = 1 Then
Application.EnableEvents = False
Worksheets("sheet2").Range("a1").Value = Range("B13").Value
End If
End With
CleanUp:
Application.EnableEvents = True
End Sub



--
Regards
Frank Kabel
Frankfurt, Germany

> =IF(Changes!C$10=1,Changes!B$13,IF(Changes!C$10<>1 ,""))
>
> The way it is now:
> Places a value of the cell contains a "1"
> and nothing if it does not equal a "1".
>
> Would like:
> The value to remain the same until the next time a "1" is entered.
>
> For example:
> If a "1" is entered on sheet 1 the value of another cell on sheet 1
> is placed on sheet 2.
> I want that value (on sheet 2) to remain the same until the
> information on sheet 1 is changed again.
>
> What do I enter to keep the value on sheet 1 the same until a
> new value is entered?
>
> Thx much
>
>
> ---
> Message posted from http://www.ExcelForum.com/


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-15-2004, 16:59   #3 (permalink)
Dug4
Civilians

 
Default Re: Value to remain until new value is entered

Your solution worked perfectly and I learned a great deal.
Thank you much!


---
Message posted from http://www.ExcelForum.com/

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hand entered dates view wrong Chris in Nebraska Microsoft Applications 6 08-03-2005 20:00
Expanding A Range As data Is Entered W. D. Allen Sr. Microsoft Applications 2 01-14-2005 17:00
When Nothing is Entered WannaKooky Microsoft Applications 1 11-01-2004 20:00
Number entered automatically cut off ChefChaudart Microsoft Applications 3 06-16-2004 03:19
only show last value entered in a row picktr Microsoft Applications 1 06-16-2004 02:21


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 13:03.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.67368 seconds with 19 queries