Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
I would like to do the following in VBA:
1. Create an invisible/virtual blank new chart, which does not appear in the workbook and does not yet contain any data (this will be added in step 2).
2. Refer to this chart as an object (so that I can add data generated by my macro, and then edit and format the chart while still invisible).
3. Display the chart with controls to interact with it in a user form, without showing it in the workbook.
Currently I'm having trouble with the first step, as my macro creates a new chart that appears as a visible chartobject in the worksheet, and contains random unwanted data (that I can't seem to get rid of) depending on what cell(s) are selected when I run my macro.
Can anybody help, please?
1. Create an invisible/virtual blank new chart, which does not appear in the workbook and does not yet contain any data (this will be added in step 2).
2. Refer to this chart as an object (so that I can add data generated by my macro, and then edit and format the chart while still invisible).
3. Display the chart with controls to interact with it in a user form, without showing it in the workbook.
Currently I'm having trouble with the first step, as my macro creates a new chart that appears as a visible chartobject in the worksheet, and contains random unwanted data (that I can't seem to get rid of) depending on what cell(s) are selected when I run my macro.
Can anybody help, please?