PC Review


Reply
Thread Tools Rate Thread

How do i Link SQL data with a Excel Cell.

 
 
=?Utf-8?B?U3B1ZGFuYXRvcg==?=
Guest
Posts: n/a
 
      25th Oct 2006
Currently I am trying to link my excel spreadsheet with a SQL database. what
i want setup is so that the cell is linked to a specific cell in the database
and is continually updated. is this possible.. if not how do i create a
macros button to allow me to refresh when required. Thankyou for your
assistance.
 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      25th Oct 2006
perhaps using Data=>External Data and create a query in the worksheet using
ODBC. Use an SQL query that returns the single value you want.

The properties of the querytable can be set to control refreshing although I
am not sure about continuously - but periodically as I recall. You probably
want to reject the option to allow a backgroundquery.


--
Regards,
Tom Ogilvy



"Spudanator" <(E-Mail Removed)> wrote in message
news:3AC83E24-6F0D-4B6B-8546-(E-Mail Removed)...
> Currently I am trying to link my excel spreadsheet with a SQL database.
> what
> i want setup is so that the cell is linked to a specific cell in the
> database
> and is continually updated. is this possible.. if not how do i create a
> macros button to allow me to refresh when required. Thankyou for your
> assistance.



 
Reply With Quote
 
jseven
Guest
Posts: n/a
 
      25th Oct 2006
Your best bet is simply to use the "get external data" feature under
the "data" menu item. Record your actiions via the macro tool while
you go through the motions to get your external data.

ONce you've completed it, just edit the code you just recorded to tweak
it for any variables you want etc.

You can update it / refresh it whenever you want or even just set it up
to auto update.

Regards,
Jamie
Spudanator wrote:
> Currently I am trying to link my excel spreadsheet with a SQL database. what
> i want setup is so that the cell is linked to a specific cell in the database
> and is continually updated. is this possible.. if not how do i create a
> macros button to allow me to refresh when required. Thankyou for your
> assistance.


 
Reply With Quote
 
=?Utf-8?B?U3B1ZGFuYXRvcg==?=
Guest
Posts: n/a
 
      26th Oct 2006
Sorry for the late reply but i figured out how to do it by importing the
whole table into the document. few questions

Is there a reason why i would want to reject the option to allow for
background query. each time i try and use an SQL query to return a value. all
that seems to do is write the SQL query on the spreadsheet. i have done it a
different way and got the whole table to be output on a seperate worksheet if
its possible to do it another way i would alway like to know just for my own
knowledge. Finally once this is done how can i then send some new data back
to the SQL data base..
"Tom Ogilvy" wrote:

> perhaps using Data=>External Data and create a query in the worksheet using
> ODBC. Use an SQL query that returns the single value you want.
>
> The properties of the querytable can be set to control refreshing although I
> am not sure about continuously - but periodically as I recall. You probably
> want to reject the option to allow a backgroundquery.
>
>
> --
> Regards,
> Tom Ogilvy
>
>
>
> "Spudanator" <(E-Mail Removed)> wrote in message
> news:3AC83E24-6F0D-4B6B-8546-(E-Mail Removed)...
> > Currently I am trying to link my excel spreadsheet with a SQL database.
> > what
> > i want setup is so that the cell is linked to a specific cell in the
> > database
> > and is continually updated. is this possible.. if not how do i create a
> > macros button to allow me to refresh when required. Thankyou for your
> > assistance.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create link of DATA not cell reference in Excel? =?Utf-8?B?TmluZXVodE9L?= Microsoft Excel Worksheet Functions 0 24th May 2007 09:23 PM
Can Excel 2003 cell link carry with it the source cell format? =?Utf-8?B?VG9t?= Microsoft Excel Misc 2 14th Jul 2006 06:14 AM
Link Excel cell data to Powerpoint text boxes dstdst123@excite.com Microsoft Powerpoint 2 9th Jul 2006 06:23 PM
Link Excel cell data to Powerpoint text boxes dstdst123@excite.com Microsoft Excel Discussion 2 9th Jul 2006 06:23 PM
Link Data in specific cell in Access to Excel Dustin Microsoft Excel Programming 0 26th Jan 2004 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:33 AM.