nithishvinolin
New Member
- Joined
- May 31, 2013
- Messages
- 5
Hi,
I need a help in developing a macro.
I have a example. I have 4 columns. first 3 columns ID, C1, C2 have the input data. Under a ID we have multiple number of rows. In this example we have 4 rows for ID1. But in real time it can be any number of rows under a single ID. When I click a button the values under ID 1 should get concatenated and stored under the Concatenate column.
I tried some macros but i cant get the logic behind finding the dynamically changing row counts under single ID. Any kind of help will be appreciated. Thanks in advance.
[TABLE="width: 297"]
<colgroup><col span="3"><col></colgroup><tbody>[TR]
[TD]ID[/TD]
[TD]C1[/TD]
[TD]C2[/TD]
[TD]Concatenate [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]12345678[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]91011121314[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]11[/TD]
[TD]12[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]13[/TD]
[TD]14[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]15161718[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]17[/TD]
[TD]18[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
I need a help in developing a macro.
I have a example. I have 4 columns. first 3 columns ID, C1, C2 have the input data. Under a ID we have multiple number of rows. In this example we have 4 rows for ID1. But in real time it can be any number of rows under a single ID. When I click a button the values under ID 1 should get concatenated and stored under the Concatenate column.
I tried some macros but i cant get the logic behind finding the dynamically changing row counts under single ID. Any kind of help will be appreciated. Thanks in advance.
[TABLE="width: 297"]
<colgroup><col span="3"><col></colgroup><tbody>[TR]
[TD]ID[/TD]
[TD]C1[/TD]
[TD]C2[/TD]
[TD]Concatenate [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]12345678[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]91011121314[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]11[/TD]
[TD]12[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]13[/TD]
[TD]14[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]15161718[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]17[/TD]
[TD]18[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]