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: Fri, 4 Jul 2008 05:38:01 -0700,    group: microsoft.public.word.vba.general        back       


Insert RTF File... Disable "Conversion File" window   
I am writing a macro that have to insert  RTF text from a database to Word.
I use the following instruction
"Selection.InsertFile filename:=vstrRTFFile"
According to this instruction always appears the following window 
[URL=http://imageshack.us][IMG]http://img368.imageshack.us/img368/3895/immaginewc6.png[/IMG][/URL]
[URL=http://g.imageshack.us/g.php?h=368&i=immaginewc6.png][IMG]http://img368.imageshack.us/img368/3895/immaginewc6.4c76b76dc7.jpg[/IMG][/URL]

i press ok and everything go fine... but how can i disable it? on other 
computer this window doesn't appear
Thanks
date: Fri, 4 Jul 2008 05:38:01 -0700   author:   Bungle

Re: Insert RTF File... Disable "Conversion File" window   
"Bungle"  wrote in message 
news:A23E03E2-B42D-46EB-937A-5481E278F6D4@microsoft.com...
>I am writing a macro that have to insert  RTF text from a database to Word.
> I use the following instruction
> "Selection.InsertFile filename:=vstrRTFFile"
> According to this instruction always appears the following window
> [URL=http://imageshack.us][IMG]http://img368.imageshack.us/img368/3895/immaginewc6.png[/IMG][/URL]
> [URL=http://g.imageshack.us/g.php?h=368&i=immaginewc6.png][IMG]http://img368.imageshack.us/img368/3895/immaginewc6.4c76b76dc7.jpg[/IMG][/URL]
>
> i press ok and everything go fine... but how can i disable it? on other
> computer this window doesn't appear
> Thanks

Options.ConfirmConversions = False

Make sure your code is a good neighbor. Read the setting, change it, and 
then change it back to the original value after you have inserted the file.


-- 
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
date: Fri, 4 Jul 2008 13:46:35 +0100   author:   Jonathan West

Re: Insert RTF File... Disable "Conversion File" window   
"Jonathan West"  wrote:
>
> Options.ConfirmConversions = False
>
> Make sure your code is a good neighbor. Read the setting, change it, and 
> then change it back to the original value after you have inserted the 
> file.

I recently got bitten by that.

I used
Selection.InsertFile FileName:=sFileName, ConfirmConversions:=False
in a macro that I run a lot.

And then I was surprised that the option kept changing to "False".

IMO it's a bit of a bug that the code above changes the option globally...

Klaus
date: Sun, 6 Jul 2008 20:39:07 +0200   author:   Klaus Linke

Google
 
Web ureader.com


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