Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

dismiss dialog box in word 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ravin - 24 Jan 2005 22:01 GMT
Hello
I am using VB6 and trying to save an html file as a text file.  Word keeps
prompting me with a dialog box stating "Linked style sheets are only
supported in web format files.  By saving to this format, all links to style
sheets will be lost."

Because I am going through multiple documents, I don't want to see this
dialog box.  I have tried turning the display of alerts off using    
Application.DisplayAlerts = 0 (0 is the value for wdalertsnone).  I have also
tried using sendkeys to send a carriage return to the dialog box where the
default button is "continue"  These don't work.  Any help would be greatly
appreciated.
mbaird - 24 Jan 2005 22:35 GMT
Dim oStyleSheet As StyleSheet

For Each oStyleSheet In ActiveDocument.StyleSheets
   oStyleSheet.Delete
Next oStyleSheet

> Hello
> I am using VB6 and trying to save an html file as a text file.  Word keeps
[quoted text clipped - 8 lines]
> default button is "continue"  These don't work.  Any help would be greatly
> appreciated.
mbaird - 24 Jan 2005 22:41 GMT
Sorry. The code that I posted will delete the links which is what you do not
want.

Mark Baird

> Hello
> I am using VB6 and trying to save an html file as a text file.  Word keeps
[quoted text clipped - 8 lines]
> default button is "continue"  These don't work.  Any help would be greatly
> appreciated.
Ravin - 24 Jan 2005 22:41 GMT
Thanks for your quick response.  As you surmised, this did not do the job.  

> Sorry. The code that I posted will delete the links which is what you do not
> want.
[quoted text clipped - 13 lines]
> > default button is "continue"  These don't work.  Any help would be greatly
> > appreciated.
mbaird - 24 Jan 2005 22:49 GMT
What version of Word are you using?

Mark Baird

> Thanks for your quick response.  As you surmised, this did not do the job.  
>
[quoted text clipped - 15 lines]
> > > default button is "continue"  These don't work.  Any help would be greatly
> > > appreciated.
Ravin - 24 Jan 2005 22:59 GMT
I am using 2003.

> What version of Word are you using?
>
[quoted text clipped - 19 lines]
> > > > default button is "continue"  These don't work.  Any help would be greatly
> > > > appreciated.
mbaird - 24 Jan 2005 23:05 GMT
It appears that this property is hanging around in memory even though they
have been removed from the document..

Remove the links first. Then save the file as an HTM file using a different
name, close and reopen that same file. Open that file and then save as a text
file.

Mark Baird

> Thanks for your quick response.  As you surmised, this did not do the job.  
>
[quoted text clipped - 15 lines]
> > > default button is "continue"  These don't work.  Any help would be greatly
> > > appreciated.
Ravin - 26 Jan 2005 15:39 GMT
Thank you for all your help.
I ended up doing something like you suggested.  I selected the whole file
(ctrl A), copied and pasted as text to a new file, and then saved as text.  
This did the trick.  Thank you again for your ideas and help.  

> It appears that this property is hanging around in memory even though they
> have been removed from the document..
[quoted text clipped - 24 lines]
> > > > default button is "continue"  These don't work.  Any help would be greatly
> > > > appreciated.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.