Application.ScreenUpdating = True

kimjb

New Member
Joined
Sep 30, 2015
Messages
2
Hi, I realise there is a similar old post, but I can't seem to see how it helps me.

I have a simple macro in which I want to move a shape across a screen.
It worked in older Excel versions, but now does not update the screen, and only shows the shapes final position.

I've simplifed it for this test and extract which still does not work:

Is this an excel 2013 issue? Is there a solution?

I'd be grateful for any advice.
Code:
Sub Test()


Application.ScreenUpdating = True


For i = 1 To 100


With Worksheets("Funnel Show").Shapes("Funnel")
    .Top = 5
    .Left = i * 5 + 30
End With




Next i




End Sub
 
Last edited by a moderator:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
just for a test put

Code:
Application.Wait (Now + TimeValue("0:00:01"))

before Next I

should take 1:20 to work across the screen
 
Upvote 0
Hi, and welcome to the forum. :biggrin:

Try putting the ScreenUpdating inside the loop to force a redraw:

Code:
    For i = 1 To 100

        With ActiveSheet.Shapes("Oval 1")
            .Top = 5
            .Left = i * 5 + 30
            Application.ScreenUpdating = True
        End With

    Next i
 
Upvote 0
Sheesh Mr. Roy nailed it !

am fixated to it right now keep clicking the code and watching the oval float in the screen. my colleagues think i am going nuts :p
 
Upvote 0
thanks Guys, I am really grateful to you all.

I can get back to watching marbles fall to the floor !
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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