Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA File Close Taking 2 minutes. Help code snip in message.

Status
Not open for further replies.

athlon551

Technical User
Apr 19, 2005
4
US

'close File

Application.DisplayAlerts = False
Workbooks(NewWorkbookName).Close SaveChanges:=False
Application.DisplayAlerts = True

Why doe is take so long to close a text file.....csv file in excel vba?

Is there a better method?

Matt
 
I'm not sure that it would make any difference but have you tried switching to the workbook and then using

Activeworkbook.close false

Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top