Application.ScreenUpdating parameter doesn't work

grizzlybear

New Member
Joined
Jul 26, 2007
Messages
21
Hi,

I am trying to run a macro in the background. I have added the Application.ScreenUpdating = False (and True at the end) to my code but no luck. Any ideas?
 
TestValue won't change on each iteration because you have not placed it in the loop. Place it after the "Do Until" to get it to change each time through the loop.

When you say "this code won't update the table", do you mean the if statement is never successful? Like if you add
Code:
Msgbox "Woot, it works!"
after the line:
Code:
If TestValue = CheckValue Then
Do you ever see the message box?

~Gold Fish
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Gold fish,

What I mean is that this value "Mid(RNG.Value, 2, 2)" doesn't change after the first iteration. Therefore the statement is never going to be true. It get the value "10" from the seed value "R10" the first time through, then holds that value. On the next interation it should change to "12" from the seed value "R12" etc. Placing the TestValue variable in the code was simply a way of seeing what value was in Mid(RNG.Value, 2, 2)". It doesn't change whether it is before or after the Do Until statement because the "Mid(RNG.Value, 2, 2)" value doesn't change.

Cheers
GB
 
Upvote 0

Forum statistics

Threads
1,225,475
Messages
6,185,195
Members
453,282
Latest member
roger_nz66

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