+ Reply to Thread
Results 1 to 5 of 5

Macro reverts to Function

  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    Chicago, Il
    MS-Off Ver
    Excel 2007
    Posts
    67

    Macro reverts to Function

    I have a workbook with a macro that seems to run fine but then i added a sheet that required Functions in a module, now when i run my macro it calls the funtions and tries to run them as macros as well and locks up the workbook.
    Has anyone run into this before and what do you do to get away from it

    Thanks
    Ricardo9211

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro reverts to Function

    Pardon ...?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-28-2009
    Location
    Chicago, Il
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Macro reverts to Function

    I have a work book that has 2 sheets one of the sheets has functions written in a module these functions are used for calculations IE
    Please Login or Register  to view this content.
    Then i have another sheet in which the macro opens up a another workbook then updates links IE:
    Please Login or Register  to view this content.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro reverts to Function

    From http://www.decisionmodels.com/calcsecretsi.htm:

    Opening a .CSV file

    Whenever you open a .CSV file, either through VBA or File-->Open, a recalculation of all open workbooks will be triggered, even if calculation is in Manual. Switching off .EnableEvents does not stop this recalculation. The only way I have found to prevent this recalculation from happening is to use VBA to switch Worksheet.EnableCalculation to False for each worksheet that you do NOT want to be calculated.

  5. #5
    Registered User
    Join Date
    07-28-2009
    Location
    Chicago, Il
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Macro reverts to Function

    Thank you very much, that helped
    Last edited by Ricardo9211; 01-26-2010 at 05:22 PM. Reason: SOLVED

+ 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