I know how to have it open an excel document (or word, etc.) but do not know how to define which document to open.
Expand|Select|Wrap|Line Numbers
- Dim ExApp As Object
- Set ExApp = CreateObject("Excel.Application")
- ExApp.Workbooks.Open FileName:="c:\file.xls", ReadOnly:=True
- ExApp.Visible = True
Also, how would I define that when
cboFile = "Model Information 1" to open file: "\\Network Drive\docs\mod1.doc"
cboFile= "Model Information 2" to open file: "\\Network Drive\docs\mod2.doc"
etc...
Would it be an extraneous series of IF THEN statements?