CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Newbie question

  1. #1
    Guest

    Newbie question

    Hello all, this code here works great to change the 3 column of the first row in excel sheet when the excel file is open, How can I change the excel sheet when it is not even open

    here's my code:Private Sub Command1_Click()
    Dim xlBook As New Excel.Workbook
    Set xlBook = CreateObject("test.xls")
    Dim xlSheet As Excel.Worksheet
    Set xlSheet = xlBook.Worksheets(1)
    xlSheet.Cells(1, 3).Value = 4


    End Sub




  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Newbie question

    you can directly manipulate Excel files using ADO.


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