+ Reply to Thread
Results 1 to 9 of 9

Can the following Vba's be improved to run quicker.

  1. #1
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Can the following Vba's be improved to run quicker.

    Hi and thanks for looking at my post.

    I have several Vba's in the enclosed Calendar worksheet, however have I compiled them correctly (as still learning Vba) as they seem to run a bit slow.

    I do not take any credit for the original non Vba Calendar (an Excel Guru created it) I have added on to it.

    Calender v1.xls

    I would be most grateful if anyone has any tips or suggestions on how to speed up the Vba calculations

    Many thanks

    Toonies

  2. #2
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Can the following Vba's be improved to run quicker.

    on the vba's I use the following

    Application.ScreenUpdating = False

    code

    Application.ScreenUpdating = True

  3. #3
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Can the following Vba's be improved to run quicker.

    I have merged a 3 Vba's together into the following

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Can the following Vba's be improved to run quicker.

    Because workbook contains many formulas, during execution macros you need turn off the calculation.
    It should be also turn off a reaction to the events.

    I rebuilt the whole somewhat.
    See attachment.

    Artik
    Attached Files Attached Files

  5. #5
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Can the following Vba's be improved to run quicker.

    hi now thats a nice piece of work

    I do have one question

    when I select a name with the dropdown menu on the summary page is there any way that the calculation could be smoother.

    What I mean is that you can see the calculation occur.

    It copy from the 1st row C3:D3 downwards and then shows the same in each row to C4:D50 whilst calculating

    Is it possible not to see the calculation happen if you know what I mean

  6. #6
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Can the following Vba's be improved to run quicker.

    Quote Originally Posted by Toonies View Post
    Is it possible not to see the calculation happen
    In this solution, it is rather impossible, because when you select a name with the dropdown, in the first the sheet is calculation, and only then the macro is run.

    But you can get rid of complex formulas. See attachment.

    Artik
    Attached Files Attached Files

  7. #7
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Can the following Vba's be improved to run quicker.

    Your solution works a treat.

    Can I ask where did you learn about VBA, have you got any good pointers or books that may improve my knowledge

    Many thanks

    Toonies

  8. #8
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Can the following Vba's be improved to run quicker.

    I grew up on Walkenbach's books. Solving the problems of other people, on forums like this, it is a great training too.

    Artik

  9. #9
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Can the following Vba's be improved to run quicker.

    I have amend the calendar as normal with Excel not all Datepickers work with each version

    I have implemented your amended VBA's however I now find that the date transfer from the userform calendar is running slow again everything else works ok.


    popup calendar1.xls

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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