CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2001
    Posts
    11

    Need VB-excel help

    HI,

    I've made a program that imports data from a database, makes a report and then exports them to excel to be printed. I've got this all working perfectly, but I have some problems arranging the lay-out in Excel from VB. I want some cells to have thick lines at their borders and I want text that's too big for a cell 'wrapped' to the next cell in the column(underlying cell). Can anyone help me? Even a correct objectmodel of Excel would help.

    Thanx!!!
    BaronQ



  2. #2
    Join Date
    Jul 2001
    Location
    Salzburg, Austria
    Posts
    126

    Re: Need VB-excel help

    Hi!
    I did not work much with it but you can try to record what you want to do in a macro of Excel and then edit the code of it. Take care to include the reference to the Excel Library and define an Object,which to work with.
    Hope that helps.
    Jaime.


  3. #3
    Join Date
    Mar 2001
    Location
    charlotte,nc
    Posts
    84

    Re: Need VB-excel help

    I don't know if possible for your situation but, when I did as you have described, I used a template file with formatted cells, etc.

    Elizabeth

  4. #4
    Join Date
    Sep 2001
    Posts
    11

    Re: Need VB-excel help

    Thanx!! How stupid of me not to think of that myself. Well, all out of my problems now...

    BaronQ


  5. #5
    Join Date
    Sep 2001
    Posts
    11

    Re: Need VB-excel help

    Thanx for the advice, but it's not an option in my case. It's for some sort of claimadministrationprogram which cannot be in a standardformat cause of thirdparty desires.

    BaronQ




  6. #6
    Join Date
    Sep 2001
    Posts
    1

    Re: Need VB-excel help

    how did u go about doing that.
    just help me out to import data from access and send it to excel (iam using version 2000).

    and then can we imports charts from excel back to vb form
    do reply
    thanx


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

Featured