473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to read excel sheet through v.b 6.0

Hi every body!

I would like to develope an application. it should read data from existed excel sheet.besides this we can able to modify some of data in the excel sheets through our v.b application. it is urgent to me. can u say how to do it? and what controls are to be used.Actually i knew to v.b. kindly help me.
thank u:
regards:
raghunadhs
May 24 '07 #1
4 10251
Dököll
2,364 Expert 2GB
Hi every body!

I would like to develope an application. it should read data from existed excel sheet.besides this we can able to modify some of data in the excel sheets through our v.b application. it is urgent to me. can u say how to do it? and what controls are to be used.Actually i knew to v.b. kindly help me.
thank u:
regards:
raghunadhs
Greetings, raghunadhs!

Please excuse my passiveness. I think you will find posts hre that deal with what you need, posted just recently.

I would add your title to search terms here, see what pops up. How's that for deal?
May 25 '07 #2
I could not get any reply for this thread. if u know kindly help me
regards:
Raghunadh



Greetings, raghunadhs!

Please excuse my passiveness. I think you will find posts hre that deal with what you need, posted just recently.

I would add your title to search terms here, see what pops up. How's that for deal?
May 29 '07 #3
Try the TransferSpreadsheet method. One of the transfer type possibilities is "link". I'm new to this too so I haven't tried it myself, but I'm guessing this is the direction to go.

Hi every body!

I would like to develope an application. it should read data from existed excel sheet.besides this we can able to modify some of data in the excel sheets through our v.b application. it is urgent to me. can u say how to do it? and what controls are to be used.Actually i knew to v.b. kindly help me.
thank u:
regards:
raghunadhs
May 29 '07 #4
kadghar
1,295 Expert 1GB
Hi,

I'm not sure if this works for VB6, but i have used it many times in VBA

'First create an excel object
Set Obj1 = CreateObject("excel.application")
'Then call the workbook you want to open
Obj1.Workbooks.Open (xlFile)
'If you want to see what you are doing make it visible
Obj1.Visible = True
'And you can modify the first worksheet B1 cell this way:
Obj1.Worksheets(1).Cells(1,2).Value = "hello world"
'Dont forget to save the changes when you close it:
Obj1.ActiveWorkbook.Close savechanges:=True

Hope this help you.

If you have troubles getting the file route or you want to make it easier, you can always use a File Dialog:

With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.Filters.Clear
.Filters.Add "Archivos de Excel (*.xls)", "*.xls"
.Filters.Add "Todos los Archivos (*.*)", "*.*"
.Show
If .SelectedItems.Count > 0 Then
xlFile = .SelectedItems.Item(1)
End If
End With
May 29 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
4
by: Marco Aschwanden | last post by:
Hi I would like to 1. import an existing Excel-sheet (a template) 2. and add some data to it 3. and save it under a different name afterwards. To me it seems, that pyExcelerator does not...
12
by: kath | last post by:
How do I read an Excel file in Python? I have found a package to read excel file, which can be used on any platform. http://www.lexicon.net/sjmachin/xlrd.htm I installed and working on the...
1
by: tanilov | last post by:
Hi all, I need to read data from an excel file and populate a dataset. After some search I found following code: connString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +...
1
by: ashok0866 | last post by:
I had created a macro to read data from an excel sheet and write the values to a text file. I had used "ActiveSheet.Range("GB" & k).Value" command to read the values from the excel. The issue...
5
by: barbara_dave | last post by:
Hi All, I need to read data from a Excel spreadsheet, but I got the problem when I tried the code below: StringBuilder sbConn = new StringBuilder();...
0
by: Vader | last post by:
I am new to this forum. Thanks in advance for and help. The following is what I am looking for: 1. I need help with VB code to open a MS Word (.doc) file. 2. Read lines from the MS Word (.doc)...
5
by: tsanthoshk | last post by:
Hi All I am trying to read and modify input excel file. when i update the data in excel sheet already existing format is washing out. It mean if excel sheet contain colors those are not appearing...
2
hemantbasva
by: hemantbasva | last post by:
Note We need to have a template on server for generating report in multiple sheet as we do not had msoffice on server moreover this require a batch job to delete excel file created by the...
1
ammoos
by: ammoos | last post by:
Hi Friends I need to read data from excel sheet. The issue is that the first few rows of the excel sheet are images and buttons...and the data I need to read is start from the 6th row. And also...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.