Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / July 2006

Tip: Looking for answers? Try searching our database.

Replacing value in cell with answer of same cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Flying_Dutcman - 21 Jul 2006 09:08 GMT
I need to replace the value in A1 with the entered value in B1. eg, A1=20;
B1=20 now I type 30 into B1 and A1=50. Is this at all posibble? Please help?
Muhammed Rafeek M - 21 Jul 2006 09:33 GMT
Hi
Try this code:

Private Sub Worksheet_Change(ByVal Target As Range)
   If Target.Address = "$B$1" Then
       Range("A1").Value = Range("A1").Value + Range("B1").Value
   End If
End Sub

you have to write this code to "Work sheet module"

> I need to replace the value in A1 with the entered value in B1. eg, A1=20;
> B1=20 now I type 30 into B1 and A1=50. Is this at all posibble? Please help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.