Excel Formula
Closed
Help
-
Feb 21, 2012 at 08:13 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Feb 23, 2012 at 09:18 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Feb 23, 2012 at 09:18 AM
Related:
- Excel Formula
- Excel grade formula - Guide
- Number to words in excel formula - Guide
- Date formula in excel dd/mm/yyyy - Guide
- Logitech formula vibration feedback wheel driver - Download - Drivers
- Excel apk for pc - Download - Spreadsheets
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Feb 23, 2012 at 09:18 AM
Feb 23, 2012 at 09:18 AM
Hi Help,
Macro's are irreversible, make backup of file before using macro. Better save then sorry.
I created to sheets: Data and Completed.
Both sheets have header in row 1.
Data sheet has 4 columns of data, Completed sheet has 3 columns of data (minus the completed column.).
Right-click on the sheets tab and select view code. Paste the following code in the window that opens:
Test code by entering Yes in column D of Data sheet.
Also consider the option to apply dropdownlist to enter Yes with two mouse-clicks.
Best regards,
Trowa
Macro's are irreversible, make backup of file before using macro. Better save then sorry.
I created to sheets: Data and Completed.
Both sheets have header in row 1.
Data sheet has 4 columns of data, Completed sheet has 3 columns of data (minus the completed column.).
Right-click on the sheets tab and select view code. Paste the following code in the window that opens:
Private Sub Worksheet_Change(ByVal Target As Range) Dim lRow As Integer If Intersect(Target, Range("D2:D" & Rows.Count)) Is Nothing Then Exit Sub If Target.Value = "Yes" Then Range(Cells(Target.Row, "A"), Cells(Target.Row, "C")).Copy lRow = Sheets("Completed").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Row Sheets("Completed").Range("A" & lRow).PasteSpecial End If Application.CutCopyMode = False End Sub
Test code by entering Yes in column D of Data sheet.
Also consider the option to apply dropdownlist to enter Yes with two mouse-clicks.
Best regards,
Trowa