+ Reply to Thread
Results 1 to 5 of 5

Problem with stacks and runtime failures

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Problem with stacks and runtime failures

    Attached is a workbook that I’ve been trying to get working. I’ve used a couple of the great ideas presented in this forum, and individually they’ve worked but when I combine them together portions stop working altogether and at other times I receive stack errors and “Method 'formula' of object 'range' failed” runtime errors.

    Essentially, there are three worksheets (Sheet1, 4 and 8) that share the data in the top 6 rows. If you change any of those fields while in any of those 3 sheets, the data in the others changes to match, so the appearance is that the top 6 rows are the same from sheet to sheet. Sheet1 is the source (for lack of a better term) as the other 2 sheets will update it when they are modified, and their cell’s data is then set back to read from Sheet1. This does not always work, and sometimes one sheet updates but the other does not. It’s also been when changing data in these top 6 rows that the errors occur. The problems are most notable whenever you modify data in the top of Sheet4.

    I’d also like to modify the tab names but this also seems to cause issues with the VBA code (Sheet1=Property Description, Sheet8=Financing, Sheet4=APOD). Sheet2 is a hidden sheet that is used to help with the address field State.
    Attached Files Attached Files
    Last edited by JimDandy; 11-01-2010 at 10:05 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Problem with stacks and runtime failures

    You need to disable events in the Change events of the other two sheets before you reset the contents of sheet1.
    In order to allow changing the tab names, you should refer to the sheets by their codenames - e.g. refer to Sheet1 rather than Worksheets("Sheet1")
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Problem with stacks and runtime failures

    Thanks....[sheepishly] How do I do that?

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Problem with stacks and runtime failures

    Same way you already are in a couple of routines:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Problem with stacks and runtime failures

    ah, ok...now I understand...Thanks!

    I'll try it now and update if all goes well.

+ 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