Send updates back to SQL server when typed into a data table

RobExcel

Board Regular
Joined
Jan 6, 2010
Messages
69
I know it is possible to use VBA to update SQL Server tables with data entered into Excel cells by the user. I have heard that there might be a built-in way to do this in Excel. Is it possible to insert a table/query into an Excel sheet and then have Excel send updates made by the user back to the SQL Server table? I know this can be done in Access and for reasons not germane to this questions, that's not an option.

As an example, assume I query TABLE1 from SQL and the results are put in a table in cells B2:C3 as follows:

[TABLE="width: 200"]
<tbody>[TR]
[TD]Widgets[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Super Widgets[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]

The user then types a new widget count into cell C2:

[TABLE="width: 200"]
<tbody>[TR]
[TD]Widgets[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Super Widgets[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]

Can Excel automatically update the value in SQL or does VBA need to be written to handle this?

Thanks
Rob
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top