+ Reply to Thread
Results 1 to 22 of 22

sudden slow start of Excel 2003 VBA macro programmes

  1. #1
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    sudden slow start of Excel 2003 VBA macro programmes

    On my old PC, I ran excel 2003 VBA programmes)with lots of macros) on windows 10 with no problems.
    Just got a new Dell 8930 and transferred all this Excel stuff to it.
    Now, when I run the same macros, they take much much longer to load.
    As an example, a complex one now takes 40seconds to load. A simple one, almost immediately.
    In all cases, once loaded, they perform perfectly correctly.
    If I reload the complex one 5 minutes later or even after re-booting the PC, it loads immediately.
    Strangely, on my Dell XPS13 laptop, which has always had these same Excel programmes loaded,
    they also are taking a long time to load.
    Both computers are fully up to date with Windows 10 updates.
    Help please

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Do the macros run automatically when the workbook is opened?
    Rory

  3. #3
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Hi Rory - Yes they do

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Are you still using Excel 2003 on the new machine?

  5. #5
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Yes I am. I've changed nothing as far as I'm aware.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Do you save it after the first load? It sounds as though it's either having to recompile the code, or recalculate everything (though it should only do that if the workbook was last saved on a different version) on that first run. If it doesn't happen after the first one, I guess it's not a big deal?

  7. #7
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    After the first load, whether I save it or not before closing, then re-open, it will reload normally. Then I close it. If I then go away and do other things on the PC, then come back to re-open, it then takes ages to load.
    However, it seems that if I don't touch the PC after opening and closing it will re-open normally, even if I re-boot the PC.
    Still baffled.

  8. #8
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Sorry, that last bit about after re-booting is wrong. After a PC re-boot, it again takes ages to load.....

  9. #9
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Another piece of information - as I said, the programme takes ages to load after booting / re-booting,
    but not after bringing it out of sleep.
    After sleep, it loads normally.

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: sudden slow start of Excel 2003 VBA macro programmes

    If you disable macros, is the load immediate or still slow?

  11. #11
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    I need to clarify what I meant by long time to load.
    I click load, and part of the application does load immediately.
    (This part is a VBA formatted set of cells with numbers and colours,
    and the display of a Userform.
    Each cell is a selectable date of the month and the Userform displays text messages for a selected date.
    The application is a diary and what seems to be taking the time
    is the generation and display in the Userform of the messages for the given date.
    The data used to populate the Userform for a given day is derived from a completely separate xls database which is called up from diary's code.
    Disabling the macros as you suggested resulted in the immediate generation of the formatted cells, but no Userform.
    This is surprising since the cell formatting is done with code which is supposed to be disabled.
    I hope this might give better clues as to what's happening.

  12. #12
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: sudden slow start of Excel 2003 VBA macro programmes

    I was just trying to verify that the code was the root cause of the slowdown, which does seem to be the case.

    It sounds like a recent Windows update might be the issue if the code used to work ok before. Of course, Office 2003 isn't supported on Win10 so you won't get any help from MS, unfortunately. If you can post the workbook, I can try and have a look at it when I have time to see if I can replicate the issue, and find a fix.

  13. #13
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Before I post the code (which to me with no deep knowledge of VBA coding is probably naive and overly complex)
    I will try and remove some recent updates and see what happens.
    I will post the results when done.

  14. #14
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    I removed the windows 2004 update and this reduced the load time from 40 to 20 seconds.
    I also found that when bringing the PC out of Sleep, there was no delay,
    whilst when booting from shutdown, or on a Restart the delay persisted at 40 secs.
    However I had a look at the various modules I had in the "This Workbook" section of the VBA editor
    and after "refining them" to provide a simpler start up, the problem would seem to have disappeared.
    If this is indeed so, it makes sense, as my other simpler workbooks start immediately.
    I'm going to keep this post open for a day or two more just in case, but if things remain OK, I'll close it.
    Thanks for all your help rorya - like the dog!

  15. #15
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    .... error line 3 above ...the delay persisted at 40 secs, should read 20 seconds.

  16. #16
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    I spoke too soon.
    I have 2 workbooks which exhibit the delay problem still.
    What I have now found is that the delay seems to start when the code in either of them first hits a "With" instruction.
    I made this simple macro and the delay starts when executing the 2nd (Font.Size) line after With Range("Cal").

    With Range("Cal")
    .Interior.ColorIndex = xlNone
    .Font.Size = 12
    .Font.ColorIndex = 1
    .Font.FontStyle = "Bold"
    .ClearContents
    End With

    The delay is 15 - 18 seconds.
    After the delay, it then runs to the end OK.

    Curiously, after running the above, the 2 other problem workbooks run without delay.

    Any ideas?

  17. #17
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Some further information.

    Now I find that if I open Excel.exe to a blank spreadsheet,
    select Format/Cells (ok so far) then, say, Font, the old delay starts for 15 seconds then,
    as before, all is well and other excel apps start immediately.

    I have trawled the Internet and tried every suggested solution I can find but none has had any effect whatsoever.

    If anyone has any ideas as to why this is, or where I might start to look for a solution I would appreciate it.

  18. #18
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: sudden slow start of Excel 2003 VBA macro programmes

    What printer are you using? Do you have another one you can connect to?

  19. #19
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    I have 2 printers.

    One is connected directly to the PC (USB hard wired) and has been turned off during all the problems.

    The other is connected via the internet, and again turned off during the problems,
    though presumably it's still "connected" to the internet.

  20. #20
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Try connecting to the built in Microsoft XPS document printer and see if that is any better.

  21. #21
    Registered User
    Join Date
    11-01-2013
    Location
    Essex UK
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Well, finally that seemed to do the trick.
    Previously, I had no printer set as the default.
    I set the Microsoft XPS document printer as default and now all Excel applications start immediately.
    Where the connection between printers and MS Office is I can't imagine.
    Just to be sure I'll not sign off as solved for a couple of days, but this time it does look good.
    Many thanks again rorya for all your help.

  22. #22
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,908

    Re: sudden slow start of Excel 2003 VBA macro programmes

    Parts of Excel's on-screen display is tied in to printer drivers for some reason.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Slow Workbook All of a Sudden
    By joconnor125 in forum Excel General
    Replies: 0
    Last Post: 08-02-2012, 01:29 PM
  2. Macro all of a sudden got really slow
    By scara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-02-2011, 06:51 AM
  3. Excel 2003 macro working very slow in Excel 2007 (xlsm format)
    By kapil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-17-2010, 11:26 AM
  4. [SOLVED] Office 2000 Excel Macro runs very slow in 2003, why?
    By The_Other_Mike in forum Excel General
    Replies: 1
    Last Post: 05-10-2006, 11:40 AM
  5. [SOLVED] Macro slow after 2003 upgrade
    By Nate Moeller in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2006, 08:15 PM
  6. [SOLVED] Excel 2003 Slow Start Up
    By SysAdmMAX411 in forum Excel General
    Replies: 1
    Last Post: 01-18-2006, 02:40 PM
  7. [SOLVED] Help - Excel 2003 Macro execution SLOW!
    By C C in forum Excel General
    Replies: 5
    Last Post: 12-02-2005, 12:35 PM
  8. [SOLVED] Delay/Slow a Macro In Excel 2003
    By Kara in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2005, 08:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1