#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default open word doc

is it possible to open a word doc using a button that i have put onto a
excel worksheet
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default open word doc

Attach this macro to the button
Sub test()
Set wrdApp = CreateObject("Word.Application")
'Uncomment the next line to open a specific document and change the path and
name
'Set wrdDoc = wrdApp.Documents.Open("C:\Doc1.doc")
wrdApp.Visible = True
End Sub

uk" wrote:

is it possible to open a word doc using a button that i have put onto a
excel worksheet

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default open word doc

Maybe assigning a hyperlink to the button would work ok???

uk wrote:

is it possible to open a word doc using a button that i have put onto a
excel worksheet


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default open word doc

hello i have tried the macro but i keep getting erreor on the set wdrApp
second line

"Sheeloo" wrote:

Attach this macro to the button
Sub test()
Set wrdApp = CreateObject("Word.Application")
'Uncomment the next line to open a specific document and change the path and
name
'Set wrdDoc = wrdApp.Documents.Open("C:\down.doc")
wrdApp.Visible = True
End Sub

uk" wrote:

is it possible to open a word doc using a button that i have put onto a
excel worksheet

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default open word doc

Sorry I forgot to add that you must pick Microsoft Word 11.0 from
ToolsReferences in the VB editor to execute Word commands.

See VB Help topic "Controlling One Microsoft Office Application from Another"
for more information.

Also if you have set Option Explicit then declare
Dim wrdApp As Word.Application
uk" wrote:

hello i have tried the macro but i keep getting erreor on the set wdrApp
second line

"Sheeloo" wrote:

Attach this macro to the button
Sub test()
Set wrdApp = CreateObject("Word.Application")
'Uncomment the next line to open a specific document and change the path and
name
'Set wrdDoc = wrdApp.Documents.Open("C:\down.doc")
wrdApp.Visible = True
End Sub

uk" wrote:

is it possible to open a word doc using a button that i have put onto a
excel worksheet



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default open word doc

hello Sheelo

ican now open a word doc but the page is empty the doc that i am trying to
open is not opening

"Sheeloo" wrote:

Sorry I forgot to add that you must pick Microsoft Word 11.0 from
ToolsReferences in the VB editor to execute Word commands.

See VB Help topic "Controlling One Microsoft Office Application from Another"
for more information.

Also if you have set Option Explicit then declare
Dim wrdApp As Word.Application
uk" wrote:

hello i have tried the macro but i keep getting erreor on the set wdrApp
second line

"Sheeloo" wrote:

Attach this macro to the button
Sub test()
Set wrdApp = CreateObject("Word.Application")
'Uncomment the next line to open a specific document and change the path and
name
'Set wrdDoc = wrdApp.Documents.Open("C:\down.doc")
wrdApp.Visible = True
End Sub

uk" wrote:

is it possible to open a word doc using a button that i have put onto a
excel worksheet

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default open word doc

Did you remove the comment indicator (') from the following line
'Set wrdDoc = wrdApp.Documents.Open("C:\down.doc")

You also need to change the path and name to your document
uk" wrote:

hello Sheelo

ican now open a word doc but the page is empty the doc that i am trying to
open is not opening

"Sheeloo" wrote:

Sorry I forgot to add that you must pick Microsoft Word 11.0 from
ToolsReferences in the VB editor to execute Word commands.

See VB Help topic "Controlling One Microsoft Office Application from Another"
for more information.

Also if you have set Option Explicit then declare
Dim wrdApp As Word.Application
uk" wrote:

hello i have tried the macro but i keep getting erreor on the set wdrApp
second line

"Sheeloo" wrote:

Attach this macro to the button
Sub test()
Set wrdApp = CreateObject("Word.Application")
'Uncomment the next line to open a specific document and change the path and
name
'Set wrdDoc = wrdApp.Documents.Open("C:\down.doc")
wrdApp.Visible = True
End Sub

uk" wrote:

is it possible to open a word doc using a button that i have put onto a
excel worksheet

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
Excel Hyperlink doesn't open Word doc the same way as Word does duugg Excel Discussion (Misc queries) 2 October 12th 06 03:14 PM
How do I open worksheets in different screens, like Word?? David Excel Worksheet Functions 1 April 20th 06 11:32 AM
Can't open files in Excel or Word rortiz Excel Discussion (Misc queries) 2 April 19th 06 01:32 AM
How to open a word doc while in Excel Katie Excel Discussion (Misc queries) 5 February 21st 06 07:56 PM
open a new word document Ciara Excel Discussion (Misc queries) 1 May 18th 05 11:04 AM


All times are GMT +1. The time now is 01:20 PM.

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

About Us

"It's about Microsoft Excel"