+ Reply to Thread
Results 1 to 6 of 6

Circular reference error

  1. #1
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Circular reference error

    Hi Guys,

    I expect you will need more info but the basics of it is, I have some circular refrences set up so that when a value is input in say cell b1 then a static date auto populates in A1. To do this I had to go to options, calculation, tick the box for iteration then change the iteration amount from 100 to 1. Thats all grand and works well. I also have the spreadsheet set up that there is a timer on it so if someone else has it open and has not been active on it for 10 minutes then the workbook will save and close. On some occassions after it has timed out and I reopen the workbook I get the circular reference error and I then need to go back to options, calculation, tick the box for iteration then change the iteration amount from 100 to 1. Like I said this does not happen every time the timer runs out but some times. I'm not sure if that is the reason or if there is another reason. Any ideas greatly appreciated. I have attached a sample of the worksheet I'm using. I have removed some sheets due to size. I have made some changes over time to the VBA codings so I'm worried I might have made a mistake somewhere and there might be a code amoung all the code.
    Attached Files Attached Files
    Last edited by Nitro2481; 04-13-2015 at 09:33 AM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Circular reference error

    Hi Matt,

    a. I haven't found anything in your code that turns the AutoFilter off, so I can't comment on that problem.

    b. I haven't tested the code, but each time you protect a sheet, you probably want to mimic the following code you have in your Finished() routine in Module 5. I may help you with your Sort problem.
    Please Login or Register  to view this content.
    c. Try adding the following code in the 'ThisWorkbook' Module:
    Please Login or Register  to view this content.
    I hope this helps.

    Lewis

  3. #3
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323
    Quote Originally Posted by LJMetzger View Post
    Hi Matt,

    a. I haven't found anything in your code that turns the AutoFilter off, so I can't comment on that problem.

    b. I haven't tested the code, but each time you protect a sheet, you probably want to mimic the following code you have in your Finished() routine in Module 5. I may help you with your Sort problem.
    Please Login or Register  to view this content.
    c. Try adding the following code in the 'ThisWorkbook' Module:
    Please Login or Register  to view this content.
    I hope this helps.

    Lewis
    Hi Lewis.

    Have given this a quick try. The sort issue worked and is fixed. The circular reference issues briefly looks like it worked too. I'll have to trial this with the other users for a few days but looking good. Just one thing over noticed. If I press the x in the top right hand corner to close the workbook only, it brings me back to the log in screen. It doesn't close completely. I have to press the x to close the excel program which is a little annoying when you have other workbooks open. Any ideas? Should I open a new thread.

    Thank you
    Matt.

  4. #4
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Circular reference error

    Hi Lewis

    Have given this a quick try. The sort issue worked and is fixed. The circular reference issues briefly looks like it worked too. I'll have to trial this with the other users for a few days but looking good. Just one thing over noticed. If I press the x in the top right hand corner to close the workbook only, it brings me back to the log in screen. It doesn't close completely. I have to press the x to close the excel program which is a little annoying when you have other workbooks open. Any ideas? Should I open a new thread.

    Thanks Matt.

  5. #5
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Circular reference error

    Hi Matt,

    If I press the x in the top right hand corner to close the workbook only, it brings me back to the log in screen. It doesn't close completely. I have to press the x to close the excel program which is a little annoying when you have other workbooks open. Any ideas? Should I open a new thread.
    I was able to duplicate the problem, and the following code which is also in post #2 above, should solve the problem.

    In the Thisworkbook module:
    Please Login or Register  to view this content.
    Lewis

  6. #6
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Circular reference error

    You did it again Lewis. Worked perfectly. Thanks a mil for all your help.

    Matt

+ 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. Circular Reference Error
    By jhclaws in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-10-2013, 05:52 AM
  2. Circular reference error
    By Cjax in forum Excel General
    Replies: 5
    Last Post: 03-24-2011, 10:10 PM
  3. [SOLVED] Circular Reference Error Even Though There Is No C.R.
    By MDW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2006, 02:42 PM
  4. [SOLVED] Circular Reference error...
    By Regnab in forum Excel General
    Replies: 0
    Last Post: 05-22-2006, 08:25 AM
  5. [SOLVED] Circular reference error
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2005, 11:01 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