Page 1 of 1

txt with excel

Posted: Tue Sep 04, 2018 1:47 pm
by sent
อยากทราบว่าจะส่งข้อมูล จาก textboxใน vb.net ไป excel ยังไงครับ โดยใช้ button :D

Re: txt with excel

Posted: Tue Sep 04, 2018 6:22 pm
by snasui
:D วิธีการหลัก ๆ ครับ

Add Reference ของ Excel เข้ามาใน Project > กำหนดตัวแปรให้เป็นโปรแกรม Excel, Worksheet, Range ที่จะวางข้อมูล จากนั้นเขียนคำสั่งให้ส่งค่าไปยังตัวแปรนั้นครับ

Re: txt with excel

Posted: Wed Sep 05, 2018 9:42 am
by sent
ขอบคุณครับ คุณ snasui :thup: