• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

ENTER DATA SHOULD NOT DELETE

sa.1985

Member
Dear Sir,


if i write below formula in cell b1, when i delete entry of a1 then b1 should not be delete


=IF(a1="","",a1)
 
It shouldn't: are you deleting the contents of cell a1 or are you actually deleting the cell a1?
 
You can't do that. Rather than using a formula, you should either manually copy A1 to B1, or use a macro.


BTW, your formula could simply be:

=A1
 
Right click on sheet tab, view code, paste this in:

[pre]
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
Application.EnableEvents = False
If Range("A1") <> "" Then
Range("B1") = Range("A1").Value
End If
Application.EnableEvents = True
End Sub
[/pre]
This will make B1 = A1 whenever you make a change to A1 (other than clearing the cell).
 
Dear Sir,


You have given me macro code for data should not delete after entry

I have a data entry form and i want to its details in different 5 sheets


Please find the link i write my question's in this sheet


https://docs.google.com/open?id=0B6VY6rBw3NuBcEhUSWtiS3RJZWc
 
Hi, sa.1985!


What you're asking for it's easier to achieve with an user form, or at least adding a command button to your data entry worksheet so as to indicate Excel when to send (i.e. after finish entering, and modifying, and accepting) data to the 5 other sheets.

Bot scenarios seem to be a little far beyond what you can handle, so maintenance might not be simple for you.


I humble suggest you to investigate a little more on userforms, because there you'll have to use a command button too to perform data distribution among target sheets. Whoever provides you the code or update your uploaded workbook will be giving you fish and not aiding you to learn fishing.


It's up to you to choose the right path. Besides, have you searched within this website to see if there are not similar topics solved? If I don't remember wrong, there are many.


Regards!
 
Back
Top