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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA running slow in Excel

Status
Not open for further replies.

Dukster131

Programmer
Apr 28, 2002
10
US
I am creating a VBA project in Excel for a company. It was working and loading fine and then suddenly whenever I tried to load the file or exit the file it was extremely slow (several minutes).

Is there a reason for this to happen.

The file is about 2.5 mb.

I have tried removing the modules and forms and saving the file and the importing the modules and forms, but this didn't seem to help
 
Try adding into your code

Application.screenupdate = false

Also normally slow code in Excel can also be attributed to the worksheets themselves, ie have you got shading or coloured fonts in cells that arenet needed, are there any [citures that could be got rid of or shrunk in size, do you have any external linking in the spreadsheet, etc etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top