Why is the screen flashing when I insert a picture?

Rufius

New Member
Joined
Sep 1, 2012
Messages
34
I have a project that inserts pictures in a worksheet, as triggered by a worksheet_change event.

The problem is, whenever I trigger the event, and the pictures are inserted automatically, there is a brief flash that is very unappealing. I have tried everything I can think of isolate the problem, but nothing seems to fix it. As a last resort, I even once put "Application.ScreenUpdating = FALSE" lines between every other line throughout the code of the entire project, and that still made no difference.

Here's how to replicate the flashing: (file attached)
1. Select the "Generator" worksheet.
2. Click the "Get FilePath" Button and browse to a picture in the folder you just downloaded
3. Click the "Start Session" Button
4. Enter any 3 digit number for "Subject ID Number", and enter the letter "A" into the "Session Code Box"
5. After it redirects you (the framing of the pictures will probably be off, since this is optimized to work with one specific computer) click anywhere on the gradient bar to trigger the flashing.

As you click on the bar, code in the "Tester" Object records the location of the click in the "Generator" worksheet, and "Section for similarity" code in the "Generator" Object Code opens the next picture.

Please let me know if this box.com link is an improper way to supply the necessary file
HTML:
https://www.box.com/s/16i00dbbb8t1l9wa94nn

I hope this is enough information - I suspect the solution to my problem is simple. Thanks for any suggestion!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,223,227
Messages
6,170,855
Members
452,361
Latest member
d3ad3y3

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