+ Reply to Thread
Results 1 to 2 of 2

Excel closes when using VBA to write VBA code

  1. #1
    Registered User
    Join Date
    06-04-2007
    Posts
    1

    Excel closes when using VBA to write VBA code

    I'm trying to write a macro that will update the class module for a select number of sheets in 131 other workbooks. The variable being passed in is the sheets codename. It seems that the module is updated but a fatal error happens when the end with line is run while stepping through the code. Any ideas?

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 06-04-2007 at 01:19 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Are you adding the updated routines at the end of the existing code or is there a delete old routine code that runs before the code you posted?

    If the former, you are setting up conflicts that might be the cause of your problem.

+ 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