+ Reply to Thread
Results 1 to 6 of 6

concatif function breaks beforedoubleclick function just by being there?

  1. #1
    Registered User
    Join Date
    11-16-2009
    Location
    United States
    MS-Off Ver
    Excel 2004
    Posts
    24

    Unhappy concatif function breaks beforedoubleclick function just by being there?

    Hopefully someone can help me with this. I have a tracking sheet (attached) that has many functions, but I'm having trouble with two of them. First of all, I have a Worksheet_Change event set that when a cell is cleared, it fills the cell with a formula to use the record above it as a default value if another cell is equivalent. This worked when I first wrote it, but now it seems to break every other time I use it. When assigning the formula it returns a Method Default/FormulaR1C1/Offset failed error message. It seems to be different for each one, each time and I can't figure out what the problem is.

    The other problem I'm having is that I wrote a BeforeDoubleClick event to expand or contract any given record, or series of records. this too worked when I initially wrote it, but now is only hiding one row when it should be hiding eight or more.

    I'm not terribly versed in VBA and totally baffled as to why I'm having these problems. As I side note, any ideas to clean up any of the code and make this run smoother (as ther will be many more series added when complete) would be greatly appreciated!
    Attached Files Attached Files
    Last edited by turningitred; 11-19-2009 at 08:57 PM.

  2. #2
    Registered User
    Join Date
    11-16-2009
    Location
    United States
    MS-Off Ver
    Excel 2004
    Posts
    24

    Re: VBA Define Cell Formula inconsitently broken & Row Hide/Unhide Broken

    Bump no response

  3. #3
    Registered User
    Join Date
    11-16-2009
    Location
    United States
    MS-Off Ver
    Excel 2004
    Posts
    24

    Re: VBA Define Cell Formula inconsitently broken & Row Hide/Unhide Broken

    Ok, so I think I've figured out one thing. The concatif function that is installed is somehow causing my beforedoubleclick event that expands and contracts my records to break. If I remove the concatif function it works fine, but with it just sitting there, only one row is hidden. Please help!!!

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: concatif function breaks beforedoubleclick function just by being there?

    I recall that I had a similar issue with ConcatIf in one of my spreadsheets.

    I can't exactly remember the fix, but it was some combination of disableing events (or was it Calculation to Manual?) in the double click routine or explicitly forcing a Calculate at the end of the double click routine.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Registered User
    Join Date
    11-16-2009
    Location
    United States
    MS-Off Ver
    Excel 2004
    Posts
    24

    Re: concatif function breaks beforedoubleclick function just by being there?

    Ok, that would make sense, how would I force calculation at the end of the click event?

  6. #6
    Registered User
    Join Date
    11-16-2009
    Location
    United States
    MS-Off Ver
    Excel 2004
    Posts
    24

    Re: concatif function breaks beforedoubleclick function just by being there?

    Got it!

    Added

    Please Login or Register  to view this content.
    To the beginning and end of the click event. Hopefully it still works well with 07.

    Thank you so much!

+ 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