+ Reply to Thread
Results 1 to 3 of 3

Workbooks.Open freezes excel...Macro-enabled and not Macro-enabled :(

  1. #1
    Registered User
    Join Date
    01-08-2018
    Location
    Seattle
    MS-Off Ver
    Excel 2016
    Posts
    8

    Question Workbooks.Open freezes excel...Macro-enabled and not Macro-enabled :(

    Hi All,
    It's my first time attempting to extract information from a second workbook as part of a module in the original workbook.

    This workbook already has 2 large modules in it, and the workbook I need to pull data from will be an exact copy of the current workbook, but with the previous month's data. However, everytime I run the below code (3rd module now) excel freezes as it opens the named file, and I have to force close it all. This happens when I save previous month as macro-enabled and just a normal excel workbook.

    Please Login or Register  to view this content.
    This problem doesn't occur when I open much smaller random excel files, so I know the code itself is fine but maybe I should be manipulating last months file somehow to make it easier for excel to open. Any insight is greatly appreciated (and unfortunately I cannot post original files as they are full of data that would take far too long to scrub).

    Thanks!

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Workbooks.Open freezes excel...Macro-enabled and not Macro-enabled :(

    If you are saving them in the same folder with only the file extension to differentiate between the macro enablee and a standard workbook, then it is probably causing the compiler and the FAT some misery trying to pull the data together when you attempt to re-open the files. It would be wise to save them with some variation to the file name, if nothing more than A and B. Probably eating up memory trying to separate the two files internally and then load the file.
    Last edited by JLGWhiz; 03-19-2018 at 06:49 PM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    01-08-2018
    Location
    Seattle
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Workbooks.Open freezes excel...Macro-enabled and not Macro-enabled :(

    Hi JLG, thanks for your suggestion but no luck.

    Are there alternative ways to try to open the workbook to see if they freeze the screen as well?

+ 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. [SOLVED] Saving Macro-Enabled Workbooks.
    By raffyjavellana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2015, 02:01 AM
  2. [SOLVED] Merge two Macro-Enabled Workbooks into one?
    By excellenthelp in forum Excel General
    Replies: 3
    Last Post: 05-28-2014, 06:37 PM
  3. [SOLVED] Excel Intermittantly Won't Open Macro Enabled Workbooks
    By Philb1 in forum Excel General
    Replies: 15
    Last Post: 04-24-2014, 01:11 PM
  4. [SOLVED] Saving Macro-Enabled Workbooks
    By Paschen in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 11:29 AM
  5. [SOLVED] Macro to Saving Workbook Sheets as Separate Macro-Enabled Workbooks
    By puppetpalace in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2013, 01:58 PM
  6. Replies: 0
    Last Post: 08-07-2012, 02:19 PM
  7. Macro to open Excel 2007 workbook - with macros enabled
    By CCL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2011, 06:39 AM

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