Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default between commas

Use the SPLIT() function

strData = "10K,0,45"
varData = Split(strData, ",")
For intTEmp = 0 To UBound(varData)
MsgBox varData(intTEmp)
Next

OR

strData = "10K,0,45"
Msgbox SPLIT(strData,",")(0)
Msgbox SPLIT(strData,",")(1)
Msgbox SPLIT(strData,",")(2)

If this post helps click Yes
---------------
Jacob Skaria


" wrote:

my values are like

10k,0,45
0,01,h7
14,0,0

How can i get these 3 values separeted by 2 commas via vba ?
Thank you very much in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default between commas

If this post helps click Yes

Yes,Yes,Yes,Yes,Yes,Yes,Yes,Yes.

Thank you very much.


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
inverted commas Sam Wilson Excel Programming 1 August 13th 08 04:32 PM
So many commas Alan[_5_] Excel Worksheet Functions 2 May 24th 07 07:44 PM
how o i use commas for lakhs jatin Excel Worksheet Functions 1 April 10th 07 01:35 PM
tab delimited and commas sedonovan Excel Discussion (Misc queries) 0 July 31st 06 02:31 PM
Commas where decimals should be tyrone Excel Worksheet Functions 5 June 21st 06 06:47 PM


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

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

About Us

"It's about Microsoft Excel"