+ Reply to Thread
Results 1 to 2 of 2

VBA Crashes Excel (no errors) Code creates/saves workbooks

  1. #1
    Registered User
    Join Date
    08-20-2014
    Location
    Portland, Or
    MS-Off Ver
    2007
    Posts
    3

    Unhappy VBA Crashes Excel (no errors) Code creates/saves workbooks

    Hi VBA family,

    I am operating on Excel 32bit.

    I have a code that I've used for years. I've had to tinker it every now and then as it seems Windows Updates/Company Network Policies seem to "break" the VBA code and some lines error out for some reason. It is a simple macro -- and the file size is not large (4.5MB)...However this time I cannot figure out how to get the code working again. I will say sometimes it works for a few loops, but eventually crashes.

    My code is used for creating individual expense reports by cost center. In a master file, The VBA code loops through cost centers assigned to certain groups (people) and creates a separate file with all their monthly expenses summarized in a presentable view -- the macro creates about 70 files a month. This time I am stumped and not sure what to do to fix the macro -- it crashes every time on a line executing
    Please Login or Register  to view this content.
    I've tried running the code on a network, local network, virtual machine ...Excel safe mode, I created a new workbook and copied the code over to that workbook, tried repairing Office....

    I am attaching a workbook example which hopefully helps further explain. Looking for advice if my code is causing excel to crash (is there newer code to use/more efficient)?

    Thanks to everyone who can help.. it is greatly appreciated!

    Best,

  2. #2
    Registered User
    Join Date
    08-20-2014
    Location
    Portland, Or
    MS-Off Ver
    2007
    Posts
    3

    Re: VBA Crashes Excel (no errors) Code creates/saves workbooks

    Attaching Workbook.
    Attached Files Attached Files

+ 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. Need Macro that copies Sheets to 3 different open excel workbooks and saves it
    By Godfrey8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2019, 11:03 AM
  2. Code Errors Out When Multiple Workbooks Open
    By scarlettw123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2018, 05:42 AM
  3. Excel Crashes When Closing Certain Workbooks
    By billtreloar in forum Excel General
    Replies: 24
    Last Post: 08-06-2016, 01:49 PM
  4. [SOLVED] Running VBA / Excel Crashes / Memory Errors
    By tejay in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2015, 06:19 AM
  5. [SOLVED] Creating Loop that creates and saves specific sheets(tabs) to PDF
    By dash11 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-02-2012, 04:14 PM
  6. Workbooks("").Close Crashes Excel With Mutiple Workbooks Open
    By exs120 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2011, 03:24 PM
  7. How to create a template that creates and saves as sequencial num.
    By Viper in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2005, 07:10 PM

Tags for this Thread

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