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!
Last edited by turningitred; 11-19-2009 at 08:57 PM.
Bump no response
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!!!
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.
Ok, that would make sense, how would I force calculation at the end of the click event?
Got it!
Added
To the beginning and end of the click event. Hopefully it still works well with 07.Code:Application.Calculation = xlManual Application.Calculation = xlAutomatic
Thank you so much!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks