+ Reply to Thread
Results 1 to 2 of 2

vba application acting irregular

  1. #1
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    vba application acting irregular

    Ok I wrote my first application from ground up purely from help from you guys here and reading online material. However now that the application is basically near completion, I observed that in some instances when I try to execute the application I get a run time error in areas that i know for a fact is working. When I restart the computer the application will again start to operate in a fully functional manner.

    Can anyone shed some light here? Why do I have to restart my computer for the application to regularize itself?

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: vba application acting irregular

    Hi, kmakjop,

    Can anyone shed some light here?
    Sadly not me with the little light I can bring in without looking at your code. Avoid Copy&Paste, set objects for workbooks and worksheets, release these at the end (although MS tells that they only have scope for the run-time of the procedure), avoid using too many globals and statics, maybe use smaller procedures for tasks which are used multiple times where information is passed as parameter.

    HTH,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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