Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello !
AA is a variable that contains a string. BB is another string variable. I need a macro that will create a new string CC which is made by inserting BB into AA (after the first word in AA). Example: If AA="They are capable" and BB="think they", then CC should be "They think they are capable." Any help would be apreciated! Thanks Jay *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Heres 1 way Code: -------------------- Sub ManipulateText() Dim AA As String Dim BB As String Dim CC As String Dim iPos As Integer AA = "They are capable" BB = "think they" iPos = InStr(1, AA, " ") CC = Left(AA, iPos) & BB & Mid(AA, iPos) MsgBox CC End Sub -------------------- -- mudraker If my reply has assisted or failed to assist you I welcome your Feedback. www.thecodecage.com ------------------------------------------------------------------------ mudraker's Profile: http://www.thecodecage.com/forumz/member.php?userid=18 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=90317 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
String Manipulation within VBA | Excel Discussion (Misc queries) | |||
Importing Long String - String Manipulation (INVRPT) (EDI EANCOM 96a) | Excel Programming | |||
Importing Long String - String Manipulation (EDI EANCOM 96a) | Excel Programming | |||
String manipulation!! | Excel Programming | |||
VBA String manipulation | Excel Programming |