I took range out and it works fine. Can you tell me how to read a cell now
this is how I read txt files
fileReader =
My.Computer.Fil eSystem.ReadAll Text("C:\test.t xt")
do i need to change the read all?
User Profile
Collapse
-
Thanks for the help
With obj1.worksheets (1)
a = range(.cells(1, 1), .cells(1, 1).end(-4121)) '-4121 is the number of the constant xldown, but it's not recognized by all the versions of vb, so -4121 or -4161 for xlleft will help.
b = .cells(1, 1).value
End With
I get a message saying range is not declared.Leave a comment:
-
Reading/Writing to excel
How do I make vb 2005 read and write to a specified cell in excell 2003 & 2007. -
-
-
no so i change the code to
phillreader = My.Computer.Fil eSystem.ReadAll Text("H:\VB\phi ll count.txt")
phillcount = phillreader(1)
TextBox1.Text = phillcount
this and it will only read that chatcher number...Leave a comment:
-
read a line from a text file
i need to read line 2 of a text file but not line 1
here is what i tryed
[CODE=vbnet]Dim MyTime = Format(Now, "dd-MMM-yyyy")
Dim phillstatus As String
Dim phillcount As String
Dim phillreader As String
phillreader = My.Computer.Fil eSystem.ReadAll Text("C:\Users\ Richard\Documen ts\test.txt")
phillcount = phillreader.Rea dLine(1)[/CODE]Last edited by Killer42; Dec 13 '07, 02:08 AM. -
i guess what my real qustion is. can i make the the file name a variableLeave a comment:
-
file writing
I need the file name to be the date and the studnets name and have new file every time I open it
'Pass the file path and the file name to the StreamWriter constructor.
objStreamWriter = New StreamWriter("H :\vb\test.txt")
'Write a line of text.
objStreamWriter .WriteLine(APhi lAvestrue)
objStreamWriter .WriteLine(MyTi me) 'Write a second line of text.
... -
Table font color
how do i change the font color of a table here is my code
[html]
<tr>
<th>PICTURES</th>
<th>NAMES</th>
<th>PRICES</th>
</tr>
<tr>
<td>row 1, cell 1</td>
<td>pepperron i pizza</td>
<td>$2.00</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>cheeseburge r</td>... -
What is the best vb6
Hi
I just started learning VB 2005 and want to get VB6 now can any one tell me a book I should get and were I can get vb6 at?Last edited by Killer42; Nov 13 '07, 07:10 AM. -
-
arry with a text file
Hi
I need a way to load a text file in to an arry
the way i got it working is just gives me 1 leter of the word beacuse i have it pick a radom number to get the variable. -
What i need in a nut shell is to make a vb read a text and put the text in an arryLeave a comment:
-
can i make vb read a test file?
what i am trying to do is make a program the put a word up 4 x seconds and then you type and it tells you if you got it right or wrong i need the user to be able to set the words that can flash up fomr a text file i am useing vb 2005 -
Thanks, I am using VB 2005. When I save it gives me weird stuff like a form called what the form was named then .rex. Sometimes it looks like an Access file almost, or sometimes it looks like my program wih a lot of stuff on it but with a a bunch of quotes or maybe the debug. Sometimes I try and run the program; I get the last program I ran.Last edited by Killer42; Nov 8 '07, 05:24 AM.Leave a comment:
-
Try going to when it say select deteil and there should be a drop down box try 1 of the outher optionsLeave a comment:
-
jsut save it has a whatever.html and then open it and make a shoetcut on your flash drive i think this is what you wantLeave a comment:
-
-
No activity results to display
Show More
Leave a comment: