how can i open data in the associated application?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mekdam
    New Member
    • Sep 2006
    • 1

    #1

    how can i open data in the associated application?

    I've made an application and associated a filetype to it using the registry. When I double click the data file, it opens the application but doesn't load the data from the file, how do I fix this?

    thank you.
  • Big K Hutch
    New Member
    • Jul 2006
    • 11

    #2
    Originally posted by mekdam
    I've made an application and associated a filetype to it using the registry. When I double click the data file, it opens the application but doesn't load the data from the file, how do I fix this?

    thank you.
    Please post some code here.

    For example

    I am trying to open up a specific workbook labeled below: I can get the application to open but not the specific workbook/spreadsheet. Please help what am I missing?

    Private Sub Command2_Click( )


    Dim ExcelApp As Object
    Dim ExcelBook As Object
    Dim ExcelSheet As Object

    Set ExcelApp = CreateObject("E xcel.Applicatio n")
    Set objExcel = New Excel.Applicati on
    objExcel.Visibl e = True
    objExcel.Book.O pen "c:\name of file.xls", , , True

    End Sub

    Comment

    Working...