working with excel and vb 6.9

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xavierrangel
    New Member
    • Jun 2007
    • 14

    working with excel and vb 6.9

    does anyone know how to create an excel spreadsheet by clicking a button in visual basic 6.0?
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Hi, you can try this out:

    Code:
    Dim sheet As Object
    Set sheet = CreateObject("excel.application")
    sheet.Visible = True
    Hope it helps

    Comment

    • xavierrangel
      New Member
      • Jun 2007
      • 14

      #3
      Originally posted by kadghar
      Hi, you can try this out:

      Code:
      Dim sheet As Object
      Set sheet = CreateObject("excel.application")
      sheet.Visible = True
      Hope it helps

      hey! it just opens an excel something in the toolbar for less than a second and then disapear. thanks for helping

      Comment

      • eklavyavats
        New Member
        • May 2007
        • 24

        #4
        Originally posted by xavierrangel
        hey! it just opens an excel something in the toolbar for less than a second and then disapear. thanks for helping
        You can also work out with the macro if you can...

        Comment

        Working...