List Info

Thread: VB to Excel




VB to Excel
country flaguser name
United States
2007-07-24 01:51:08

Hi all
Can any one tell me? How to insert data into Excel sheet from VB Application.

Thanks in advance
Subhasis

---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Y! Messenger

Quick file sharing

Send up to 1GB of

files in an IM.

Search Ads

Get new customers.

List your web site

in Yahoo! Search.

Yahoo! Groups

Join a yoga group

and take the stress

out of your life.

Re: VB to Excel
country flaguser name
India
2007-07-24 02:55:51

Hi Subhas,

Following code insert data into excel sheet from VB application

Declare one variable for excel application like this

Dim xlsapp As New Excel.Application
xlsapp.Workbooks.Open filepath 'open old excel file

xlsapp.workbooks.add - new workbook

xlsapp.Cells(1,1)="Name"
xlsapp.Cells(1,2)="Studen_id"
xlsapp.Cells(1,3)="Mark1"

like this you used to store data into excel sheet.

regards,
M. Subramani

Subhasis Chanda < subhasis_chanda%40yahoo.com">subhasis_chandayahoo.com> wrote: Hi all
Can any one tell me? How to insert data into Excel sheet from VB Application.

Thanks in advance
Subhasis

---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.

[Non-text portions of this message have been removed]





---------------------------------
Get the freedom to save as many mails as you wish. Click here to know how.

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Y! Messenger

Quick file sharing

Send up to 1GB of

files in an IM.

Need traffic?

Drive customers

With search ads

on Yahoo!

Yoga Groups

Exchange insights

with members of

the yoga community.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )