Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Sat, 29 Oct 2005 07:05:52 GMT,    group: microsoft.public.word.word97vba        back       


Deleting the merge file from within VBA   
Is it possible to unlink and delete the merge file (an excel spreadsheet) 
after the merge-to-new-file has been accomplished.  I can't seem to get 
around the "busy file" problem.

BruceP
date: Sat, 29 Oct 2005 07:05:52 GMT   author:   Support Team

Re: Deleting the merge file from within VBA   
How are you trying to do it?

When the mailmerge main document is the activedocument, the following should 
work

ActiveDocument.MailMerge.DataSource.Close

-- 
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Support Team"  wrote in message 
news:kbF8f.3625$Hj2.2601@news-server.bigpond.net.au...
> Is it possible to unlink and delete the merge file (an excel spreadsheet) 
> after the merge-to-new-file has been accomplished.  I can't seem to get 
> around the "busy file" problem.
>
> BruceP
>
date: Sat, 29 Oct 2005 17:34:44 +0200   author:   Doug Robbins - Word MVP

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us