Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
TAM TAM is offline
external usenet poster
 
Posts: 4
Default Split Function

I am trying to use the split function to return several instances of
substrings within a string. Can you please tell me how to return those
values e.g. to a variable

Thanks

TAM


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Split Function

Hi
one way:

Sub foo()
Dim Text_Split As Variant
Text_Split= Split(ActiveCell.Value)
MsgBox Text_Split(0)
MsgBox Text_Split(1)
End Sub



--
Regards
Frank Kabel
Frankfurt, Germany

TAM wrote:
I am trying to use the split function to return several instances of
substrings within a string. Can you please tell me how to return

those
values e.g. to a variable

Thanks

TAM


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
Nees Function to Split ytayta555 Excel Worksheet Functions 3 February 25th 10 08:45 PM
Split Cell using If or other function JPS Excel Worksheet Functions 0 March 19th 09 03:50 PM
What are the main benifits of using the Split function? Krazy23848 Excel Worksheet Functions 3 August 15th 08 05:41 PM
Split Cells using a Function Morpheus2067 Excel Worksheet Functions 1 May 25th 06 05:31 PM
Split into 2 wrkshts, now function doesn't work Keith Excel Worksheet Functions 0 May 25th 06 12:28 AM


All times are GMT +1. The time now is 02:12 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"