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

Visual Basic

 
GeneralRe: Writing to and reading from a text file Pin
helelark12326-Dec-07 19:44
helelark12326-Dec-07 19:44 
GeneralRe: Writing to and reading from a text file Pin
Hedo27-Dec-07 16:55
Hedo27-Dec-07 16:55 
QuestionMouse Movement in VB 6.0 Pin
zawpai26-Dec-07 14:59
zawpai26-Dec-07 14:59 
GeneralRe: Mouse Movement in VB 6.0 Pin
Dave Kreskowiak27-Dec-07 12:27
mveDave Kreskowiak27-Dec-07 12:27 
Question[Message Deleted] Pin
ciconte26-Dec-07 14:28
ciconte26-Dec-07 14:28 
GeneralRe: Terms of use and e-mail subscription Pin
Dave Kreskowiak27-Dec-07 12:21
mveDave Kreskowiak27-Dec-07 12:21 
GeneralRe: [Message Deleted] Pin
Paul Conrad30-Dec-07 10:45
professionalPaul Conrad30-Dec-07 10:45 
GeneralExport Excel Sheet to Textfile (vb.net) Pin
Member 375080126-Dec-07 13:45
Member 375080126-Dec-07 13:45 
I'd like to export specific columns into certain positions in the textfile, can you show me how?

For example - loop through row, exporting into textfile:
column 1 ---> start on 1st line Position 20 in the text file (after 19 spaces)
column 2 ---> beginning of next line.
column 3 ---> (after 39 spaces), position 40.
__________________

I know how to set get the whole line, but how to get specific values from each row.
Here's what i have that extracts all (just a snippet of my code). Please help


For rowIndex = 1 To 50
colIndex = 1
If Not (CType(oWS.Cells(rowIndex, colIndex), Excel.Range)).Value2 Is Nothing Then
For colIndex = 1 To 15
If (CType(oXL.Cells(rowIndex, colIndex), Excel.Range)).Value2 Is Nothing Then
sWrtier.Write("" + vbTab)
Else
sWrtier.Write((CType(oXL.Cells(rowIndex, colIndex), Excel.Range)).Value2.ToString() + vbTab)
End If
Next
End If
GeneralRe: Export Excel Sheet to Textfile (vb.net) Pin
Paul Conrad30-Dec-07 10:46
professionalPaul Conrad30-Dec-07 10:46 
QuestionRe: Export Excel Sheet to Textfile (vb.net) Pin
Member 37508012-Jan-08 7:08
Member 37508012-Jan-08 7:08 
GeneralBetter way of connecting to SQL 2005 Pin
svanwass26-Dec-07 13:31
svanwass26-Dec-07 13:31 
GeneralRe: Better way of connecting to SQL 2005 Pin
Dave Kreskowiak27-Dec-07 12:17
mveDave Kreskowiak27-Dec-07 12:17 
QuestionClass disposal Pin
__OZ__26-Dec-07 10:33
__OZ__26-Dec-07 10:33 
GeneralRe: Class disposal Pin
Dave Kreskowiak26-Dec-07 10:59
mveDave Kreskowiak26-Dec-07 10:59 
GeneralRe: Class disposal Pin
__OZ__26-Dec-07 15:10
__OZ__26-Dec-07 15:10 
GeneralRe: Class disposal Pin
Scott Dorman26-Dec-07 17:55
professionalScott Dorman26-Dec-07 17:55 
QuestionHow to work with Collection in VB6? Pin
suguimoto26-Dec-07 6:48
suguimoto26-Dec-07 6:48 
AnswerRe: How to work with Collection in VB6? Pin
Paul Conrad26-Dec-07 7:43
professionalPaul Conrad26-Dec-07 7:43 
AnswerRe: How to work with Collection in VB6? Pin
Dave Kreskowiak26-Dec-07 8:08
mveDave Kreskowiak26-Dec-07 8:08 
GeneralRe: How to work with Collection in VB6? Pin
suguimoto26-Dec-07 8:55
suguimoto26-Dec-07 8:55 
GeneralRe: How to work with Collection in VB6? Pin
Dave Kreskowiak26-Dec-07 9:05
mveDave Kreskowiak26-Dec-07 9:05 
GeneralRe: How to work with Collection in VB6? [modified] Pin
suguimoto26-Dec-07 23:44
suguimoto26-Dec-07 23:44 
GeneralRe: How to work with Collection in VB6? Pin
Dave Kreskowiak27-Dec-07 5:09
mveDave Kreskowiak27-Dec-07 5:09 
QuestionInstance of existing form and control manipulation Pin
Adnan Siddiqi26-Dec-07 6:21
Adnan Siddiqi26-Dec-07 6:21 
GeneralRe: Instance of existing form and control manipulation Pin
Dave Kreskowiak26-Dec-07 8:13
mveDave Kreskowiak26-Dec-07 8:13 

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.