Results 1 to 2 of 2

Thread: DDE and Excel

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Posts
    4

    Question

    Hello!

    How can I use DDE with Excel (Save as, open,...)

    Thank you!

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Leavenworth KS USA
    Posts
    482
    Code:
    Private Sub DoSomethingInExcel() 
    Dim xlapp As Object 'Excel.Application 
    Dim xlbook As Object 'Excel.Workbook 
      ' Start Excel 
      Set xlapp = CreateObject("Excel.Application") 
      ' Add new workbook 
      Set xlbook = xlapp.Workbooks.Add
    
      ' Do something...
    
      ' Release modules & clean up 
      xlbook.Saved = true  ' or false 
      xlapp.Quit 
      Set xlbook = Nothing: Set xlapp = Nothing 
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width