Discussion on:

13
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
I have a simple main form which derives the value from a another form's combo box. The main form has a subform . I have a conditional macro on the subform "On Open" event which works when I open the subform separately but when the Main form is opened through the combo form I get an error "that the control name could not be found/ it is mis spelt .... " Why does the Main form not read the sub form control name or the macro of the sub form?
0 Votes
+ -
Contributr
That error message means it can't find the control you've referred to. Since you're working with a main/sub form configuration, my best guess is that you've not used the proper syntax to refer to a control outside the current form. http://support.microsoft.com/kb/113352
0 Votes
+ -
Oops!!
liljim@... 24th Apr 2012
The accompanying Excel spreadsheets are wrong. The series for Michaels and the series for Hancock are identical. Hancock should be the series adjacent to Michaels. Other than that one error, this is a very useful article. Thank You.
0 Votes
+ -
Contributr
I just sent corrected workbook demos to the editor -- they'll be available soon. The fix is easy, in the meantime. Just delete MichaelsSeries and recreate it.
0 Votes
+ -
More basic way
N / A Updated - 24th Apr 2012
I just use a mixed (absolute and relative) range for the series. For example, the first series when you have 3 rows of data could be DynamicChart1!$A$2:$A5 (no dollar sign for the 5). I start out with one more row in the range than I actually have of data. I leave the last row blank or indicate that it is a place holder. To add more data I select the place holder row and insert a new one above it. to eliminate any ill effect from having the last (non-data) row included in the chart you can use zero or functions like MAX($A$2:$A4), MIN($A$2:$A4), or AVERAGE($A$2:$A4), depending on the chart type and how it is used.
0 Votes
+ -
Didn't work
HardwareEng 24th Apr 2012
As a hardware engineer, I guess I must be daft. I tried using the table method several times and followed the instructions to the letter, but when I added the March row and data, the chart did not dynamically update. I looked for a setting in Office/Excel 2010 options, but could find nothing. Is it a setting?
1 Vote
+ -
Excel > Options > Proofing
Click the "AutoCorrect Options" button
In the dialog box that pops up, select the second tab, "AutoFormat As You Type"
Make sure the box for "Include New Rows and Columns in Table" is checked

Susan's table method worked fine for me (XP/Excel 2010)
0 Votes
+ -
Contributr
Thanks Jody!
ssharkins@... 26th Apr 2012
Jody is correct -- there is an option that might impact this behavior and Jody's instructions are perfect. By default, this option is enabled, so I didn't think to mention it. I should have and I apologize for the inconvenience. Just remember, changing these settings can have unintended consequences -- someone disabled it for a reason most likely!
0 Votes
+ -
It's working
HardwareEng 25th Apr 2012
I discovered that the table was not created correctly, so I guess I didn't follow Susan's instructions to the letter after all.

Thanks for the help!
0 Votes
+ -
Pro
This is great!
Ole88 27th Apr 2012
I can see applications for this already. I have a current project kicking off that I could use this for until I get the web application built for it. Thanks Susan!
0 Votes
+ -
Contributr
Dynamic charting has tremendous potential for creating user-friendly apps that return good visual information for little effort.
0 Votes
+ -
Contributr
I mean...
ssharkins@... 29th Apr 2012
Effort on the user's part -- not yours, but fortunately, it isn't a difficult technique to implement. Just requires knowing your data and a little imagination.
The dynamic formula method is great. I've been playing with this and trying to figure it out on a banking spreadsheet I maintain. The problem is, I've been maintaining the sheet for over 2 years now, so I have a lot of data in it. I don't want to lose the old data, but I don't always want to see the old data in my charts. I was able to create the lists using the offset, but I could never use them in the tables. It turns out the only thing I was doing wrong was entering the names without a sheet reference.

By the way, here are the formulas I used to select the data for the charts:

DateSeries: OFFSET(Sheet1!$A$1,StartDateRowNum-1,0,EndDateRowNum-StartDateRowNum+1)
PaymentSeries: OFFSET(Sheet1!$C$1,StartDateRowNum-1,0,EndDateRowNum-StartDateRowNum+1)
PostedSeries: OFFSET(Sheet1!$D$1,StartDateRowNum-1,0,EndDateRowNum-StartDateRowNum+1)
StartDateRowNum: MATCH(StartDate,OFFSET(Sheet1!$A$1,,,COUNTA(Sheet1!$A:$A)),0)
EndDateRowNum: MATCH(EndDate,OFFSET(Sheet1!$A$1,,,COUNTA(Sheet1!$A:$A)),0)

The StartDate and EndDate are named cells that contain the statement dates for the range.

I always started my offset at the first cell in the row. Then I would define a row number after that to start the data. This proved easier than trying to do an "indirect" and "address" function to try to set the starting point.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.