Invisible hart on Word

July 29, 2009 at 03:45:06
Specs: Windows Vista
whenever i print my page i did on microsoft word a Chart pops up on the printed page, BUT it doesn't show this chart on the file on the computer and i dont want it there. how do i remove this invisible chart? so frustrating.

See More: Invisible hart on Word

Report •

July 29, 2009 at 04:59:32
It sounds like you might have a custom watermark set up. In Word 07, this in in the page layout menu on the ribbon.

On word 03, it'll be somewhere in the file/page setup options, I'd imagine

Report •

July 29, 2009 at 05:18:14

i inserted a chart before all the work i put into the document, and i thought i had deleted the chart before all the work. but it appears not and i can't find it (to select it).

hope this helps.

Report •

July 29, 2009 at 05:45:49
have you tried using CTRL-G and moving through the objects?

Report •

Related Solutions

July 29, 2009 at 06:33:14
If the chart is the only shape in your document, you could try this:

Sub DeleteChart()
   For Each s In ActiveDocument.Shapes
   Next s
End Sub

If not, this should cycle through all your shapes and give you the choice to delete it or not. Maybe it can still select the chart, even if you can't see it...

Sub DeleteChart()
   For Each s In ActiveDocument.Shapes
     ans = MsgBox("Delete Shape?", vbYesNoCancel)
      If ans = vbYes Then s.Delete
      If ans = vbCancel Then Exit Sub
   Next s
End Sub

Report •

July 29, 2009 at 07:02:04
sorry i dont have a clue what the above means? how do i do this?

and john, that didn't work either :(

Report •

July 29, 2009 at 07:19:54
What I posted were 2 VBA macros that will search your document for shapes and select/delete them.

The first will simply delete every shape, while the second will ask you each time if you want to delete it. "Yes" will delete the currently selected shape, "No" will skip to the next one and "Cancel" will stop the code and return you to Word.

For safety sake, save a copy of your original document in case things go terribly wrong.

Then, in your document, press Alt-F11 to open the VBA editor. Paste the code into the pane that opens and run it via the little green arrow or press F8 to single step through it.

To test it, I used Insert...Object...Microsoft Graph Chart to insert a few generic charts into a document. When I ran the code, it selected each chart so I know that VBA considers my charts to be "Shapes". YMMV

Good luck!

Report •

July 29, 2009 at 09:08:38
didn't work either.

have a good few shapes in it and it deleted the first few on the page but stopped after that (didn't delete the chart).

Report •

July 29, 2009 at 10:56:42
I PM'd an email address to you. If you can, send the file to that address and I'll take a look at it.

Delete anything I shouldn't see.

Please do not share the email address with anyone.

Report •

July 31, 2009 at 06:57:51

The OP emailed a copy of the file and I spent some quality time with it.

To start with, I should mention that the document was an Invoice template, with a mixture of standard text, text boxes, underlined fields, drawing documents and a couple of tables.

I can't really explain what is going on with the file, but when I changed the view from Print View to Reading View, the chart showed up and could be deleted. I could also stumble upon the chart (as well as some other "hidden" objects) by randomly clicking around and waiting for box outlines to show up. The wierd part was that only the outline of a rectangle would show up - not the chart itself - and not exactly where I clicked, but above it. In other words, I was actually clicking outside of the object but it's outline showed up anyway. Once the rectangle was deleted, the chart no longer showed up on the print out. The other "hidden" objects were nothing more than empty outlines that didn't print, so I have no idea what they were.

There was also an additional request to eliminate Page 2 of the document, which was blank. I was unable to do this because of the strange conglomeration of Section Breaks and Column Breaks. Everytime I tried to delete a Break, sections of text would move around and the fields in the template got totally out of alignment. My gut tells me that the problem with the chart and other objects is also due to the sections, but I can't verify that. It's almost like the document is layered, with the objects behind what the user can see on the screen.

I don't know if the document is corrupt or just very poorly constructed, so I told the OP that she should trash it and start over.

I'd be willing to email the document to anyone who wants to take a look at it. PM an email address if you want.

Report •

Ask Question