dear friends.above macro work fine for me.i need to make new macro using above replacing just formula.i need to replace this code..Sub Package() Dim CalculatedValue As Double, Multi As Double Application.ScreenUpdating = False Range("T2").Activate Do If ActiveCell.Value = "" Then If Cells(ActiveCell.Row, "G") = "TP" And Cells(ActiveCell.Row, "H") = "150D" Then Multi = 1 ElseIf Cells(ActiveCell.Row, "G") = "TP" And Cells(ActiveCell.Row, "H") = "300D" Then Multi = 1 Else Multi = 1.5 End If CalculatedValue = Application.WorksheetFunction.RoundUp(ActiveCell.Offset(0, -1).Value / Multi, 0) * Multi End If ActiveCell.Offset(1, 0).Activate Loop Until IsEmpty(ActiveCell.Offset(0, -2)) Application.ScreenUpdating = True End Sub
new code should Column "L" value /(divide) by MultiCalculatedValue = Application.WorksheetFunction.RoundUp(ActiveCell.Offset(0, -1).Value / Multi, 0) * Multi
may be its like this -pls make this change for me.thanks a lot....Offset(0, -8).Value / Multi
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks