Click to See Complete Forum and Search --> : Need an application to write to excel
freelance280
Oct 25th, 2009, 12:10 AM
hi all im new here and i just got a new job and their going to need me to maintain a database. i wanted to create a program in VB to make this task easier. i know my way around VB a little and i would just have to research writing and reading to an excel file. what finally needs to be done is i need to be able to add/remove contacts and their addresses phone numbers etc... i also need to be able to EDIT existing information if the need be. finally i need to be able to PULL (X) amount of contacts from that sheet to a different "temp" sheet so i can email this "temp" sheet to someone else. i also would need the program to somehow check the new contacts and arrange it A-Z.
so my question is....is there a program out there that can do this already? or somethign similar.
Shaggy Hiker
Oct 25th, 2009, 05:00 PM
It sounds like you are using Excel as your database. You can do this, but you'll work harder to make it work. Why not use an actual database?
freelance280
Oct 25th, 2009, 07:13 PM
well, i am going to be working with a company that's going to send out emails periodically to certain people in the database. i know they will take an excel list for the names addresses etc...what other database application would you recommend.
Shaggy Hiker
Oct 26th, 2009, 09:29 AM
Outputting the data in Excel is probably fine, though I find Excel can be a bit of a pain to work with. For searching, sorting, updating, and managing, I would prefer pretty much anything else, from Access to SQL Server (or SQL Server Express if you want a free solution).
I put a couple classes in the VB.NET codebank that I use for exporting datareaders and datatables to an Excel spreadsheet. Those might be of some value as they are, and they should certainly be of some value when looking at working with Excel using late binding (so that you don't care which version of Excel the end user has).
RobDog888
Oct 27th, 2009, 06:32 AM
Welcome to the Forums.
When you say "VB" are you meaning VB.NET or VB6?
This is going to be something custom so we can help guide you in writting it but we need to know which language and development environment you will be using for this.
I have some faqs and tips in my Office Dev thread (link in my signature) that may also be of some help.
Dave Sell
Oct 27th, 2009, 11:05 AM
http://www.vbforums.com/showpost.php?p=2411735&postcount=9
freelance280
Oct 27th, 2009, 01:18 PM
Outputting the data in Excel is probably fine, though I find Excel can be a bit of a pain to work with. For searching, sorting, updating, and managing, I would prefer pretty much anything else, from Access to SQL Server (or SQL Server Express if you want a free solution).
I put a couple classes in the VB.NET codebank that I use for exporting datareaders and datatables to an Excel spreadsheet. Those might be of some value as they are, and they should certainly be of some value when looking at working with Excel using late binding (so that you don't care which version of Excel the end user has).
The great thing about the coding is i can code it to only work with my excel because i will pretty much be the only one using this program/excel file. The higher ups will be giving me lists of names to add/remove/change so multi user compatibility is not an issue. :)
i will be using VB.NET
i havent had a chance to go over all the links and whatnot in this thread but thanks for everyones help so far =)
djmcbell
Nov 2nd, 2009, 03:51 AM
Personally, for this I would use Access as the database. Then, using VBA, write to Excel or create a query and use Access' built-in tools to export the query to Excel. Or simply copy and paste the query into an Excel template.
The good thing I've found with Access is that it seems to be nice and powerful. You can also code in it using VBA (a cut-down VB6 I understand). I've written and tested a few ways to read/write CSVs (Comma Seperated Values) that are understood by Excel but, as I say, I think Access has its own ways of writing to Excel at least.
If the company's databases are in Access you'll probably find you've got everything you need in there.
Dave Sell
Nov 2nd, 2009, 08:13 AM
Personally, for this I would use Access as the database. Then, using VBA, write to Excel or create a query and use Access' built-in tools to export the query to Excel. Or simply copy and paste the query into an Excel template.
The good thing I've found with Access is that it seems to be nice and powerful. You can also code in it using VBA (a cut-down VB6 I understand). I've written and tested a few ways to read/write CSVs (Comma Seperated Values) that are understood by Excel but, as I say, I think Access has its own ways of writing to Excel at least.
If the company's databases are in Access you'll probably find you've got everything you need in there.
The links I posted describe how to execute SQL statements directly against an Excel worksheet, no need for a middle-man.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.