Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Copy tab delimited string to worksheet row - VB6 application

Hello,

I am working on a VB6 application that needs to copy tab delimited strings
to worksheet rows. The values in the string need to end up in successive
columns of the worksheet row.
The values are just text or numeric strings, some values may be zero length
strings.

Is there a simple way to do this or do I have to pick out the values and
copy them to the correct cell?

I have searched the Web and have not found anything yet, so I would
appreciate any pointers.

Ragnar


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Copy tab delimited string to worksheet row - VB6 application

Using the split function you can create an array of values. You can then
pupulate cells with the array something like this...

Sub test()
Dim str As String
Dim aryStrings() As String

str = "This,That"
aryStrings = Split(str, ",")

Sheet1.Range("A1:B1").Value = aryStrings()

End Sub

--
HTH...

Jim Thomlinson


"Ragnar Midtskogen" wrote:

Hello,

I am working on a VB6 application that needs to copy tab delimited strings
to worksheet rows. The values in the string need to end up in successive
columns of the worksheet row.
The values are just text or numeric strings, some values may be zero length
strings.

Is there a simple way to do this or do I have to pick out the values and
copy them to the correct cell?

I have searched the Web and have not found anything yet, so I would
appreciate any pointers.

Ragnar



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create comma-delimited string from dynamic range? Ptyrider Excel Discussion (Misc queries) 2 November 26th 07 09:04 AM
Sum delimited values in text string if... J Excel Worksheet Functions 7 February 24th 07 06:10 PM
Convert column data to semicolon delimited text string Richard RE Excel Worksheet Functions 1 September 5th 06 03:03 PM
Extracting Numeric Data from a Delimited Text String [email protected] Excel Worksheet Functions 5 February 10th 06 10:29 PM
Parse a space delimited string into unique columns erighter Excel Programming 1 March 10th 05 01:01 PM


All times are GMT +1. The time now is 11:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"