+ Reply to Thread
Results 1 to 2 of 2

Excel crashes when trying to remove static variables

  1. #1
    Registered User
    Join Date
    12-20-2014
    Location
    North America
    MS-Off Ver
    2013
    Posts
    40

    Excel crashes when trying to remove static variables

    I was able to modify an algoritm to output the data from a range in the worksheet to a text file.

    Please Login or Register  to view this content.
    From there I was trying to delete extraneous statements, including ones that weren't need such as this:
    Please Login or Register  to view this content.
    Excel crashes immediately. I can "pause" & run the program. But if I "reset" or delete the previous "Static" statements the program crashes.

    How may I overcome this?
    Attached Files Attached Files
    Last edited by excelicus; 08-22-2018 at 09:45 AM. Reason: Can't delete static variable

  2. #2
    Registered User
    Join Date
    12-20-2014
    Location
    North America
    MS-Off Ver
    2013
    Posts
    40

    Re: Excel crashes when trying to remove static variables

    I was able to resolve the problem by re-saving the file as another .xlsm file, and when it started, made sure macros was disabled.

    Then I right clicked on the sheet name on the lower left hand corner, and selected view code. Was then able to remove the 2 static variables, and press the square "reset" icon.

    Any other solution would be appreciated.

+ 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. Pass Boolean in Class Module
    By krishns in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2015, 04:38 AM
  2. What can a class do that can't be duplicated in a standard module?
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2014, 09:20 AM
  3. [SOLVED] Code locks cells when inserted in sheet module but returns error in standard module
    By yoda66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2014, 07:39 AM
  4. [SOLVED] Using the year function in a Class Module
    By chipnputt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2013, 11:48 AM
  5. [SOLVED] Analyze Within An Array and Pass Back Once vs. Pass at each applicable Instance
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2012, 05:25 PM
  6. [SOLVED] pass variable for user form module to function
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2012, 10:10 PM
  7. An upgrade to 64bit Office 2010 creates a function error in a standard module?
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-26-2012, 10:05 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