Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need a VB expert's help I think. I want formulas from several columns to
automatically copy down from the cells above, but only once data has been input to another cell within the row. ie. once the cell A12 has data in then the formulas from cells E11, F11, G11, H11, I11, J11 are copied into the corresponding cells in row 12. Can anybody help? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Marie,
Try to apply this Change event sub: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then Range("E" & Target.Row - 1 & ":J" & Target.Row - 1).AutoFill Destination:=Range("E" & Target.Row - 1 & ":J" & Target.Row), Type:=xlFillDefault End If End Sub Post if you need help to install it! Regards, Stefi €˛Marie Bayes€¯ ezt Ć*rta: I need a VB expert's help I think. I want formulas from several columns to automatically copy down from the cells above, but only once data has been input to another cell within the row. ie. once the cell A12 has data in then the formulas from cells E11, F11, G11, H11, I11, J11 are copied into the corresponding cells in row 12. Can anybody help? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can use a worksheet_change event for this. right click sheet tabview
codeleft window select worksheetright window select change something like tr=target.row if target.column<1 then exit sub range(cells(tr-1,"e"),cells(tr-1,"j")).copy cells(tr,"e") -- Don Guillett SalesAid Software "Marie Bayes" wrote in message ... I need a VB expert's help I think. I want formulas from several columns to automatically copy down from the cells above, but only once data has been input to another cell within the row. ie. once the cell A12 has data in then the formulas from cells E11, F11, G11, H11, I11, J11 are copied into the corresponding cells in row 12. Can anybody help? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Don
That's almost what I require only it's now copying the contents of the cells above and not just the formula. Is it possible just to copy the formula? "Don Guillett" wrote: You can use a worksheet_change event for this. right click sheet tabview codeleft window select worksheetright window select change something like tr=target.row if target.column<1 then exit sub range(cells(tr-1,"e"),cells(tr-1,"j")).copy cells(tr,"e") -- Don Guillett SalesAid Software "Marie Bayes" wrote in message ... I need a VB expert's help I think. I want formulas from several columns to automatically copy down from the cells above, but only once data has been input to another cell within the row. ie. once the cell A12 has data in then the formulas from cells E11, F11, G11, H11, I11, J11 are copied into the corresponding cells in row 12. Can anybody help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
quick way to copy-paste a formula linked to cells in another file | Excel Worksheet Functions | |||
Formula works in some cells, doesn't in other | New Users to Excel | |||
trying to create an (almost) circular formula between cells and data validated cells with lists | Excel Worksheet Functions | |||
Applying formula to only NON-EMPTY cells in range | Excel Discussion (Misc queries) |