View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TJK TJK is offline
external usenet poster
 
Posts: 1
Default How do I set a goalseek value via an input box using vba macro

code = Range("J22").GoalSeek Goal:=myNum = Application.InputBox("Enter a
number"), ChangingCell:=Range("C5")
The input box will fire up but will not use the input value as the value
in the goalseek calc.