+ Reply to Thread
Results 1 to 2 of 2

Are my changes making Excel crash?

  1. #1
    Registered User
    Join Date
    09-15-2009
    Location
    Leeds
    MS-Off Ver
    Excel 2000
    Posts
    27

    Are my changes making Excel crash?

    Hi,

    I got someone to write some code for me a while back that produces invoices on the click of a button.

    The macro basically takes data from one Excel spreadsheet and drops it into another Excel spreadsheet which is in the form of an invoice.

    Yesterday I made some changes to the part of the macro where data is being placed in the invoice. I am not an experienced programmer but made the changes just by using common sense. To my surprise the changes I made seemed to work perfectly, but, now after the invoices have all been produced, I get an error message saying Excel must close. This is a strange error because it seems to pop up after I have already saved and closed all Excel files. It isn't causing any problems as such but I am just wondering why I am getting this error message now when I didn't before.

    My guess is that I have done something wrong with my coding. Bearing in mind the changes are working I don't really need to explain what the code is doing. All I need to know is if it is 'bad coding' that may be creating the problem....

    Previous code:
    Please Login or Register  to view this content.
    After my changes:

    Please Login or Register  to view this content.

    The changes are basically to do with where and how VAT is displayed on the invoice. Are my changes causing the error or is my coding ok?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Are my changes making Excel crash?

    Hello loll_l,

    It isn't possible to determine if the partial code you posted is to blame. It would help to see the all of the code in its entirety. Could you post the workbook for review?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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