View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Leo Elbertse Leo Elbertse is offline
external usenet poster
 
Posts: 12
Default VBA code to open file?

You simply want to open a workbook?

Workbooks.Open "path"

or something completely different, like a word file?

Sub StartWinWord()
Dim RetVal
RetVal = Shell("C:\Program Files\Microsoft _
Office\Office10\WinWord.exe c:\boot.ini", 1)

End Sub

On Tue, 30 Dec 2003 03:31:55 -0600, pgoodale
wrote:

Does anyone know the line of code to open a file? I have created a macro
and am programming in VBA. All I need is the code which opens up files.
Any help is really appreciated.


---
Message posted from http://www.ExcelForum.com/