Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default A Challenge (Linking word and Excel)


I think this question is going to need a VBA Wizard

Is it possible to link for MS Excel to Word ?

if so I am trying to open a MS Word doc whilst in a userform in Excel

The document I want to open is held in a text box within the userform

How could this be done ?
Regards

Marcus
MArcus
  #2   Report Post  
Posted to microsoft.public.excel.programming
moi moi is offline
external usenet poster
 
Posts: 27
Default A Challenge (Linking word and Excel)

What if you add a RichTextBox to the form instead of a normal TextBox?
The thing below seems to work quite okay...


Private Sub GetWordDoc()
Dim wDoc As Object
Dim wFileName As Variant
wFileName = Application.GetOpenFilename("MS Word Documents
(*.doc),*.doc", , "Pick a Word Doc")
Set wDoc = GetObject(wFileName)
RichTextBox1.OLEObjects.Add , , wFileName
End Sub



"Mr M Walker" schreef in bericht
...

I think this question is going to need a VBA Wizard

Is it possible to link for MS Excel to Word ?

if so I am trying to open a MS Word doc whilst in a userform in Excel

The document I want to open is held in a text box within the userform

How could this be done ?
Regards

Marcus
MArcus



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Word and Excel Mr. Matt Excel Discussion (Misc queries) 0 February 4th 09 09:05 PM
Linking Word and Excel Arun Kumar Saha Links and Linking in Excel 0 June 4th 07 09:41 PM
vba linking Excel and Word Mr BT Excel Worksheet Functions 0 June 12th 06 04:27 AM
linking excel to word johnny.exe New Users to Excel 1 March 7th 06 01:05 PM
Linking Excel and Word Ria New Users to Excel 1 July 30th 05 02:32 PM


All times are GMT +1. The time now is 03:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"