Connection Between VB6.0 and Excel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chitragovardhan
    New Member
    • Jan 2008
    • 1

    Connection Between VB6.0 and Excel

    I would like to know the steps in detail about how to establish the connection between VB6.0 and Excel.

    ITS VERY URGENT
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Try to use the Data control.

    Comment

    • kadghar
      Recognized Expert Top Contributor
      • Apr 2007
      • 1302

      #3
      Originally posted by chitragovardhan
      I would like to know the steps in detail about how to establish the connection between VB6.0 and Excel.

      ITS VERY URGENT
      Sure, open an excel application, and use any command allowed in VBA for excel. e.g:

      [CODE=vb]dim obj1 as object
      set obj1 = createobject("e xcel.applicatio n")
      obj1.workbooks. open("c:\mybook .xls")
      msgbox obj1.activework sheet.cells(1,1 ).value[/CODE]

      HTH

      PS: sorry for the late answer, but you posted the question when it was 3am in Mx.

      Comment

      Working...