MS Excel data entry with specific code [सुलझा लिया गया/बंद]

 Tanu -
How do I make a data entry in a row with a specific code?

1 जवाब

Try the following code, placed in a standard module and assigned to a button:-

Sub DataTransfer()

Application.ScreenUpdating = False

With ActiveSheet
.AutoFilterMode = False
With Range("F1", Range("F" & Rows.Count).End(xlUp))
.AutoFilter 1, 1
If Range("F" & Rows.Count).End(xlUp).Row > 1 Then
.Offset(1).EntireRow.Copy Sheet2.Range("A" & Rows.Count).End(3)(2)
End If
End With
End With

Application.CutCopyMode = False
Application.ScreenUpdating = True

End Sub

The code filters Sheet1 Column F for the number 1 and then transfers the relevant rows of data to Sheet 2. Did you want to clear the "used" data from Sheet 1 once transferred to Sheet 2? If so, remove the apostrophe from the begining of line 12 (in green font) in the code above. This will activate the delete line of code.

Test the code in a copy of your workbook first.

आभार प्रकट करने के लिए कहे गए थोड़े शब्द काफी सराहनीय होंगे. कमेंट जोड़ें

CCM 614 यूजर्स ने इस महीने हमें शुक्रिया कहा