473,386 Members | 1,736 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,386 software developers and data experts.

using arithmetic operations to fill in data in the cells of an entire column

28
Hello there,

I am working on macros and now i am calculating the value of columns cell by cell based on the previous cells of the corresponding row in that column.Do i have any method where i can attribute a formula to a column like

data in AE=data in AB+data in AC-data in AD ....
so that for every row cell in AE column the corresponding row cells of the other columns are used to calculate the value.

May be this is a minor issue.But i am a newbie and needs some help.

Thanks in Advance,
Shara.
Mar 22 '07 #1
2 1316
vijaydiwakar
579 512MB
Hello there,

I am working on macros and now i am calculating the value of columns cell by cell based on the previous cells of the corresponding row in that column.Do i have any method where i can attribute a formula to a column like

data in AE=data in AB+data in AC-data in AD ....
so that for every row cell in AE column the corresponding row cells of the other columns are used to calculate the value.

May be this is a minor issue.But i am a newbie and needs some help.

Thanks in Advance,
Shara.
see this can be done with the help of excel also but its little bit complicated
so u may write code in After Edit event of Flex as
grd.textmatrix(row,4)= val(grd.textmatrix(row,2) &"") +val(grd.textmatrix(row,3) &"")
see its just a hint
use componant one's vsflexgrid for such event of grid
try it
Good Luck
Mar 22 '07 #2
shara
28
see this can be done with the help of excel also but its little bit complicated
so u may write code in After Edit event of Flex as
grd.textmatrix(row,4)= val(grd.textmatrix(row,2) &"") +val(grd.textmatrix(row,3) &"")
see its just a hint
use componant one's vsflexgrid for such event of grid
try it
Good Luck

Hello Vijay,

Thanks for responding.But i dont have a hint of idea about what you told like flex grid.Can you kindly give me the approach with VB macros?

Thanks,
Shara.
Mar 23 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
0
by: Peppie | last post by:
Hi, I have dropdown control on my form and after the onchange event I reload a datagrid and fill a textbox embedded in a cell with the text from the invisible next column. Unfortunately the text...
3
by: ruca | last post by:
hi, How can I fill some DataTable by clicking in cells of a DataGrid control? NOTE: I don't want to select a entire row, ok? I must select only one or more cells... I have a DataGrid that...
1
by: keith.walter | last post by:
My first asp.net app is almost "done" and I am stuck. Here is my situation: I have a "mother" page add_customer.aspx and a"child" user control add_group.ascx. On the mother page is an "add...
1
by: kingster | last post by:
Hi, I have a regular dataset and all i want to do is make a pivot table display in a browser with the datasource of the pivot table to be this dataset and then the end-user will be able to do...
2
by: Randall Parker | last post by:
Suppose you want to do either of these: A) Set display properties (e.g. color or boldness of text) of a cell based on a value of another cell in the same row. B) Set the display properties of...
0
by: Bob | last post by:
Hi, Watch out for this one. It may be be more widespread but haven't got time to test. VS2005 Database SQlAnyWhere OleDbDataAdapter.Fill(Dataset.table) Dataset table contains string column y...
1
by: Sharon | last post by:
Hello All, Is it possible to update Sql Table through DataGrid. I have a DataGrid which is being populated through a stored procedure, all i wanted to do is to update one field...
2
by: Rosco | last post by:
Hello, Quick Overview: I am creating a Windows application using C# and have run across a problem. I’m trying to use a DataGridView in “Bound” mode, but filter the view. I have a database...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.