Results 1 to 6 of 6

Thread: spreadsheets again

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    12

    Angry spreadsheets again

    ive made a text box which when i click on a command buttton it will get the value in the textbox and put it in cells in a spreadsheet below....... i really need the whole code or at least some

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    ??

    Are you:

    In excel...(all VBA?)
    In VB Controling Excel?
    In VB with Spreadsheet OLE?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    12

    Talking

    with in excel using vb editor but i do have vb pro 6

  4. #4
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    this is using VB6

    dim xl as new excel.application

    xl.workbooks.open("c:\spreadsheet.xls")

    xl.cells(1,1) = textbox1.text

    xl.quit
    set xl = nothing


    you need to set the microsoft excel refererence as well first.

  5. #5
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    You can also Grab Excel if its currently open:

    Dim Xls As Object
    Set Xls = GetObject(,"excel.application")
    Xls.Range("A1").Value = Text1.text
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    12

    Thx

    Thankyou sorry for later reply been working on something else
    keep on coding !!!

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