He is president of Sharon Parq Associates, a computer and publishing services company. Check out Hi, I am unable to work on excel while it pulls the external web data ( refresh every 1 minute ).... Tell the user what's going on and provide an indication of progress, ideally every three to ten seconds.My requirement is to work on another worksheet of the same workbook... I've written several macro programs that take a while to execute. For example, one program I alone use takes about 40 seconds to execute across 12 similar sheets.Name) The above is a simple code that uses to For Next loops to analyze each worksheet against all the worksheets.It compares the name of a worksheet against all the worksheets and moves it based on its name in the alphabetical order.It sorts based on the selection (Yes for Ascending and No for Descending).In case you click Cancel, the code stops and nothing happens. In case you want to keep the original order as well, make a copy of the workbook.Screen Updating = False Dim Sh Count As Integer, i As Integer, j As Integer Sh Count = Sheets.Count For i = 1 To Sh Count - 1 For j = i 1 To Sh Count If UCase(Sheets(j). Screen Updating = False Dim Sh Count As Integer, i As Integer, j As Integer Dim Sort Order As Vb Msg Box Result Sort Order = Msg Box("Select Yes for Ascending Order and No for Descending Order", vb Yes No Cancel) Sh Count = Sheets.
This means that the Excel screen can look like it has "gone crazy" while the macro is running.
If you work with a lot of worksheets in Excel, you would know the management of it can become an issue.
Once you have more than a couple of worksheets, you need to manually arrange these.
Count For i = 1 To Sh Count - 1 For j = i 1 To Sh Count If Sort Order = vb Yes Then If UCase(Sheets(j).
Name) The above code when executed shows a message as shown below.