Dear Team,
Need a macro which will create a statement based on the header information dynamically and iterate till the last row in the data in excel. Header information wont be static all the time. It changes all the time
[TABLE="width: 500"]
<tbody>[TR]
[TD]emp[/TD]
[TD]ename[/TD]
[TD]dept[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]kiran[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]shiva[/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]
Need to generate a excel like below based on the header information. dbname I will give manually not a problem
Insert dbname(emp,ename,dept) values(10,20,50)
Insert dbname(emp,ename,dept) values(20,shiva,30)
It should create the statements based on the number of rows it have in excel.
Appreciate your response.
Thanks,
Kiran
Need a macro which will create a statement based on the header information dynamically and iterate till the last row in the data in excel. Header information wont be static all the time. It changes all the time

[TABLE="width: 500"]
<tbody>[TR]
[TD]emp[/TD]
[TD]ename[/TD]
[TD]dept[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]kiran[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]shiva[/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]
Need to generate a excel like below based on the header information. dbname I will give manually not a problem
Insert dbname(emp,ename,dept) values(10,20,50)
Insert dbname(emp,ename,dept) values(20,shiva,30)
It should create the statements based on the number of rows it have in excel.
Appreciate your response.
Thanks,
Kiran