Click here to Skip to main content
15,906,272 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: File splitting Logic Pin
Luc Pattyn13-Oct-07 3:11
sitebuilderLuc Pattyn13-Oct-07 3:11 
QuestionProblem in Running EXE on Network when using ODBCConnection Object Pin
kkb_200112-Oct-07 21:12
kkb_200112-Oct-07 21:12 
AnswerRe: Problem in Running EXE on Network when using ODBCConnection Object Pin
Dave Kreskowiak13-Oct-07 3:52
mveDave Kreskowiak13-Oct-07 3:52 
QuestionHelp needed to Manipulate CSV Cell data..... Pin
paulk1112-Oct-07 12:26
paulk1112-Oct-07 12:26 
AnswerRe: Help needed to Manipulate CSV Cell data..... Pin
Dave Kreskowiak13-Oct-07 3:48
mveDave Kreskowiak13-Oct-07 3:48 
GeneralRe: Help needed to Manipulate CSV Cell data..... Pin
paulk1113-Oct-07 4:39
paulk1113-Oct-07 4:39 
GeneralRe: Help needed to Manipulate CSV Cell data..... Pin
Dave Kreskowiak13-Oct-07 5:00
mveDave Kreskowiak13-Oct-07 5:00 
GeneralRe: Help needed to Manipulate CSV Cell data..... Pin
paulk1113-Oct-07 6:01
paulk1113-Oct-07 6:01 
Hi Dave,

Thanks for that.
Ive managed to cobble together some code which will copy from a .TXT to Col A of a .CSV.

Whereabouts\how would i addin your suggestion of:

Cell(row,col).Value = Call(row,col).Value & TextLineFromFile

Where you say (row,col)does that mean i need to specify the row and column..as ive a lot of row data to add.

Code below
-----------------------------------------------------------------------------

Const ForReading = 1

Set oExcel = CreateObject("Excel.Application")
oExcel.Visible = True

oExcel.Workbooks.Add

i = 1

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\passwords.txt", ForReading)

Do Until objFile.AtEndOfStream
strLine = objFile.ReadLine
arrLine = Split(strLine, ",")

oExcel.Cells(i, 1).Value = arrLine(0)

i = i + 1
Loop
oExcel.ActiveWorkbook.SaveAs ("c:\newtest.csv")

objFile.Close
oExcel.Quit
-----------------------------------------------------------------------------
GeneralRe: Help needed to Manipulate CSV Cell data..... Pin
paulk1113-Oct-07 6:09
paulk1113-Oct-07 6:09 
GeneralRe: Help needed to Manipulate CSV Cell data..... Pin
Dave Kreskowiak13-Oct-07 9:11
mveDave Kreskowiak13-Oct-07 9:11 
QuestionBindingSource Pin
sabr4912-Oct-07 9:04
sabr4912-Oct-07 9:04 
AnswerRe: BindingSource Pin
pmarfleet12-Oct-07 10:11
pmarfleet12-Oct-07 10:11 
GeneralRe: BindingSource Pin
sabr4912-Oct-07 10:40
sabr4912-Oct-07 10:40 
GeneralRe: BindingSource Pin
nlarson1112-Oct-07 10:58
nlarson1112-Oct-07 10:58 
GeneralRe: BindingSource Pin
sabr4912-Oct-07 11:19
sabr4912-Oct-07 11:19 
GeneralRe: BindingSource Pin
Dave Kreskowiak13-Oct-07 3:27
mveDave Kreskowiak13-Oct-07 3:27 
QuestionIterating and Modifying a .NET Queue? Pin
AliAmjad12-Oct-07 8:55
AliAmjad12-Oct-07 8:55 
AnswerRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak13-Oct-07 3:21
mveDave Kreskowiak13-Oct-07 3:21 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad13-Oct-07 4:52
AliAmjad13-Oct-07 4:52 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak13-Oct-07 5:03
mveDave Kreskowiak13-Oct-07 5:03 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad13-Oct-07 6:22
AliAmjad13-Oct-07 6:22 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak13-Oct-07 8:59
mveDave Kreskowiak13-Oct-07 8:59 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad13-Oct-07 9:17
AliAmjad13-Oct-07 9:17 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak13-Oct-07 11:36
mveDave Kreskowiak13-Oct-07 11:36 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad13-Oct-07 23:08
AliAmjad13-Oct-07 23:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.