Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Split Function gives rn-time error


Hello David,

The Split function returns an Array of the separated elements in th
string. The first element of the Array is zero the last element i
found using the UBound function. You have to rebuild the string fro
the array elements. You might want to use the Replace functio
instead.


Code
-------------------

Sub test()

Dim txt as String

txt = Replace("abc;xyz;456m;9a6d", ";", Chr$(vbKeySpace))

Msgbox Txt

End su
-------------------

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=48097

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
freeze and split at the same time? Betty11 Excel Discussion (Misc queries) 2 May 21st 23 03:42 AM
Insert Function next to formula bar gives Run-time Error '50290' Nick Excel Discussion (Misc queries) 0 July 7th 08 03:41 PM
Worksheet function match - run time error Sajit Excel Worksheet Functions 3 July 8th 07 10:30 PM
Split date and time Warsteiner Excel Discussion (Misc queries) 2 December 8th 05 10:10 PM
Split Function gives rn-time error davidm Excel Programming 3 November 4th 05 02:26 PM


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