Code not working

mhenk

Well-known Member
Joined
Jun 13, 2005
Messages
591
Okay, that's not entire true. This code works when I step through it, but not when I run it with F5... is it moving too fast?

Code:
If CheckSolver Then
    a = MsgBox("Solver installed! Do you wish to utilize advanced functionality?" & Chr(10) & "(Choosing Yes will load solver, No will load goalseek)", vbYesNo, "Choose your Optimization Method")

        If a = 6 Then Sheets("Lookup Values & Tables").Range("SolSeek") = "Solver"

End If

the 2nd if statement is the one that's not working for me. It will change based on the msgbox input when i step through it, but not when I run it. Come to think of it, it might not always work when i step through it either... I'll have to check.

Do I need to put a break/pause in there somehow?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,215,566
Messages
6,125,593
Members
449,237
Latest member
Chase S

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top