Changing cell data by vb reading data from a file, please help!

fuze

New Member
Joined
Mar 29, 2009
Messages
5
Hi, I need to create a programme that will read data from a file and use that data to change cells in excel, and I was wondering if anyone can help me.

I am trying to create something that will allow me to change excel cell data live by dragging a mouse up and down, using puredata and visual basic.

For the visual basic I need it to read data from a file of some sort (havent worked out what type of file yet) on a loop and input that data into a specific cell in excel, so that when i drag the mouse, puredata changes the value in the file and vb reads this and inputs the data into excel so that the cells and my graph changes as a result.

I have attached a picture of the file I am trying to do it with.

marketingproposal.jpg


It is for use in an interactive presentation. The use in my example is for selling a marketing proposal to a customer.

The chart on the left shows the quantities of units in the proposal and the chart on the right shows the cost, with the total cost underneath.

I want to be able to drag the quantities with the mouse and use puredata tol read the sursor position and change the particular data in the file for vb to read from and change the cell value

For example if flyer quantities is at x36, y24 on the grid, when i move y24 to y26 pure data would input the data change from 4 to 5 in the file, then vb would read this change and input 5 into the cell value, thus changing the spreadsheet and the quantity chart on the left, and the cost chart on the right. That is why I need the vb programme reading the data on a loop, so whenever it changes in the file, vb changes the value in excel.

I can work on getting puredata to do that part of it, I just have no idea how to get visual basic to do the rest

I hope that is explained clear enough, thank you very much in advance!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,196,250
Messages
6,014,244
Members
441,808
Latest member
xplainer

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