Results 1 to 3 of 3

Thread: Excell

  1. #1

    Thread Starter
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423

    Excell

    Any Tutorials on Reading / Writing To Excel Work Sheets?
    Visual Baisc 6 (SP5)
    Windows Xp

  2. #2
    khalik
    Guest
    Dim Excel_filename As String
    Dim worksh As New Excel.Worksheet ' an instance of excell work sheet
    Dim excelobj As New Excel.Workbook 'An instance of excell workbook
    Dim Location_Excel_File As String
    Dim intConf As Integer
    Dim i As Integer
    Excel_filename = "C:\Accounts.xls"

    Set excelobj = Workbooks.Open(Excel_filename)

    Set worksh = excelobj.Worksheets(1)
    worksh.Activate
    For i = 1 To 4957
    MsgBox worksh.Cells(i, 1) & " -- " & worksh.Cells(i, 2)
    Next

  3. #3

    Thread Starter
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423
    Do I have to set a refence to something?
    How Would I save the Input to a diffrent file?
    Visual Baisc 6 (SP5)
    Windows Xp

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