

MsgBox "Process complete!", vbOKOnly, "Completed"įunction Col_Letter(lngCol As Long) As String , msoFalse, msoTrue, Range(Cells(i, ActiveCell.Column), Cells(i, ActiveCell.Column)).Left, Range(Cells(i, ActiveCell.Column), Cells(i, ActiveCell.Column)).Top, -1, -1)Ĭolumns(Col_Letter(ActiveCell.Column)).ColumnWidth = 50Īpplication.Calculation = xlCalculationAutomatic Set pic = (Range(Cells(i, ActiveCell.Column), Cells(i, ActiveCell.Column)).Value _ Range(Cells(i, ActiveCell.Column), Cells(i, ActiveCell.Column)).Select If Left(Range(Cells(i, ActiveCell.Column), Cells(i, ActiveCell.Column)), 4) = "http" Then If Not IsError(Range(Cells(i, ActiveCell.Column), Cells(i, ActiveCell.Column))) Then Set image_column = Worksheets(1).UsedRange.Columns(Col_Letter(ActiveCell.Column)) Set url_column = Worksheets(1).UsedRange.Columns("A") Sub getpic()Īpplication.Calculation = xlCalculationManual The goal is to write a macro to lock in the photos so they do not move when I need to filter the other columns. Range(Cells(k, "P")).Value = PurchasePrice If Cells(95, "B").Value = Cells(k, "O") - tolerance Then Thank you for the help Sub Button1_Click() I have very limited experience with VBA so I apologize if I'm not being clear. Excel does not understand that I want to store the value GoalSeek finds before moving on to the next Goal Seek scenario. I know the issue is somewhere in the first half of the If statement. 'tolerance' is a precaution in case GoalSeek does not find an exact match (I'm dealing with percentages and would like a tolerance of ☑%)

With my current macro, I can see that GoalSeek is working but the value is not being stored and "False" is being entered into cells P97, P98 and P99 This value needs to be stored in cells P97, P98 and P99 (3 different values for 3 scenarios) I am running GoalSeek for several scenarios with a single output, B95Īfter each scenario runs, I need to store the value of the cell that GoalSeek was changing, B4
