In order to write a macro you need to know exactly what you want to happen,
and I don't think you have provided sufficient information to understand exactly
what you enter or want created automatically. For instance adding two rows at
a time not a typical spreadsheet application, so possibly you provided the
wrong cell addresses and meant for the additions to be on the same row, but
in any case I don't have an idea of the order that you are entering information
and what is to be automated.
In other words B1 and B2 are NOT on the same row.
When you change the value in A1 can the new row(s) be created
automatically, or id the calculated value going to appear when you
add a new cell(s) below.
If you look over the page reference I provided earlier you would get
an idea of what you can do and help you provide a better definition
of what you want done.
.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:
http://www.mvps.org/dmcritchie/excel/search.htm
rbane said:
Unfortunately I am not that familar with macros. Could you tell me how to use
the macro you are referring to and help me through it?
Thank you very much.
--
rbane
David McRitchie said:
You could use a Change Event macro to trigger each time the value in A1 changes.
http://www.mvps.org/dmcritchie/excel/event.htm
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:
http://www.mvps.org/dmcritchie/excel/search.htm
Can someone help me with this problem?
Assume I have a row of cells named B1 and B2.
Today I want the value in B1 to be the product of A1 times A2.
Tomorrow, I will create another row of cells named C1 and C2. I will change
the value of A1 and I want the value in C1 to be the product of the new A1
times A2.
I do not want the old value in B1 to change from what it is today.
Can you help me with this?
Thank you very much,
Ron