Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Command button

If I put a COMMAND BUTTON in excel or any other buton, how do I view a
specific word document? Do I insert the document in excel or can I have a
seperate folder in MY DOCUMENTS with all of the WORD files I want to insert?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Command button

You have a few options.

You could use Insert|Object and put the word document in the worksheet.

Or you could even use a different object and assign a hyperlink to that word
document.

You could even use that button and have code that opens the word document.

Option Explicit
Private Sub CommandButton1_Click()
Shell "start ""c:\my documents\word\test1.doc"""
End Sub



jungleman wrote:

If I put a COMMAND BUTTON in excel or any other buton, how do I view a
specific word document? Do I insert the document in excel or can I have a
seperate folder in MY DOCUMENTS with all of the WORD files I want to insert?


--

Dave Peterson
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
Command Button Priss Excel Worksheet Functions 11 February 4th 09 05:48 PM
command button add another command Wanna Learn Excel Discussion (Misc queries) 5 December 7th 08 11:42 PM
Command Button Gee[_2_] Excel Programming 6 April 23rd 04 12:10 AM
Command Button vs Control Button RGibson Excel Programming 1 October 14th 03 02:24 AM
Command Button vs Form Button T K Excel Programming 4 August 26th 03 07:26 PM


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