Welcome to dbFreaks.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

how do u open a word file in VB??

 
   Database Help (Home) -> Visual Basic RSS
Related Topics:
Open form to add record with fielddata from an open form - How do I open a form to add a record and get the data for 1 field from a specific field in a open form. I have used the following code ; Private Sub As Integer) If Then = _ ..

reading a text file? - Help! :( Is there a way to automate the of a text file in to VB, with out having to use the import text wizard every time? Below is a sample the the file and the I need. ( the file is actually much larger then this) but this will..

Cannot Delete Pocket Access File - I'm creating a Pocket Access file (via an EVB on a mobile device running PPC 2002. When the user logs off the EVB I want to delete the Access file (stored in the /Temp folder). However, I am unable to do this because the..

sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table and there a column wich is data type All data in this column is in form So why when i run .asp page with simple query to..

arrays - is there a way to the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!
Next:  Visual Basic: SendKey  
Author Message
user3614

External


Since: Jan 31, 2005
Posts: 30



(Msg. 1) Posted: Mon Feb 21, 2005 3:40 pm
Post subject: how do u open a word file in VB??
Archived from groups: comp>lang>basic>visual>database (more info?)

hi,

i want to open a word file in my c drive. how do i do that in VB? i want to
open it when i click a button.

thanx

devin

 >> Stay informed about: how do u open a word file in VB?? 
Back to top
Login to vote
Michael B. Johnson

External


Since: May 14, 2004
Posts: 16



(Msg. 2) Posted: Mon Feb 21, 2005 3:40 pm
Post subject: Re: how do u open a word file in VB?? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 21 Feb 2005 19:33:55 GMT, "Devin Panchal"
<d.panchal.RemoveThis@ntlworld.com> wrote:

 > i want to open a word file in my c drive. how do i do that in VB? i want to
 >open it when i click a button.

I recommend you post this question to "comp.lang.basic.visual.misc".
_______________________
Michael B. Johnson<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: how do u open a word file in VB?? 
Back to top
Login to vote
Sam86

External


Since: Sep 23, 2004
Posts: 1



(Msg. 3) Posted: Tue Feb 22, 2005 2:54 am
Post subject: Re: how do u open a word file in VB?? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Devin Panchal" <d.panchal.RemoveThis@ntlworld.com> wrote in message news:<DIqSd.397$Bw5.61@newsfe2-gui.ntli.net>...
 > hi,
 >
 > i want to open a word file in my c drive. how do i do that in VB? i want to
 > open it when i click a button.
 >
 > thanx
 >
 > devin

even though this might not be the correct group, here goes:

Dim WDObj As Word.Application
Set WDObj = CreateObject("Word.Application")

WDObj.Documents.Open "path to word document"

set WDObj = nothing<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: how do u open a word file in VB?? 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]