Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
is it possible to open a word doc using a button that i have put onto a
excel worksheet |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Hyperlink doesn't open Word doc the same way as Word does | Excel Discussion (Misc queries) | |||
How do I open worksheets in different screens, like Word?? | Excel Worksheet Functions | |||
Can't open files in Excel or Word | Excel Discussion (Misc queries) | |||
How to open a word doc while in Excel | Excel Discussion (Misc queries) | |||
open a new word document | Excel Discussion (Misc queries) |