+ Reply to Thread
Results 1 to 5 of 5

Different Workbooks interfering with each other

  1. #1
    Registered User
    Join Date
    09-20-2014
    Location
    El Dorado Hills
    MS-Off Ver
    2010
    Posts
    2

    Different Workbooks interfering with each other

    I am suddenly having a strange problem. I open a workbook that has cells calculated with a function call in VBA. The workbook works fine when it is the only one open. When I open another workbook that also has some cells calculated with function calls in VBA, the first workbook changes all cells that were calculated with a function to #value. I go to that workbook and press CNTL-ALT-F9 and the values come back but then all cells calculated with functions go to 0 on the other workbook.

    The functions are not the same name and both are contained in a module saved within each workbook. The functions do the same thing (they calculate income tax) but I changed the names thinking they were conflicting with each other and still only 1 sheet at a time will display the cells that use a function to calculate the values.

    Seems to be a fairly recent problem as they have been opened together in the past and did not conflict with one another. Not sure what I changed to cause the confliction.

    Any suggestions?
    Last edited by mwollert; 04-29-2017 at 04:46 PM. Reason: Changed CNT-ALT-F to CNTL-ALT-F9

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Re: Different Workbooks interfering with each other

    I think you will need to post the code, or even better the sheets.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  3. #3
    Registered User
    Join Date
    09-20-2014
    Location
    El Dorado Hills
    MS-Off Ver
    2010
    Posts
    2

    Re: Different Workbooks interfering with each other

    The code for both functions is :

    Please Login or Register  to view this content.
    I changed the name in the second workbook to rTaxCalculate
    Last edited by mwollert; 04-29-2017 at 07:11 PM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Different Workbooks interfering with each other

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    If posting code please use code tags, see here.

  5. #5
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Re: Different Workbooks interfering with each other

    Looks like you added the code tags so I presume I can post.

    The code seems to work for me (in two books) - I don't think you should need to change the second workbook's function name, maybe you made a mistake doing that or there is some other issue with your workbooks that we cannot see.

    You could try putting the macro in a personal workbook or similar instead.

+ 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. Formulas interfering with check for text
    By jomili in forum Excel General
    Replies: 2
    Last Post: 03-30-2011, 10:25 AM
  2. Add rows without interfering with VBA marcro's
    By Stiff in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-19-2009, 10:24 AM
  3. Fuction in conditional formatting interfering with other VBA code.
    By chunk777 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2008, 12:33 PM
  4. Page Protection interfering with Hiding Rows
    By micheldevon@gmail.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2006, 09:40 AM
  5. Page Protection interfering with Hiding Rows
    By micheldevon@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-02-2006, 05:50 PM
  6. Office XP SP 3 interfering w/ Excel
    By shannie5236 in forum Excel General
    Replies: 0
    Last Post: 10-10-2005, 11:05 PM
  7. [SOLVED] Office XP SP3 interfering w/ Excel
    By shannie5236 in forum Excel General
    Replies: 0
    Last Post: 10-10-2005, 11:05 PM
  8. Open documents interfering with saving
    By mgasparel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2005, 05:26 PM

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