Results 1 to 2 of 2

Thread: EXcel spreadsheet from VB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    EXcel spreadsheet from VB

    Hi
    I have the following problem :
    I have embedded a exel ole object in one of my forms.
    Now within my program I turn it into a Ole Automation object.
    eg. dim exelobj as object
    set exelobj as OLE1.object
    I then populate the neccessary cells.

    all works fine up to this point.

    I then try to save the exel sheet using the following command exelobj.worksheets(1).saveas "test.xls". It creates the exel file but the file is blank.

    please help
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    I don't know what your problem is, but there is a simple excel tutorial project at the link below my name and it successfully does what you are trying to do, so check it out.

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