Guest User

Untitled

a guest
Jul 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Dim excel
  2. Set excel = CreateObject("Excel.Application")
  3. excel.ScreenUpdating = False
  4.  
  5. ... [all the codes] ...
  6.  
  7. ' Close the workbooks and exit excel
  8. excel.DisplayAlerts = False
  9. For Each wb In Array(WB1, WB2, WB3, WB4, WB5)
  10. excel.wb.Saved = True
  11. excel.wb.Close SaveChanges:=False
  12. Next
  13. excel.ScreenUpdating = True
  14. excel.DisplayAlerts = True
  15. excel.Quit
Add Comment
Please, Sign In to add comment