Userform: "PTadjustementForm"
Textbox: "PercentNeeded"
I need the value that I input into the form to register in the formula below. I am assuming I need to change the control source on initilizing the form (not exactly sure how to do that) and also creating the percent to be some sort of variable which could be dropped into the formula below (not exactly sure how to do this either)...
**Assume the value I entered into the textbox ("PercentNeeded") was 14%, I would need all the 10% in the formula below replaced:
Thanks for any help
Textbox: "PercentNeeded"
I need the value that I input into the form to register in the formula below. I am assuming I need to change the control source on initilizing the form (not exactly sure how to do that) and also creating the percent to be some sort of variable which could be dropped into the formula below (not exactly sure how to do this either)...
**Assume the value I entered into the textbox ("PercentNeeded") was 14%, I would need all the 10% in the formula below replaced:
Code:
Sub PT_Adjustment()
'
Application.ScreenUpdating = False
ActiveSheet.PivotTables("PivotTable1").CalculatedFields("base less impl hcd PT" _
).StandardFormula = "=Base_pay-(ImpLB1*0.10)-(DLB1*0.10)"
ActiveWorkbook.RefreshAll
Application.ScreenUpdating = True
End Sub
Thanks for any help