+ Reply to Thread
Results 1 to 6 of 6

Reopening XLSM causes #VALUE errors

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    Midwest
    MS-Off Ver
    Excel 2007
    Posts
    3

    Reopening XLSM causes #VALUE errors

    I created a new Excel 2007 sheet with VBA code modules in it.
    All functions work perfectly when I create the sheet for the first time.
    When trying to save it, I must do so as an XLSM file due to it telling me it is a VB Project.
    Upon reopening the file again, I get a security message to enable macros, which I allow.
    All cells that had the working function before now show as #VALUE.

    I have tried changing the Excel trust settings to enable all macros but it does not solve the problem when reopening.

    What am I missing??

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Reopening XLSM causes #VALUE errors

    Hello Fred Urble,

    Welcome to the Forum.

    In Excel Trust Settings, click on Macro Settings, and then under Developer Macro Settings, "Check" the box to the left of "Trust access to the VBA project object model".

    Hope that helps.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    01-18-2014
    Location
    Midwest
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Reopening XLSM causes #VALUE errors

    Thanks for your quick response!

    This setting is already checked.
    I have also tried setting the radio button for macro setting above it to allow all macro access vs. being prompted to allow access.
    Either way causes the same results......when creating the sheet for the first time it works.....after saving and reopening with no changes, it shows #VALUE.

    I would add that the VBA code references to a DLL which is in the same folder as the spreadsheet.

    Any other ideas to try?
    Last edited by Fred Urble; 01-18-2014 at 01:51 PM.

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Reopening XLSM causes #VALUE errors

    Hello Fred Urble,

    Thank you for the feedback.

    I think the problem might be lying here somewhere.

    I would add that the VBA code references to a DLL which is in the same folder as the spreadsheet.
    It is difficult to give you a ready solution without seeing your code, but my guess is that somewhere, in one ore more of your VBA subs, or modules, you may try to turn Culculation to False at the beginning of the Code, and then towards the end of the Code, back on to Automatic again.

    Regards

  5. #5
    Registered User
    Join Date
    01-18-2014
    Location
    Midwest
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Reopening XLSM causes #VALUE errors

    I was able to find the problem.

    I was putting the DLL file in the same directory as the spreadsheet per instructions.
    When I put the DLL into the Windows folder, the sheet began calculating properly.

    Thanks for your help and replies.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Reopening XLSM causes #VALUE errors

    Hello Fred Urble,

    Good, glad you were able to sort it out!

    Please remember to mark your thread as "Solved".

    Regards.

+ 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. Split .xlsm workbook into multiple xlsm workbooks w/ 1 tab each
    By JenBR in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-23-2014, 07:05 PM
  2. Replies: 2
    Last Post: 10-04-2013, 10:12 AM
  3. [SOLVED] Copy/Save As xlsm workbook to new xlsm workbook is not copying the code with it
    By Grinchy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2013, 09:30 AM
  4. Replies: 3
    Last Post: 05-21-2013, 08:22 AM
  5. Save file xls file as xlsm - macro won't run in xlsm workbook
    By captbluefin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2012, 11: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