Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to delete a chart object via VBA code without it prompting me
if I really want to delete it? If I change the location of the chart so it's embedded in a worksheet, and then delete it, I don't get prompted. But I can't do that. I need to delete the chart while it's its own chart sheet (not embedded in a worksheet). I created the chart programmatically. The following two lines of code cause the problem every time for me. Sub AddDeleteChartTest() Dim c As Excel.Chart Set c = Excel.Charts.Add c.Delete ' I get a DialogBox saying "Data may exist in the sheet(s) selected for deletion. To permanently delete the data, press Delete." End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
What is the VBA to put the password in the prompted box | Excel Discussion (Misc queries) | |||
Prompted to save | Excel Discussion (Misc queries) | |||
Why Prompted To Save Again? | Excel Programming | |||
Save as CSV without being prompted | Excel Programming | |||
Save as CSV without being prompted | Excel Programming |