ScreenUpdating VBA

marks2407

New Member
Joined
Sep 2, 2014
Messages
3
I know how to use Application.ScreenUpdating in a workbook but how do I keep one sheet updating while all others are disabled? My workbook updates various other workbook (which I dont want to see) but I want my status page to be updated. I also have a shockwave object on my control page but when I apply ScreenUpdating it freezes until the macro finishes. Any ideas? Thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Thanks -Yes well that would work but I need the other workbooks to be updated (linked to SQL server)...by selecting and activating them....or is there another way....maybe updating them without opening them?
 
Upvote 0
Did you try ?

Code:
Sub M_snb()
    For Each wb In Workbooks
        wb.RefreshAll
    Next
End Sub
 
Upvote 0
Generally you don't need to Select/Activate objects to use their properties/methods. But if you open a workbook it becomes the ActiveWorkbook, so ScreenUpdating would be needed to suppress its display. If that's the case I don't know the answer to your question, sorry.
 
Upvote 0
Thanks everyone - as I use the control workbook to generate the SQL (using variables and connection strings) and post the resulting recordsets to the slave workbooks - it looks like I cant get away with not activating them and therefore need to use screenupdating in all my open workbooks. Back to the drawing board!!! Thanks again
 
Upvote 0

Forum statistics

Threads
1,226,588
Messages
6,191,889
Members
453,684
Latest member
Gretchenhines

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