Andy Pope. Again I appreciate your help.
I tested your suggestion within "With ch" in my code (below) and again I failed: "ERROR 424 and object is required" in line:
I think I don't know how to reference it.
Let me know about my project.
In Access I have a Form with 2 textboxes and one command button.
In txttask_plot, user types plot value (numeric)
In txttask_from, the user selects day1 (Date)
In txttask_to, the user selects day1 (Date)
The command button runs a code that works fine exporting the query and creating the Chart
This is my code in my command button:
What I'm looking for is for VBA to execute the following:
Read range B2(to the last row) in the query minimum and maximum values to set values range (or escale?) in the primary vertical axis
Read range C2(to the last row) in the query minimum and maximum values to set values range (or escale?) in the secondary vertical axis
Therefore, any time I export a query to Excel VBA will set the minimum and maximum values in Primary and Secondary Axes values
I have been googling for the last 3 days
to find a solution with no success.
I really appreciate your help.
Cheers
Bookmarks