473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Excel Sheet data into multiple SQL database tables.

I have an existing excel spreadsheet that my customers
MUST continue using. There are 5 different specially
formatted cell groups (tables) on one sheet where the use
can enter data. The data in each of these "tables"
corresponds to a different table in a SQL database. What
is the quickest way for me to capture the click event of a
button on that sheet and move the data into my SQL
database tables? I have tried VBA and also the sample
discussed here:

http://www.msdn.microsoft.com/office...nding/excel/wa
lkthroughs/default.aspx?pull=/library/en-
us/odc_vsto2003_ta/html/odc_vstsqlexcl.asp

but cannot get either to work.

Is it even possible to access a SQL database using Excel
VBA? If not, is there any way to capture the button click
event of a button on the worksheet (using the method
described in the article)? If I could get the button
click event of a button on the sheet, I think I could get
the rest working. Thanks in advance for help!
Nov 20 '05 #1
2 2623
"Patrick B." <an*******@discussions.microsoft.com> schrieb
Is it even possible to access a SQL database using Excel
VBA? If not, is there any way to capture the button click
event of a button on the worksheet (using the method
described in the article)? If I could get the button
click event of a button on the sheet, I think I could get
the rest working. Thanks in advance for help!


Why not ask in a VBA group?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
If you are interested I can be retained to help you with this problem.

kj***********@charter.net

remove the nospamhere part.

"Patrick B." <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
I have an existing excel spreadsheet that my customers
MUST continue using. There are 5 different specially
formatted cell groups (tables) on one sheet where the use
can enter data. The data in each of these "tables"
corresponds to a different table in a SQL database. What
is the quickest way for me to capture the click event of a
button on that sheet and move the data into my SQL
database tables? I have tried VBA and also the sample
discussed here:

http://www.msdn.microsoft.com/office...nding/excel/wa
lkthroughs/default.aspx?pull=/library/en-
us/odc_vsto2003_ta/html/odc_vstsqlexcl.asp

but cannot get either to work.

Is it even possible to access a SQL database using Excel
VBA? If not, is there any way to capture the button click
event of a button on the worksheet (using the method
described in the article)? If I could get the button
click event of a button on the sheet, I think I could get
the rest working. Thanks in advance for help!

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ImraneA | last post by:
Hi there Have a database, where front-end interface allows user to select a ms access database. From there, standard tables are linked. Routine, that creates a spreadsheet, for each table a...
13
by: Arno R | last post by:
Hi all, I will have to handle a lot of really 'nice' data in a LOT of Excel sheets. It is all about music files (Billboard top 100) I am afraid there really is a sheet for every year ... (Don't...
1
by: Johnny Meredith | last post by:
Dear All, I have an Access database that tracks the progress of income tax audits. When the taxing authorities make a change (an "Adjustment"), I record the pertinent information in the...
1
by: Ramakrishnan Nagarajan | last post by:
Hi, I am converting Excel data into a Dataset in C#. There are around 24 columns in the Excel Sheet. First I tried to insert one row with correct values in the Excel sheet. i.e. for text columns...
2
by: madeleine | last post by:
I'm hoping the answer to this is that I'm just doing something silly, but I'm really scratching my head over this one. I'm importing data from multiple workbooks, each workbook has a sheet called...
0
by: DrewYK | last post by:
I have the project that may never end in front of me. I am creating a routine that will take SpreadSheets from Excel and bring them into Access. I am not using any "DoCmd"s because the goal...
3
by: yovation | last post by:
Hi, I have a 3 table database. 1 parent 1 child 1 child of child I would like to get the data into excel as 1 sheet (similar to a grouped report).
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
2
hemantbasva
by: hemantbasva | last post by:
Note We need to have a template on server for generating report in multiple sheet as we do not had msoffice on server moreover this require a batch job to delete excel file created by the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.