Results 1 to 3 of 3

Thread: Using Excel in VB6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2010
    Posts
    80

    Using Excel in VB6

    I have tried to get the ADODC in VB to connect to Excel and I can get it to connect. I like using the standard data1 data control because I can connect it so easily to text files. Is there a control (even third party) that is as easy as the data1 control that comes with VB. All I can find now is to open an excel file in excel and manually set each text file to each cell in the excel file. That would take months of programming for this program. There must be an easier way.

  2. #2
    PowerPoster Spoo's Avatar
    Join Date
    Nov 2008
    Location
    Right Coast
    Posts
    2,656

    Re: Using Excel in VB6

    Hon

    When you say "text files", are they CSV (ie, comma delimited data) files?
    If so, are you just trying to write some VB code to extract said data and populate Excel?

    Spoo

  3. #3
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Using Excel in VB6

    that is as easy as the data1 control that comes with VB. All I can find now is to open an excel file in excel and manually set each text file to each cell in the excel file.
    If my understanding is correct then you can direct interact with Excel and open the text files (CSV) from vb6 rather than populating each cell from text file.

    I would suggest that you go through this tutorial by Si to interact with Excel then also see THIS on how to work with CSV Files using .OpenText.

    Hope this helps...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

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