Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-17-2011, 09:12 AM
Jaymond Flurrie Jaymond Flurrie is offline Clear document Windows 7 64bit Clear document Office 2010 32bit
Novice
Clear document
 
Join Date: Feb 2011
Posts: 13
Jaymond Flurrie is on a distinguished road
Default Clear document

Hi,



This is next to "Hello World" for you who have programmed Word even a bit. Short and simply: How do I clear the document?

The bigger idea is that I'm importing data from Excel to Word and I used to have my flow going basically like this:
Create Word application
Create Word document
Select the header
Edit the header
Select the "main part" of document
Type text
{
Paste a chart
Enter PageBreak
}(Repeat five times)
Paste a chart
Print to PDF
Close the document without saving
Terminate the instance of Word

With six charts, forty documents it took about three minutes. Now I realized that it's pretty stupid to create the Word application and Word document from scratch over and over again. Smarter solution would be just to delete everything from the document and close/terminate it at the end. Sure, I could also create a new document each time, but since I don't need the docs (the only reason I use Word at all is that it compiles the document nicely), I don't know if it would be any faster to create a new document.

If you know for sure that just closing the old and creating a new document is faster than deleting the whole content is faster, please tell me.

Even better might be linking system ie. I create the document by pasting once and then updating the charts in Excel updates them in Word and then I take a printout. Is that possible?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to clear the background colour from a theme ezekiel181 Word 1 11-14-2010 07:29 AM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM
command clear forms dmcohio Word 0 04-08-2010 11:11 AM
'Clear formatting' issue phoebs47 Word 0 03-16-2010 06:55 AM
Holidays--clear all? markg2 Outlook 0 11-01-2009 05:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft