Cross-post notice: This question was originally posted at Dream In Code. I apologize for the cross-posting, but I fear Dream In Code is really not the right place for the question; this forum seems more appropriate. I got some help there with my VB syntax, but that forum is not so Excel oriented.
I also apologize if this post should have been on the Charting forum. I couldn't decide, but since this is VBA-related, this forum seemed more appropriate to me.
I'm a Java programmer by trade, but for a personal project, I've been working on a weight-management application in Excel. (I'm using Excel 2010, in case that's relevant here, but I'd like it to work in Excel 2007 as well.) I have a scale that measures total weight and weight of fat, so I keep track of those values daily and the application computes a trend based on each of those values. At the end of each month, I want to create a chart tracking all four: weight, weight trend, fat, and fat trend.
In personal.xlsb, I have the following macro:
Weight.xlsm contains the MonthlyChart macro:Please Login or Register to view this content.
Weight.xlsm also contains the referenced UpdateHistory function:Please Login or Register to view this content.
Here's the deal: Series 1 and 2 on the chart (weight and weight trend) properly show dates for the x values when you hover over a point on the chart. Series 3 and 4 (fat and fat trend) show dates for the x values if weight-history.xlsx is open, but show integer values (e.g. 40673 instead of 5/10/2011) if weight-history.xlsx is closed.Please Login or Register to view this content.
Is there something I'm doing wrong here or does this seem to be an Excel issue?
Thanks
Bookmarks