Autopopulation

Chaddyb

New Member
Joined
Dec 19, 2017
Messages
12
I manage projects. I have a Workbook with a master sheet i named details. I want excel to populate a sheet called savings every time i change the project status on the details sheet to Completed. is there anyway to do this?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi & welcome to the board.
That's perfectly possible.
A few questions
1) what column on sheet Details contains Completed.
2) How will that column be changed? Manually entered, data validation, Formula, or something else
3) Do you want to copy the entire row to the Savings sheet?
4) Once copied do you want that row removed from Details?
 
Upvote 0
Hi & welcome to the board.
That's perfectly possible.
A few questions
1) what column on sheet Details contains Completed.
2) How will that column be changed? Manually entered, data validation, Formula, or something else
3) Do you want to copy the entire row to the Savings sheet?
4) Once copied do you want that row removed from Details?

1. Column H
2. Manually entered
3. Ideally Not, i would only like to select a few of the columns to the move across
4. No i would like to keep all the rows on the master sheet
 
Upvote 0
Which cols do you want to copy, & where should they go?
 
Upvote 0
Do you want Col B to go to Col B, Col C to go to Col C etc, or do you want Col B to go to Col A , C to go to B, G to go to C etc?
 
Upvote 0
Ok try this
Code:
Private Sub Worksheet_Change(ByVal Target As Range)

   Dim NxtRw As Long
   
   If Target.CountLarge > 1 Then Exit Sub
   If Not Target.column = 8 Then Exit Sub
   If LCase(Target.Value) = "complete" Then
      With Sheets("Savings")
         NxtRw = .Range("A" & Rows.Count).End(xlUp).Offset(1).row
         .Range("A" & NxtRw).Resize(, 2).Value = Range("B" & Target.row).Resize(, 2).Value
         .Range("C" & NxtRw).Value = Range("G" & Target.row).Value
         .Range("D" & NxtRw).Value = Range("W" & Target.row).Value
         .Range("E" & NxtRw).Value = Range("Z" & Target.row).Value
      End With
   End If
End Sub
This needs to go in the sheet module.
Right click the Details sheet tab > select view Code > paste the code above into the window that appears.
Make sure that the workbook is macro enabled(ie xlsm, or xlsb)
Whenever you type "complete" into col H, the relevant data will get copied.
 
Upvote 0
Ok try this
Code:
Private Sub Worksheet_Change(ByVal Target As Range)

   Dim NxtRw As Long
   
   If Target.CountLarge > 1 Then Exit Sub
   If Not Target.column = 8 Then Exit Sub
   If LCase(Target.Value) = "complete" Then
      With Sheets("Savings")
         NxtRw = .Range("A" & Rows.Count).End(xlUp).Offset(1).row
         .Range("A" & NxtRw).Resize(, 2).Value = Range("B" & Target.row).Resize(, 2).Value
         .Range("C" & NxtRw).Value = Range("G" & Target.row).Value
         .Range("D" & NxtRw).Value = Range("W" & Target.row).Value
         .Range("E" & NxtRw).Value = Range("Z" & Target.row).Value
      End With
   End If
End Sub
This needs to go in the sheet module.
Right click the Details sheet tab > select view Code > paste the code above into the window that appears.
Make sure that the workbook is macro enabled(ie xlsm, or xlsb)
Whenever you type "complete" into col H, the relevant data will get copied.
Hi it doesnt run when i hit the run button i get a box telling me to create a new macro
 
Upvote 0
It's designed to run automatically, whenever you type the word complete into col H
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top