SteveGregory
Structural
- Jul 18, 2006
- 554
I recorded a macro to sort a table of data 33 rows by 18 columns on Sheet2. Then I put a button on Sheet1 to execute it since the main calculations are on Sheet1. Simple!
When I run the macro, there is a darkened or highlighted portion of my screen on Sheet1 that corresponds to the data table on Sheet2. If I scroll down and up to refresh the screen it goes away. When I go to Sheet2, the table is selected. I added two lines to the macro to stop and restart screen updating to no avail.
Sub SortM()
Application.ScreenUpdating = False
...
Application.ScreenUpdating = True
End Sub
I am using Excel 2007. Any ideas?
When I run the macro, there is a darkened or highlighted portion of my screen on Sheet1 that corresponds to the data table on Sheet2. If I scroll down and up to refresh the screen it goes away. When I go to Sheet2, the table is selected. I added two lines to the macro to stop and restart screen updating to no avail.
Sub SortM()
Application.ScreenUpdating = False
...
Application.ScreenUpdating = True
End Sub
I am using Excel 2007. Any ideas?