|
-
Jan 3rd, 2011, 01:49 PM
#1
Thread Starter
Fanatic Member
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
-
Jan 3rd, 2011, 03:25 PM
#2
Re: please tell me how to connect, add, delete, update records in Excel using vb6
 Originally Posted by coolcurrent4u
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!
-
Jan 3rd, 2011, 03:29 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|