pingpong777
New Member
- Joined
- Apr 6, 2015
- Messages
- 42
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+g
'
Range("g68").GoalSeek Goal:=Range("g61"), ChangingCell:=Range("g63")
End Sub
Sub Macro2()
'
' Macro2 Macro
'
' Keyboard Shortcut: Ctrl+g
'
Range("g78").GoalSeek Goal:=Range("g71"), ChangingCell:=Range("g73")
End Sub
hi. i have the 2 above goalseeks, and i need to run the pair of them multiple times. i'm sure this is a very simple addition, but how do i input the number of repetitions/iterations for this pair of goalseeks? i would like to link it to a cell in the worksheet, say cell g60 (if cell g60=10, run the pair of goalseeks 10 times).
thanks,
pingpong777
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+g
'
Range("g68").GoalSeek Goal:=Range("g61"), ChangingCell:=Range("g63")
End Sub
Sub Macro2()
'
' Macro2 Macro
'
' Keyboard Shortcut: Ctrl+g
'
Range("g78").GoalSeek Goal:=Range("g71"), ChangingCell:=Range("g73")
End Sub
hi. i have the 2 above goalseeks, and i need to run the pair of them multiple times. i'm sure this is a very simple addition, but how do i input the number of repetitions/iterations for this pair of goalseeks? i would like to link it to a cell in the worksheet, say cell g60 (if cell g60=10, run the pair of goalseeks 10 times).
thanks,
pingpong777