Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bill
 
Posts: n/a
Default Macro - Open Word with Excel macro

Hello,

Can I launch Word from within an Excel macro? If so, how?

Bill


  #2   Report Post  
FxM
 
Posts: n/a
Default

Bill a écrit :
Hello,

Can I launch Word from within an Excel macro? If so, how?

Bill




Hi Bill,

Something like :
Sub test()
Set ww = CreateObject("word.application")
ww.Visible = True
End Sub

HTH
FxM
  #3   Report Post  
Nick Hodge
 
Posts: n/a
Default

Or using early binding (You will need to manually set a reference to the
Word Object Library through Tools...References... in the VBE)

Sub RunWord()
Dim wd As Word.Application
Set wd = New Word.Application
wd.Visible = True
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"FxM" wrote in message
...
Bill a écrit :
Hello,

Can I launch Word from within an Excel macro? If so, how?

Bill



Hi Bill,

Something like :
Sub test()
Set ww = CreateObject("word.application")
ww.Visible = True
End Sub

HTH
FxM



  #4   Report Post  
Bill
 
Posts: n/a
Default

Thanks FxM, Nick

"Nick Hodge" wrote in message
...
Or using early binding (You will need to manually set a reference to the
Word Object Library through Tools...References... in the VBE)

Sub RunWord()
Dim wd As Word.Application
Set wd = New Word.Application
wd.Visible = True
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"FxM" wrote in message
...
Bill a écrit :
Hello,

Can I launch Word from within an Excel macro? If so, how?

Bill



Hi Bill,

Something like :
Sub test()
Set ww = CreateObject("word.application")
ww.Visible = True
End Sub

HTH
FxM





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
Open two excel windows side by side Dave Berry Excel Discussion (Misc queries) 5 May 4th 05 09:01 PM
open separate exterior excel windows Jason Dove Excel Discussion (Misc queries) 18 May 3rd 05 05:22 PM
Open excel from htm page den Excel Discussion (Misc queries) 0 April 25th 05 11:58 PM
Open Access Database under and Excel window using a Macro BMSpell Excel Worksheet Functions 1 January 8th 05 05:32 PM
How do you open a word document from inside excel by using hyperl. fadkub Excel Discussion (Misc queries) 1 December 29th 04 04:53 PM


All times are GMT +1. The time now is 05:32 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"