Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2007, 01:53 PM
Registered User
 
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Transfer Dynamic Data from Excel to Access DB ?

Hello , I need your help ....

I connect my program with MS Excel Cell with another program
through special code .

where XXXX is variable and its value changes every second or more .

when I add this code in Any Cell in my Excel sheet .
the value of cell changes according to value of XXXX in my program .

This is my Request :

I want a method like macro or anything else that help me to

Transfer The Value of Excel Cell to be a new input in Access data base , automatically every time the value of cell changes .

More Details :

Suppose that we have Excel sheet and MS Access Data base .
I put the code to a cell in excel sheet .

the float number is : 100.00
After 1 second the cell value becomes : 102.75

Now, I want Program that can determine this change in cell value
and create a new row in access DB and add the new value ( 102.75 )
as a new row at my access data base .

and Every Time the Cell value update , the new value adds as
a separated new row at my data base .

and at the same time , I want a Time column in Ms access DB .
That Save the Time when every new value enter the data base .

<center>I want know How can I do that ??? and with any language ???

I will be very thankful , if anyone can help me
and Give me a good solution for this problem .</center>


thank you so much


Jake Anderson
 
Old July 2nd, 2007, 02:01 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

You can use the following event to fire your DB updated code

Private Sub Worksheet_Change(ByVal Target As Range)

'MsgBox Target.Address

' Get the Target Value

' DB Update Code here


End Sub

You can also use Worksheet_Calculate() event also

Cheers
Shasur

to

http://www.dotnetdud.blogspot.com
 
Old July 2nd, 2007, 11:11 AM
Registered User
 
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default


thank you so much Shasur

Your reply is so helpful

Good Luck my Friend



Jake Anderson





Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer data from Excel to Access JezLisle Excel VBA 0 December 13th, 2007 01:25 PM
Data transfer from Access to Excel swaroop Access VBA 2 June 1st, 2007 10:30 AM
how to transfer data from excel to Access database swaroop Access VBA 5 April 13th, 2007 09:02 AM
how to transfer data from excel to Access database swaroop Excel VBA 1 April 12th, 2007 10:45 AM
Transfer Data to Excel one cell at a time mahulda ASP.NET 1.0 and 1.1 Basics 2 April 28th, 2004 04:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.