Results 1 to 3 of 3

Thread: please tell me how to connect, add, delete, update records in Excel using vb6

  1. #1

    Thread Starter
    Fanatic Member coolcurrent4u's Avatar
    Join Date
    Apr 2008
    Location
    *****
    Posts
    993

    please tell me how to connect, add, delete, update records in Excel using vb6

    Hello ,

    Am doing a quick project with vb6 and excel.

    I want to to the following,

    connect to excel
    add record under a defined row and in a sheet
    delete
    update

    when adding and updating, what happens to cells with functions or macro?

    thanks
    Programming is all about good logic. Spend more time here


    (Generate pronounceable password) (Generate random number c#) (Filter array with another array)

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: please tell me how to connect, add, delete, update records in Excel using vb6

    Quote Originally Posted by coolcurrent4u View Post
    when adding and updating, what happens to cells with functions or macro?
    In case you are adding or updating data the current data will be deleted by the new data.
    If the cells you are filling with new data did hold a function the same will happen as with data (i.e. current function is deleted, new function or data is inserted).
    I'm not sure what is meant by cells holding a macro, in case the cell held a call for a function or sub, the same happens as above!
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: please tell me how to connect, add, delete, update records in Excel using vb6

    see the faq thread in office development forum for tutorial on automating office applications
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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