Command button to post data from one sheet to another one
Closed
issahamameh
Posts
22
Registration date
Friday 19 October 2012
Status
Member
Last seen
22 June 2013
-
22 Jun 2013 à 15:53
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 24 Jun 2013 à 11:34
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 24 Jun 2013 à 11:34
Related:
- Command button to post data from one sheet to another one
- How to copy data from one excel sheet to another - Guide
- Excel move data from one sheet to another - Guide
- How to see liked post on x - Guide
- Cs 1.6 money command - Guide
- How to copy data to multiple worksheets in Excel - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
24 Jun 2013 à 11:34
24 Jun 2013 à 11:34
Hi Issa,
Here you go:
I Hope you like the result.
Best regards,
Trowa
Here you go:
Private Sub cmdPost_Click()
Dim lRow, x As Integer
lRow = Range("I" & Rows.Count).End(xlUp).Row
For Each cell In Range("I2:I" & lRow)
If cell.Value <> vbNullString Then
cell.EntireRow.Copy
Sheets("Sheet2").Select
Sheets("Sheet2").Range("I" & Rows.Count).End(xlUp).Offset(1, -8).PasteSpecial
End If
Next cell
For x = lRow To 2 Step -1
If Range("I" & x) <> vbNullString Then Range("I" & x).EntireRow.Delete
Next x
Application.CutCopyMode = False
End Sub
I Hope you like the result.
Best regards,
Trowa