Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Equivalent in VB.net

Status
Not open for further replies.

adimulam

Programmer
Feb 13, 2002
25
0
0
US
I have the following command works in VB 6. Does anyone know the equivalent in VB.net?. Appreciate any help.

Word_Doc.SaveAs App.Path & "\..\datarecon\" & Replace(Doc_File, ".doc", ".rtf"), FileFormat:=wdFormatXML
 
You will find the VB.NET guys in forum796

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
If Doc_File is a String:

Word_Doc.SaveAs(Application.StartupPath & "\..\datarecon\" & Doc_File.Replace(".doc",".rtf"), FileFormat:=wdFormatXML)

If it a textbox then:

.. Doc_File.Text.Replace ..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top