Hi there! I have the following code, but it doesn't work. Any help is highly appreciated. I guess that the problem is that you can't loop with Set, but couldn't figure out any other way to do this.
Sub Makro1()
'
' Makro1 Makro
'
'
Dim Arvo As Range
Dim SelCell As Range
Range("E7").Select
Application.ScreenUpdating = False
Do
Set Arvo = ActiveCell.Offset(0, 1)
Set SelCell = ActiveCell.Offset(0, -1)
ActiveCell.GoalSeek Goal:=Arvo, ChangingCell:=SelCell
ActiveCell.Offset(1, 0).Select
Loop Until ActiveCell.Offset(0, 1) = ""
End Sub
Sub Makro1()
'
' Makro1 Makro
'
'
Dim Arvo As Range
Dim SelCell As Range
Range("E7").Select
Application.ScreenUpdating = False
Do
Set Arvo = ActiveCell.Offset(0, 1)
Set SelCell = ActiveCell.Offset(0, -1)
ActiveCell.GoalSeek Goal:=Arvo, ChangingCell:=SelCell
ActiveCell.Offset(1, 0).Select
Loop Until ActiveCell.Offset(0, 1) = ""
End Sub