tmd63
New Member
- Joined
- Feb 21, 2014
- Messages
- 40
- Office Version
- 2013
- 2003 or older
- Platform
- Windows
I have this code that opens a workbook on a local website on our intranet and then copies the sheet into a local file.
But this is a large file and the copy takes time to work. Is there some way of displaying a file copy progress bar? Note this is part of a much larger code and I need to insert the progress in here instead of putting all the code inside a progress form as I have seen done before.
Code:
Workbooks.Open ("http://teamspace.****.com/sites/****/****/Shared%20Documents/Lookup.xls")
LastRow = ActiveSheet.Cells.Find("*", , xlFormulas, xlPart, xlByRows, xlPrevious).Row
ActiveSheet.Range("A1:M" & LastRow).Select
Selection.Copy
Application.DisplayAlerts = False
ActiveWorkbook.Close
But this is a large file and the copy takes time to work. Is there some way of displaying a file copy progress bar? Note this is part of a much larger code and I need to insert the progress in here instead of putting all the code inside a progress form as I have seen done before.