Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Sending Data To Excell


HelloI have a programme that creates a notepad document, how do I send the contents of log.txtto open in MS Excel. I don't want to see log.txt at all.thanks in advanceV




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Retrieve Ms Excell Data (sheet Name) To Sql Table Using Vb (Data Conversion)
hi
i have problem to retrieve a ms excell data to sql table (i'am using sql 2000) using visual basic.
then another problem is after the conversion process, how to retrieve the certain sql field (example name field) and
make it into shortname (example robert joseph to robert) without adding the last name and update it into sql table.
my limitation for the shortname is 12 character.
plss help me

Excell Data
Hi,
I'm new with VB, i have excel data, im trying to sort the data with highest
percentage and produced the result including the name and few information
which can be lookup together with the sort result. so how
can i do this. i try to do this but i dont know how can i bring others
information Please help me for the jump start.

Thanks

Looping Data To Excell
Ok, here is my issue.. I have posted this before but never got a clear answer... I have about 25 variables that I need to write to excel... all 25 to one row - one row at a time.

I can write single variables to single cells and multiple variables to a single cell… what I cant do is write all 25 variables to 25 cells in a single row.

What I need is a way to write all variables to a row then later add different variables to a new row in the same file… I am completely lost.

I have seen posting on how to loop the search for an available row... but I can not seem to get it work.

Here is what i have so far...

Code:
Dim oExcel As Excel.Application
Dim oWB As Excel.Workbook
Dim oWS As Excel.Worksheet

Set oExcel = New Excel.Application
oExcel.Visible = False

Dim oRng1 As Excel.Range

Set oWB = oExcel.Workbooks.Add
Set oWS = oWB.Worksheets("Sheet1")

oWS.Range("A1").Value = txtDate(1).Text ' <-- one variable to one cell

oWB.SaveAs ("c:
esearch_data.xls")

Cleanup:
Set oWS = Nothing
If Not oWB Is Nothing Then oWB.Close
Set oWB = Nothing
oExcel.Quit
Set oExcel = Nothing

Serial Data To Excell
I have a sensor the sends ascii data to the computer by serial, I need a exe that will read that data and put it into an excell document, and move down a line everytime it gets a new reading, But Im not sure what I need to put into vb6 to accomlish this?

Excell Data From Query
Hi

I am trying to use excell to connect to a ODBC database. It works, but I dont know how to use the data. I want to run the query and then put the results in variables, so I can place them on the sheet where I want. Any Ideas?

Thanks

Send Data From Vb To Excell
hi
i want to send some numeric data to excell sheet.

i want to develope a graph depending on that values.

chowdarypavuluri@yahoo.co.in

Thanks & Regards

Readwrite Data To Excell
Hi VB Geniuses,

All i want to do is read data from in an excell sheet by VB programme. I have already wrote the codes but only thing i don`t know is how to get data from Excell.Users will be adding some data into excell and i need to get them by a VB programme. It`s will be like below:


open worksheet in `c:xxxx.xls as input
if the date is today
find the date field`in worksheet and get data

Thanks for any help


Exporting Data To Excell
Hi there ,

How Could I Export the data that has been stored in Access DB using VB 6.0 To Excell Worksheet .

It's Uregent , Please any one who has an idea .

Best Wishes

Mohammed

Textbox Data Transfer To Excell
Hello! I have a UserForm that I have created for an Excel spreadsheet. In this UserForm, I have a Textbox that is set up to word wrap so that users can enter a long string of information. In order to have it appear properly in Excel, I have merged a large section of cells and set them up to word wrap. The problem I am having is that I can type a ton of info into the UserForm TextBox, but I get the "#Value" error in the Excel field. If I just type a couple of lines of info into the TextBox and submit, it works fine (and will even word wrap once). I have made sure that I am not typing in too much info for the space available in my merged cell. I have also changed the MaxLength property all the way up to 100,000,000 and it doesn't make any difference. I haven't been using VB for very long and I cannot figure this out!!! Please help!!

Thanks,
Brandon

Export Textbox Data To Excell
hello

can someone share with me some code that can take data inputted into various textboxes, and then those textboxes data can be exported to an excel file, or some way to take data in vb and export them to an excel spreadsheet? thank you.

Excell Numerical Data Comparison
I have two columns of numerical data A and B. Number of rows in column A > Number of rows in column B. Sum of numbers in column A = Sum of numbers in column B. So you have a scenario where maybe Sum of 1, 2, or 3 or more cells in Column A = a cell in column B. I am trying to write a program with the most efficient algorithm or code for making this comparison in excel and making these many to one mappings. Please help

Export Data To Excell From Msflexgrid
Hello All members
How can i make Exporting Data To Excell from Msflexgrid!!!?
thaks alot for advice


Egyptian Man

Writing Data To Cells In MS Excell
The wierdest thing happened. For some reason I can't put a value in the cells. It may be a result of the Row Insert I do but I don't know. Maybe the code can explain.

Code:
        For RowCount = 0 To UBound(aryTasks)
            Row = Row + 1
            Rows(Row).Select
            Selection.Insert Shift:=xlDown
            Set aRange = .Cells(Row, DATECOL)
            aRange.Value = dt
            Set aRange = .Cells(Row, MILEAGECOL)
            aRange.Value = miles
            Set aRange = .Cells(Row, TASKCOL)
            aRange.Value = aryTasks(RowCount)
        Next
        Set aRange = Nothing


Sure appreciate your help.

Scott
The worst thing about wearing glasses is them being on your face.
Nothing is impossible, it just looks that way.

How To Store A VsfGrid Data Into An Excell
Hi!
I,m using access for database & connect through ADODB. It work properly.
But i want to Restore that data which i store in datagrid, into an excell file.

Thks.

Need Help Quickly Please!! (putting Data In Excell Sheet)
Code:
'Put data in excell sheet
Dim A As String, B As String, C As String, D As String
ColA = LTrim(RTrim("a")) & LTrim(RTrim(Str(i)))

For i =1 to 50
Sheet.Application.range(A).Value = "66"
Next i

To put something in a spreadsheet you do Sheet.Application.range(ColA).Value = "66"

"ColA" is which square it goes into (ie A5 or B3).
So i set colA to eqal a(i), so thats column a and i up or down. And I have to fill 50 cells in each column (A1 to A50)

Ok now the problem is when I do


Code:
Sheet.Application.range(A).Value = "66"

the i in
Code:
ColA = LTrim(RTrim("a")) & LTrim(RTrim(Str(i)))
doesnt change so it always goes into A1.

If anyone knows how to read data off a random acess file and put it into an excell sheet PLEASE tell me how.
Also if you dont get what im trying to ask tell me.

Right Align Cells Data In Excell Sheet Using Vb
I have an MS-Excell Sheet. It has columns and rows populated with data.
I am looking for vb code so that i open the Excell sheet from the vb s/w and when i press a button, all cell data gets right aligned.

Although it cab be done through Excell s/w options. How i can i do this freom vb code.

Please guide.

Populating Data From Datagrid 6.0 To Excell Sheet
populating data from datagrid 6.0 to excell sheet ...?

Save/ Open Data From MSHFlexGrid To Excell With VB6
hi there......

Does anybody knows how to save/open mshflexgrid data into/from an excell file ?

thanks

Fetching Data From A Web-page Into An Excell Cell
How can I fetch data from a certain web-page into an Excel cell?

Let's say the web page looks like this:
...
Manchester United 12 7 3 2 14:5 25
Bolton Wanderers 12 2 6 4 11:16 12
...

How can I fetch for example Manchester United's number of goals (14) into the Excel cell using e.g. VBA?

Any hints? Solutions?

Exporting Data From Grid Control To Excell
Hello Gurus,

I have a small problem.

I am using a grid control in my vb project. Which has 5 columns and
some rows. Now I would like to insert these values from the grid
into a new microsoft excell sheet from vb by clicking a button.
The columns and rows should come as it is there in the grid.

I would like to have the code for this problem.

Can anybody help me...?

Thank you

Regards

Benny

Get Data Out Of Sequential Text File In VBA (to Import In Excell)
Hey,

A teacher of us gave us this nice assignment. He wants us to automate an excell file. The user should open excell, give up a textfile, VBA should get certain data out of this textfile and import it into excell.

My VBA knowledge is rather limited. So i tried to open the text file with a textbox + a command button and the folowing code

VBA
Dim filename as string
Dim location as string
Dim freechannel as integer

filename = txtbestand.Text

If filename = 0 Then
MsgBox "There was no file selected."
Else
location = app.Path & "filename"
If Dir$(location) = " " Then
MsgBox "The file was not found. Please try again '"
Else
freechannel = FreeFile
Open location For Input As #freechannel
VBA

I get an error that the variable is not defined at app.path. What is wrong ? Is there an easier way to import data out of a sequential text file into vba ? Please explain it easily. I'm also in a bit of a rush, because i have to hand in the assignment on thuesday !

Thanks a lot !

Excell Type Data Entry Screen Using Visual Basic 6
hi all
i need a controll by using that i may able to make data entry
screen like excell entry .in wchich i can handel col level dataentry

Complete Sending A Data Before Sending Another Data
i have such a code

private sub part1()
winsock.senddata "blahblah"
end sub

private sub part2()
winsock.senddata "111"
end sub

this will happen that sometimes , it'll send to client "blahblah111" , instead it should be "blahblah" and "111" seperately ..

how can i do that ?

VB And Excell W/out Having Excell Loaded
Can I use a program that retreives data from an Excel speadsheet on a machine that does not have Excel loaded?

Also, when I went to the references to set "Microsoft Excel 10.0 Object Library", it was not listed. Any ideas as to why it was not listed?

Any help or suggestions would be grealty appreciated.

Sending Data From Dll To Exe OR Getting Data From Dll From The Exe File...Help!!
I have made a dll file that gets information on certain things and it HAS to be a dll file (I wont go into that) but the problem is now that it gets the info I have no idea how to get the info from the dll from my project or send the data from the dll to my project..I tried subclassing a window and using SendMessage to send the data to my program but it locked up and only worked in windows 9x not NT at all..Dunno why..All help would be appreciated!

Sending Data To Data Report
Hi I need to know if there is a way to send specific data to a data report. Take this situation into consideration:

I have an Access database that I read in records from and depending on 3 - 6 different IF-THEN statements I
need the record to be added to the datareport. I would like to do this without having to add the records that I
need to be added being sent to another table temporarily. Is there a way to send data directly to a data report?

Thanks

SpyGuyRI


spyguyri@cox.net

Sending Data From VB To C
hey,
i wanted to send VB data to a C program but i dont which command i would use.
I know how to recieve data from the C program But iamhaving trouble sending it.

Sending DATA From App To Another ??
Hi,

I have two application :
APP1 : used to read a file with special encryption .
APP2 : used to decrypt the text which APP1 reads .

I have a hidden form in APP2 with Text Box ..

Can I send the data that APP1 reads to the hidden form in APP2 and put it in the Textbox directly without any temp storage ??

OR

Any way to send data directly between two running application ??


NOTE : the two application are on the same computer and I don't want to use any special ActiveX or winsock ??

Thanks

Sending The Data
Hi there,

I've been doing a small winsock game for multiple clients and I've got this problem with sending data to all the clients. Guess the data is being send way too fast ...

for example :

Player 1 connects and receives
NEW_PLAYER : [1] (5,8)

-> no problem

Player 2 connects and should receive the positions from all other users. What he receives :
NEW_PLAYER : [1] (5,8)NEW_PLAYER : [2] (1,1)

Conclusion : everything is being send to him, that's not the problem, but it should be send one by one tho ...

I do it with this code :


Code:
For i = 1 To ConId
DoEvents
sckPlayer(i).SendData "NEW_PLAYER : [" & conid & "] (" & Mypos(conid).X & ", " & Mypos(conid).Y & ")"
DoEvents
Next
I thaught "DoEvents" had to fix this problem ... ?

thx,
Vamp


*** MOD : moved this thread @ winsockvb.com
If I get any help over there I'll update this thread !

Sending Data To A VB App Through VBA
I need to be able to send a VB App (one that I'm building at present) data from inside a Word document. This needs to happen when the user saves the document he is working on in Word.

Does anyone know the code I would use in VBA to detect the other VB Application and send data to it?

Thanks in advance.

Sending Data
I have form, asking them for 2 details, when the click ok button the data that was written into the fields should send either by ftp or e-mail.

Is ther any command to do that?

Thank You

Sending Data
Im sure this has been asked before, but the search is not working too well. I need to know how to send like a command over a Winsock Connection, then have that command triggered. So, say I wanted the command Msgbox "Hi" sent over a Winsock Connection and then triggered when reached its destination. Mabye you guys have a tutorial, or someone has the code on how to do this? Just ask for any clarifying, thanks.

Inuyasha

Sending Data Via TCP/IP
I have a simple program that creates a connection with 2 networked computers using winsock.

Once they are connected, the client sends a piece of data to the server saying it is ready to recieve the file. The server then sends the first chunk (each chunk is 3kb) of data to the client, once recieved the client sends NEXT to the server, which then sends the next xhunk, and so on and on.

The program works fine with one winsock, however I have put a winsock control array on which check to see if there is an available winsock that isnt connected. If there is it uses this one otherwise it loads a new one. Now when I try and run the prog the files dont send properly.

Does anyone know a good method of using multiple winsocks at the same time?

Regards

Sending DATA From App To Another ??
Hi,

I have two application :
APP1 : used to read a file with special encryption .
APP2 : used to decrypt the text which APP1 reads .

I have a hidden form in APP2 with Text Box ..

Can I send the data that APP1 reads to the hidden form in APP2 and put it in the Textbox directly without any temp storage ??

OR

Any way to send data directly between two running application ??

Thanks

Sending Data From APP To Another.. Is It Possible?
Hi all..

I have a VB APP that has two TextBoxes and a button.. I want when I write data in these TextBoxes and then press the button.. to put the same data in another TextBoxes inside another program (Using API or another way)..

The other program is RealPlayer.. when I start a music file from the a server.. it has an SSL protection.. I made a registration in that website and they gave me Username and Password for that.. so I want to make VB enters that Username and Password to the RealPlayer when it is started.

Hope you got what I'm trying to do..

Cheers..

Sending Data Over The Web
How can I make an app silently send information over the web. I dont want to make a trojan, just sort of a tracking mechanism for an app that will let me know what IP address of the computer it is running on everytime the app is started or stopped.

any ideas?

Why Are You Not Sending My Data??!!
I put the following lines in my code, where I had a winsock object called tcpClient, and a button called request, and text boxes called hostpath and localpath

Private Sub request_Click()
tcpClient.SendData "file " & hostpath & vbLf
tcpClient.SendData "path " & localpath & vbLf
tcpClient.SendData "sendnow " & vbLf

Dim strData As String
Dim ReturnData As String
Dim Strdata2 As String
Dim ReturnData2 As String
tcpClient.GetData Strdata2, vbString

If Strdata2 Like "*nonexist*" Then
MsgBox "File Does Not Exist"
End If
End Sub

But it gives me the error

Run Time error '40006'
Wrong Protocol or connection state for the requested transaction or request, and on debuging points to
tcpClient.SendData "file " & hostpath & vbLf

Do you know why this might be?

Sending Data
I am trying to write a program that links the mouse of one computer to another. Everything is working but movement of the mouse on the second computer is very jerky. I need some very fast way to send the x and y position and interpret it. I am currently using the Split function, is there a faster way.
-Thanks

Sending Raw Data To 888
Lately I've been playing around with some home made hardware that I am trying to control with my computer. Back in the days of QB there was a function called Out(a,b) where a was the port you were writing to (printer or 888 for me) and b was the data you would send. If you wanted to send 00101000 then b would equal 20. Anyways, I would really like to use a similar function in vb, but can't find one. I have downloaded io.dll and win95io.dll and neither has worked. If you know how I can do this in VB using either a built in VB function(I wish ), an API call, or even a downloaded DLL please post it.

Sending Data
how do i send data and then another data, seperated? (using winsock)

Sending Data Across The Web
Hi,



Can anyone give me any suggestions as to the best way to read/write datato/from a VB application over the web?



I.e. the client side VB application must be able to tap into the serverside VB application and read/write data from/to it?



Thanks.

Best regards


Darren Logan BSc(Hons)


Development Engineer

Sending Data?
ok, ive been working on an online game for some time, and the way it works, is that when a person logs on, it sends all the info at once. maybe up to 10kb, but im worried about the people with 28.8k modems or whatever. example code:

'________________
dim blah as string
blah = "info"
for i = 1 to 1000
blah = blah & "1234567890"
next i

socket.senddata blah
'____________
k, so thats 10.03kb sending all at once, ofcourse testing it by me sending to myself it will send all that info.
but is it safe/effective for sending to people around the world? im not sending a file or anything, just small to large strings.

(or will i have to use a different method)
because it is important that they get it at once, but that they get it "all".

thanks

Where To Start With Sending Data
hello,
I want to make a vb program that will talk to my php script....

what do i need to read to get started on this.
Even if i can send urls witha ?Query_String attached to it would be fine.
And what about recieving data.

I have been reading about winsock.. is this what i should look into ?

Thanks,

Drew

Sending A Data Structure
I am using the SendData Winsock routine to send data from client to server and vice versa. From looking over some example code it looks like SendData is expecting to send a string of data. The data I want to send is packaged in a data structure or Private Type that I created that has a mixture of different data types. I guess what I need to do is be able to send binary data instead of ascii data, or is there a way to send it as ascii data? Also, I want to send different packet types, and wish to give each packet an ID# so the the receiving side can easily interpret what kind of data it is receiving.

thoughts?

Xeifrank

About Strings And Sending Data
hi, I want that whenever I get the data "PING 65465434safdsa"
the computer will automatically send "PONG " with the same expression...
this is my code:

Code:
Private Sub TCP1_DataArrival(ByVal bytesTotal As Long)
Dim indata As String
Dim numpong As Integer
Dim le As Integer
Dim A As Integer

TCP1.GetData indata, vbString


If Left$(indata, 4) = "PING" Then
le = Len(indata)
A = le - 8

numpong = Right$(indata, A)
SendData "PONG" & numpong
AddText "PONG" & numpong
End If

indata = OldText & indata
AddText indata

the error is on that line:
numpong = Right$(indata, A)

and the error is:
Type mismatch

what is wrong?

sorry if it's something stupid... i'm just a begginer

Sending POST Data
As of now I have your basic everyday html page, with a login form


HTML Code:
<form action="login.php" method="post">
Name:<input name="login" value="anonymous">
PW:<input type="password" name="password" value="">
<input type="submit" name="submit" value="Login">
</form>
I would like to send data to both of those textboxes (Name textbox's name is 'login' password textbox's name is 'password'), in VB using textboxes.

I am using the INet control, because as of now it is the only way I can think of to do it. Currently I have..


Code:
Private Sub cmdLogin_Click()
conURL = "login.html"
User = txtUser
PW = txtPW
inetCont.Execute conURL, "POST", User & PW
End Sub
That as of now, does nothing (to my knowledge). But of course after I sign in, I would like to STAY signed in. So I'd have to send a cookie as well. Suggestions?

Sending Data Back And Forth With Php
Does anyone have a clue as to how I could send data between a VB program and a PHP script. I have an idea about the PHP script but I dont know how to send and recieve data from the web into VB.

Sending Data To Email
hi all, with my program i want to send the values of a field to my own email, like i want to send text1.text as content to my email, how can i do this?

Winsock And Sending Data
I have had no problem in the past sending and recieving data with winsock. What I am trying to do is this:
Connect to a shoutcast server, download the first bit of info for about 5 seconds, disconnect search through the data sent find the streamtitle identifier figure out the title of the current song and we are done. So I use winsock to connect to the ip listed below. Then I send the data to the ip. Ussually when i have done something similar in the past I would get a response, well this time I don't. I snooped the packets to watch what is happening and I just never get a response from the server. This is exactly the syntaxt Winamp sends the get command to the server, so it should work fine. Any ideas? I know you have to have like 1 or 2 blank lines at the end of the sent item, but that is pretty much ok.

GET /stream/1003
HTTP/1.0
Host: 64.236.34.97
User-Agent:
WinampMPEG/2.9
Accept: */*
Icy-MetaData:1
Connection: Close(I have tried close and keep-alive here)

Copyright © 2005-08 www.BigResource.com, All rights reserved