TheTrainMan
Registered User.
- Local time
- Today, 21:57
- Joined
- Dec 11, 2002
- Messages
- 18
I looked on microsoft's website to help me out, followed what I found out... and it still didn't work!!!!
I want to know how to reference excel constants from access during automation. I'm getting a "Variable Not Defined" message, when (according to what I got off the MS website) I shouldn't!!
for example, I add a new chart, but want to change the chart type
MyChart.ChartType = excel.xlColumnStacked
brings up the error message.
Using the object browser I can find out the actual constants (xlColumnStacked is 52!), but I'd prefer not to have to go through and change all the constants - I'd rather have a meaningful term there! I could go through change everything and leave a comment in my code i.e.
MyChart.ChartType = 52 'Stacked Column
but surely the constants are there so we don't have to resort to this!!!!
What am I doing wrong?
I want to know how to reference excel constants from access during automation. I'm getting a "Variable Not Defined" message, when (according to what I got off the MS website) I shouldn't!!
for example, I add a new chart, but want to change the chart type
MyChart.ChartType = excel.xlColumnStacked
brings up the error message.
Using the object browser I can find out the actual constants (xlColumnStacked is 52!), but I'd prefer not to have to go through and change all the constants - I'd rather have a meaningful term there! I could go through change everything and leave a comment in my code i.e.
MyChart.ChartType = 52 'Stacked Column
but surely the constants are there so we don't have to resort to this!!!!
What am I doing wrong?