?
Solved

How do i separate these words

Posted on 2004-08-14
2
Medium Priority
?
141 Views
Last Modified: 2010-08-05
Im trying to separate this message into 3 parts. they have a space between them, for example:

message= Hi, I'm Andrew.

how do i separate this to:
text1=Hi,
Text2=I'm
text3=Andrew.
0
Comment
Question by:andyakira
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Farzad Akbarnejad earned 1000 total points
ID: 11798963
Hi,
    Dim message As String
   
    Dim text1 As String
    Dim text2 As String
    Dim text3 As String
   
    Dim arrText() As String
   
   
    message = "Hi, I'm Andrew."
    arrText = Split(message, " ")
   
    text1 = arrText(0)
    text2 = arrText(1)
    text3 = arrText(2)
   
    MsgBox text1 & vbCrLf & text2 & vbCrLf & text3


-FA
0
 

Author Comment

by:andyakira
ID: 11798990
tyvm
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month12 days, 11 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question