Results 1 to 8 of 8

Thread: help:- vb <-> excel

  1. #1

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90

    Lightbulb help:- vb <-> excel

    i've no idea of using excel as database in place of access....pleace help me with some code on how to read and write data from a grid to excel using ado.....


    also ..i've to use some functions on excel like cell color change, cell font change, cell border, INSERT PIC FROm VB PICTURE BOX TO EXCEL CELL and change pic's height and width inserted to the excel sheet. please help me wth some pracical example......i'm very fine with ado ...other than the database being excel

  2. #2

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90

    Angry

    any help please i'm getting frustrated..................

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Which type of grid are you using? Am I to assume you've got data in an msflexgrid etc. control grid on a vb form & want to place this into a brand new Excel file?

    I can give you some code if you explain the above to give me more of an idea of what your trying but I can't understand why you want to use Excel as your database software over Acces or SQL Server for example...

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90

    Thumbs up

    I'm using msflex grid with access 2000.....

    now for the excel part ...i've to give some selected data from flex grid to my bosses who have only ms-office installed...now what i've to do is to download the data into excel and zip the files and send them thru net......we do't have sql-server or web-page to manage this thru asp-sqlserver combo or any thing like that..

    please help me with your source code

  5. #5
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    See if this one makes any sense & let me know if you need any further help...
    Attached Files Attached Files

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  6. #6

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90
    THANKS Alex, I had MSDN, but was not able to work on it as i didn't have any idea.....for othrer properties like cell color, fonts, borders, merging etc.

    i've found the help from msdn but still I'm not able to add pics from the pic box in vb to the excel sheet....

    please help me on this

    I'll upload my vb-excel code once it is done ...for other's help

  7. #7

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90

    Unhappy

    hi ....,

    the vb to excel is running properly in my computer.... i made a installer for the same project and installed that on other's system.....I had excel-xp and the person is using excel-97. Now when try to export the data to excel sheet it give automaion error.... please help me on this error......

    y is this coming in the first place....also what might be the reasons for his error.

    do i have put something extra in my project to make ir running in EXCEL-97 9x, dll etc etc)

  8. #8
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    When you create your reference to the Excel Application object, you'll have to use late binding - I susspect at the moment you're using the project menu > references option then calling the object out...

    If you want this code to work with ny version of Excel, you're going to have to create your Excel Application object like this:

    VB Code:
    1. Dim objXlApp as object
    2. set objXlApp = createobject("Excel.application")

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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